*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #077E86;
    --primary-dark: #2A7970;
    --primary-light: #0a9da6;
    --secondary: #CF5E1C;
    --secondary-bright: #FD6406;
    --secondary-light: #FDF0E6;
    --accent: #172566;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-400: #A3A3A3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --font-heading: Arial, sans-serif;
    --font-body: Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

html[data-theme="dark"] {
    --white: #0b1220;
    --black: #f8fafc;
    --gray-50: #0f172a;
    --gray-100: #111827;
    --gray-200: #1f2937;
    --gray-300: #334155;
    --gray-400: #94a3b8;
    --gray-500: #cbd5e1;
    --gray-600: #e2e8f0;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #020617;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.28);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.32);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at top, rgba(7, 126, 134, 0.16), transparent 28%),
        linear-gradient(180deg, #08111f 0%, #0b1220 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* ===================== TOP HEADER ===================== */
.top-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(7, 126, 134, 0.98);
    color: var(--white);
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    transition: transform 0.35s ease;
}

.top-header.hide {
    transform: translateY(-100%);
}

.top-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.top-header span { display: inline-flex; align-items: center; }

/* ===================== NAVBAR ===================== */
.navbar {
    position: fixed;
    top: 38px; left: 0; right: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 28px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar.scrolled {
    top: 12px;
    right: auto;
    left: 50%;
    width: calc(100% - 48px);
    max-width: 1200px;
    padding: 6px 24px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
}

html[data-theme="dark"] .navbar.scrolled {
    background: rgba(11, 18, 32, 0.92);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .nav-link {
    color: rgba(241, 245, 249, 0.88);
}

html[data-theme="dark"] .card-link,
html[data-theme="dark"] .course-card .card-content h3,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4 {
    color: var(--gray-800);
}

html[data-theme="dark"] .course-card,
html[data-theme="dark"] .mission-card,
html[data-theme="dark"] .contact-form-wrapper,
html[data-theme="dark"] .contact-info-card,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .media-item,
html[data-theme="dark"] .about-image,
html[data-theme="dark"] .accent-box {
    background: rgba(17, 24, 39, 0.92);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .footer {
    background: #020617;
    color: var(--gray-400);
    border-top-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .footer-grid {
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .footer-brand .nav-logo,
html[data-theme="dark"] .footer-col h4 {
    color: #f8fafc;
}

html[data-theme="dark"] .footer-social a {
    border-color: rgba(255,255,255,0.15);
}

html[data-theme="dark"] .top-header {
    background: rgba(8, 43, 49, 0.96);
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background: #0f172a;
    color: #e5e7eb;
    border-color: #334155;
}

html[data-theme="dark"] .page-banner .hero-overlay,
html[data-theme="dark"] .hero-overlay {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.3) 0%, rgba(2, 6, 23, 0.72) 100%);
}

.navbar.top-hidden {
    top: 12px;
}

.navbar.scrolled.top-hidden {
    top: 0;
    transform: translateX(-50%);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
    transition: color 0.4s ease;
    white-space: nowrap;
    z-index: 10;
}

.navbar.scrolled .nav-logo { color: var(--primary); }
.navbar.menu-open .nav-logo { color: var(--primary); }
.nav-logo img {
    height: 34px;
    max-width: 140px;
    object-fit: contain;
    width: auto;
    margin: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.nav-logo span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-cta {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    margin-left: 8px;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .nav-link { color: var(--gray-700); }
.navbar.scrolled .nav-link:hover { color: var(--primary); background: var(--secondary-light); }

.nav-link svg {
    width: 14px; height: 14px;
    transition: transform 0.3s ease;
}

.nav-item.open .nav-link svg { transform: rotate(180deg); }

.nav-cta {
    background: var(--secondary);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s ease;
    margin-left: 8px;
}
.nav-cta:hover {
    background: var(--secondary-bright);
    transform: scale(1.03);
}

/* ---- Courses Dropdown (Multi-level) ---- */
.courses-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.open .courses-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-list {
    list-style: none;
}

.dropdown-item {
    position: relative;
}

.dropdown-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-item > a:hover {
    color: var(--primary);
    background: var(--gray-50);
}

.dropdown-item.has-submenu > a .menu-arrow {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
    transition: transform 0.2s ease;
}

.dropdown-item:hover > a .menu-arrow {
    color: var(--primary);
}

/* Submenu */
.dropdown-item .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0,0,0,0.14);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.dropdown-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-item .submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-item .submenu li a:hover {
    color: var(--primary);
    background: var(--gray-50);
}

/* Backward compatibility */
.dropdown-list li a {
    color: var(--primary);
    transform: translateX(3px);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 4px 16px;
}

/* ---- Mobile Menu ---- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
    padding: 8px;
}
.hamburger span {
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.navbar.scrolled .hamburger span { background: var(--gray-800); }
.navbar.menu-open .hamburger span { background: var(--gray-800); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    padding: 100px 32px 32px;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-menu.active { display: flex; opacity: 1; }

.mobile-menu .mobile-link {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gray-900);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s ease;
}
.mobile-menu .mobile-link:hover { color: var(--primary); }
.mobile-menu .mobile-link img {
    height: 32px;
    max-width: 140px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}
.mobile-menu .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu .mobile-submenu {
    padding-left: 20px;
    display: none;
}
.mobile-menu .mobile-submenu.active { display: block; }
.mobile-menu .mobile-submenu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-600);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
}
.mobile-menu .mobile-submenu a:hover { color: var(--primary); }
.mobile-menu .mobile-submenu a .dd-sub { font-size: 0.8rem; color: var(--gray-400); }

.mobile-menu .mobile-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 0 6px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 4px;
}

.mobile-menu .mobile-sub-link {
    padding-left: 16px !important;
}

.mobile-menu .mobile-cta {
    margin-top: 24px;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
}

/* ===================== HERO CAROUSEL ===================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 10s ease-out;
}
.hero-slide.active img {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 126, 134, 0.5),
        rgba(23, 37, 102, 0.65)
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    opacity: 1;
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-content.fade-out {
    opacity: 0;
    transform: translateY(18px);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.3s forwards;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.5s forwards;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.9s forwards;
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0;
}
.hero-dot.active {
    background: var(--white);
    border-color: var(--white);
    transform: scale(1.15);
}
.hero-dot:hover {
    border-color: var(--white);
}

/* Hero Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow.prev { left: 32px; }
.hero-arrow.next { right: 32px; }

/* ===================== BANNER (Sub-pages) ===================== */
.page-banner {
    position: relative;
    height: 45vh;
    min-height: 320px;
    overflow: hidden;
}
.page-banner .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.page-banner .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.page-banner .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 126, 134, 0.6),
        rgba(23, 37, 102, 0.75)
    );
    z-index: 1;
}

.page-banner .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 0 24px;
    margin: 0 auto;
    max-width: 900px;
}
.page-banner .hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.page-banner .hero-content p {
    animation-delay: 0.7s;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--secondary-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(207, 94, 28, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--accent);
    color: var(--white);
}
.btn-dark:hover {
    background: #1e3078;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 37, 102, 0.35);
}

.btn svg { width: 16px; height: 16px; }

/* ===================== SECTIONS ===================== */
section {
    padding: 80px 0;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-light);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-label svg { width: 14px; height: 14px; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--gray-900);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.7;
}

