/* ===== CSS CUSTOM PROPERTIES (Design System) ===== */
:root {
    /* Brand Colors — extracted from the KIS logo */
    --navy: #1e2a4a;
    --navy-deep: #141d35;
    --navy-light: #2a3a5e;
    --gold: #f0b429;
    --gold-light: #f7d070;
    --gold-dark: #d99e1e;
    --gold-text: #986800;
    --gold-glow: rgba(240, 180, 41, 0.25);

    /* Neutral Palette */
    --white: #ffffff;
    --off-white: #f8f9fc;
    --gray-50: #f1f3f8;
    --gray-100: #e2e6ee;
    --gray-200: #c5cbd9;
    --gray-300: #a0a8be;
    --gray-400: #7b85a0;
    --gray-500: #5a6480;
    --gray-600: #424c65;
    --gray-700: #2e354a;
    --gray-800: #1a2035;
    --gray-900: #0d1220;

    /* Accent Colors */
    --cambridge-blue: #0071bc;
    --cambridge-light: #e8f4fd;
    --pearson-purple: #7b2d8e;
    --pearson-light: #f3e8f7;
    --success: #22c55e;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-py: clamp(4rem, 8vw, 7rem);
    --container-px: clamp(1rem, 4vw, 2rem);
    --container-max: 1200px;

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-gold: 0 8px 32px rgba(240, 180, 41, 0.25);
    --shadow-card: 0 4px 24px rgba(30, 42, 74, 0.06);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--gold-text);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy-deep);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

#main-content:focus {
    outline: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ===== UTILITY CLASSES ===== */
