/**
 * TCM Heritage - Homepage Styles
 * Mobile-first responsive design following Google Mobile Standards
 */

/* CSS Variables */
:root {
    --color-primary: #38761D;
    --color-secondary: #D2B48C;
    --color-background: #F8F4E3;
    --color-text: #333333;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

h2 {
    text-align: center;
    margin: 30px 0 20px;
    color: var(--color-primary);
    font-size: 22px;
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Header */
.site-header {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    min-height: 56px;
}

.logo a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

.logo-icon {
    font-size: 24px;
    margin-right: 6px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    font-family: Georgia, serif;
}

/* Navigation */
.main-nav {
    display: none;
}

.nav-level-1 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-level-1 > li {
    position: relative;
}

.nav-level-1 > li > a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-level-1 > li > a:hover {
    background-color: rgba(255,255,255,0.15);
}

.nav-level-1 > li.has-submenu > a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.7;
}

.nav-level-2 {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 101;
    display: none;
}

.nav-level-1 > li:hover > .nav-level-2 {
    display: block;
}

.nav-level-2 a {
    color: var(--color-text);
    padding: 10px 16px;
    display: block;
    font-size: 13px;
    transition: background 0.2s;
}

.nav-level-2 a:hover {
    background-color: #f5f5f5;
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
}

.login-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.login-btn:hover {
    background-color: white;
    color: var(--color-primary);
}

/* Hero Banner */
.hero-banner {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('/upload/bj.jpg') center center / cover no-repeat;
    padding: 30px 15px;
}

.hero-banner .content-wrapper {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 600px;
}

.hero-banner h1 {
    font-size: 24px;
    margin: 0 0 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.hero-banner p {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 20px;
    line-height: 1.5;
}

.banner-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.banner-search-input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
}

.banner-search-btn {
    padding: 14px 24px;
    background: var(--color-secondary);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
}


/* Featured Section - TCM Fixes */
.featured-section {
    margin: 20px 0;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5e9 100%);
    border-radius: 12px;
}

.featured-section h3 {
    margin: 0 0 20px;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.featured-section h3 span {
    color: var(--color-secondary);
}

.tcm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tcm-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: block;
}

.tcm-card:active {
    transform: scale(0.98);
}

.tcm-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.tcm-icon {
    font-size: 24px;
    margin-right: 8px;
}

.tcm-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.tcm-tags {
    font-size: 11px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.tcm-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    line-height: 1.4;
}

.tcm-fix {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 600;
    padding: 5px 8px;
    background: #e8f5e0;
    border-radius: 5px;
    display: inline-block;
}

