/* Ginto Nord Font */
@font-face {
    font-family: "Ginto Nord";
    src: url("assets/fonts/ABCGintoNord-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Ginto Nord";
    src: url("assets/fonts/ABCGintoNord-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #374151;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

/* Ensure no underline appears for the clickable logo link */
.nav-logo:link,
.nav-logo:visited,
.nav-logo:hover,
.nav-logo:active {
    text-decoration: none;
    color: inherit;
}

.nav-logo img {
    border-radius: 50%;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px !important;
    background: transparent;
    padding: 2px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1c2f72;
}

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

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1c2f72;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1c2f72;
    transition: width 0.3s ease;
}

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

.register-btn {
    background: linear-gradient(135deg, #1c2f72, #6477c9);
    color: white !important;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(28, 47, 114, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #374151;
    transition: all 0.3s ease;
}

.hero-button-text {
    color: rgb(255, 255, 255);
    /* font-family: 'Ginto Nord', sans-serif; */
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* background:
        radial-gradient(ellipse at 75% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        linear-gradient(135deg, #1c2f72 0%, #243a9e 50%, #18286a 100%); */

    background: #f1f8ff;
    overflow: hidden;
}

/* Grain texture overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2001/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)' opacity='0.4'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.045;
    pointer-events: none;
    z-index: 3;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></g></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 10;
    padding-top: 50px;
    padding-left: -30px;
}

.hero-text {
    color: rgb(0, 0, 0);
    font-family: 'Ginto Nord', sans-serif;
    padding-left: -90px;
}

.hero-title {
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    display: inline-block;
    font-family: 'Ginto Nord', sans-serif;
    font-weight: 700;
    font-size: 1.08em;
    letter-spacing: 0.5px;
    background: linear-gradient(120deg, #f4c640 0%, #e8b923 40%, #d4a520 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(232, 185, 35, 0.3));
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.highlight2 {
    display: block;
    font-family: 'Ginto Nord', sans-serif;
    font-weight: 700;
    font-size: 1.04em;
    white-space: nowrap;
    background: linear-gradient(120deg, #1c2f72 0%, #4f63c2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight:hover {
    filter: drop-shadow(0 4px 12px rgba(232, 185, 35, 0.5));
    transform: scale(1.02);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    justify-content: flex-start;
}

.button-group button {
    min-height: 52px;
    box-sizing: border-box;
}

.button-subtitle {
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.9;
    font-weight: 400;
}

.btn-primary {
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.2;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(28, 47, 114, 0.4);
}

/* Hero CTA: gold so it pops against the navy background */
.hero .btn-primary {
    background: linear-gradient(135deg, #e8b923, #c9911a);
    color: #1c2f72;
    font-weight: 700;
}

.hero .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.45);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 0.98rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #1c2f72;
    transform: translateY(-3px);
    border-color: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}


.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-8deg) scale(1.1);
    /* transition used when hover overrides the float animation */
    transition: transform 0.s ease, box-shadow 1s ease;
}

/* Hover: stop the float animation and flatten — transition takes over */
.hero-image:hover img {
    animation-name: none;
    transform: perspective(1000px) rotateY(0deg) translateY(0px) scale(1) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6B7280;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #F9FAFB;
}

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

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1F2937;
}

/* Resources Section */
.resources {
    padding: 6rem 0;
    background: white;
}

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

.resource-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.resource-partners h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1F2937;
}

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

.partner-card {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.partner-card:hover {
    background: #F3F4F6;
    transform: scale(1.05);
}

.partner-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Announcement Section */
.announcement {
    padding: 6rem 0;
    background: linear-gradient(135deg, #FEF3C7, #FCD34D);
}

.announcement-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.announcement-content {
    padding: 3rem;
}

.announcement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8b923, #c9a227);
    color: #1c2f72;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.announcement-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1F2937;
}

.announcement-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #6B7280;
}

.announcement-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: #E5E7EB;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

/* Advantage Section */
.advantage {
    padding: 6rem 0;
    background: white;
}

.advantage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.advantage-card {
    flex: 1 1 280px;
    max-width: 360px;
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.advantage-icon i {
    color: white;
    font-size: 2rem;
}

.advantage-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1F2937;
}

.advantage-card p {
    color: #6B7280;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1F2937;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    border-radius: 50%;
}

.footer-logo .logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px !important;
    background: transparent;
    padding: 2px;
}

/* Footer logo text: gradient white so it pops on the dark footer */
.footer-logo .logo-text {
    background: linear-gradient(135deg, #5788be 30%, #153a96 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #F9FAFB;
}

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

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

.footer-section ul li a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1c2f72;
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #1c2f72;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .button-group {
        align-items: center;
    }

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

    .resources-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .announcement-card {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 250px;
    }

    .announcement-content {
        padding: 2rem 1.5rem;
    }

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

    /* Carousel responsive */
    .carousel-container {
        padding: 0 0.5rem;
    }

    .carousel-wrapper {
        min-height: 300px;
        aspect-ratio: auto;
    }

    /* On small screens, always show the CTA button (no hover needed) */
    .featured-course-hover-overlay {
        background: rgba(11, 16, 34, 0.3);
    }

    .featured-course-hover-btn {
        opacity: 1;
        transform: none;
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* --- Page-load entry animations --- */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(36px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSlideRight {
    from {
        opacity: 0;
        transform: translateX(60px) perspective(1000px) rotateY(-12deg);
    }

    to {
        opacity: 1;
        transform: translateX(0) perspective(1000px) rotateY(-8deg);
    }
}

/* Elements start hidden; JS fires the animation after the delay */
.hero-animate {
    opacity: 0;
}

.hero-animate.is-visible {
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-animate--right.is-visible {
    animation: heroSlideRight 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Ambient floating orbs --- */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
    opacity: 0;
    animation: orbFloat 0.9s ease forwards;
}

.hero-orb--1 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.22) 0%, transparent 70%);
    top: -80px;
    right: 10%;
    animation-delay: 0.6s;
    animation-duration: 0.9s;
    animation-name: orbFloat, driftA;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
    animation-timing-function: ease, ease-in-out;
    animation-duration: 0.9s, 14s;
    animation-delay: 0.6s, 1.5s;
}

.hero-orb--2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
    bottom: 5%;
    left: 3%;
    animation-name: orbFloat, driftB;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
    animation-timing-function: ease, ease-in-out;
    animation-duration: 0.9s, 18s;
    animation-delay: 0.8s, 1.7s;
}

.hero-orb--3 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.14) 0%, transparent 70%);
    top: 55%;
    right: 3%;
    animation-name: orbFloat, driftC;
    animation-fill-mode: forwards, none;
    animation-iteration-count: 1, infinite;
    animation-timing-function: ease, ease-in-out;
    animation-duration: 0.9s, 11s;
    animation-delay: 1.0s, 1.9s;
}

@keyframes orbFloat {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes driftA {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-18px, 24px) scale(1.05);
    }

    66% {
        transform: translate(14px, -16px) scale(0.97);
    }
}

@keyframes driftB {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(20px, -20px) scale(1.08);
    }

    75% {
        transform: translate(-10px, 14px) scale(0.95);
    }
}

@keyframes driftC {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-14px, -18px) scale(1.06);
    }
}

/* --- Ongoing hero image float --- */
@keyframes imageFloat {

    0%,
    100% {
        transform: perspective(1000px) rotateY(-8deg) translateY(0px);
    }

    50% {
        transform: perspective(1000px) rotateY(-8deg) translateY(-10px);
    }
}

.hero-image.is-visible img {
    animation: imageFloat 6s ease-in-out infinite;
    /* transition needed so hover can smoothly override animation */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* --- Scroll-reveal (used by JS IntersectionObserver) --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* --- Reduced motion: respect user preference --- */
@media (prefers-reduced-motion: reduce) {

    .hero-animate,
    .hero-animate--right,
    .hero-orb,
    .hero-image.is-visible img,
    .fade-in-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ============================================================
   LEARNING APPROACH SECTION
   ============================================================ */
.learning-approach {
    padding: 6rem 0;
    background: #F9FAFB;
    overflow: hidden;
}

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

/* ── Image column ─────────────────────────────────────────── */
.la-image-col {
    position: relative;
}

.la-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(28, 47, 114, 0.18);
}

.la-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.la-image-wrapper:hover .la-image {
    transform: scale(1.04);
}

.la-image-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #e8b923, #c9a227);
    color: #1c2f72;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.45);
    letter-spacing: 0.3px;
}

.la-image-badge i {
    font-size: 0.8rem;
}

/* ── Content column ───────────────────────────────────────── */
.la-content-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.la-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #1c2f72;
    background: rgba(28, 47, 114, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    width: fit-content;
}