.highlight {
    color: var(--gold-text);
    position: relative;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(20, 29, 53, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.nav-logo-img {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.nav-sub {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

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

.nav-link.active {
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
}

/* Hamburger */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
    position: absolute;
    left: 10px;
}

.hamburger {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::before {
    content: '';
    top: -7px;
}

.hamburger::after {
    content: '';
    top: 7px;
}

.nav-toggle.open .hamburger {
    background: transparent;
}

.nav-toggle.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(14, 18, 32, 0.85) 0%,
        rgba(30, 42, 74, 0.7) 50%,
        rgba(14, 18, 32, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem var(--container-px);
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(240, 180, 41, 0.15);
    border: 1px solid rgba(240, 180, 41, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease forwards;
}

.hero-badge i {
    width: 18px;
    height: 18px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title-line {
    display: block;
}

.hero-title-line.accent {
    color: var(--gold);
    font-size: 0.7em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn i {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(240, 180, 41, 0.35);
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(240, 180, 41, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

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

.hero-stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-slider-dots {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.15rem;
    z-index: 3;
}

.hero-dot {
    position: relative;
    width: 44px;
    height: 44px;
    background: transparent;
    cursor: pointer;
}

.hero-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: all var(--transition-fast);
}

.hero-dot.active::before {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(240, 180, 41, 0.5);
    transform: translate(-50%, -50%) scale(1.2);
}

.hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

.hero-scroll i {
    width: 28px;
    height: 28px;
}

/* ===== SECTION GENERAL ===== */
.section {
    padding: var(--section-py) 0;
}

.curriculum,
.contact {
    background: var(--off-white);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-text);
    margin-bottom: 0.75rem;
}

.section-tag i {
    width: 16px;
    height: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

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

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

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(240, 180, 41, 0.12), rgba(240, 180, 41, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--gold-text);
}

.about-icon i {
    width: 26px;
    height: 26px;
}

.about-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-card p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== CURRICULUM SECTION ===== */
.curriculum-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.curriculum-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all var(--transition-medium);
}

.curriculum-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.curriculum-card-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.curriculum-card:hover .curriculum-card-glow {
    opacity: 1;
}

.cambridge .curriculum-card-glow {
    background: radial-gradient(circle, rgba(0, 113, 188, 0.06), transparent 60%);
}

.pearson .curriculum-card-glow {
    background: radial-gradient(circle, rgba(123, 45, 142, 0.06), transparent 60%);
}

.curriculum-badge {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.cambridge .curriculum-badge {
    background: linear-gradient(135deg, var(--cambridge-light), rgba(0, 113, 188, 0.15));
    color: var(--cambridge-blue);
}

.pearson .curriculum-badge {
    background: linear-gradient(135deg, var(--pearson-light), rgba(123, 45, 142, 0.15));
    color: var(--pearson-purple);
}

.curriculum-badge i {
    width: 28px;
    height: 28px;
}

.curriculum-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.curriculum-level {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    display: inline-block;
    margin-bottom: 1.25rem;
}

.cambridge .curriculum-level {
    background: var(--cambridge-light);
    color: var(--cambridge-blue);
}

.pearson .curriculum-level {
    background: var(--pearson-light);
    color: var(--pearson-purple);
}

.curriculum-body p {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.curriculum-features {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.curriculum-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
}

.curriculum-features li i {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}

.curriculum-grades {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.grade-pill {
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cambridge .grade-pill {
    background: var(--cambridge-light);
    color: var(--cambridge-blue);
}

.pearson .grade-pill {
    background: var(--pearson-light);
    color: var(--pearson-purple);
}

/* ===== GALLERY SECTION ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 18, 32, 0.75), transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-medium);
    color: var(--white);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.gallery-overlay span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 14, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-medium), visibility 0s linear 0.4s;
    backdrop-filter: blur(20px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2001;
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    object-fit: contain;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== STAFF SECTION ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1180px;
    margin: 0 auto;
}

.staff-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.staff-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-medium);
}

.staff-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.staff-card:hover::after {
    transform: scaleX(1);
}

.staff-avatar {
    margin-bottom: 1.5rem;
}

.staff-avatar-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(30, 42, 74, 0.2);
}

.staff-avatar-placeholder i {
    width: 48px;
    height: 48px;
    color: var(--gold);
}

.staff-avatar-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 3px solid var(--gold);
    box-shadow: 0 8px 24px rgba(30, 42, 74, 0.2);
}

.staff-info h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.staff-role {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-text);
    background: rgba(240, 180, 41, 0.1);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.staff-bio {
    font-size: 1rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.staff-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-light);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    min-height: 44px;
    border-radius: var(--radius-full);
    background: var(--gray-50);
    transition: all var(--transition-fast);
    overflow-wrap: anywhere;
}

.staff-email:hover {
    background: var(--navy);
    color: var(--gold);
}

.staff-email i {
    width: 16px;
    height: 16px;
}

/* ===== CONTACT SECTION ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--gray-100);
    transition: all var(--transition-medium);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--gold);
}

.contact-card-icon i {
    width: 22px;
    height: 22px;
}

.contact-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.contact-detail {
    display: block;
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    transition: color var(--transition-fast);
    overflow-wrap: anywhere;
}

a.contact-detail:hover {
    color: var(--gold-text);
}

.map-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--gray-100);
    background: var(--gray-50);
    display: flex;
    flex-direction: column;
}

.interactive-map {
    width: 100%;
    height: 480px;
    background: var(--gray-50);
    border: 0;
    display: block;
}

.map-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.4rem;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.map-location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy);
    font-size: 0.88rem;
    font-weight: 500;
}

.map-location-info i {
    width: 18px;
    height: 18px;
    color: var(--gold-text);
    flex-shrink: 0;
}

.map-direct-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--navy);
    color: var(--gold);
    padding: 0.5rem 1.15rem;
    min-height: 44px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.map-direct-link:hover {
    background: var(--navy-light);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 42, 74, 0.2);
}

.map-direct-link i {
    width: 14px;
    height: 14px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-deep);
    padding: 4rem 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links-col li {
    margin-bottom: 0.6rem;
}

.footer-links-col a {
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--gray-300);
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .interactive-map {
        height: 350px;
    }

    .gallery-item.large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--navy-deep);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity var(--transition-medium), transform var(--transition-medium), visibility 0s linear 0.4s;
        overflow-y: auto;
        padding: 5rem 1rem 2rem;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition-delay: 0s;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.75rem 2rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Hero mobile */
    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-num {
        font-size: 2rem;
    }

    /* Curriculum */
    .curriculum-cards {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Staff */
    .staff-grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .interactive-map {
        height: 300px;
    }

    .map-footer-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .map-direct-link {
        width: 100%;
        justify-content: center;
    }

    a.contact-detail {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-links-col a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-inline: 0.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title-line.accent {
        font-size: 0.65em;
    }

    .hero-stats {
        gap: 1rem;
    }

    .hero-stat-num {
        font-size: 1.7rem;
    }

    .hero-stat-label {
        font-size: 0.7rem;
    }

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

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

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

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

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 0.75rem;
    }

    .lightbox-next {
        right: 0.75rem;
    }
}
