/* Custom Styles for Lianyu Education Website */

/* Additional Header Styles */
.header {
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Banner Navigation */
.banner .owl-nav {
    display: none;
}

.banner .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner .owl-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Course Card Hover Effects */
.hot_list li {
    transition: all 0.3s ease;
}

.hot_list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.hot_list li .text .cell {
    position: relative;
}

.hot_list li .text span {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: #fff;
    margin-top: 10px;
}

/* More Button Styling */
.li_more .text_t_ht {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.li_more .text_t_ht .cell {
    text-align: center;
}

.li_more .text_t_ht p {
    font-size: 18px;
    margin-bottom: 15px;
}

/* About Section Enhancements */
.div_about {
    position: relative;
}

.div_about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,123,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about .btn span {
    position: relative;
    padding-right: 20px;
}

.about .btn span::after {
    content: '→';
    position: absolute;
    right: 0;
    transition: all 0.3s ease;
}

.about .btn a:hover span::after {
    right: -5px;
}

/* Teacher Showcase Additional Styles */
.tc-feature-row {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.tc-feature-row .tc-badge {
    background: #28a745;
}

.thumbnail-item:hover {
    border-color: #007bff;
}

/* Province Selection */
.provinces li.mr21 {
    margin-right: 21px;
}

.provinces li.mb39 {
    margin-bottom: 10px;
}

/* News Section Enhancements */
.news_lt {
    transition: all 0.3s ease;
}

.news_lt:hover {
    transform: translateY(-5px);
}

.news_lt .text {
    transition: all 0.3s ease;
}

.news_lt:hover .text {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.news_rt li {
    transition: all 0.3s ease;
}

.news_rt li:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-left: -15px;
    margin-right: -15px;
}

.news_rt li:hover .date span {
    color: #0056b3;
}

.news_rt li:hover h3 {
    color: #007bff;
}

/* Footer Enhancements */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.footer .wrap {
    position: relative;
    z-index: 1;
}

/* Table Enhancements */
.tab-box table {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-box tr.tit th {
    position: relative;
}

.tab-box tr.tit th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

.tab-box td a {
    position: relative;
    overflow: hidden;
}

.tab-box td a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.tab-box td a:hover::before {
    left: 100%;
}

/* Counter Animation */
.timer {
    display: inline-block;
    min-width: 50px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-slides-container {
        height: auto;
        min-height: 500px;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    .thumbnails {
        gap: 10px;
    }

    .provinces li {
        padding: 6px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .title h3 {
        font-size: 24px;
    }

    .page_num ul {
        flex-wrap: wrap;
    }

    .page_num li {
        width: 50%;
        margin-bottom: 20px;
    }

    .hot_list ul {
        grid-template-columns: 1fr;
    }

    .div_tag ul {
        gap: 10px;
    }

    .div_tag ul li a {
        padding: 8px 15px;
        font-size: 14px;
    }

    .provinces {
        gap: 8px;
    }

    .provinces li {
        padding: 5px 12px;
        font-size: 12px;
    }

    .tab-box {
        overflow-x: auto;
    }

    .tab-box table {
        min-width: 800px;
    }

    .news_rt li a {
        flex-direction: column;
    }

    .news_rt .date {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .news_rt .date span,
    .news_rt .date label {
        font-size: 14px;
    }

    .thumbnail-item {
        width: 50px;
        height: 50px;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .banner_cur,
    .nav-btn,
    .thumbnail-section {
        display: none !important;
    }

    .mainer {
        padding-top: 0;
    }

    .banner .owl .item .img {
        height: 200px;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Selection Color */
::selection {
    background: #007bff;
    color: #fff;
}

::-moz-selection {
    background: #007bff;
    color: #fff;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img[src] {
    animation: none;
    background: transparent;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