.la-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
    margin: 0;
    font-family: 'Ginto Nord', 'Inter', sans-serif;
}

.la-title-accent {
    background: linear-gradient(120deg, #1c2f72 0%, #4f63c2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.la-description {
    font-size: 1.05rem;
    color: #4B5563;
    line-height: 1.8;
    margin: 0;
}

/* ── Stat cards ───────────────────────────────────────────── */
.la-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.la-stat-card {
    border-radius: 16px;
    padding: 1.4rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.la-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
}

.la-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.la-stat-card:hover::before {
    opacity: 1;
}

/* Individual card colours — navy-to-blue gradient, matching site palette */
.la-stat--practice {
    background: linear-gradient(135deg, #1c2f72 0%, #2d47a8 100%);
    box-shadow: 0 6px 20px rgba(28, 47, 114, 0.3);
}

.la-stat--theory {
    background: linear-gradient(135deg, #243a9e 0%, #3d54c0 100%);
    box-shadow: 0 6px 20px rgba(36, 58, 158, 0.3);
}

.la-stat--engagement {
    background: linear-gradient(135deg, #e8b923 0%, #c9911a 100%);
    box-shadow: 0 6px 20px rgba(232, 185, 35, 0.35);
}

.la-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Ginto Nord', 'Inter', sans-serif;
    line-height: 1;
}

.la-stat--engagement .la-stat-value {
    color: #1c2f72;
}

.la-stat-pct {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    /* sits inline next to value — handled via JS sibling positioning */
    display: none;
    /* hidden; value already includes "%" appended by JS counter */
}

.la-stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.15rem;
}

.la-stat--engagement .la-stat-label {
    color: #1c2f72;
}

.la-stat-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
}

.la-stat--engagement .la-stat-sub {
    color: rgba(28, 47, 114, 0.7);
}

/* ── Tagline ──────────────────────────────────────────────── */
.la-tagline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1c2f72;
    background: rgba(28, 47, 114, 0.06);
    border-left: 3px solid #e8b923;
    padding: 0.9rem 1.2rem;
    border-radius: 0 10px 10px 0;
    margin: 0;
}

.la-tagline i {
    font-size: 1.1rem;
    color: #e8b923;
    flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .la-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .la-image {
        height: 300px;
    }

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

@media (max-width: 480px) {
    .learning-approach {
        padding: 4rem 0;
    }

    .la-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .la-title {
        font-size: 1.7rem;
    }
}

/* Vision & Mission (Home) */
.vision-mission {
    padding: 6rem 0;
    background: #F9FAFB;
}

.vm-tiles {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.vm-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* text-align: center; */
    gap: 1rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1100px;
}

.vm-tile:first-child {
    padding-bottom: 2.1rem;
}

.vm-content h3 {
    margin: 0 0 .5rem 0;
    font-size: 1.5rem;
    color: #1F2937;
}

.vm-content p {
    color: #4B5563;
}

/* adjust icon for tile layout */
.vm-tile .vm-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
}

/* Legacy tile grid removed intentionally */

.vm-heading {
    /* display: flex; */
    align-items: center;
    align-self: center;
    text-align: center;
    align-content: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.vm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(28, 47, 114, 0.3);
}

.vm-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    display: flex;
    /* align-items: center; */
    gap: .75rem;
    margin-bottom: .5rem;
}

.vm-block p {
    color: #4B5563;
}

.vm-list {
    margin-top: 1rem;
    padding-left: 1rem;
}

.vm-list li {
    margin-bottom: .5rem;
    color: #6B7280;
}

.vm-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-left: 2rem;
}

/* Featured Courses Carousel */
.featured-courses {
    padding: 6rem 0;
    background: white;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #0b1022;
    aspect-ratio: 16/9;
    min-height: 360px;
    box-shadow: 0 20px 60px rgba(28, 47, 114, 0.2);
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course Card in Carousel — full image banner style */
.featured-course-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

/* The actual course banner image */
.featured-course-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.featured-course-card:hover .featured-course-bg-img {
    transform: scale(1.03);
}

/* Fallback gradient when no image is provided */
.featured-course-bg-gradient {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

/* Hover overlay — reveals CTA button on hover */
.featured-course-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 16, 34, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease;
    z-index: 5;
}

.featured-course-card:hover .featured-course-hover-overlay {
    background: rgba(11, 16, 34, 0.45);
}

.featured-course-hover-btn {
    background: linear-gradient(135deg, #e8b923, #c9911a);
    color: #1c2f72;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 8px 30px rgba(201, 145, 26, 0.45);
    opacity: 0;
    transform: translateY(12px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    letter-spacing: 0.3px;
}

.featured-course-card:hover .featured-course-hover-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    position: relative;
}

.carousel-dot.active {
    background: linear-gradient(90deg, #1c2f72 10%, #2872cd 50%, #174f8b 50%, #1c2f72 80%);
    background-size: 200% 100%;
    background-position: 100% 0%;
    width: 30px;
    border-radius: 6px;
    animation: dotProgress 5s linear forwards;
}

.carousel-dot.active.paused {
    animation-play-state: paused;
}

@keyframes dotProgress {
    from {
        background-position: 100% 0%;
    }

    to {
        background-position: 0% 0%;
    }
}

.carousel-dot:hover {
    background: #a1c2ff;
}

/* Featured CTA */
.featured-cta {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Page Hero Sections */
.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #223887 20%, #475aae 100%);
    color: white;
    text-align: center;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Active Navigation Link */
.nav-link.active {
    color: #1c2f72;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Do not show underline for the Enroll/Register nav button when it's the active page */
.nav-link.register-btn.active::after,
.register-btn.active::after {
    display: none !important;
}

/* Keep the Enroll/Register button visually stable (no size/weight jump) */
.nav-link.register-btn,
.register-btn {
    /* match other nav links' text weight and spacing to stay consistent across pages */
    font-weight: 500;
    line-height: normal;
    font-size: inherit;
    font-family: inherit;
}

/* Modern selected indicator for the Enroll button only (does not affect other nav links) */
.nav-link.register-btn.active,
body.page-enrollment .nav-link.register-btn {
    /* keep the same appearance as other pages */
    color: white !important;
    background: linear-gradient(135deg, #1c2f72, #243a9e) !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.18);
    transform: translateY(0);
}

/* Make the selected indicator subtle and modern without changing font-size */
.nav-link.register-btn.active::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12), transparent 40%);
    z-index: -1;
}

/* Final safeguard: force-remove any pseudo-underline for the register/enroll button
   (high specificity and !important to override previously defined rules or inline styles) */
.nav-menu a.register-btn::after,
.nav-menu a.register-btn.active::after,
.nav-menu .register-btn::after,
.register-btn::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
}

/* Enrollment page specific: ensure no underline for the nav enroll button on that page */
body.page-enrollment .nav-link.register-btn::after,
body.page-enrollment a.register-btn::after {
    display: none !important;
}

/* About Page Styles */
.about-detailed {
    padding: 6rem 0;
    background: white;
}

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

.about-detailed .about-text h2 {
    color: #1F2937;
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-detailed .about-text h2:first-child {
    margin-top: 0;
}

.values-section {
    padding: 6rem 0;
    background: #F9FAFB;
}

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

.value-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    color: white;
    font-size: 1.8rem;
}

/* Resources Page Styles */
.resources-overview {
    padding: 6rem 0;
    background: white;
}

.resource-types {
    padding: 6rem 0;
    background: #F9FAFB;
}

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

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.resource-icon i {
    color: white;
    font-size: 1.5rem;
}

.resource-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1F2937;
}

.resource-card ul {
    list-style: none;
    margin-top: 1rem;
}

.resource-card ul li {
    margin-bottom: 0.5rem;
    color: #6B7280;
}

.resource-card ul li::before {
    content: '✓';
    color: #10B981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.partners-section {
    padding: 6rem 0;
    background: white;
}

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

.partners-showcase .partner-card {
    text-align: center;
    padding: 2rem;
}

.partners-showcase .partner-card h4 {
    margin: 1rem 0 0.5rem;
    color: #1F2937;
}

/* Courses Page Styles */
.featured-course {
    padding: 6rem 0;
    background: linear-gradient(135deg, #FEF3C7, #FCD34D);
}

.course-features {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.9rem;
}

.feature i {
    color: #1c2f72;
}

.course-categories {
    padding: 6rem 0;
    background: white;
}

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

.category-card {
    background: linear-gradient(135deg, #F9FAFB, #F3F4F6);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E5E7EB;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    color: white;
    font-size: 1.8rem;
}

.course-count {
    display: inline-block;
    background: #1c2f72;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.popular-courses {
    padding: 6rem 0;
    background: #F9FAFB;
}

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

.course-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

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

.course-content {
    padding: 1.5rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.course-level {
    background: #E5E7EB;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.course-duration {
    color: #6B7280;
    font-size: 0.9rem;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #6B7280;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.course-advantages {
    padding: 6rem 0;
    background: white;
}

html.dark-theme .course-advantages {
    padding: 6rem 0;
    background: #0e1530;
}

/* Contact Page Styles */
.contact-section {
    padding: 6rem 0;
    background: #F9FAFB;
}

/* Custom select (glass) */
.custom-select {
    position: relative;
}

.custom-select .select-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.35));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.custom-select .select-value {
    color: #374151;
}

.custom-select .select-caret {
    width: 16px;
    height: 16px;
    margin-left: .5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}

.custom-select .select-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    max-height: 280px;
    overflow: auto;
    z-index: 50;
    display: none;
}

.custom-select.open .select-menu {
    display: block;
}

.custom-select .select-menu li {
    padding: 0.75rem 0.9rem;
    cursor: pointer;
}

.custom-select .select-menu li:hover {
    background: #F3F4F6;
}

.custom-select .select-menu li[aria-selected='true'] {
    background: #EEF2FF;
    color: #4338CA;
}

/* hide native select but keep accessible */
.custom-select select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-form-container {
    /* adjust this value to leave space for your fixed/sticky header */
    scroll-margin-top: 67px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 0.9rem;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.35));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Modern select styling */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 16px;
}