/* ===================== ABOUT SNIPPET ===================== */
.about-snippet { background: var(--gray-50); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.about-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.about-image:hover img { transform: scale(1.04); }

.about-image .accent-box {
    position: absolute;
    bottom: -16px; right: -16px;
    width: 140px; height: 140px;
    background: var(--secondary);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}
.accent-box .number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1;
}
.accent-box .label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.about-text .features-list {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.feature-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--secondary-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}
.feature-item p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ===================== COURSES OVERVIEW ===================== */
.courses-section { background: var(--white); }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(7, 126, 134, 0.12);
    border-color: var(--primary);
}

.course-card .card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.course-card .card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.course-card:hover .card-image img { transform: scale(1.08); }

.course-card .card-image .card-tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-card .card-content { padding: 24px; }
.course-card .card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.course-card .card-content .card-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    margin-bottom: 20px;
}
.course-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--gray-600);
}
.course-meta-item svg { width: 16px; height: 16px; color: var(--primary); }

.course-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}
.course-price span {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--gray-400);
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}
.card-link:hover { gap: 10px; }
.card-link svg { width: 16px; height: 16px; }

/* ===================== GALLERY / MEDIA ===================== */
.media-section {
    background: var(--gray-50);
    color: var(--gray-800);
    padding: 100px 0;
}

