/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scrolling globally */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

:root {
    --navy: #092441;
    --navy-dark: #061a2e;
    --navy-light: #0d2f52;
    --gold: #DCB45F;
    --gold-dark: #B89A4F;
    --gold-light: #E8C97A;
    --gold-accent: #EFD37F;
    --primary-color: #092441;
    --primary-dark: #061a2e;
    --secondary-color: #DCB45F;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    scroll-behavior: smooth;
    font-size-adjust: 0.5; /* Prevents layout shift when fonts load */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font loading optimization - prevent FOUT */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: local('Inter');
}

/* Prevent layout shift during font loading */
html {
    font-size: 16px; /* Base font size to prevent shift */
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure consistent font rendering */
* {
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth fade-in animation for sections */
section:not(.hero):not(.banner-carousel) {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Stagger animation delays */
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.logo-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    overflow: visible;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #092441;
    white-space: nowrap;
    line-height: 1.2;
    height: 1.75rem;
    display: inline-block;
    /* Normalize font rendering to match Inter's x-height - prevents size shift */
    font-size-adjust: 0.52;
    /* Prevent layout shift during font loading */
    min-height: 1.75rem;
    max-height: 1.75rem;
    vertical-align: middle;
    /* Lock the container size to prevent shift - width accommodates "Royal Diadem" */
    width: 16rem;
    min-width: 16rem;
    max-width: none;
    text-align: left;
    /* Ensure consistent rendering */
    font-kerning: normal;
    letter-spacing: 0;
    /* Use a fallback font that matches Inter's metrics better */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* Prevent size changes during font swap and force GPU rendering */
    transform: translateZ(0);
    will-change: auto;
    /* Lock the rendering */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure text is not clipped */
    overflow: visible;
    text-overflow: clip;
    /* Hide text only on initial page load if fonts aren't ready */
    opacity: 0;
    transition: opacity 0.15s ease-in;
}

/* Show logo text when fonts are loaded or if fonts are already cached */
html.fonts-loaded .logo-text,
html.fonts-cached .logo-text {
    opacity: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

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

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: var(--navy);
    border: 2px solid var(--navy);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.nav-menu a:hover::before,
.nav-menu a:active::before {
    width: 300px;
    height: 300px;
}

.nav-menu a:hover,
.nav-menu a:active {
    background: white;
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.nav-menu a:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.nav-menu a.active {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    font-weight: 700;
    cursor: default;
    pointer-events: none;
}

.nav-menu a.active:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: none;
    box-shadow: none;
}

.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--navy);
}

.enrol-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(220, 180, 95, 0.3);
    position: relative;
    overflow: hidden;
}

.enrol-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.enrol-btn:hover::before {
    width: 300px;
    height: 300px;
}

.enrol-btn:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 180, 95, 0.4);
}

.enrol-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Banner Carousel Section */
.banner-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
    object-position: left center;
}

.carousel-slide-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-content {
    width: 100%;
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.hero-banner-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-banner-content .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

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

.carousel-btn {
    position: absolute;
    bottom: 20px;
    transform: translateY(0);
    background: rgba(9, 36, 65, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: rgba(9, 36, 65, 0.9);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-indicators {
    display: none;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Responsive adjustments for banner carousel */
@media (max-width: 768px) {
    .carousel-slide {
        height: 400px;
        overflow: hidden;
    }
    
    .carousel-slide img {
        width: auto;
        height: 100%;
        max-height: 400px;
        min-height: 400px;
        object-fit: contain;
        object-position: left center;
    }
    
    .carousel-slide-hero {
        min-height: 500px;
    }
    
    .hero-banner-content {
        padding: 3rem 0;
    }
    
    .hero-banner-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-banner-content .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .hero-banner-content .hero-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }
    
    .hero-banner-content .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 25px;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 180, 95, 0.1) 0%, rgba(239, 211, 127, 0.05) 100%);
    pointer-events: none;
    animation: gradientShift 8s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 180, 95, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.5; }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(220, 180, 95, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 180, 95, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--gold);
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.3s;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--navy);
    border-color: var(--gold-light);
}

.btn-secondary:hover::after {
    left: 0;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.3s;
    z-index: -1;
}

.btn-outline:hover {
    color: var(--navy);
    border-color: var(--gold);
}

.btn-outline:hover::after {
    left: 0;
}