/* TCM Toggle for Mobile */
.tcm-toggle {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.toggle-icon {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s;
}

.tcm-toggle.expanded .toggle-icon {
    transform: translateY(-50%) rotate(180deg);
}

.tcm-grid.collapsed {
    display: none;
}

@media (max-width: 767px) {
    .toggle-icon {
        display: inline-block;
    }
    
    .tcm-toggle {
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Article Section */
.article-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.article-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

.article-item:active {
    background-color: #f8f8f8;
}

.article-image {
    width: 100px;
    min-width: 100px;
    margin-right: 12px;
    overflow: hidden;
    border-radius: 6px;
}

.article-image img {
    width: 100%;
    height: 75px;
    object-fit: cover;
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-content h3 {
    margin: 0 0 6px;
    color: var(--color-primary);
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-content p {
    display: none;
}

.article-meta {
    font-size: 11px;
    color: #999;
}

.article-meta span {
    margin-right: 8px;
}

.more-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    text-align: center;
}

.book-item a {
    text-decoration: none;
    color: inherit;
}

.book-cover {
    aspect-ratio: 3 / 4;
    width: 100%;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-item h4 {
    margin: 8px 0 4px;
    font-size: 13px;
    color: var(--color-primary);
}

.book-item p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    text-align: center;
}

.course-item a {
    text-decoration: none;
    color: inherit;
}

.course-thumbnail {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.course-item h4 {
    margin: 8px 0 4px;
    font-size: 13px;
    color: var(--color-primary);
}

.course-item p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d5f17 100%);
    padding: 12px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.stat-item {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.stat-info {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.stat-label {
    font-size: 10px;
    opacity: 0.85;
    display: block;
}

/* Testimonials Section */
.testimonials-section {
    padding: 20px 0 15px;
    overflow: hidden;
}

.testimonials-section h2 {
    margin: 0 0 15px;
    font-size: 20px;
}

.testimonials-wrapper {
    overflow: hidden;
    margin: 0 -15px;
    padding: 10px 0;
}

.testimonials-track {
    display: flex;
    gap: 15px;
    animation: scrollTestimonials 40s linear infinite;
    width: max-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    min-width: 280px;
    max-width: 280px;
}

.testimonial-card p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.testimonial-author .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

.testimonial-author strong {
    color: var(--color-text);
    margin-right: 5px;
}

/* VIP Membership */
.vip-membership {
    text-align: center;
    padding: 25px 0;
    margin-top: 10px;
}

.vip-subtitle {
    color: #666;
    font-size: 14px;
    margin: -5px 0 20px;
}

.vip-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.vip-card {
    background: white;
    border-radius: 12px;
    padding: 20px 18px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
}

.vip-card.featured {
    border: 2px solid var(--color-primary);
    background: linear-gradient(180deg, #f0f9ed 0%, #fff 100%);
}

.vip-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
}

.vip-badge.best {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d5f17 100%);
}

.vip-card h3 {
    margin: 8px 0 12px;
    color: var(--color-primary);
    font-size: 18px;
}

.vip-price {
    margin-bottom: 15px;
}

.vip-price .original-price {
    display: block;
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 3px;
}

.vip-price .currency {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    vertical-align: top;
}

.vip-price .amount {
    font-size: 36px;
    font-weight: 700;
    color: #C0392B;
    line-height: 1;
}

.vip-price .period {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 3px;
}

.vip-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    text-align: left;
}

.vip-features li {
    padding: 5px 0;
    font-size: 12px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
}

.vip-features li:last-child {
    border-bottom: none;
}

.vip-features .check {
    color: var(--color-primary);
    margin-right: 10px;
    font-weight: bold;
}

.vip-features li.highlight {
    color: var(--color-primary);
    font-weight: 500;
}

.vip-btn {
    display: block;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    min-height: 48px;
    background: #f5f5f5;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    transition: all 0.3s;
}

.vip-btn:hover {
    background: var(--color-primary);
    color: white;
}

.vip-btn.primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.vip-btn.primary:hover {
    background: #2d5f17;
    border-color: #2d5f17;
}

/* Ranking Section */
.ranking-section {
    background: #fff;
    padding: 25px 0;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

.ranking-section h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.ranking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.ranking-link {
    display: flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--color-text);
    font-size: 13px;
    border-bottom: 1px dashed #eee;
}

.ranking-link:active {
    background-color: #f5f5f5;
}

.rank-no {
    color: #999;
    font-weight: 600;
    margin-right: 8px;
    min-width: 20px;
}

.ranking-link:nth-child(-n+3) .rank-no {
    color: #e74c3c;
}

.rank-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tags Section */
.tags-section {
    background: linear-gradient(135deg, #f0f4f0 0%, #e8f0e8 100%);
    padding: 30px 0;
    margin-top: 30px;
}

.tags-section h3 {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 18px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
}

.tag-item {
    display: inline-block;
    padding: 8px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 18px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 13px;
}

.tag-item:active {
    background: var(--color-primary);
    color: white;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #bbb;
    padding-top: 40px;
    font-size: 13px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px 30px;
}

.footer-col h3 {
    color: var(--color-secondary);
    margin: 0 0 15px;
    font-size: 16px;
}

.footer-col a {
    color: #bbb;
    text-decoration: none;
    line-height: 2;
    display: block;
}

.footer-bottom {
    background-color: #222;
    text-align: center;
    padding: 15px;
    color: #888;
    font-size: 12px;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 20px 0;
}


/* ========================================
   Tablet Styles (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
    .container {
        padding: 20px;
    }

    h2 {
        font-size: 26px;
        margin: 35px 0 25px;
    }

    .header-inner {
        padding: 0 20px;
        height: 65px;
    }

    .logo-icon {
        font-size: 26px;
    }

    .logo-text {
        font-size: 20px;
    }

    .main-nav {
        display: flex;
    }

    .hero-banner {
        min-height: 350px;
        padding: 40px 20px;
    }

    .hero-banner h1 {
        font-size: 32px;
    }

    .hero-banner p {
        font-size: 16px;
    }

    .banner-search {
        flex-direction: row;
        gap: 0;
    }

    .banner-search-input {
        border-radius: 30px 0 0 30px;
    }

    .banner-search-btn {
        border-radius: 0 30px 30px 0;
    }

    .stats-section {
        padding: 15px 0;
    }

    .stat-icon {
        font-size: 24px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .testimonial-card {
        min-width: 300px;
        max-width: 300px;
    }

    .tcm-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-image {
        width: 130px;
        min-width: 130px;
    }

    .article-image img {
        height: 90px;
    }

    .article-content h3 {
        font-size: 15px;
    }

    .article-content p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #666;
        margin: 0 0 8px;
        font-size: 13px;
        line-height: 1.5;
    }

    .book-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Desktop Styles (min-width: 992px)
   ======================================== */
@media (min-width: 992px) {
    h2 {
        font-size: 28px;
        margin: 40px 0 30px;
    }

    .header-inner {
        height: 70px;
    }

    .logo-icon {
        font-size: 28px;
        margin-right: 8px;
    }

    .logo-text {
        font-size: 22px;
    }

    .nav-level-1 > li > a {
        padding: 10px 16px;
    }

    .hero-banner {
        min-height: 400px;
    }

    .hero-banner h1 {
        font-size: 40px;
    }

    .hero-banner p {
        font-size: 18px;
    }

    .banner-search {
        max-width: 500px;
    }

    .tcm-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .tcm-card {
        padding: 18px;
    }

    .tcm-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

    .article-item {
        padding: 15px;
    }

    .article-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .article-image {
        width: 140px;
        min-width: 140px;
        margin-right: 15px;
    }

    .article-image img {
        height: 100px;
    }

    .book-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .course-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .vip-cards {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .vip-card {
        max-width: 320px;
        padding: 25px 20px;
    }

    .vip-card.featured {
        transform: scale(1.03);
    }

    .vip-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    }

    .vip-card.featured:hover {
        transform: scale(1.03) translateY(-5px);
    }

    .tag-item:hover {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: white;
        transform: translateY(-2px);
    }

    .ranking-link:hover {
        color: var(--color-primary);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

/* ========================================
   Large Desktop (min-width: 1200px)
   ======================================== */
@media (min-width: 1200px) {
    .hero-banner h1 {
        font-size: 42px;
    }
}

/* ========================================
   Touch Device Optimizations
   ======================================== */
@media (hover: none) {
    .tcm-card:hover,
    .article-item:hover,
    .tag-item:hover,
    .card.featured {
        transform: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .hero-banner,
    .banner-search,
    .site-footer {
        display: none;
    }
}


/* Floating Sidebar */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    width: 20px;
    height: 50px;
    background: rgba(56, 118, 29, 0.6);
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: white;
    box-shadow: -1px 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: var(--color-primary);
    width: 24px;
}

.toggle-arrow {
    transition: transform 0.3s;
}

.floating-sidebar.active .toggle-arrow {
    transform: rotate(180deg);
}

.sidebar-menu {
    background: white;
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 0 15px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.floating-sidebar.active .sidebar-menu {
    max-width: 170px;
    opacity: 1;
}

.floating-sidebar.active .sidebar-toggle {
    border-radius: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--color-text);
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    white-space: nowrap;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: #f8f8f8;
    color: var(--color-primary);
}

.sidebar-icon {
    font-size: 16px;
    margin-right: 8px;
}

.sidebar-text {
    font-size: 13px;
}

/* Hide on mobile */
@media (max-width: 767px) {
    .floating-sidebar {
        display: none;
    }
}


/* ========================================
   Page Styles - Search, About, Contact, Tag
   ======================================== */

/* Page Header */
.page-header {
    text-align: center;
    padding: 30px 0 20px;
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 24px;
    color: var(--color-primary);
    margin: 0 0 10px;
}

.page-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.page-header .highlight {
    color: var(--color-primary);
    font-weight: 600;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.search-form .search-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.search-form .search-input:focus {
    border-color: var(--color-primary);
}

.search-form .search-btn {
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
}

.search-form .search-btn:hover {
    background: #2d5f17;
}

/* Search Results */
.search-results {
    margin-bottom: 30px;
}

.search-results h2 {
    text-align: left;
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
}

/* Course Price */
.course-price {
    color: #C0392B;
    font-weight: 600;
    font-size: 14px;
    margin-top: 5px;
}

.course-price.free {
    color: var(--color-primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    margin: 30px 0;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--color-text);
    font-size: 20px;
    margin: 0 0 10px;
}

.empty-state p {
    color: #888;
    font-size: 14px;
    margin: 0 0 20px;
}

/* Primary Button */
.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    min-height: 48px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2d5f17;
    color: white;
}

/* ========================================
   About Page
   ======================================== */
.about-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f0f9ed 0%, #e8f5e0 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.about-hero-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.about-hero h1 {
    font-size: 28px;
    color: var(--color-primary);
    margin: 0 0 10px;
}

.about-hero p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.about-section {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 20px;
}

.about-section h2 {
    text-align: left;
    font-size: 20px;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
}

.about-highlight {
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
}

.about-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.about-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.about-card-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.about-card h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin: 0 0 8px;
}

.about-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #555;
}

.about-features li:last-child {
    border-bottom: none;
}

.about-features li span {
    margin-right: 12px;
    font-size: 18px;
}

.about-cta {
    text-align: center;
}

.about-cta h2 {
    text-align: center;
}

.about-cta p {
    text-align: center;
    margin-bottom: 20px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 40px 0;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.contact-card h1 {
    font-size: 26px;
    color: var(--color-primary);
    margin: 0 0 8px;
}

.contact-site-name {
    font-size: 14px;
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

.contact-divider {
    width: 60px;
    height: 2px;
    background: var(--color-secondary);
    margin: 20px auto;
}

.contact-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.contact-item {
    margin-bottom: 12px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    font-size: 16px;
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-response {
    font-size: 12px;
    color: #888;
    margin-bottom: 0;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--color-primary);
}

/* ========================================
   Tags Page
   ======================================== */
.tags-cloud-page {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 20px 0;
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 25px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 14px;
    transition: all 0.2s;
}

.tag-cloud-item:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.tag-cloud-item .tag-count {
    background: #f0f0f0;
    color: #666;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.tag-cloud-item:hover .tag-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Tags Filter */
.tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.tag-filter-item {
    padding: 8px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 13px;
    transition: all 0.2s;
}

.tag-filter-item:hover,
.tag-filter-item.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* Pagination Wrapper */
.pagination-wrapper {
    text-align: center;
    padding: 20px 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 13px;
}

.pagination-wrapper a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination-wrapper .current,
.pagination-wrapper span.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ========================================
   Article Detail Page
   ======================================== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.article-main {
    background: white;
    border-radius: 12px;
    padding: 20px;
}

.article-header h1 {
    font-size: 22px;
    color: var(--color-text);
    margin: 0 0 15px;
    line-height: 1.4;
}

.article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.article-body {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--color-primary);
    margin: 25px 0 15px;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-tags {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-tags span {
    color: #888;
    font-size: 13px;
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 12px;
    margin: 3px;
    transition: all 0.2s;
}

.tag-link:hover {
    background: var(--color-primary);
    color: white;
}

.article-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-share span {
    color: #888;
    font-size: 13px;
}

.share-btn {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 12px;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--color-primary);
    color: white;
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: white;
    border-radius: 12px;
    padding: 18px;
}

.sidebar-box h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-secondary);
}

.sidebar-courses {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-course {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.sidebar-course img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.sidebar-course .course-info h4 {
    font-size: 13px;
    color: var(--color-text);
    margin: 0 0 5px;
    line-height: 1.3;
}

.sidebar-course .price {
    font-size: 12px;
    color: #C0392B;
    font-weight: 600;
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
}

.sidebar-article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
}

.sidebar-article:last-child {
    border-bottom: none;
}

.sidebar-article .title {
    font-size: 13px;
    color: var(--color-text);
    flex: 1;
    margin-right: 10px;
}

.sidebar-article .date {
    font-size: 11px;
    color: #999;
}

.sidebar-article:hover .title {
    color: var(--color-primary);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
    padding: 10px 0;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
}

.breadcrumb .current {
    color: #666;
}

/* ========================================
   Responsive - Tablet & Desktop
   ======================================== */
@media (min-width: 768px) {
    .page-header {
        padding: 40px 0 25px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .search-form {
        flex-direction: row;
    }

    .about-hero h1 {
        font-size: 32px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr 280px;
    }

    .article-header h1 {
        font-size: 26px;
    }
}

@media (min-width: 992px) {
    .page-header h1 {
        font-size: 32px;
    }

    .about-hero {
        padding: 60px 40px;
    }

    .about-hero h1 {
        font-size: 36px;
    }

    .about-section {
        padding: 30px;
    }

    .about-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .article-layout {
        grid-template-columns: 1fr 320px;
    }

    .article-main {
        padding: 30px;
    }

    .article-header h1 {
        font-size: 30px;
    }

    .tag-cloud-item:hover {
        transform: translateY(-2px);
    }
}


/* ========================================
   Book & Course Page Styles
   ======================================== */

/* Book Carousel */
.book-carousel {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-banner {
    display: block;
    position: relative;
}

.carousel-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
}

.carousel-caption h3 {
    font-size: 18px;
    margin: 0 0 5px;
}

.carousel-caption p {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

/* Notice Card */
.notice-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.notice-content h3 {
    font-size: 16px;
    color: var(--color-primary);
    margin: 0 0 5px;
}

.notice-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.notice-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
    transition: all 0.2s;
}

.notice-btn:hover {
    background: var(--color-primary);
    color: white;
}

/* Book Section */
.book-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    padding-bottom: 0;
    border-bottom: none;
    text-align: left;
}

.view-all {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* Book Badge */
.book-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.book-badge.hot {
    background: #e74c3c;
}

.book-badge.sale {
    background: var(--color-primary);
}

.book-cover {
    position: relative;
}

.book-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

.book-meta .price {
    color: #C0392B;
    font-weight: 600;
}

.book-meta .downloads,
.book-meta .sales {
    color: var(--color-primary);
}

/* Course Hero */
.course-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d5f17 100%);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.course-hero h1 {
    font-size: 24px;
    margin: 0 0 10px;
}

.course-hero p {
    font-size: 16px;
    margin: 0 0 5px;
    opacity: 0.95;
}

.course-hero .hero-sub {
    font-size: 13px;
    opacity: 0.8;
}

/* Course Section */
.course-section {
    margin-bottom: 30px;
}

.course-section h2 {
    text-align: left;
    font-size: 18px;
    margin: 0 0 15px;
}

/* Course Badge */
.course-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: #e74c3c;
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Read More Link */
.read-more {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   Responsive - Book & Course Pages
   ======================================== */
@media (min-width: 768px) {
    .carousel-banner img {
        height: 280px;
    }

    .carousel-caption h3 {
        font-size: 22px;
    }

    .notice-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .notice-btn {
        flex-shrink: 0;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .course-hero {
        padding: 60px 30px;
    }

    .course-hero h1 {
        font-size: 32px;
    }

    .course-hero p {
        font-size: 18px;
    }
}

@media (min-width: 992px) {
    .carousel-banner img {
        height: 320px;
    }

    .carousel-caption {
        padding: 40px 30px 25px;
    }

    .carousel-caption h3 {
        font-size: 26px;
    }

    .carousel-caption p {
        font-size: 15px;
    }

    .course-hero h1 {
        font-size: 36px;
    }
}


/* ========================================
   Search Filter & Sort Styles
   ======================================== */

/* Search Filter Box */
.search-filter-box {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: var(--color-primary);
}

.filter-select {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
}

.filter-select:focus {
    border-color: var(--color-primary);
}

.filter-btn {
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
}

.filter-btn:hover {
    background: #2d5f17;
}

/* Sort Tabs */
.sort-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.sort-tab {
    padding: 8px 16px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.2s;
}

.sort-tab:hover {
    background: #f5f5f5;
    color: var(--color-text);
}

.sort-tab.active {
    background: var(--color-primary);
    color: white;
}

.results-count {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Category Hero */
.category-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d5f17 100%);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 25px;
    color: white;
}

.category-hero h1 {
    font-size: 24px;
    margin: 0 0 10px;
}

.category-hero p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   Download Page Styles
   ======================================== */
.download-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50vh;
    padding: 40px 0;
}

.download-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.download-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.download-card h1 {
    font-size: 24px;
    color: var(--color-primary);
    margin: 0 0 20px;
}

.download-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.download-info h2 {
    font-size: 16px;
    color: var(--color-text);
    margin: 0;
    text-align: center;
    border-bottom: none;
}

.download-links h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-btn {
    display: block;
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #2d5f17;
    color: white;
}

.download-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.download-help {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
}

.download-help a {
    color: var(--color-primary);
}

/* ========================================
   Query Page Styles
   ======================================== */
.query-page {
    max-width: 600px;
    margin: 0 auto;
}

.query-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.query-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.query-tab {
    flex: 1;
    padding: 12px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.query-tab:hover {
    background: #eee;
}

.query-tab.active {
    background: var(--color-primary);
    color: white;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.form-input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--color-primary);
}

.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn .form-input {
    flex: 1;
}

.btn-secondary {
    padding: 12px 16px;
    background: #f5f5f5;
    color: var(--color-text);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #eee;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Orders Result */
.orders-result {
    margin-top: 30px;
}

.orders-result h3 {
    font-size: 18px;
    color: var(--color-primary);
    margin: 0 0 15px;
}

.order-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.order-info h4 {
    font-size: 16px;
    color: var(--color-text);
    margin: 0 0 8px;
}

.order-info p {
    font-size: 13px;
    color: #888;
    margin: 0 0 4px;
}

.order-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

/* ========================================
   Responsive - Filter & Query
   ======================================== */
@media (min-width: 768px) {
    .filter-row {
        flex-direction: row;
        align-items: center;
    }

    .filter-input {
        flex: 2;
    }

    .filter-select {
        flex: 1;
    }

    .filter-btn {
        flex: 0 0 auto;
    }

    .category-hero {
        padding: 60px 30px;
    }

    .category-hero h1 {
        font-size: 32px;
    }

    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .download-btn {
        flex: 0 0 auto;
    }
}

@media (min-width: 992px) {
    .category-hero h1 {
        font-size: 36px;
    }
}

/* ========================================
   Error Page Styles
   ======================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 40px 0;
}

.error-card {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.error-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.error-card h1 {
    font-size: 28px;
    color: #dc3545;
    margin: 0 0 15px;
}

.error-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   Report Page Styles
   ======================================== */
.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    color: var(--color-primary);
    margin: 0 0 10px;
}

.page-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-label .required {
    color: #dc3545;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s;
}

.form-textarea:focus {
    border-color: var(--color-primary);
}

.captcha-group {
    max-width: 300px;
}

.captcha-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}

.captcha-answer {
    width: 80px;
}

.form-actions {
    margin-top: 25px;
}

/* ========================================
   Download Page Extended Styles
   ======================================== */
.download-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 25px;
    text-align: left;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-content {
    font-size: 14px;
    color: #856404;
}

.warning-content small {
    color: #997a00;
}

.download-info .order-no {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

.download-footer .divider {
    margin: 0 10px;
    color: #ddd;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--color-primary);
}

/* Course Download Styles */
.success-card .download-icon.success {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.success-card .subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 25px;
}

.course-info {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.course-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.course-details h2 {
    font-size: 16px;
    color: var(--color-text);
    margin: 0 0 5px;
    text-align: left;
    border-bottom: none;
}

.course-details .instructor {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.download-instructions {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.download-instructions h3 {
    font-size: 15px;
    color: #1565c0;
    margin: 0 0 12px;
}

.download-instructions ul {
    margin: 0;
    padding-left: 20px;
}

.download-instructions li {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.5;
}

.course-links {
    text-align: left;
}

.link-group {
    margin-bottom: 15px;
}

.link-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.copy-input {
    display: flex;
    gap: 10px;
}

.copy-input input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
}

.copy-input.small {
    max-width: 250px;
}

.copy-btn {
    padding: 12px 16px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #2d5f17;
}

.download-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.notice-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    width: 100%;
}

.notice-card h3 {
    font-size: 16px;
    color: #e65100;
    margin: 0 0 15px;
}

.notice-card ul {
    margin: 0;
    padding-left: 20px;
}

.notice-card li {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ========================================
   Responsive - Error & Report Pages
   ======================================== */
@media (max-width: 480px) {
    .error-card {
        padding: 40px 25px;
    }

    .error-icon {
        font-size: 56px;
    }

    .error-card h1 {
        font-size: 24px;
    }

    .error-actions {
        flex-direction: column;
    }

    .form-card {
        padding: 20px;
    }

    .course-info {
        flex-direction: column;
        text-align: center;
    }

    .course-details h2 {
        text-align: center;
    }

    .download-actions {
        flex-direction: column;
    }

    .copy-input {
        flex-direction: column;
    }

    .copy-input.small {
        max-width: 100%;
    }
}