.media-section .section-label {
    background: var(--secondary-light);
    color: var(--secondary);
}
.media-section .section-title { color: var(--gray-900); }
.media-section .section-desc { color: var(--gray-600); }

.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 220px 220px;
    gap: 16px;
    margin-top: 48px;
}

.media-item {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}
.media-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.media-item:hover img { transform: scale(1.06); }
.media-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.media-item .media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(23, 37, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.media-item:hover .media-overlay { opacity: 1; }

.play-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.play-btn:hover { transform: scale(1.1); }
.play-btn svg { width: 22px; height: 22px; color: var(--primary); margin-left: 3px; }

html[data-theme="dark"] .media-section {
    background: var(--gray-900);
    color: var(--white);
}

html[data-theme="dark"] .media-section .section-label {
    background: rgba(207, 94, 28, 0.15) !important;
    color: var(--secondary-bright) !important;
}

html[data-theme="dark"] .media-section .section-title {
    color: var(--white) !important;
}

html[data-theme="dark"] .media-section .section-desc {
    color: var(--gray-400) !important;
}

html[data-theme="dark"] .media-item .media-overlay {
    background: rgba(23, 37, 102, 0.3);
}

html[data-theme="dark"] .hero-content,
html[data-theme="dark"] .page-banner .hero-content,
html[data-theme="dark"] .cta-section {
    color: #f8fafc;
}

html[data-theme="dark"] .hero-content h1,
html[data-theme="dark"] .hero-content p,
html[data-theme="dark"] .hero-badge,
html[data-theme="dark"] .page-banner .hero-content h1,
html[data-theme="dark"] .page-banner .hero-content p,
html[data-theme="dark"] .cta-section h2,
html[data-theme="dark"] .cta-section p {
    color: #f8fafc;
}

html[data-theme="dark"] .hero-content p,
html[data-theme="dark"] .page-banner .hero-content p,
html[data-theme="dark"] .cta-section p {
    opacity: 0.9;
}

html[data-theme="dark"] .hero-dot.active,
html[data-theme="dark"] .hero-dot:hover {
    border-color: #f8fafc;
}

html[data-theme="dark"] .hero-dot.active {
    background: #f8fafc;
}

html[data-theme="dark"] .btn-outline {
    color: #f8fafc;
    border-color: rgba(248, 250, 252, 0.6);
}

html[data-theme="dark"] .btn-outline:hover {
    background: rgba(248, 250, 252, 0.14);
    border-color: #f8fafc;
}

/* Fix visibility issues in dark mode */
html[data-theme="dark"] .top-header,
html[data-theme="dark"] .top-header-inner {
    color: #f8fafc;
}

html[data-theme="dark"] .top-header a {
    color: #f8fafc;
}

html[data-theme="dark"] .section-label,
html[data-theme="dark"] .section-label svg {
    color: var(--secondary);
}

html[data-theme="dark"] .section-desc {
    color: var(--gray-400);
}

html[data-theme="dark"] .hero-content,
html[data-theme="dark"] .page-banner .hero-content {
    color: #f8fafc;
}

html[data-theme="dark"] .hero-content h1,
html[data-theme="dark"] .page-banner .hero-content h1 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

html[data-theme="dark"] .hero-content p,
html[data-theme="dark"] .page-banner .hero-content p {
    color: #f0f0f0;
}

html[data-theme="dark"] .hero-badge {
    background: var(--secondary);
    color: #ffffff;
}

html[data-theme="dark"] .carousel-arrow,
html[data-theme="dark"] .hero-carousel .carousel-arrow,
html[data-theme="dark"] .carousel-btn,
html[data-theme="dark"] .slick-arrow {
    color: #ffffff !important;
    background: rgba(0,0,0,0.5) !important;
    border-color: rgba(255,255,255,0.3) !important;
}

html[data-theme="dark"] .carousel-arrow:hover,
html[data-theme="dark"] .hero-carousel .carousel-arrow:hover,
html[data-theme="dark"] .carousel-btn:hover,
html[data-theme="dark"] .slick-arrow:hover {
    background: rgba(0,0,0,0.8) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .hero-dot {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.6);
}

html[data-theme="dark"] .hero-dot.active {
    background: #ffffff;
    border-color: #ffffff;
}

html[data-theme="dark"] .btn {
    color: #ffffff;
}

html[data-theme="dark"] .btn-primary {
    background: var(--primary);
    color: #ffffff;
}

html[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-dark);
}