.form-group select:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.form-group select:focus {
    outline: none;
    border-color: #1c2f72;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 12px 30px rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5));
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1c2f72;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    color: white;
    font-size: 1.2rem;
}

.method-info h3 {
    margin-bottom: 0.5rem;
    color: #1F2937;
}

.method-info p {
    color: #6B7280;
    margin-bottom: 0.25rem;
}

.faq-section {
    padding: 6rem 0;
    background: white;
}

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

.faq-item {
    background: #F9FAFB;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #1c2f72;
}

.faq-item h3 {
    color: #1F2937;
    margin-bottom: 1rem;
}

.faq-item p {
    color: #6B7280;
    line-height: 1.6;
}

/* Teacher Recruitment Styles */
.teacher-recruitment {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1c2f72 0%, #243a9e 100%);
    color: white;
}

.teacher-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.teacher-benefits h3,
.teacher-requirements h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: white;
}

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

.benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #FCD34D;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.requirements-list {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.requirements-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.requirements-list li::before {
    content: '✓';
    position: absolute;
    left: -0.5rem;
    color: #FCD34D;
    font-weight: bold;
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .page-hero-title {
        font-size: 2.5rem;
    }

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

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

    .course-features {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero-title {
        font-size: 2rem;
    }

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

/* Smooth scrolling behavior */
section {
    scroll-margin-top: 70px;
}

/* ============================================
   NEW COURSES PAGE STYLES
   ============================================ */

/* Courses Page Container */
.courses-page-container {
    padding: 3rem 0;
    min-height: 60vh;
}

/* Category Tiles Wrapper */
.category-tiles-wrapper {
    position: relative;
    margin-bottom: 3rem;
    padding: 1rem 0.5rem 0 0.5rem;
    height: auto;
}

/* Category Tiles Section - Horizontal Scrollable */
.category-tiles-section {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding-bottom: 1rem;
    padding-right: 3rem;
    position: relative;
    /* For indicator positioning */
    min-height: 220px;
    /* Fixed height to contain indicator */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-tiles-section::-webkit-scrollbar {
    display: none;
}

.category-tile {
    flex: 1;
    min-width: 200px;
}

.category-tile {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-tile:hover:not(.active) {
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-tile.active {
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    border: 3px solid #1c2f72;
    /* No transform to prevent cut-off - just use border and shadow for emphasis */
    transform: none;
}

.category-tile:not(.active) {
    opacity: 1;
    filter: grayscale(0.3);
}

.category-tile-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.category-tile:hover .category-tile-image {
    transform: scale(1.1);
}

.category-tile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
}

.category-tile-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

.category-tile.active .category-tile-overlay {
    background: linear-gradient(to top, rgba(79, 70, 229, 0.9), rgba(79, 70, 229, 0.5));
}

/* Category Scroll Indicator */
.category-tiles-wrapper .category-scroll-indicator {
    position: absolute;
    right: 0.5rem;
    top: 1rem;
    height: 220px;
    /* Match the category-tiles-section min-height */
    max-height: 220px;
    /* Prevent overflow */
    width: 100px;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1.5rem;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(2px);
    /* Ensure it doesn't affect layout */
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    /* Contain within wrapper */
    overflow: hidden;
}

html.dark-theme .category-tiles-wrapper .category-scroll-indicator {
    background: linear-gradient(to left, rgb(49, 49, 49) 0%, rgba(32, 25, 25, 0.8) 40%, rgba(43, 43, 43, 0.3) 70%, transparent 100%);
}

.category-scroll-indicator.visible {
    opacity: 1;
}

.category-scroll-indicator.left {
    left: 0.5rem;
    right: auto;
    justify-content: flex-start;
    padding-left: 1.5rem;
    padding-right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0.3) 70%, transparent 100%);
}

html.dark-theme .category-scroll-indicator.left {
    background: linear-gradient(to right, rgb(49, 49, 49) 0%, rgba(32, 25, 25, 0.8) 40%, rgba(43, 43, 43, 0.3) 70%, transparent 100%);
}

.category-scroll-indicator i {
    font-size: 1.5rem;
    color: #1c2f72;
    animation: pulse-arrow 2s ease-in-out infinite;
    pointer-events: auto;
    cursor: pointer;
}

html.dark-theme .category-scroll-indicator i {
    color: #ffffff;
}

@keyframes pulse-arrow {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.7;
    }

    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

/* Courses Section */
.courses-section {
    width: 100%;
}

/* Age Filter Section */
.filter-container {
    display: flex;
    padding-right: 1%;
    flex-wrap: wrap;
}

.age-filter-section {

    /* text-align: left; */
    margin-bottom: 1.5rem;
    padding-left: 80%;
}

.age-filter-dropdown {
    max-width: 200px;
}

.age-filter-dropdown {
    position: relative;
}

.age-filter-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.age-filter-button:hover {
    border-color: #1c2f72;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.age-filter-button i {
    transition: transform 0.3s ease;
    color: #6B7280;
}

.age-filter-dropdown.open .age-filter-button i {
    transform: rotate(180deg);
}

.filter-text {
    flex: 1;
    text-align: left;
}

.filter-count {
    margin-left: 0.5rem;
    color: #1c2f72;
    font-weight: 600;
}

.age-filter-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    max-height: 364.5px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.age-filter-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.age-filter-option {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.age-filter-option:hover {
    background: #F3F4F6;
}

.age-filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #1c2f72;
}

.age-filter-option span {
    font-size: 0.85rem;
    color: #374151;
    user-select: none;
}

/* Dark Filter Options */
html.dark-theme .age-filter-option span {
    color: #c9cdd2;
}

/* Age Filter Apply Button */
.age-filter-apply {
    margin-top: 0.2rem;
    padding: 0.1rem;
    border-top: 1px solid #E5E7EB;
}

.age-filter-apply-button {
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5.5px;
}

.age-filter-apply-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Courses Grid Container */
.courses-grid-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    min-width: 0;
    /* Allow grid to shrink */
    width: 100%;
    /* Ensure it takes full available width */
}

/* New Course Card Styles */
.course-card-new {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    visibility: visible;
    opacity: 1;
    width: 300px;
}

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

.course-card-header {
    height: 180px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 300 / 180;
}

.course-category-badge {
    /* badge hidden since category text overlays image */
    display: none !important;
}

