/* ═══════════════════════════════════════════════════════════
   IDC BOOKS - Main Stylesheet
   Light & Fresh Teal Design
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─────────────────────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────────────────────── */
:root {
    --bg: #FAFDFB;
    --bg-warm: #F2FAF7;
    --bg-cream: #E5F5F0;
    --bg-card: #FFFFFF;
    --primary: #20B895;
    --primary-light: #3DD4AD;
    --primary-dark: #18A085;
    --accent: #4ECCA3;
    --accent-light: #7EEBC4;
    --text: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #D1E7E0;
    --border-light: #E5F2ED;
    --shadow-sm: 0 2px 8px rgba(32, 184, 149, 0.08);
    --shadow-md: 0 8px 24px rgba(32, 184, 149, 0.12);
    --shadow-lg: 0 16px 48px rgba(32, 184, 149, 0.15);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
    --max-w: 1320px;
}

/* ─────────────────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

/* ─────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────── */
.site-header {
    background: linear-gradient(180deg, #1A8A72 0%, #25A88A 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(26, 138, 114, 0.3);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
}

.site-logo:hover {
    color: #FFFFFF;
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 14px;
    color: #FFFFFF;
    width: 240px;
    font-family: var(--font-body);
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-box button {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFFFFF;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: rgba(255,255,255,0.3);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-form {
    margin: 0;
}

.lang-btn {
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    background: transparent;
    color: rgba(255,255,255,0.8);
}

.lang-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #FFFFFF;
}

.lang-btn--active {
    background: #FFFFFF;
    color: var(--primary);
    border-color: #FFFFFF;
}

/* ─────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(165deg, #1A8A72 0%, #25A88A 40%, #3DD4AD 100%);
    padding: 80px 32px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 20% 40%, rgba(78,204,163,0.3) 0%, transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(32,184,149,0.25) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    color: rgba(255,255,255,0.9);
    font-style: italic;
    font-family: var(--font-display);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    padding: 24px 36px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-4px);
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────
   CONTAINER
───────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

/* ─────────────────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────────────────── */
.section {
    padding: 48px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
}

/* ─────────────────────────────────────────────────────────
   CATEGORIES GRID
───────────────────────────────────────────────────────── */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-tag i {
    color: var(--primary);
    transition: color 0.3s ease;
}

.category-tag:hover i {
    color: #FFFFFF;
}

.category-count {
    background: var(--bg-cream);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-tag:hover .category-count {
    background: rgba(255,255,255,0.2);
    color: #FFFFFF;
}

/* ─────────────────────────────────────────────────────────
   BOOKS GRID
───────────────────────────────────────────────────────── */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

/* ─────────────────────────────────────────────────────────
   BOOK CARD
───────────────────────────────────────────────────────── */
.book-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.book-card-cover {
    position: relative;
    height: 260px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.book-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.book-card:hover .book-card-cover img {
    transform: scale(1.05);
}

.book-card-placeholder {
    font-size: 64px;
    opacity: 0.3;
}

.book-card-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.book-card-body {
    padding: 20px;
}

.book-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card-author {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.book-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.book-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-card-meta i {
    color: var(--primary);
}

/* ─────────────────────────────────────────────────────────
   BOOK DETAIL PAGE
───────────────────────────────────────────────────────── */
.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

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

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

.book-detail {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 48px;
    padding: 32px 0;
}

.book-cover-wrap {
    position: sticky;
    top: 100px;
}

.book-cover-img {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.book-cover-img img {
    width: 100%;
    display: block;
}

.book-cover-placeholder {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    background: var(--bg-cream);
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 184, 149, 0.4);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 184, 149, 0.5);
    color: #FFFFFF;
}

.book-info h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.2;
}

.book-author-name {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-meta-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.book-meta-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}

.book-meta-table td:first-child {
    color: var(--text-muted);
    width: 160px;
}

.book-meta-table td:first-child i {
    margin-right: 10px;
    color: var(--primary);
    width: 20px;
}

.book-meta-table a {
    color: var(--primary);
}

.book-description {
    background: var(--bg-warm);
    padding: 24px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.book-description h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.book-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.author-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 32px 0;
}

.author-box h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.author-box p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ─────────────────────────────────────────────────────────
   SEARCH RESULTS
───────────────────────────────────────────────────────── */
.search-header {
    padding: 32px 0 16px;
}

.search-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--text);
}

.search-header .query {
    color: var(--primary);
}

.search-header .search-count {
    color: var(--text-muted);
    font-weight: 400;
}

.empty-state {
    text-align: center;
    padding: 80px 32px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, #1A8A72 0%, #148F76 100%);
    color: rgba(255,255,255,0.85);
    padding: 64px 0 0;
    margin-top: 64px;
}

.footer-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
    font-style: italic;
    font-family: var(--font-display);
    color: rgba(255,255,255,0.75);
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-light);
}

.footer-contact p {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    width: 18px;
    color: var(--accent-light);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: #1A8A72;
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    margin-top: 48px;
    padding: 20px 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-display);
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE - TABLET
───────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .book-detail {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE - MOBILE
───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-inner {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    .site-logo {
        font-size: 22px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .search-box input {
        width: 160px;
    }
    
    .hero {
        padding: 48px 16px 64px;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .hero-stat {
        padding: 16px 24px;
    }
    
    .hero-stat-num {
        font-size: 28px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 32px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .book-card-cover {
        height: 200px;
    }
    
    .book-card-body {
        padding: 14px;
    }
    
    .book-card-title {
        font-size: 15px;
    }
    
    .book-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .book-cover-wrap {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .book-info h1 {
        font-size: 26px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-tagline {
        margin: 0 auto;
    }
    
    .footer-brand {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-box {
        flex: 1;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .hero-stat {
        flex: 1;
        min-width: 100px;
        padding: 14px 16px;
    }
    
    .hero-stat-num {
        font-size: 24px;
    }
    
    .hero-stat-label {
        font-size: 10px;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .book-card-cover {
        height: 160px;
    }
    
    .book-card-title {
        font-size: 14px;
    }
    
    .book-card-author {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   IDC EDUCATION - Landing Page & Olympiad Styles
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────
   HERO SECTION (Landing)
───────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Direction Cards */
.direction-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.direction-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text);
    text-decoration: none;
}

.direction-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}

.direction-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.direction-olympiad .direction-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.direction-education .direction-icon {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
}

.direction-books .direction-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.direction-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.direction-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.direction-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.direction-stats strong {
    color: var(--primary);
}

.direction-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    margin-top: auto;
}

.direction-link i {
    transition: transform 0.3s ease;
}

.direction-card:hover .direction-link i {
    transform: translateX(4px);
}

/* ─────────────────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────────────────── */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--primary);
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
}

.section-title i {
    color: var(--primary);
    margin-right: 12px;
}

/* Section backgrounds */
.section-olympiad {
    background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
}

.section-education {
    background: var(--bg-warm);
}

.section-books {
    background: #fff;
}

.section-stats {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
    padding: 60px 0;
}

/* ─────────────────────────────────────────────────────────
   OLYMPIAD PREVIEW
───────────────────────────────────────────────────────── */
.olympiad-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.olympiad-info h3 {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: 16px;
}

.olympiad-info p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.olympiad-editions-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edition-mini-card {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.edition-year {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
}

.edition-name {
    flex: 1;
    font-weight: 500;
}

.edition-medals {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

/* ─────────────────────────────────────────────────────────
   EDUCATION PREVIEW
───────────────────────────────────────────────────────── */
.education-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.edu-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.edu-card:hover {
    box-shadow: var(--shadow-md);
}

.edu-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.edu-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 12px;
}

.edu-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.edu-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.edu-stats i {
    color: var(--primary);
    margin-right: 4px;
}

.courses-preview h4 {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.courses-grid-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.course-mini-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
    transition: all 0.3s ease;
}

.course-mini-card:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.course-mini-card i {
    color: var(--primary);
}

.course-mini-card:hover i {
    color: #fff;
}

/* ─────────────────────────────────────────────────────────
   STATS GRID
───────────────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stats-grid-4 {
    max-width: 900px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 24px;
}

.section-stats .stat-box {
    color: #fff;
}

.stat-box .stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.stat-box i {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
}

.stat-title {
    font-size: 14px;
    opacity: 0.9;
}

/* ─────────────────────────────────────────────────────────
   PAGE HERO
───────────────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
    padding: 100px 0 60px;
    color: #fff;
}

.page-hero-sm {
    padding: 80px 0 40px;
}

.olympiad-hero {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span {
    color: rgba(255,255,255,0.6);
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero h1 i {
    margin-right: 12px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

.olympiad-logo {
    max-height: 80px;
    margin-bottom: 20px;
}

/* ─────────────────────────────────────────────────────────
   OLYMPIAD STAGES
───────────────────────────────────────────────────────── */
.stages-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.stage-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.stage-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.stage-content {
    flex: 1;
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.stage-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-cream);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.stage-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.stage-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ─────────────────────────────────────────────────────────
   EDITIONS
───────────────────────────────────────────────────────── */
.editions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edition-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.edition-card:hover {
    box-shadow: var(--shadow-md);
}

.edition-image {
    height: 160px;
    overflow: hidden;
}

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

.edition-content {
    padding: 24px;
}

.edition-year-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.edition-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 16px;
}

.edition-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.edition-stat {
    font-size: 13px;
    color: var(--text-secondary);
}

.edition-stat i {
    color: var(--primary);
    margin-right: 4px;
}

.edition-medals {
    display: flex;
    gap: 12px;
}

.medal {
    font-size: 16px;
}

.edition-desc {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Editions List (Full) */
.editions-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.edition-card-full {
    display: flex;
    gap: 32px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.edition-year-big {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #fff;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.edition-main {
    display: flex;
    flex: 1;
    padding: 24px;
    gap: 24px;
}

.edition-image-lg {
    width: 200px;
    flex-shrink: 0;
}

.edition-image-lg img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.edition-details {
    flex: 1;
}

.edition-details h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 16px;
}

.edition-stats-row {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}

.edition-stats-row .stat {
    text-align: center;
}

.edition-stats-row .stat i {
    font-size: 20px;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.edition-stats-row .stat strong {
    display: block;
    font-size: 24px;
    color: var(--text);
}

.edition-stats-row .stat span {
    font-size: 12px;
    color: var(--text-muted);
}

.edition-medals-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.medal-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.medal-box.gold {
    background: #FEF3C7;
}

.medal-box.silver {
    background: #F3F4F6;
}

.medal-box.bronze {
    background: #FED7AA;
}

.medal-icon {
    font-size: 20px;
}

.medal-count {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.medal-label {
    font-size: 12px;
    color: var(--text-muted);
}

.edition-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ─────────────────────────────────────────────────────────
   VIDEOS
───────────────────────────────────────────────────────── */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

.video-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.video-card:hover .video-play-btn {
    background: var(--primary);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.video-info {
    padding: 16px;
}

.video-info h4 {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-edition {
    font-size: 13px;
    color: var(--text-muted);
}

.video-edition i {
    margin-right: 4px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.video-modal-body {
    position: relative;
    padding-top: 56.25%;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ─────────────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────────────── */
.section-cta {
    background: var(--bg-cream);
}

.cta-box {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    color: #fff;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
}

/* ─────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ─────────────────────────────────────────────────────────
   CONTENT BLOCK
───────────────────────────────────────────────────────── */
.content-block {
    background: #fff;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.content-block h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-block h2 i {
    color: var(--primary);
}

.text-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ─────────────────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .direction-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .olympiad-preview {
        grid-template-columns: 1fr;
    }
    
    .editions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .direction-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .education-preview {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .editions-grid,
    .videos-grid,
    .videos-grid-lg {
        grid-template-columns: 1fr;
    }
    
    .edition-card-full {
        flex-direction: column;
    }
    
    .edition-year-big {
        padding: 20px;
        font-size: 36px;
    }
    
    .edition-main {
        flex-direction: column;
    }
    
    .edition-image-lg {
        width: 100%;
    }
    
    .edition-stats-row {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .edition-medals-row {
        flex-wrap: wrap;
    }
    
    .stages-timeline {
        gap: 16px;
    }
    
    .stage-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .stage-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .page-hero {
        padding: 80px 0 40px;
    }
    
    .page-hero h1 {
        font-size: 28px;
    }
    
    .cta-box {
        padding: 40px 24px;
    }
    
    .cta-box h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .direction-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .video-play-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════
   EDUCATION STYLES
═══════════════════════════════════════════════════════════ */

/* Education Hero */
.education-hero {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
}

.school-hero {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
}

.center-hero {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
}

.course-hero {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
}

.school-logo,
.center-logo {
    max-height: 80px;
    margin-bottom: 20px;
}

/* Education Cards (Home) */
.education-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.education-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.education-card-image {
    height: 200px;
    overflow: hidden;
}

.education-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-card-content {
    padding: 32px;
}

.education-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin-bottom: 20px;
}

.education-card-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 12px;
}

.education-card-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.education-card-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.education-card-stats .stat {
    text-align: center;
}

.education-card-stats strong {
    display: block;
    font-size: 24px;
    color: var(--primary);
    font-family: var(--font-display);
}

.education-card-stats span {
    font-size: 12px;
    color: var(--text-muted);
}

/* School/Center Content */
.school-content,
.center-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.school-image img,
.center-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.school-info,
.center-info {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.school-info h2,
.center-info h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.school-info h2 i,
.center-info h2 i {
    color: var(--primary);
}

/* Advantages */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin: 0 auto 20px;
}

.advantage-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.achievement-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.achievement-photo {
    height: 120px;
    overflow: hidden;
}

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

.achievement-photo-placeholder {
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
}

.achievement-content {
    padding: 16px;
}

.achievement-content h4 {
    font-size: 15px;
    margin-bottom: 8px;
}

.achievement-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.achievement-year {
    display: inline-block;
    background: var(--bg-cream);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.course-card-image {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.course-card-icon {
    height: 120px;
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
}

.course-card-content {
    padding: 20px;
    flex: 1;
}

.course-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.course-card-content h4 {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-card-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.course-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.course-meta i {
    color: var(--primary);
    margin-right: 4px;
}

/* Course List Layout */
.courses-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.courses-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.filter-box,
.contact-box,
.sidebar-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.filter-box h3,
.contact-box h3,
.sidebar-box h4 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-box h3 i,
.contact-box h3 i {
    color: var(--primary);
}

.category-filter {
    list-style: none;
}

.category-filter li {
    margin-bottom: 4px;
}

.category-filter a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.category-filter a:hover {
    background: var(--bg-cream);
    color: var(--primary);
}

.category-filter a.active {
    background: var(--primary);
    color: #fff;
}

.category-filter a i {
    width: 20px;
    text-align: center;
}

.category-filter .count {
    margin-left: auto;
    font-size: 12px;
    background: var(--bg-cream);
    padding: 2px 8px;
    border-radius: 10px;
}

.category-filter a.active .count {
    background: rgba(255,255,255,0.2);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.contact-link:last-child {
    border-bottom: none;
}

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

.contact-link i {
    color: var(--primary);
}

.current-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-cream);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.clear-filter {
    font-size: 13px;
    color: var(--text-muted);
}

.clear-filter:hover {
    color: #e74c3c;
}

/* Course Horizontal Card */
.course-card-horizontal {
    flex-direction: row;
    align-items: stretch;
}

.course-card-horizontal .course-card-image {
    width: 200px;
    height: auto;
    min-height: 160px;
    flex-shrink: 0;
}

.course-card-horizontal .course-card-icon {
    width: 120px;
    height: auto;
    min-height: 160px;
}

.course-card-horizontal .course-card-content {
    display: flex;
    flex-direction: column;
}

.course-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.course-details i {
    color: var(--primary);
    margin-right: 4px;
}

.course-price {
    color: var(--primary);
    font-weight: 600;
}

.course-card-action {
    display: flex;
    align-items: center;
    padding: 20px;
    border-left: 1px solid var(--border-light);
}

/* Course Detail */
.course-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    align-items: start;
}

.course-detail-image {
    margin-bottom: 32px;
}

.course-detail-image img {
    width: 100%;
    border-radius: var(--radius);
}

.course-detail-content {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.course-detail-content h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.course-detail-content h2 i {
    color: var(--primary);
}

.course-detail-sidebar {
    position: sticky;
    top: 100px;
}

.course-info-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 24px;
}

.course-info-header {
    background: linear-gradient(135deg, #1A8A72 0%, #25A88A 100%);
    padding: 32px;
    text-align: center;
    color: #fff;
}

.course-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

.course-price-large {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
}

.course-info-list {
    list-style: none;
    padding: 24px;
}

.course-info-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.course-info-list li:last-child {
    border-bottom: none;
}

.course-info-list i {
    width: 40px;
    height: 40px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 16px;
}

.course-info-list span {
    color: var(--text-muted);
    font-size: 13px;
}

.course-info-list strong {
    margin-left: auto;
    font-size: 14px;
}

.course-action {
    padding: 24px;
    padding-top: 0;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-cream);
    border-radius: var(--radius-sm);
    color: var(--text);
}

.category-link:hover {
    background: var(--primary);
    color: #fff;
}

.category-link i {
    color: var(--primary);
}

.category-link:hover i {
    color: #fff;
}

.course-category-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 12px;
}

.course-hero-content {
    text-align: center;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    color: var(--text);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin: 0 auto 16px;
}

.category-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.category-count {
    font-size: 13px;
    color: var(--text-muted);
}

/* Education Responsive */
@media (max-width: 1024px) {
    .education-cards {
        grid-template-columns: 1fr;
    }
    
    .school-content,
    .center-content {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-layout {
        grid-template-columns: 1fr;
    }
    
    .courses-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .course-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .course-detail-sidebar {
        position: static;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .advantages-grid,
    .achievements-grid,
    .courses-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-sidebar {
        grid-template-columns: 1fr;
    }
    
    .course-card-horizontal {
        flex-direction: column;
    }
    
    .course-card-horizontal .course-card-image {
        width: 100%;
        height: 160px;
    }
    
    .course-card-horizontal .course-card-icon {
        width: 100%;
        height: 120px;
    }
    
    .course-card-action {
        border-left: none;
        border-top: 1px solid var(--border-light);
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   MAIN NAVIGATION
═══════════════════════════════════════════════════════════ */
.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
}