html[data-theme="dark"] .course-meta-item,
html[data-theme="dark"] .course-meta-item svg {
    color: var(--gray-400);
}

html[data-theme="dark"] .card-tag {
    background: var(--secondary);
    color: #ffffff;
}

html[data-theme="dark"] .course-price {
    color: var(--primary);
}

html[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #065a63 0%, #083544 100%);
    color: #f8fafc;
}

html[data-theme="dark"] .cta-section h2,
html[data-theme="dark"] .cta-section p {
    color: #f8fafc;
}

html[data-theme="dark"] .navbar .hamburger span {
    background: #f8fafc;
}

html[data-theme="dark"] .navbar.menu-open .hamburger span {
    background: var(--gray-800);
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .theme-toggle-btn {
    color: #f8fafc;
}

html[data-theme="dark"] .nav-link {
    color: var(--gray-700);
}

html[data-theme="dark"] .nav-item.open > .nav-link,
html[data-theme="dark"] .nav-link:hover {
    color: var(--primary);
}

html[data-theme="dark"] .dropdown-item > a .menu-arrow,
html[data-theme="dark"] .courses-dropdown .dd-arrow {
    color: var(--gray-400);
}

html[data-theme="dark"] .dropdown-item:hover > a .menu-arrow {
    color: var(--primary);
}

html[data-theme="dark"] .hero-arrow {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.4);
    color: #ffffff;
}

html[data-theme="dark"] .hero-arrow:hover {
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.7);
}

/* ===================== STATS ===================== */
.stats-section {
    background: var(--primary);
    padding: 60px 0;
}

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

.stat-item { color: var(--white); }
.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials-section { background: var(--gray-50); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}
.testimonial-stars svg { width: 16px; height: 16px; fill: #FBBF24; color: #FBBF24; }

.testimonial-text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-200);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
}
.testimonial-role {
    font-size: 0.78rem;
    color: var(--gray-400);
}

/* ===================== CTA ===================== */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #1e3078 50%, var(--primary-dark) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}
.cta-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto 36px;
}

/* ===================== FOOTER ===================== */
.footer {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 64px 0 0;
    border-top: 1px solid var(--gray-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--gray-200);
}

.footer-brand .nav-logo {
    color: var(--gray-900);
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-brand .nav-logo img {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    padding: 6px 10px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }

.footer-social {
    display: flex;
    gap: 10px;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--gray-900);
}
.footer-social a svg { width: 16px; height: 16px; }

.footer-col h4 {
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
    font-size: 0.88rem;
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--secondary-bright); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-contact-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item p { font-size: 0.85rem; line-height: 1.6; }

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.78rem;
    opacity: 0.6;
}

.footer-credentials {
    font-size: 0.72rem;
    opacity: 0.5;
    text-align: center;
    padding: 0 0 24px;
}

/* ===================== ABOUT PAGE ===================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 48px;
}

.mission-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s ease;
}
.mission-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.mission-card .mc-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.mission-card .mc-icon svg { width: 24px; height: 20px; }
.mission-card .mc-icon.teal { background: rgba(7,126,134,0.1); color: var(--primary); }
.mission-card .mc-icon.orange { background: var(--secondary-light); color: var(--secondary); }
.mission-card .mc-icon.blue { background: rgba(23,37,102,0.1); color: var(--accent); }
.mission-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.mission-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* Team */
.team-section { background: var(--gray-50); }
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.team-card { text-align: center; }
.team-card .team-photo {
    width: 140px; height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}