.course-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.course-age {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-age i {
    color: #1c2f72;
}

.course-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.course-fee {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1c2f72;
}

.course-duration-new {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.9rem;
}

.course-about {
    color: #6B7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.btn-view-course {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-view-course:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* No Courses Message */
.no-courses-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #6B7280;
}

.no-courses-message i {
    font-size: 4rem;
    color: #D1D5DB;
    margin-bottom: 1rem;
}

.no-courses-message h3 {
    font-size: 1.5rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.no-courses-message p {
    font-size: 1rem;
}

/* Responsive Design for Courses Page */
@media (max-width: 1024px) {
    .courses-section {
        width: 100%;
    }

    .age-filter-menu {
        position: absolute;
        width: 100%;
    }

    .courses-grid-container {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .category-tiles-wrapper {
        margin-bottom: 1rem;
    }

    .category-tiles-section {
        min-height: 160px;
    }

    .category-tile {
        flex: 1;
        min-width: 180px;
        height: 150px;
    }

    .category-tile-overlay h3 {
        font-size: 0.85rem;
    }

    /* Compact scroll indicator on mobile */
    .category-tiles-wrapper .category-scroll-indicator {
        width: 50px;
        height: 150px;
        max-height: 150px;
        padding-right: 0.5rem;
    }

    .category-scroll-indicator i {
        font-size: 1rem;
    }

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

    /* Fix filter button alignment */
    .age-filter-section {
        padding-left: 0;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .age-filter-dropdown {
        max-width: 220px;
        width: auto;
        position: relative;
    }

    .age-filter-button {
        width: auto;
        white-space: nowrap;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
    }

    .age-filter-menu {
        width: 220px;
        left: auto;
        right: 0;
    }
}

@media (max-width: 480px) {
    .category-tiles-section {
        min-height: 140px;
    }

    .category-tile {
        flex: 1;
        min-width: 150px;
        height: 120px;
    }

    .category-tile-overlay {
        padding: 1rem 0.5rem 0.5rem;
    }

    .category-tile-overlay h3 {
        font-size: 0.75rem;
    }

    /* Even smaller indicator on phones */
    .category-tiles-wrapper .category-scroll-indicator {
        width: 38px;
        height: 120px;
        max-height: 120px;
        padding-right: 0.35rem;
    }

    .category-scroll-indicator i {
        font-size: 0.85rem;
    }
}

/* ============================================
   COURSE DETAIL PAGE STYLES
   ============================================ */

/* Breadcrumb */
.breadcrumb-section {
    background: #000000;
    padding: 1rem 0;
    border-bottom: 0.1px solid #000000;
}

.breadcrumb-section .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: #1c2f72;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #4338CA;
}

.breadcrumb-separator {
    color: #D1D5DB;
}

.breadcrumb-current {
    color: #6B7280;
}

/* Course Detail Hero */
.course-detail-hero {
    background: linear-gradient(135deg, #F3F4F6 0%, #FFFFFF 100%);
    padding: 3rem 0;
}

.course-detail-header {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: flex-start;
}

.course-image-container {
    height: 280px;
    width: 100%;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

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

.course-info-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-name-hero {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.2;
    margin: 0;
}

.course-category-hero {
    font-size: 1.1rem;
    color: #1c2f72;
    font-weight: 600;
    margin: 0;
}

.course-meta-hero {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.meta-item-hero {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6B7280;
    font-size: 1rem;
}

.meta-item-hero i {
    color: #1c2f72;
    font-size: 1.1rem;
}

/* Course Detail Content */
.course-detail-content {
    padding: 3rem 0;
}

.course-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

/* Course Info Cards */
.course-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #1c2f72;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1c2f72 0%, #243a9e 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
}

.info-card-content label {
    display: block;
    font-size: 0.85rem;
    color: #9CA3AF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-card-content p {
    font-size: 1.1rem;
    color: #1F2937;
    font-weight: 600;
    margin: 0;
}

/* Course Description Section */
.course-description-section {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

html.dark-theme.course-description-section {
    background: #121212;
}

/* .course-description-section:hover {
    border-color: #1c2f72;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
    transform: translateY(-1.5px);
} */

.course-description-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 1.5rem 0;
}

.course-description-section p,
.course-description-section .parsed-list li {
    color: #6B7280;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.course-description-section .parsed-list {
    margin: 1rem 0 1rem 1.5rem;
    list-style-type: disc;
}

.course-description-section .parsed-list li {
    margin-bottom: 0.5rem;
}

.course-description-section .parsed-list li:last-child {
    margin-bottom: 0;
}

/* Course Highlights Section */
.course-highlights-section {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

/* .course-highlights-section:hover {
    border-color: #1c2f72;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
    transform: translateY(-1.5px);
} */

.course-highlights-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 1.5rem 0;
}

.course-highlights-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.course-highlights-section li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6B7280;
    font-size: 1rem;
}

.course-highlights-section i {
    color: #10B981;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Contact Info Section */
.contact-info-section {
    background: linear-gradient(135deg, #1c2f72 0%, #243a9e 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    color: white;
}

.contact-info-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.contact-info-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    margin: 0 0 1.5rem 0;
}

.btn-contact-main {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: white;
    color: #1c2f72;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

html.dark-theme .btn-contact-main {
    background: linear-gradient(135deg, #e8b923, #c9911a);
    color: #1c2f72;
    font-weight: 600;
}

.btn-contact-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

html.dark-theme .btn-contact-main:hover {
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.45);
    transform: translateY(-3px);
}

/* Course Benefits Section */
.course-benefits-section {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.course-benefits-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 1.5rem 0;
}

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

.benefit-item {
    display: flex;
    gap: 1rem;
}

.benefit-item-icon {
    color: #1c2f72;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-item-text {
    color: #6B7280;
    line-height: 1.6;
}

.course-modules-section {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.course-modules-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 1.5rem 0;
}

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

.module-item {
    border-left: 4px solid #1c2f72;
    padding-left: 1.5rem;
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-radius: 8px;
}

.module-item h4 {
    font-size: 1.05rem;
    color: #1F2937;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.module-item p {
    color: #6B7280;
    margin: 0;
    font-size: 0.95rem;
}

/* Course Pricing Section */
.course-pricing-section {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.course-pricing-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 1.5rem 0;
}

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

.pricing-option {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-option:hover {
    border-color: #1c2f72;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.1);
    transform: translateY(-3px);
}

.pricing-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pricing-option-header h4 {
    font-size: 1.1rem;
    color: #1F2937;
    margin: 0;
    font-weight: 600;
}

.pricing-option-price {
    font-size: 1.25rem;
    color: #1c2f72;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-option-description {
    color: #6B7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Sidebar */
.course-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.enrollment-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.enrollment-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 1.5rem 0;
}

.price-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.single-price {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #1F2937;
}

.enrollment-summary {
    background: #F9FAFB;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

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

.summary-item span:first-child {
    color: #6B7280;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.summary-item span:last-child {
    text-align: right;
}

.summary-item .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1c2f72;
}

.btn-enroll {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #1c2f72 0%, #243a9e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.enrollment-note {
    text-align: center;
    color: #6B7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Course Highlights */
.course-highlights {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 1.5rem;
    display: none;
}

.course-highlights h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 1.25rem 0;
}

.course-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6B7280;
    font-size: 0.95rem;
}

.course-highlights i {
    color: #10B981;
    font-size: 1.1rem;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, #1c2f72 0%, #243a9e 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    display: none;
}

.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
}

.contact-card p {
    font-size: 0.95rem;
    margin: 0 0 1.25rem 0;
    opacity: 0.95;
}

.btn-contact {
    display: block;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #1c2f72;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Related Courses Section */
.related-courses-section {
    padding: 4rem 0;
    background: #F9FAFB;
}

html.dark-theme .related-courses-section {
    background: linear-gradient(135deg, #0b1022 0%, #111b35 100%);
}

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

/* Responsive Design for Course Detail Page */
@media (max-width: 768px) {
    .course-detail-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .course-name-hero {
        font-size: 1.75rem;
    }

    .course-detail-content {
        padding: 1rem 0 3rem 0;
    }

    .course-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .course-detail-main,
    .course-detail-sidebar {
        display: contents;
    }

    .course-info-cards {
        order: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .course-info-cards .info-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .course-info-cards .info-card:first-child {
        grid-column: 1 / -1;
    }

    .info-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .info-card-content label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .info-card-content p {
        font-size: 0.95rem;
        line-height: 1.3;
        white-space: pre-line;
    }

    .enrollment-card {
        order: 2;
        position: static;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .course-description-section {
        order: 3;
    }

    .course-highlights-section {
        order: 4;
    }

    .course-benefits-section {
        order: 5;
    }

    .course-modules-section {
        order: 6;
    }

    .contact-info-section {
        order: 7;
    }

    .course-highlights-section ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .course-detail-hero {
        padding: 1.5rem 0;
    }

    .course-image-container {
        height: 200px;
    }

    .course-name-hero {
        font-size: 1.5rem;
    }

    .meta-item-hero {
        font-size: 0.95rem;
    }

    .course-description-section,
    .course-highlights-section,
    .contact-info-section,
    .course-benefits-section,
    .course-modules-section,
    .course-pricing-section {
        padding: 1.5rem;
    }

    .course-description-section h2,
    .course-highlights-section h2,
    .contact-info-section h2,
    .course-benefits-section h2,
    .course-modules-section h2,
    .course-pricing-section h2 {
        font-size: 1.3rem;
    }

    .breadcrumb-section .container {
        font-size: 0.85rem;
    }

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

    .enrollment-container {
        flex-direction: column;
    }

    .enrollment-cart,
    .enrollment-form-container {
        width: 100%;
    }

    .enrollment-form {
        max-width: 100%;
    }
}

/* ============================================
   ENROLLMENT PAGE STYLES
   ============================================ */

.enrollment-section {
    padding: 8rem 0 3rem 0;
    background: #f9fafb;
    min-height: calc(100vh - 300px);
}

.enrollment-header {
    text-align: center;
    margin-bottom: 2rem;
}

.enrollment-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.enrollment-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.enrollment-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

/* Cart Section */
.enrollment-cart {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
}

.enrollment-cart h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.cart-items {
    margin-bottom: 2rem;
    min-height: 150px;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
}

.empty-cart i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    color: #d1d5db;
}

.empty-cart p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-cart small {
    display: block;
    font-size: 0.85rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.cart-item-info h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #1f2937;
}

.cart-item-category {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.1rem;
    color: #1c2f72;
    font-weight: 600;
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-remove:hover {
    transform: scale(1.2);
}

.btn-add-more {
    width: 100%;
    padding: 0.875rem;
    background: #1c2f72;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-more:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

.cart-summary {
    background: #f0f4ff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #4b5563;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1c2f72;
    border-top: 1px solid #bfdbfe;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.payment-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #bfdbfe;
    font-size: 0.85rem;
    color: #6366f1;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.payment-note i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Enrollment Form */
.enrollment-form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.enrollment-form-container h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.enrollment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1c2f72;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group small {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* ── Form Validation ───────────────────────────────────── */
.field-error {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #dc2626;
    font-weight: 500;
}

.form-group.error .field-error {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-group.error.checkbox input {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
    box-shadow: none;
}

.form-group.valid input,
.form-group.valid select,
.form-group.valid textarea {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.form-group.shake {
    animation: shake 0.45s ease;
}

html.dark-theme .field-error {
    color: #f87171;
}

html.dark-theme .form-group.error input,
html.dark-theme .form-group.error select,
html.dark-theme .form-group.error textarea {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

html.dark-theme .form-group.valid input,
html.dark-theme .form-group.valid select,
html.dark-theme .form-group.valid textarea {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12);
}


.form-group.checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-group.checkbox input {
    margin-top: 0.25rem;
    cursor: pointer;
    width: auto;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn-submit {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1c2f72 0%, #243a9e 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Courses Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-large {
    width: 90%;
    max-width: 900px;
}

.modal-small {
    width: 90%;
    max-width: 500px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-body {
    padding: 2rem;
}

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

.courses-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.courses-search input,
.courses-search select {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
}

.courses-search input {
    flex: 1;
}

.courses-search select {
    min-width: 200px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-card-enrollment {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.course-card-enrollment:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.course-card-header {
    padding: 1rem;
    color: white;
    position: relative;
}

.course-category-badge {
    background: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.course-card-body {
    padding: 1.25rem;
}

.course-name {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

.course-age {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.course-age i {
    margin-right: 0.25rem;
}

.course-meta-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.course-fee {
    font-size: 1rem;
    color: #1c2f72;
    font-weight: 700;
}

.course-duration {
    font-size: 0.85rem;
    color: #6b7280;
}

.course-duration i {
    margin-right: 0.25rem;
}

.btn-add-course {
    width: 100%;
    padding: 0.75rem;
    background: #1c2f72;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-course:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-2px);
}

.btn-add-course.added {
    background: #10b981;
    cursor: default;
}

.btn-add-course:disabled {
    opacity: 0.7;
}

/* Success Modal */
.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-icon i {
    animation: bounce 0.6s ease-out;
}

@keyframes bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1c2f72 0%, #243a9e 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .enrollment-header h1 {
        font-size: 1.8rem;
    }

    .enrollment-container {
        grid-template-columns: 1fr;
    }

    .enrollment-cart {
        position: static;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .courses-search {
        flex-direction: column;
    }

    .courses-search select {
        min-width: 100%;
    }

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

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #1c2f72, #2d4db5);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(28, 47, 114, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease, border-color 0.4s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.12) rotate(18deg);
    box-shadow: 0 8px 32px rgba(28, 47, 114, 0.6);
}

html.dark-theme .theme-toggle {
    background: linear-gradient(135deg, #c9a227, #e8b923);
    color: #1c2f72;
    border-color: rgba(232, 185, 35, 0.35);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html.dark-theme .theme-toggle:hover {
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.6);
}

/* ============================================================
   DARK THEME — html.dark-theme
   Palette:
     bg-base    : #0b1022  (deep navy-black)
     bg-surface : #111b35  (card/tile backgrounds)
     bg-input   : #0d1630  (form fields)
     text-1     : #dce4f5  (primary text)
     text-2     : #7a90b8  (secondary / muted)
     gold       : #e8b923  (accent, unchanged)
     navy-light : #243a9e  (interactive navy)
   ============================================================ */

/* Base */
html.dark-theme,
html.dark-theme body {
    background: #0b1022;
    color: #dce4f5;
    color-scheme: dark;
}

/* Smooth transition on theme switch */
html.dark-theme body,
html.dark-theme .navbar,
html.dark-theme .vm-tile,
html.dark-theme .feature-card,
html.dark-theme .advantage-card,
html.dark-theme .course-card,
html.dark-theme .course-card-new,
html.dark-theme .resource-card,
html.dark-theme .contact-method,
html.dark-theme .contact-card {
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ── Navbar ─────────────────────────────────────────────── */
html.dark-theme .navbar {
    background: rgba(11, 16, 34, 0.97);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.dark-theme .navbar.scrolled {
    background: rgba(8, 12, 26, 0.99) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

html.dark-theme .logo-text {
    color: #dce4f5;
    background: none;
    -webkit-text-fill-color: #dce4f5;
}

html.dark-theme .nav-link {
    color: #94a8cc;
}

html.dark-theme .nav-link:hover {
    color: #e8b923;
}

html.dark-theme .nav-link::after {
    background: #e8b923;
}

html.dark-theme .hamburger span {
    background: #dce4f5;
}

html.dark-theme .nav-menu.active {
    background: #0e1530;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ── Hero ───────────────────────────────────────────────── */
html.dark-theme .hero {
    /* background:
        radial-gradient(ellipse at 75% 15%, rgba(255, 255, 255, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(255, 255, 255, 0.04) 0%, transparent 45%),
        linear-gradient(135deg, #060f2a 0%, #0f1e68 50%, #08133c 100%); */
    background: #111833
}

/* ── Page hero banners (About / Courses / etc.) ────────── */
html.dark-theme .page-hero {
    background: linear-gradient(135deg, #08112a 20%, #10206a 100%);
}

/* ── Section backgrounds ────────────────────────────────── */
html.dark-theme .vision-mission,
html.dark-theme .advantage,
html.dark-theme .about {
    background: #0b1022;
}

html.dark-theme .featured-courses {
    background: #0b1022;
}

html.dark-theme .carousel-wrapper {
    background: #0b1022;
}

html.dark-theme .resources,
html.dark-theme .partners-section {
    background: #0d1530;
}

html.dark-theme .announcement {
    background: linear-gradient(135deg, #15110000, #211c0000);
    background-color: #0d1530;
}

html.dark-theme .contact-section {
    background: #0b1022;
}

/* ── Cards & Tiles ──────────────────────────────────────── */
html.dark-theme .vm-tile {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

html.dark-theme .feature-card {
    background: #111b35;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

html.dark-theme .feature-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

/* ── Carousel (image-based slides) ─────────────────────── */
html.dark-theme .carousel-wrapper {
    background: #060c1e;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

html.dark-theme .featured-course-hover-overlay {
    background: rgba(6, 12, 30, 0);
}

html.dark-theme .featured-course-card:hover .featured-course-hover-overlay {
    background: rgba(6, 12, 30, 0.5);
}

html.dark-theme .featured-course-hover-btn {
    box-shadow: 0 8px 30px rgba(232, 185, 35, 0.4);
}

html.dark-theme .carousel-btn {
    background: #111b35;
    color: #e8b923;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

html.dark-theme .carousel-btn:hover {
    background: #e8b923;
    color: #0b1022;
    box-shadow: 0 6px 25px rgba(232, 185, 35, 0.3);
}

html.dark-theme .carousel-dot {
    background: #7a90b8;
}

html.dark-theme .carousel-dot:hover {
    background: #94a8cc;
}

html.dark-theme .carousel-dot.active {
    background: linear-gradient(90deg, #243a9e 0%, #e8b923 50%, #e8b923 50%, #243a9e 100%);
    background-size: 200% 100%;
    background-position: 100% 0%;
    animation: dotProgress 5s linear forwards;
}

html.dark-theme .advantage-card {
    background: linear-gradient(135deg, #111b35, #0f1a32);
    border-color: rgba(255, 255, 255, 0.07);
}

html.dark-theme .advantage-card:hover {
    background: #141f3e;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

html.dark-theme .partner-card {
    background: #111b35;
}

html.dark-theme .partner-card:hover {
    background: #162040;
}

html.dark-theme .announcement-card {
    background: #111b35;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Text ───────────────────────────────────────────────── */

html.dark-theme .hero-title {
    color: #f0f4ff;
}

html.dark-theme .highlight2 {
    background: linear-gradient(120deg, #f0f4ff 20%, #6477c9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dark-theme .hero-description {
    color: #dce4f5;
}

html.dark-theme .button-subtitle {
    color: #dce4f5;
}

html.dark-theme .section-title {
    color: #dce4f5;
}

html.dark-theme .section-subtitle {
    color: #7a90b8;
}

html.dark-theme .vm-content h3 {
    color: #dce4f5;
}

html.dark-theme .vm-content p,
html.dark-theme .vm-list li {
    color: #7a90b8;
}

html.dark-theme .feature-card h3,
html.dark-theme .advantage-card h3 {
    color: #dce4f5;
}

html.dark-theme .advantage-card p {
    color: #7a90b8;
}

html.dark-theme .announcement-title {
    color: #dce4f5;
}

html.dark-theme .announcement-description {
    color: #7a90b8;
}

html.dark-theme .tag {
    background: #1a2545;
    color: #94a8cc;
}

html.dark-theme .about-text p,
html.dark-theme .resource-text p {
    color: #7a90b8;
}

/* ── Courses page ───────────────────────────────────────── */
html.dark-theme .category-tile {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.08);
    color: #94a8cc;
}

html.dark-theme .category-tile:hover:not(.active) {
    background: #162040;
    color: #dce4f5;
}

html.dark-theme .category-tile.active {
    background: linear-gradient(135deg, #1c2f72, #243a9e);
    color: white;
}

html.dark-theme .course-card,
html.dark-theme .course-card-new {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
}

html.dark-theme .course-card:hover,
html.dark-theme .course-card-new:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

html.dark-theme .course-card-body,
html.dark-theme .course-card h3 {
    color: #dce4f5;
}

html.dark-theme .course-meta,
html.dark-theme .course-category {
    color: #7a90b8;
}

/* ── Resource cards ─────────────────────────────────────── */
html.dark-theme .resource-card {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

html.dark-theme .resource-card h3 {
    color: #dce4f5;
}

html.dark-theme .resource-card ul li {
    color: #7a90b8;
}

/* ── Contact page ───────────────────────────────────────── */
html.dark-theme .contact-form-container {
    background: #111b35;
}

html.dark-theme .contact-method,
html.dark-theme .contact-card {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
}

html.dark-theme .contact-method h3,
html.dark-theme .contact-card h3 {
    color: #dce4f5;
}

html.dark-theme .contact-method p,
html.dark-theme .contact-card p {
    color: #7a90b8;
}

html.dark-theme .contact-info-section {
    background: #0d1530;
}

html.dark-theme .contact-info-section h2 {
    color: #dce4f5;
}

html.dark-theme .contact-info-section p {
    color: #7a90b8;
}

/* ── Form inputs ────────────────────────────────────────── */
html.dark-theme input,
html.dark-theme textarea,
html.dark-theme select {
    background: #0d1630;
    color: #dce4f5;
    border-color: rgba(255, 255, 255, 0.12);
}

html.dark-theme input:focus,
html.dark-theme textarea:focus,
html.dark-theme select:focus {
    border-color: #243a9e;
    background: #101e46;
    outline: none;
}

html.dark-theme input::placeholder,
html.dark-theme textarea::placeholder {
    color: #4a5a7a;
}

html.dark-theme label {
    color: #94a8cc;
}

/* ── Footer ─────────────────────────────────────────────── */
html.dark-theme .footer {
    background: #060c1e;
}

html.dark-theme .footer-section ul li {
    color: #7a90b8;
}

html.dark-theme .footer-section ul li a {
    color: #7a90b8;
}

html.dark-theme .footer-section ul li a:hover {
    color: #e8b923;
}

html.dark-theme .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #4a5a7a;
}

html.dark-theme .social-links a {
    background: #111b35;
}

html.dark-theme .social-links a:hover {
    background: #e8b923;
    color: #1c2f72;
}

/* ── Scrollbar ──────────────────────────────────────────── */
html.dark-theme ::-webkit-scrollbar {
    width: 8px;
    background: #0b1022;
}

html.dark-theme ::-webkit-scrollbar-track {
    background: #0b1022;
}

html.dark-theme ::-webkit-scrollbar-thumb {
    background: #1c2f72;
    border-radius: 4px;
}

html.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #243a9e;
}

@media (prefers-reduced-motion: reduce) {

    html.dark-theme body,
    html.dark-theme .navbar {
        transition: none;
    }
}

/* ============================================================
   DARK MODE — PATCH 2 (additional sections missed in initial pass)
   ============================================================ */

/* ── Active nav link text in dark mode ──────────────────── */
html.dark-theme .nav-link.active {
    color: #e8b923;
    /* gold text for active page link */
}

/* ── About page — values & team sections ───────────────── */
html.dark-theme .values-section {
    background: #0e1530;
}

html.dark-theme .value-card {
    background: #111b35;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

html.dark-theme .value-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

html.dark-theme .value-card h3 {
    color: #dce4f5;
}

html.dark-theme .value-card p {
    color: #7a90b8;
}

/* ── Resources page ─────────────────────────────────────── */
html.dark-theme .resources-overview {
    background: #0b1022;
}

html.dark-theme .resource-types {
    background: #0e1530;
}

html.dark-theme .resource-text h2,
html.dark-theme .resource-text h3 {
    color: #dce4f5;
}

html.dark-theme .resource-text p {
    color: #7a90b8;
}

/* ── Courses page — filter button & dropdown ────────────── */
html.dark-theme .age-filter-button {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.12);
    color: #dce4f5;
}

html.dark-theme .age-filter-button:hover {
    border-color: #243a9e;
    box-shadow: 0 4px 12px rgba(28, 47, 114, 0.3);
}

html.dark-theme .age-filter-button i {
    color: #94a8cc;
}

html.dark-theme .age-filter-menu {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

html.dark-theme .age-filter-option {
    color: #dce4f5;
}

html.dark-theme .age-filter-option:hover {
    background: #162040;
}

html.dark-theme .age-filter-apply {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ── Courses page — course card body text ───────────────── */
html.dark-theme .course-name {
    color: #dce4f5;
}

html.dark-theme .course-age {
    color: #7a90b8;
}

html.dark-theme .course-meta-info {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .course-price {
    color: #e8b923;
}

html.dark-theme .courses-page-container {
    background: #0b1022;
}

/* ── Courses page — "Why choose / highlights" ───────────── */
html.dark-theme .course-highlights-section {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .course-highlights-section h2 {
    color: #dce4f5;
}

html.dark-theme .course-highlights-section li,
html.dark-theme .course-highlights-section p {
    color: #7a90b8;
}

/* ── Contact page — FAQ ─────────────────────────────────── */
html.dark-theme .faq-section {
    background: #0e1530;
}

html.dark-theme .faq-item {
    background: #111b35;
    border-left-color: #e8b923;
    /* gold accent border matches highlight */
}

html.dark-theme .faq-item h3 {
    color: #dce4f5;
}

html.dark-theme .faq-item p {
    color: #7a90b8;
}

/* ── Contact page — form wrapper ────────────────────────── */
html.dark-theme .contact-section {
    background: #0b1022;
}

html.dark-theme .contact-form {
    background: #111b35;
}

html.dark-theme .contact-form h2 {
    color: #dce4f5;
}

/* ── Enrollment page ────────────────────────────────────── */
html.dark-theme .enrollment-section,
html.dark-theme .enrollment-form-container {
    background: #0b1022;
}

html.dark-theme .enrollment-form {
    background: #111b35;
}

html.dark-theme .course-card-enrollment {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
}

html.dark-theme .course-card-enrollment h3 {
    color: #dce4f5;
}

/* ============================================================
   DARK MODE — PATCH 3 (final missing sections)
   ============================================================ */

/* ── About page — main content area ─────────────────────── */
html.dark-theme .about-detailed {
    background: #0b1022;
}

html.dark-theme .about-content h2,
html.dark-theme .about-text h2,
html.dark-theme .about-text h3 {
    color: #dce4f5;
}

html.dark-theme .about-text p,
html.dark-theme .about-text a {
    color: #7a90b8;
}

html.dark-theme .about-text a:hover {
    color: #e8b923;
}

/* ── Course card — price visible in gold ─────────────────── */
html.dark-theme .course-price,
html.dark-theme .course-card .price,
html.dark-theme .cart-item-price {
    color: #e8b923;
}

/* ── Courses page — "Why Choose Our Courses?" section ────── */
/* This section reuses .advantage / .feature-card on courses.html */
html.dark-theme .courses-page-container .advantage,
html.dark-theme .courses-page-container .features,
html.dark-theme .courses-page-container section:not(.category-tiles-wrapper):not(.courses-section) {
    background: #0b1022;
}

/* ── Custom select (subject dropdown & others) ───────────── */
html.dark-theme .custom-select .select-toggle {
    background: linear-gradient(180deg, rgba(17, 27, 53, 0.95), rgba(13, 22, 48, 0.9));
    border-color: rgba(255, 255, 255, 0.12);
    color: #dce4f5;
}

html.dark-theme .custom-select .select-value {
    color: #dce4f5;
}

html.dark-theme .custom-select .select-caret {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a8cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

html.dark-theme .custom-select .select-menu {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

html.dark-theme .custom-select .select-menu li {
    color: #dce4f5;
}

html.dark-theme .custom-select .select-menu li:hover {
    background: #162040;
}

html.dark-theme .custom-select .select-menu li[aria-selected='true'] {
    background: rgba(28, 47, 114, 0.4);
    color: #e8b923;
}

/* ── Course detail page ──────────────────────────────────── */
html.dark-theme .course-detail-hero {
    background: linear-gradient(135deg, #0b1022 0%, #111b35 100%);
}

html.dark-theme .course-detail-content {
    background: #0b1022;
}

html.dark-theme .course-detail-grid>* {
    color: #dce4f5;
}

html.dark-theme .info-card {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
}

html.dark-theme .info-card-content h4,
html.dark-theme .info-card-content p {
    color: #dce4f5;
}

html.dark-theme .info-card-content label {
    color: #7a90b8;
}

html.dark-theme .course-name-hero {
    color: #dce4f5;
}

html.dark-theme .course-category-hero {
    color: #e8b923;
}

/* Enroll sidebar card */
html.dark-theme .enrollment-card {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

html.dark-theme .enrollment-card h3 {
    color: #dce4f5;
}

html.dark-theme .enrollment-summary {
    background: #0d1630;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .enrollment-note {
    color: #7a90b8;
}

/* About this course / detail sections */
html.dark-theme .course-description-section,
html.dark-theme .course-highlights-section,
html.dark-theme .course-objectives {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .course-description-section h2,
html.dark-theme .course-objectives h2 {
    color: #dce4f5;
}

html.dark-theme .course-description-section p,
html.dark-theme .course-description-section .parsed-list li,
html.dark-theme .course-objectives li {
    color: #7a90b8;
}

/* ── Enrollment page ─────────────────────────────────────── */
html.dark-theme .enrollment-section {
    background: #0b1022;
}

html.dark-theme .enrollment-header h1 {
    color: #dce4f5;
}

html.dark-theme .enrollment-header p {
    color: #7a90b8;
}

html.dark-theme .enrollment-cart,
html.dark-theme .enrollment-form-container {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

html.dark-theme .enrollment-cart h2,
html.dark-theme .enrollment-form-container h2 {
    color: #dce4f5;
}

/* Cart items */
html.dark-theme .cart-item {
    background: #0d1630;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .cart-item-info h4 {
    color: #dce4f5;
}

html.dark-theme .cart-item-category {
    color: #7a90b8;
}

html.dark-theme .empty-cart {
    background: #0d1630;
    color: #7a90b8;
}

/* Cart summary */
html.dark-theme .cart-summary {
    background: rgba(28, 47, 114, 0.2);
    border-color: rgba(28, 47, 114, 0.3);
}

html.dark-theme .summary-row {
    color: #94a8cc;
}

html.dark-theme .summary-row.total {
    color: #e8b923;
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ── Modal (Add More Courses) ───────────────────────────── */
html.dark-theme .modal-content {
    background: #111b35;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html.dark-theme .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark-theme .modal-header h2 {
    color: #dce4f5;
}

html.dark-theme .modal-close {
    color: #7a90b8;
}

html.dark-theme .modal-close:hover {
    color: #e8b923;
}

html.dark-theme .modal-body {
    color: #dce4f5;
}

/* ── Contact page — "Get in Touch" info section ─────────── */
html.dark-theme .contact-info-section {
    background: #0d1530;
}

html.dark-theme .contact-info-card {
    background: #111b35;
    border-color: rgba(255, 255, 255, 0.07);
}

html.dark-theme .contact-info-card h3 {
    color: #dce4f5;
}

html.dark-theme .contact-info-card p {
    color: #7a90b8;
}

/* Remove the "box" effect (white outline on inputs) */
html.dark-theme input,
html.dark-theme textarea,
html.dark-theme select {
    outline: none;
    box-shadow: none;
}

html.dark-theme input:focus,
html.dark-theme textarea:focus {
    box-shadow: 0 0 0 2px rgba(36, 58, 158, 0.5);
}

/* ============================================================
   DARK MODE — PATCH 4 (Course metadata & Modal fixes)
   ============================================================ */

html.dark-theme .course-meta i,
html.dark-theme .course-meta span,
html.dark-theme .course-duration,
html.dark-theme .course-age {
    color: #b0c4de !important;
}

html.dark-theme .course-price,
html.dark-theme .course-fee,
html.dark-theme .cart-item-price,
html.dark-theme .course-card .price,
html.dark-theme .enrollment-card .price {
    color: #e8b923 !important;
}

html.dark-theme .course-card-new h3,
html.dark-theme .course-name,
html.dark-theme .course-card h3 {
    color: #dce4f5 !important;
}

/* Modal text colors */
html.dark-theme .modal-body .course-meta-info,
html.dark-theme .modal-body .course-fee,
html.dark-theme .modal-body .course-duration-new {
    color: #b0c4de !important;
}

html.dark-theme .modal-body .course-fee {
    color: #e8b923 !important;
}

/* ============================================================
   DARK MODE — Learning Approach Section
   ============================================================ */
html.dark-theme .learning-approach {
    background: #0b1022;
}

html.dark-theme .la-label {
    color: #94a8cc;
    background: rgba(148, 168, 204, 0.1);
}

html.dark-theme .la-title {
    color: #dce4f5;
}

html.dark-theme .la-title-accent {
    background: linear-gradient(120deg, #94a8cc 0%, #6477c9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dark-theme .la-description {
    color: #7a90b8;
}

html.dark-theme .la-image-wrapper {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Stat cards keep their vivid gradients in dark mode — they're self-contained */
html.dark-theme .la-stat--practice {
    box-shadow: 0 6px 20px rgba(28, 47, 114, 0.5);
}

html.dark-theme .la-stat--theory {
    box-shadow: 0 6px 20px rgba(36, 58, 158, 0.5);
}

html.dark-theme .la-stat--engagement {
    box-shadow: 0 6px 20px rgba(232, 185, 35, 0.3);
}

html.dark-theme .la-tagline {
    color: #94a8cc;
    background: rgba(148, 168, 204, 0.07);
    border-left-color: #e8b923;
}


html.dark-theme .la-tagline i {
    color: #e8b923;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERHAUL
   Covers: all iPhones (SE → Pro Max), Android, tablets, desktop
   Breakpoints:
     375px  iPhone SE / 13 mini
     390px  iPhone 14/15/16
     430px  iPhone 14/15/16 Plus & Pro Max
     480px  small Androids (already handled above, extended here)
     600px  large phones / small tablets landscape
     768px  tablets portrait (already handled, extended here)
     1024px tablets landscape / small laptops
   ============================================================ */

/* ─── Global Safety ─────────────────────────────────────── */
*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

/* Prevent inputs zooming on iOS Safari */
@media (max-width: 768px) {

    input,
    select,
    textarea,
    button {
        font-size: 16px !important;
    }
}

/* ─── Navbar Mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }

    .nav-container {
        padding: 0 1rem;
        height: 64px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    /* Mobile dropdown menu */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(229, 231, 235, 0.8);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        z-index: 999;
        padding: 1rem 0 1.5rem;
        gap: 0;
        list-style: none;
        margin: 0;
        overflow-y: auto;
        max-height: calc(100vh - 64px);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(229, 231, 235, 0.4);
        width: 100%;
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-menu li:last-child .nav-link,
    .nav-menu li:last-child button.register-btn {
        border-bottom: none;
    }

    .register-btn {
        margin: 0.75rem 1.5rem 0;
        width: calc(100% - 3rem);
        text-align: center;
        border-radius: 8px;
        padding: 0.75rem 1rem;
    }

    /* Hamburger animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ─── Hero Section ──────────────────────────────────────── */
@media (max-width: 768px) {
    .hero {
        padding-top: 64px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-top: 2rem;
        padding-left: 0;
    }

    .hero-text {
        padding-left: 0;
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-image img {
        transform: none;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }

    .highlight2 {
        white-space: normal;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .button-group {
        align-items: center;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 430px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.55rem;
    }
}

/* ─── Section Titles & Headers ──────────────────────────── */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 430px) {
    .section-title {
        font-size: 1.55rem;
    }
}

/* ─── About (Home) ──────────────────────────────────────── */
@media (max-width: 768px) {
    .about {
        padding: 4rem 0;
    }

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

    .about-features {
        gap: 1rem;
    }

    .about-text p {
        font-size: 1rem;
    }
}

/* ─── Resources (Home) ──────────────────────────────────── */
@media (max-width: 768px) {
    .resources {
        padding: 4rem 0;
    }

    .resources-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 430px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Announcement ──────────────────────────────────────── */
@media (max-width: 768px) {
    .announcement {
        padding: 4rem 0;
    }

    .announcement-card {
        grid-template-columns: 1fr;
    }

    .announcement-image {
        height: 220px;
        overflow: hidden;
    }

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

    .announcement-content {
        padding: 2rem 1.5rem;
    }

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

/* ─── Advantage / Why Choose ────────────────────────────── */
@media (max-width: 768px) {
    .advantage {
        padding: 4rem 0;
    }

    .advantage-card {
        flex: 1 1 calc(50% - 1rem);
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .advantage-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ─── Learning Approach (Home) ──────────────────────────── */
@media (max-width: 768px) {
    .learning-approach {
        padding: 4rem 0;
    }

    .la-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .la-image {
        height: 260px;
        order: -1;
    }

    .la-title {
        font-size: 1.75rem;
    }

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

@media (max-width: 430px) {
    .la-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

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

    .la-image {
        height: 220px;
    }
}

/* ─── Vision & Mission ──────────────────────────────────── */
@media (max-width: 768px) {
    .vision-mission {
        padding: 4rem 0;
    }

    .vm-tile {
        padding: 1.25rem;
    }
}

/* ─── Featured Courses Carousel ─────────────────────────── */
@media (max-width: 768px) {
    .featured-courses {
        padding: 4rem 0;
    }

    .carousel-wrapper {
        min-height: 280px;
    }

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

    .carousel-btn.prev {
        left: 0.5rem;
    }

    .carousel-btn.next {
        right: 0.5rem;
    }
}

@media (max-width: 430px) {
    .carousel-wrapper {
        min-height: 220px;
        aspect-ratio: auto;
    }

    .featured-course-hover-overlay {
        background: rgba(11, 16, 34, 0.35);
    }

    .featured-course-hover-btn {
        opacity: 1;
        transform: none;
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }

    .carousel-dots {
        gap: 0.4rem;
        margin-top: 1rem;
    }
}

/* ─── Footer ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem;
    }

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

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ─── Theme Toggle ──────────────────────────────────────── */
@media (max-width: 480px) {
    .theme-toggle {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
        font-size: 1rem;
    }
}

/* ─── Page Hero Banner (About / Courses / Contact etc.) ─── */
@media (max-width: 768px) {
    .page-hero {
        padding: 110px 0 60px;
    }

    .page-hero-title {
        font-size: 2rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 430px) {
    .page-hero {
        padding: 100px 0 50px;
    }

    .page-hero-title {
        font-size: 1.65rem;
    }
}

/* ─── About Page (Detailed) ─────────────────────────────── */
@media (max-width: 768px) {
    .about-detailed {
        padding: 3rem 0;
    }

    .about-detailed .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-section {
        padding: 3rem 0;
    }

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

@media (max-width: 480px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Courses Page ──────────────────────────────────────── */
@media (max-width: 768px) {
    .courses-page-container {
        padding: 2rem 0;
    }

    .category-tiles-wrapper {
        margin-bottom: 1rem;
    }

    .category-tiles-section {
        min-height: 160px;
    }

    .category-tiles-wrapper .category-scroll-indicator {
        height: 140px;
        max-height: 140px;
    }

    .category-tile {
        min-width: 160px;
        height: 140px;
    }

    .courses-grid-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Reset the desktop 80% left-push so the filter sits inline */
    .filter-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .age-filter-section {
        padding-left: 0;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        margin-bottom: 0.75rem;
    }

    .age-filter-dropdown {
        max-width: 220px;
        width: auto;
        position: relative;
    }

    .age-filter-button {
        width: auto;
        white-space: nowrap;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
    }

    .age-filter-menu {
        width: 220px;
        left: auto;
        right: 0;
    }
}


@media (max-width: 430px) {
    .category-tiles-section {
        min-height: 130px;
    }

    .category-tiles-wrapper .category-scroll-indicator {
        height: 110px;
        max-height: 110px;
    }

    .category-tile {
        min-width: 130px;
        height: 110px;
    }

    .category-tile-overlay h3 {
        font-size: 0.75rem;
    }
}

/* ─── Course Advantages (Courses Page) ─────────────────── */
@media (max-width: 768px) {
    .course-advantages {
        padding: 4rem 0;
    }
}

/* ─── Course Detail Page ────────────────────────────────── */
@media (max-width: 768px) {
    .course-detail-hero {
        padding: 2rem 0;
    }

    .course-detail-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-detail-content {
        padding: 1rem 0 3rem 0;
    }

    .course-image-container {
        height: 240px;
    }

    .course-name-hero {
        font-size: 1.6rem;
    }

    .meta-item-hero {
        font-size: 0.9rem;
    }

    .course-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .course-detail-main,
    .course-detail-sidebar {
        display: contents;
    }

    .course-info-cards {
        order: 1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .course-info-cards .info-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .course-info-cards .info-card:first-child {
        grid-column: 1 / -1;
    }

    .info-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .info-card-content label {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .info-card-content p {
        font-size: 0.95rem;
        line-height: 1.3;
        white-space: pre-line;
    }

    .enrollment-card {
        order: 2;
        position: static;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .course-description-section {
        order: 3;
    }

    .course-highlights-section {
        order: 4;
    }

    .course-benefits-section {
        order: 5;
    }

    .course-modules-section {
        order: 6;
    }

    .contact-info-section {
        order: 7;
    }

    .related-courses-section {
        padding: 3rem 0;
    }

    .related-courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 480px) {
    .course-image-container {
        height: 200px;
    }

    .course-name-hero {
        font-size: 1.4rem;
    }

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

    .course-description-section,
    .course-highlights-section,
    .contact-info-section,
    .course-benefits-section,
    .course-modules-section,
    .course-pricing-section {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .enrollment-card {
        padding: 1.25rem;
    }

    .breadcrumb-section .container {
        font-size: 0.8rem;
    }
}

/* ─── Contact Page ──────────────────────────────────────── */
@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 0;
    }

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

    .contact-form {
        padding: 1.5rem;
    }

    .contact-methods {
        gap: 1rem;
    }

    .faq-section {
        padding: 3rem 0;
    }
}

/* ─── Enrollment Page ───────────────────────────────────── */
@media (max-width: 768px) {
    .enrollment-section {
        padding: 5rem 0 3rem;
    }

    .enrollment-header h1 {
        font-size: 1.75rem;
    }

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

    .enrollment-cart {
        position: static;
        padding: 1.5rem;
    }

    .enrollment-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .enrollment-section {
        padding: 4.5rem 0 2rem;
    }

    .enrollment-header h1 {
        font-size: 1.5rem;
    }

    .enrollment-cart,
    .enrollment-form-container {
        padding: 1.25rem;
        border-radius: 8px;
    }

    .cart-item {
        padding: 0.75rem;
    }

    .btn-submit {
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
    }
}

/* ─── Enrollment Modal ──────────────────────────────────── */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        width: 100%;
    }

    .modal-large {
        width: 100%;
        max-width: 100%;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .courses-search {
        flex-direction: column;
        gap: 0.75rem;
    }

    .courses-search select {
        min-width: 100%;
    }

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

@media (max-width: 480px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .success-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .success-actions .btn-primary,
    .success-actions .btn-secondary {
        width: 100%;
    }
}

/* ─── Resources Page ────────────────────────────────────── */
@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .resources-overview,
    .resource-types {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Dark theme nav menu mobile ───────────────────────── */
@media (max-width: 768px) {
    html.dark-theme .nav-menu {
        background: rgba(14, 21, 48, 0.98);
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    html.dark-theme .nav-menu .nav-link {
        border-bottom-color: rgba(255, 255, 255, 0.05);
        color: #94a8cc;
    }

    html.dark-theme .nav-menu .nav-link:hover {
        color: #e8b923;
    }
}

/* ─── iPhone landscape / small tablets ─────────────────── */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image {
        max-width: 100%;
    }

    .nav-menu {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }
}

/* ─── Container padding on very small screens ───────────── */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .enrollment-cart,
    .enrollment-form-container {
        padding: 1rem;
    }

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