/* Our Values Section */
.our-values {
    padding: 5rem 0;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.value-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 180, 95, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(9, 36, 65, 0.2);
    border-color: var(--gold);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 4rem;
    margin: 0 auto 1.5rem;
    display: inline-block;
    width: 100px;
    height: 100px;
    line-height: 100px;
    background: linear-gradient(135deg, rgba(220, 180, 95, 0.1) 0%, rgba(239, 211, 127, 0.1) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(220, 180, 95, 0.3);
}

.feature-card h3 {
    font-size: 1.75rem;
    margin: 0 0 1rem 0;
    padding: 0;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.3;
    min-height: 4.5em;
    height: 4.5em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    flex-grow: 1;
    margin: 0;
    padding: 0;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.about-image img,
.about-image video {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
    display: block;
    cursor: pointer;
}

.about-image:hover img,
.about-image:hover video {
    transform: scale(1.05);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--navy);
    position: relative;
    display: inline-block;
    width: 100%;
}

.teacher-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0 4rem;
    width: 100%;
    flex-wrap: wrap;
}

.teacher-image {
    max-width: 48%;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    max-height: 500px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--gold);
    transition: all 0.3s;
    position: relative;
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-left-color: var(--gold-light);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Grades Section */
.grades {
    padding: 5rem 0;
    background: var(--bg-light);
}

.grades-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.grade-category h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.grade-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.grade-item {
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    border-left: 4px solid var(--gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.grade-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
    transition: width 0.3s;
    opacity: 0.1;
}

.grade-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--gold-light);
}

.grade-item:hover::before {
    width: 100%;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(9, 36, 65, 0.7) 0%, rgba(220, 180, 95, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Extramurals Section */
.extramurals {
    padding: 5rem 0;
    background: var(--bg-light);
}

/* Shared Video Styles */
.extramurals-video,
.courses-video,
.learner-experience-video,
.contact-video {
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.extramurals-video video,
.courses-video video,
.learner-experience-video video,
.contact-video video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.extramurals-video video {
    max-height: 300px;
    object-fit: cover;
}

.extramurals-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.extramurals-image-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 16px;
}

.extramural-image-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.extramural-image-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.extramural-image-card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.extramural-card-text {
    padding: 2rem;
    text-align: center;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    background: #f5f5f5;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.extramural-image-card:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.extramural-image-card:nth-child(2) .extramural-card-text {
    background: #e0e0e0;
    flex-grow: 1;
}

.extramurals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.extramural-card {
    background: var(--bg-white);
    padding: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--gold);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.extramural-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--gold-light);
}

.extramural-card h3 {
    font-size: 1.5rem;
    margin: 0;
    padding: 1.5rem 2rem;
    color: white;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    font-weight: 700;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px 12px 0 0;
    min-height: 90px;
    height: 90px;
    flex-shrink: 0;
}

.extramural-card > p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
    padding: 2rem;
    padding-bottom: 1.5rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.extramural-card > p:first-of-type {
    padding-top: 2rem;
}

.esports-details,
.activity-details {
    margin: 0;
    padding: 0 2rem 2rem 2rem;
    background: linear-gradient(to bottom, transparent 0%, rgba(220, 180, 95, 0.05) 100%);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.esports-details p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.esports-details p:last-child {
    margin-bottom: 0;
}

.esports-details p::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.esports-details strong {
    color: var(--navy);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}


.activity-details p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.activity-details p:last-child {
    margin-bottom: 0;
}

.activity-details p::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.1rem;
}

.activity-details strong {
    color: var(--navy);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

/* Accreditation Section */
.accreditation {
    padding: 5rem 0;
    background: var(--bg-white);
}

.accreditation-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.accreditation-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.accreditation-content a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.accreditation-content a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.accreditation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.accreditation-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.accreditation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.accreditation-card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.accreditation-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.badge {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-top: 4px solid var(--gold);
}

.badge h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.badge p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Fees Section */
.fees {
    padding: 5rem 0;
    background: var(--bg-light);
}

.fees-content {
    max-width: 900px;
    margin: 0 auto;
}

.fees-content > p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.fees-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.fee-highlight {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--gold);
}

.fee-highlight h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.fee-highlight ul {
    list-style: none;
    padding: 0;
}

.fee-highlight ul li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.fee-highlight ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

.fee-highlight ul li:last-child {
    border-bottom: none;
}

.fee-highlight p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--bg-white);
}

.contact-video video {
    max-height: 400px;
    object-fit: contain;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.social-links-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links-inline a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 6px;
    transition: all 0.3s;
    background: var(--gold);
}

.social-links-inline a:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-links-inline a i {
    font-size: 1.1rem;
}

.social-links-inline a i.fa-instagram {
    color: #E4405F;
}