.team-card .team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 0.95rem; color: var(--gray-900); margin-bottom: 4px; }
.team-card p { font-size: 0.82rem; color: var(--gray-500); }

/* ===================== CONTACT PAGE ===================== */
.contact-section { padding: 80px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    margin-top: 48px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}
.contact-info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.contact-info-card .ci-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-card .ci-icon svg { width: 22px; height: 22px; }
.contact-info-card h4 { font-size: 0.95rem; color: var(--gray-900); margin-bottom: 4px; }
.contact-info-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }

.contact-form-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-800);
    transition: border-color 0.2s ease;
    background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 126, 134, 0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.form-submit:hover {
    background: var(--secondary-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(207, 94, 28, 0.3);
}

.map-section {
    height: 350px;
    background: var(--gray-100);
}
.map-section iframe {
    width: 100%; height: 100%;
    border: none;
    filter: grayscale(0.3);
}

/* ===================== COURSE DETAIL PAGE ===================== */
.course-detail-section { padding: 80px 0; }

.course-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.course-detail-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    margin-top: 40px;
}
.course-detail-content h2:first-child { margin-top: 0; }

.course-detail-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.course-detail-content ul {
    margin-bottom: 16px;
    padding-left: 0;
}
.course-detail-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--gray-600);
}
.course-detail-content ul li svg {
    width: 18px; height: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

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

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sidebar-card .sidebar-header {
    background: var(--primary);
    padding: 24px;
    color: var(--white);
    text-align: center;
}
.sidebar-card .sidebar-header .price {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 4px;
}
.sidebar-card .sidebar-header .price-label {
    font-size: 0.82rem;
    opacity: 0.8;
}

.sidebar-details { padding: 24px; }
.sidebar-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9rem;
}
.sidebar-detail-item:last-child { border-bottom: none; }
.sidebar-detail-item .label { color: var(--gray-500); }
.sidebar-detail-item .value { font-weight: 600; color: var(--gray-900); }

.sidebar-card .sidebar-cta {
    display: block;
    margin: 0 24px 24px;
    padding: 14px;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}
.sidebar-card .sidebar-cta:hover {
    background: var(--secondary-bright);
    transform: translateY(-2px);
}

.curriculum-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.curriculum-table th,
.curriculum-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--gray-200);
}
.curriculum-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.curriculum-table td { color: var(--gray-600); }

