
/* ===== Programmes Hero Style ===== */
.prog-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 7rem 0 5rem;
}

.prog-hero__media {
    position: absolute;
    inset: 0;
}

.prog-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.prog-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 34, 64, 0.92) 0%, rgba(27, 54, 93, 0.8) 40%, rgba(42, 79, 127, 0.7) 100%);
}

.prog-hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

.prog-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    color: #fff;
}

.prog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    padding: 0.5rem 1.125rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1.75rem;
}

.prog-hero__title {
    margin-bottom: 1rem;
}

.prog-hero__title-zh {
    display: block;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.prog-hero__title-en {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    opacity: 0.75;
    letter-spacing: 0.12em;
    margin-top: 0.375rem;
    text-transform: uppercase;
}

.prog-hero__sub {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 2.25rem;
    letter-spacing: 0.08em;
}

.prog-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.prog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.prog-btn--primary {
    background: var(--color-primary, #C8102E);
    color: #fff;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
}

.prog-btn--primary:hover {
    background: var(--color-primary-dark, #A00D26);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 16, 46, 0.45);
}

.prog-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.35);
}

.prog-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.prog-hero__geo {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

.prog-hero__geo--1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.prog-hero__geo--2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    right: 10%;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .prog-hero {
        min-height: 480px;
        padding: 6rem 0 4rem;
    }
    .prog-hero__geo {
        display: none;
    }
}

/* ===== CSS Variables ===== */
:root {
    --school-primary: #0052cc;
    --school-primary-dark: #003380;
    --school-secondary: #6554c0;
    --school-bg: #f7fafc;
    --school-text: #1a202c;
    --school-text-muted: #4a5568;
    --school-border: #e2e8f0;
    --school-success: #10b981;
    --school-radius: 1rem;
    --school-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --school-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== Stats Section ===== */
.school-stats {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid var(--school-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--school-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--school-text-muted);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 2rem;
    }
}

/* ===== School Content Layout ===== */
.school-content {
    padding: 4rem 0;
    background: var(--school-bg);
}

.school-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ===== Sidebar ===== */
.school-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-nav {
    background: white;
    border-radius: var(--school-radius);
    padding: 1.5rem;
    box-shadow: var(--school-shadow);
    margin-bottom: 1.5rem;
}

.sidebar-nav h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--school-text);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--school-text-muted);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(0, 82, 204, 0.08);
    color: var(--school-primary);
}

.sidebar-cta {
    display: none;
}


/* ===== Main Content ===== */
.school-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    scroll-margin-top: 100px;
}

.section-card {
    background: white;
    border-radius: var(--school-radius);
    padding: 2.5rem;
    box-shadow: var(--school-shadow);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.section-card:hover {
    border-color: rgba(0, 82, 204, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--school-shadow-lg);
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(0, 82, 204, 0.1);
    color: var(--school-primary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--school-text);
    margin-bottom: 0.5rem;
}

.title-en {
    font-size: 1rem;
    font-weight: 500;
    color: var(--school-text-muted);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--school-text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ===== Course List ===== */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--school-bg);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.course-item:hover {
    background: rgba(0, 82, 204, 0.05);
}

.course-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--school-success);
    margin-top: 2px;
}

.course-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--school-text);
    margin-bottom: 0.25rem;
}

.course-info p {
    font-size: 0.95rem;
    color: var(--school-text-muted);
    margin: 0;
}

/* ===== Schedule Grid ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.schedule-card {
    padding: 1.5rem;
    background: var(--school-bg);
    border-radius: 0.75rem;
    border-left: 4px solid var(--school-primary);
}

.schedule-term {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--school-primary);
    margin-bottom: 0.25rem;
}

.schedule-date {
    font-size: 0.9rem;
    color: var(--school-text-muted);
    margin-bottom: 1rem;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: var(--school-text-muted);
}

.schedule-list li {
    padding: 0.25rem 0;
    border-bottom: 1px dashed var(--school-border);
}

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

/* ===== Partnership Grid ===== */
.partnership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.partnership-item {
    text-align: center;
    padding: 1.5rem;
}

.partnership-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 82, 204, 0.08);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--school-primary);
}

.partnership-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--school-text);
    margin-bottom: 0.5rem;
}

.partnership-item p {
    font-size: 0.9rem;
    color: var(--school-text-muted);
    margin: 0;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--school-bg);
    border-radius: 0.75rem;
}

.feature-box-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-box-icon.ofsted {
    background: rgba(16, 185, 129, 0.1);
    color: var(--school-success);
}

.feature-box-icon.teachers {
    background: rgba(0, 82, 204, 0.1);
    color: var(--school-primary);
}

.feature-box-icon.small-class {
    background: rgba(101, 84, 192, 0.1);
    color: var(--school-secondary);
}

.feature-box-icon.culture {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.feature-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--school-text);
    margin-bottom: 0.25rem;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--school-text-muted);
    margin: 0;
}

/* ===== CTA Section ===== */
.school-cta-v2 {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1B365D 0%, #2A4F7F 50%, #1B365D 100%);
    position: relative;
    overflow: hidden;
}

.school-cta-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

.cta-card-v2 {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.cta-card-v2 h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-card-v2 p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-primary, #C8102E);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.35);
}

.btn-white:hover {
    background: var(--color-primary-dark, #A00D26);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: var(--school-primary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    border: 2px solid var(--school-primary);
    transition: all 0.3s ease;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .school-layout {
        grid-template-columns: 1fr;
    }

    .school-sidebar {
        position: static;
        order: -1;
    }

    .sidebar-nav {
        margin-bottom: 1rem;
    }

    .sidebar-nav nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .sidebar-link {
        margin-bottom: 0;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }

    .sidebar-cta {
        display: none;
    }

    .schedule-grid,
    .partnership-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .school-content {
        padding: 2rem 0;
    }

    .section-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-card-v2 {
        padding: 2rem 1.5rem;
    }

    .cta-card-v2 h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-white,
    .btn-outline-white {
        width: 100%;
        justify-content: center;
    }
}

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