.social-links-inline a i.fa-youtube {
    color: #FF0000;
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(220, 180, 95, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 180, 95, 0.1) 0%, rgba(239, 211, 127, 0.05) 100%);
    pointer-events: none;
    animation: gradientShift 8s ease infinite;
}

.cta::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 180, 95, 0.15) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #BAA162;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 0;
}

.social-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links a i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-links a i.fa-instagram {
    color: #E4405F;
}

.social-links a i.fa-youtube {
    color: #FF0000;
}

.footer-contact {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    opacity: 0.8;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-wrapper {
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .logo img {
        height: 80px;
    }

    .logo-text {
        font-size: 1.25rem;
        height: 1.25rem;
        min-height: 1.25rem;
        max-height: 1.25rem;
        width: 10rem;
        min-width: 10rem;
        max-width: 10rem;
    }

    .nav-right {
        position: relative;
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 120px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 2rem 1rem;
        gap: 1rem;
        z-index: 999;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity 0.3s, transform 0.3s;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-menu.active li:nth-child(7) { transition-delay: 0.4s; }
    .nav-menu.active li:nth-child(8) { transition-delay: 0.45s; }

    .nav-menu a {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-menu.active ~ .enrol-btn {
        display: block;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        max-width: 300px;
        z-index: 1000;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .enrol-btn {
        display: none;
    }

    .hero {
        min-height: 70vh;
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

    .teacher-image-container {
        margin: 2rem 0 3rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .teacher-image {
        max-width: 100%;
        max-height: 350px;
        border-radius: 12px;
    }

    .grades-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .contact-video video {
        max-height: 300px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }


    .fees-info {
        grid-template-columns: 1fr;
    }

    .accreditation-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .accreditation-badges {
        grid-template-columns: 1fr;
    }

    .extramurals-video {
        margin-bottom: 2rem;
        border-radius: 12px;
        max-width: 100%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .extramurals-video video {
        max-height: 200px;
        object-fit: cover;
    }

    .extramurals-image-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .extramurals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .extramural-card h3 {
        font-size: 1.35rem;
        padding: 1.25rem 1.5rem;
        min-height: 80px;
        height: 80px;
    }

    .extramural-card > p {
        padding: 1.5rem;
        padding-bottom: 1.25rem;
    }

    .esports-details {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .esports-details p {
        font-size: 0.9rem;
        padding-left: 1.25rem;
    }

    .activity-details {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .activity-details p {
        font-size: 0.9rem;
        padding-left: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .extramurals-video,
    .courses-video,
    .learner-experience-video,
    .contact-video {
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .extramurals-video video,
    .courses-video video,
    .learner-experience-video video,
    .contact-video video {
        border-radius: 8px;
    }
}

/* Terms and Conditions Page */
.terms-conditions {
    padding: 5rem 0;
    background: var(--bg-white);
}

.terms-intro {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.terms-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-dark);
}

.terms-content h2 {
    color: var(--navy);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.terms-content h2:first-of-type {
    margin-top: 2rem;
}

.terms-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.terms-content a {
    color: var(--navy);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.terms-content a:hover {
    color: var(--gold);
}

.terms-content strong {
    color: var(--navy);
    font-weight: 600;
}

@media (max-width: 768px) {
    .terms-content {
        padding: 0 1rem;
    }
    
    .terms-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .terms-content p {
        font-size: 0.95rem;
    }
}

/* Courses Preview Section */
.courses-preview {
    padding: 5rem 0;
    background: var(--bg-light);
}

.courses-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.course-preview-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
    transition: all 0.3s;
}

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

.course-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.course-preview-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.course-preview-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-grades,
.course-type {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
}

.courses-preview-note {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    border-left: 4px solid var(--gold);
}

.courses-preview-note p {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Courses Section */
.courses {
    padding: 5rem 0;
    background: var(--bg-white);
}

.courses-video video {
    object-fit: contain;
}

/* Courses Carousel */
.courses-carousel-container {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.courses-carousel {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.courses-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.courses-carousel-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
}

.courses-carousel-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
    border-radius: 16px;
}

.courses-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(9, 36, 65, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.courses-carousel-btn:hover {
    background: rgba(9, 36, 65, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.courses-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.courses-carousel-btn-prev {
    left: 20px;
}

.courses-carousel-btn-next {
    right: 20px;
}

.courses-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.courses-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.courses-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.courses-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

.courses-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.ai-strands {
    margin-bottom: 4rem;
}

.ai-strands h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--navy);
}

.strands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.strand-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--gold);
    transition: all 0.3s;
}

.strand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.strand-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.strand-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.grade-course-section {
    margin-bottom: 4rem;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 3rem;
    border-top: 4px solid var(--gold);
}

.grade-course-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.grade-course-header h3 {
    font-size: 2rem;
    color: var(--navy);
    margin: 0;
}

.grade-course-content {
    display: grid;
    gap: 2rem;
}

.course-goals {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
}

.course-goals h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.course-goals ul {
    list-style: none;
    padding: 0;
}

.course-goals ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.8;
}

.course-goals ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.course-subjects h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.subject-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.subject-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--gold);
}

.subject-item strong {
    display: block;
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.subject-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subject-item ul li {
    padding: 0.5rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.subject-item ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Capstone Section */
.capstone-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    margin-top: 3rem;
}

.capstone-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.capstone-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.capstone-examples {
    margin-bottom: 2rem;
}

.capstone-examples h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.capstone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.capstone-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(220, 180, 95, 0.3);
    transition: all 0.3s;
}

.capstone-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.capstone-item h5 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.capstone-item p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.capstone-deliverables {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.capstone-deliverables h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.capstone-deliverables ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 0 auto;
}

.capstone-deliverables ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.capstone-deliverables ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design for Courses */
@media (max-width: 768px) {
    .courses-carousel-container {
        margin-bottom: 2rem;
    }

    .courses-carousel-image {
        max-height: 400px;
    }

    .courses-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .courses-carousel-btn-prev {
        left: 10px;
    }

    .courses-carousel-btn-next {
        right: 10px;
    }

    .courses-carousel-indicators {
        bottom: 15px;
    }

    .courses-indicator {
        width: 10px;
        height: 10px;
    }

    .courses-indicator.active {
        width: 25px;
    }

    .courses-preview-grid {
        grid-template-columns: 1fr;
    }

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

    .grade-course-section {
        padding: 2rem 1.5rem;
    }

    .subject-list {
        grid-template-columns: 1fr;
    }

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

    .capstone-section {
        padding: 2rem 1.5rem;
    }
}

/* Learner Experience Section */
.learner-experience {
    padding: 5rem 0;
    background: var(--bg-white);
}

.learner-experience-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.learner-experience-title {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.learner-experience-subtitle {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.learner-experience-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.learner-experience-video {
    margin-bottom: 4rem;
}

.learner-experience-video video {
    max-height: 450px;
    object-fit: contain;
}

.context-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0 4rem;
    width: 100%;
    flex-wrap: wrap;
}

.context-image {
    max-width: 23%;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    max-height: 500px;
}

.experience-section {
    margin-bottom: 4rem;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 3rem;
    border-top: 4px solid var(--gold);
}

.experience-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.experience-section-header h2 {
    font-size: 1.75rem;
    color: var(--navy);
    margin: 0;
    font-weight: 700;
}

.experience-section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.experience-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.experience-content-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 3px solid var(--gold);
}

.experience-content-item h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.experience-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.7;
}

.experience-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}

.sports-facilities {
    margin-top: 2rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 3px solid var(--gold);
}

.sports-facilities h3 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.sports-facilities > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.facilities-list {
    margin-bottom: 1rem;
}

.learner-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.learner-type-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border-top: 3px solid var(--gold);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.learner-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.learner-type-card h3 {
    font-size: 1.25rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.learner-type-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.promise-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: white;
}

.promise-section .experience-section-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.promise-section .experience-section-header h2 {
    color: white;
}

.promise-section .experience-section-intro {
    color: rgba(255, 255, 255, 0.95);
}

.promise-list {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.promise-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid rgba(220, 180, 95, 0.3);
    transition: all 0.3s;
}

.promise-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    transform: translateX(5px);
}

.promise-check {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    line-height: 1;
}

.promise-item p {
    color: white;
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Responsive Design for Learner Experience */
@media (max-width: 768px) {
    .learner-experience-title {
        font-size: 2rem;
    }

    .learner-experience-subtitle {
        font-size: 1.25rem;
    }

    .learner-experience-video video {
        max-height: 350px;
    }

    .context-image-container {
        margin: 2rem 0 3rem;
        flex-direction: column;
        gap: 1.5rem;
    }

    .context-image {
        max-width: 100%;
        max-height: 350px;
        border-radius: 12px;
    }

    .experience-section {
        padding: 2rem 1.5rem;
    }

    .experience-section-header h2 {
        font-size: 1.5rem;
    }

    .experience-content-grid {
        grid-template-columns: 1fr;
    }

    .learner-types {
        grid-template-columns: 1fr;
    }

    .promise-item {
        padding: 1.25rem;
    }
}