/* ===================== VIDEO MODAL ===================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.video-modal.active { opacity: 1; visibility: visible; }
.video-modal .modal-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.video-modal .modal-close:hover { background: rgba(255,255,255,0.3); }
.video-modal .modal-close svg { width: 24px; height: 20px; }
.video-modal .modal-content {
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1rem;
}

/* ===================== SCROLL REVEAL ===================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }

.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .media-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 180px 180px 180px; }
    .media-item.large { grid-column: span 2; grid-row: span 1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .about-content { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .course-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .course-sidebar { position: static; top: auto; }
    .sidebar-card { width: 100%; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 18px 24px; }
    .navbar.scrolled { padding: 10px 20px; width: calc(100% - 32px); max-width: none; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero { min-height: 500px; }
    .hero-arrow { display: none; }
    .hero-dots { bottom: 24px; }
    section { padding: 60px 0; }

    .courses-grid { grid-template-columns: 1fr; }
    .media-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 160px 160px 160px;
    }
    .course-detail-section { padding: 50px 0; }
    .course-detail-grid { gap: 24px; }
    .sidebar-card .sidebar-header { padding: 18px; }
    .sidebar-details { padding: 18px; }
    .sidebar-card .sidebar-cta { margin: 0 18px 18px; }
    .curriculum-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .curriculum-table thead,
    .curriculum-table tbody,
    .curriculum-table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    .curriculum-table th,
    .curriculum-table td {
        padding: 12px 14px;
        white-space: normal;
        word-break: break-word;
    }
    .course-detail-content ul li { flex-wrap: wrap; }
    .media-item.large { grid-column: span 2; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .courses-dropdown {
        position: fixed;
        top: 70px; left: 16px; right: 16px;
        width: auto;
        min-width: auto;
        transform: none;
        border-radius: var(--radius-md);
    }
    .nav-item.open .courses-dropdown { transform: none; }
    .hidden-mobile { display: none !important; }
}

@media (max-width: 480px) {
    .media-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .media-item.large { grid-column: span 1; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    .curriculum-table th,
    .curriculum-table td {
        font-size: 0.82rem;
        padding: 10px 12px;
    }
    .curriculum-table {
        margin-bottom: 16px;
    }
}

/* ===================== REDUCED MOTION ===================== */
/* ===================== DARK MODE ADDITIONS ===================== */
html[data-theme="dark"] .mission-card,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .accent-box,
html[data-theme="dark"] .sidebar-card {
    background: var(--gray-100);
    color: var(--gray-600);
}
html[data-theme="dark"] .mission-card h3,
html[data-theme="dark"] .team-card h3,
html[data-theme="dark"] .testimonial-card h3,
html[data-theme="dark"] .accent-box h3,
html[data-theme="dark"] .sidebar-card h3 {
    color: var(--gray-700);
}
html[data-theme="dark"] .mission-card p,
html[data-theme="dark"] .team-card p,
html[data-theme="dark"] .testimonial-card p,
html[data-theme="dark"] .accent-box p,
html[data-theme="dark"] .sidebar-card p {
    color: var(--gray-500);
}
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--gray-600);
}
html[data-theme="dark"] .form-control::placeholder {
    color: var(--gray-400);
}
html[data-theme="dark"] .form-label {
    color: var(--gray-600);
}
html[data-theme="dark"] .section-label {
    color: var(--primary);
}
html[data-theme="dark"] .section-title {
    color: var(--gray-700);
}
html[data-theme="dark"] .section-desc {
    color: var(--gray-500);
}
html[data-theme="dark"] .page-banner h1,
html[data-theme="dark"] .hero-content h1 {
    color: var(--white);
}
html[data-theme="dark"] .page-banner p,
html[data-theme="dark"] .hero-content p {
    color: var(--gray-400);
}
html[data-theme="dark"] .sidebar-header {
    color: var(--white);
}
html[data-theme="dark"] .course-detail-table {
    background: var(--gray-100);
    border-color: var(--gray-300);
}
html[data-theme="dark"] .course-detail-table td,
html[data-theme="dark"] .course-detail-table th {
    border-color: var(--gray-300);
    color: var(--gray-600);
}
html[data-theme="dark"] .course-detail-table td:first-child {
    color: var(--gray-500);
}
html[data-theme="dark"] .info-list li {
    color: var(--gray-500);
}
html[data-theme="dark"] .info-list strong {
    color: var(--gray-600);
}
html[data-theme="dark"] .cta-section h2 {
    color: var(--white);
}
html[data-theme="dark"] .cta-section p {
    color: var(--gray-400);
}
html[data-theme="dark"] .contact-form-wrapper {
    background: var(--gray-100);
}
html[data-theme="dark"] .contact-info-card {
    background: var(--gray-100);
    color: var(--gray-600);
}
html[data-theme="dark"] .alert-success {
    background: var(--primary-dark);
    color: var(--white);
}
html[data-theme="dark"] .table-section {
    background: var(--gray-100);
}
html[data-theme="dark"] .table-section th {
    color: var(--gray-600);
}
html[data-theme="dark"] .table-section td {
    color: var(--gray-500);
}
html[data-theme="dark"] .media-section h2.section-title {
    color: #ffffff !important;
}
html[data-theme="dark"] .media-section p.section-desc {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] .media-section .section-label {
    color: #FD6406 !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left, .reveal-right { opacity: 1; transform: none; }
    .hero-slide img { transform: scale(1) !important; }
    .hero-slide { transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* ===================== UTILITY ===================== */
.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }
