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

:root {
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    /* Core: blue, light blue, white */
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --light-blue: #60a5fa;
    --accent-blue: #2563eb;
    /* Extra accent: sky cyan — reads fresh next to blues, stays cool */
    --accent-sky: #0ea5e9;
    --accent-green: #10b981;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --bg-page: #f8fafc;
    --white: #ffffff;
    --border-subtle: rgba(37, 99, 235, 0.12);
    --shadow: 0 2px 12px rgba(30, 58, 138, 0.07);
    --shadow-lg: 0 16px 48px rgba(30, 58, 138, 0.12);
}

body {
    font-family: var(--font-body);
    line-height: 1.65;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .page-title, .section-title-large, .section-title,
.footer-conversation-title, .leadership-name, .about-mvv-card h3 {
    font-family: var(--font-display);
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border-subtle), 0 8px 32px rgba(26, 39, 68, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}

.header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}

.logo-bubble {
    background: var(--white);
    border-radius: 50%;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    position: relative;
}

.logo {
    height: 130px;
    width: auto;
    position: relative;
    z-index: 1;
}

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

.school-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.school-tagline {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.25s ease;
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.01em;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light-blue);
    border-radius: 1px;
    transition: width 0.28s ease;
}

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

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.language-selector {
    position: relative;
    display: inline-flex;
    background: var(--bg-light);
    border-radius: 25px;
    padding: 3px;
    gap: 0;
    border: 1px solid var(--border-subtle);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    min-width: 50px;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    color: var(--white);
}

.lang-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--primary-color);
    border-radius: 20px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.language-selector.lang-fr .lang-toggle-slider {
    transform: translateX(calc(100% + 3px));
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    background: #020617; /* fallback when video is unavailable */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(1.02) contrast(1.05) saturate(1.08);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            ellipse 70% 55% at 50% 55%,
            rgba(15, 23, 42, 0.32) 0%,
            rgba(15, 23, 42, 0.12) 55%,
            transparent 80%
        ),
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.08) 0%,
            rgba(15, 23, 42, 0.04) 40%,
            rgba(15, 23, 42, 0.18) 100%
        );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 2px 28px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 1s;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    font-style: normal;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 1px 18px rgba(0, 0, 0, 0.38);
    animation: fadeInUp 1s 0.2s both;
    letter-spacing: 0.02em;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s 0.6s both;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(26, 39, 68, 0.2);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26, 39, 68, 0.18);
}

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

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

/* Feature cards — base (homepage Student Experience uses .experience-pillar) */
.feature-card {
    background: var(--white);
    padding: 38px 28px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 165, 250, 0.35);
}

.feature-green {
    border-top: 3px solid var(--accent-green);
}

.feature-orange {
    border-top: 3px solid var(--accent-sky);
}

.feature-blue {
    border-top: 3px solid var(--light-blue);
}

.feature-icon {
    display: none;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

/* Homepage — Student Experience pillars */
.student-experience .experience-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 26px);
    margin-top: 12px;
}

.student-experience .experience-pillar.feature-card {
    text-align: left;
    padding: 26px 24px 30px;
    border-radius: 16px;
    border-top: none !important;
    border-left: 4px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
}

.student-experience .experience-pillar.feature-green {
    border-left-color: var(--accent-green);
}

.student-experience .experience-pillar.feature-orange {
    border-left-color: var(--accent-sky);
}

.student-experience .experience-pillar.feature-blue {
    border-left-color: var(--accent-blue);
}

.experience-pillar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 2px;
}

.experience-pillar-num {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
    font-weight: 600;
    color: rgba(30, 58, 138, 0.14);
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
}

.experience-pillar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        rgba(96, 165, 250, 0.14),
        rgba(14, 165, 233, 0.09)
    );
    color: var(--primary-color);
    flex-shrink: 0;
}

.student-experience .experience-pillar h3 {
    font-size: clamp(1.2rem, 2vw, 1.42rem);
    margin-bottom: 0;
}

.student-experience .experience-pillar p {
    margin: 0;
}

@media (max-width: 899px) {
    .student-experience .experience-pillars {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1.72fr);
    gap: clamp(36px, 5vw, 88px);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-summary .container {
    max-width: 1280px;
}

.about-text {
    padding-right: clamp(0px, 3vw, 36px);
}

.about-image-wrapper {
    padding-left: 0;
    align-self: stretch;
    position: relative;
}

@media (min-width: 1100px) {
    .about-summary .about-image-wrapper {
        margin-right: clamp(-12px, -2vw, -4px);
    }
}

.section-label {
    color: var(--accent-sky);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 14px;
    font-family: var(--font-body);
    margin-bottom: 12px;
}

.section-label::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-sky), transparent);
    vertical-align: middle;
    margin-right: 10px;
}

.section-title-large {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 22px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

.about-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.about-summary .about-buttons .btn-secondary {
    color: var(--primary-color);
    border-color: rgba(30, 58, 138, 0.28);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(30, 58, 138, 0.06);
}

.about-summary .about-buttons .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image-wrapper::after {
    content: "";
    position: absolute;
    left: -3px;
    top: 12%;
    bottom: 12%;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        var(--accent-sky) 0%,
        var(--secondary-color) 45%,
        var(--primary-color) 100%
    );
    opacity: 0.85;
    pointer-events: none;
}

.about-image {
    position: relative;
    z-index: 1;
    min-height: clamp(440px, 54vw, 760px);
    height: auto;
    border-radius: 20px 20px 20px 64px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 24px 56px rgba(30, 58, 138, 0.14),
        0 4px 14px rgba(30, 58, 138, 0.06);
}

.about-image-photo {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(440px, 54vw, 760px);
    object-fit: cover;
    object-position: center 28%;
    border-radius: inherit;
}

/* Academics Section */
.academics {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-title {
    font-size: clamp(1.65rem, 3.5vw, 2.25rem);
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 17px;
    line-height: 1.6;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

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

/* Programs Slideshow */
.programs-slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.programs-slideshow {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    height: 500px;
}

.program-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease-in-out;
    pointer-events: none;
}

.program-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.program-slide[data-side="left"] {
    flex-direction: row;
}

.program-slide[data-side="right"] {
    flex-direction: row-reverse;
}

.program-slide[data-side="left"].active {
    animation: slideInFromLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-slide[data-side="right"].active {
    animation: slideInFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-slide:not(.active)[data-side="left"] {
    transform: translateX(-100%);
}

.program-slide:not(.active)[data-side="right"] {
    transform: translateX(100%);
}

.program-slide-image {
    width: 50%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.program-slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    z-index: 1;
}

.program-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-slide.active .program-slide-image img {
    transform: scale(1.05);
}

.program-slide-content {
    width: 50%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    position: relative;
}

.program-slide-content h3 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.program-slide.active .program-slide-content h3 {
    opacity: 1;
    transform: translateY(0);
}

.program-slide-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.9;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.program-slide.active .program-slide-content p {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.programs-slideshow-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.programs-slideshow-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.programs-slideshow-indicators .indicator.active {
    background: var(--light-blue);
    width: 32px;
    border-radius: 6px;
}

.program-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.program-icon {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

/* Departments Section */
.departments {
    padding: 80px 0;
}

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

.department-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.department-item:hover {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow);
}

.department-item h4 {
    font-size: 18px;
    color: var(--text-dark);
}

/* Admissions Section */
.admissions {
    padding: 80px 0;
    background: var(--bg-light);
}

.admissions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.admissions-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.process-list {
    list-style: none;
    margin-bottom: 30px;
}

.process-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-light);
    font-size: 16px;
}

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

.admissions-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.admissions-form h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.admissions-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admissions-form input,
.admissions-form textarea {
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s;
}

.admissions-form input:focus,
.admissions-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 80px;
}

.contact-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
}

/* Contact map card (photo + embedded Google Maps) */
.map-card {
    width: 100%;
    border-radius: 10px;
    overflow: hidden; /* Keeps photo and iframe corners aligned */
    background: var(--white);
    margin-top: -20px; /* Nudge the photo+map upward */
    display: flex;
    flex-direction: column;
}

.location-photo {
    width: 100%;
    height: 400px; /* Match the map iframe height for a balanced layout */
    object-fit: contain; /* Show the full photo (no cropping) */
    display: block;
    background: #f8fafc; /* Helps when the image doesn't fill the container */
    order: 2; /* Photo second on desktop */
}

.map-embed {
    width: 100%;
    order: 1; /* Map first on desktop */
}

.map-caption {
    padding: 14px 16px;
    background: #f8fafc;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

.map-embed iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* About page — intro, mission/vision/values, location, contact */
.about-intro-section {
    padding: 80px 0;
    background: var(--white);
}

.about-intro-inner {
    max-width: 760px;
    margin: 0 auto;
}

.about-intro-inner .section-title {
    margin-bottom: 20px;
}

.about-intro-lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-intro-inner p {
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 18px;
    font-size: 16px;
}

.about-mvv-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-mvv-card {
    background: var(--white);
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
}

.about-mvv-card h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin: 0 0 16px;
    font-weight: 700;
}

.about-mvv-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.75;
    font-size: 16px;
}

.about-location-section {
    padding: 80px 0;
    background: var(--white);
}

.about-location-section .section-header {
    text-align: center;
    margin-bottom: 36px;
}

.about-location-map-card.map-card {
    margin-top: 0;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.about-building-figure {
    margin: 0;
    order: 2;
}

.about-location-map-card .about-building-photo {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
    order: unset;
}

.about-contact-section {
    padding: 80px 0 100px;
    background: var(--bg-light);
}

.about-contact-section .section-header {
    text-align: center;
    margin-bottom: 44px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.about-contact-section .section-subtitle {
    margin-top: 16px;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-contact-card {
    background: var(--white);
    padding: 28px 26px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.about-contact-card h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0 0 12px;
    font-weight: 700;
}

.about-contact-card p {
    margin: 0 0 16px;
    color: var(--text-light);
    line-height: 1.75;
    font-size: 16px;
}

.about-contact-card p:last-child {
    margin-bottom: 0;
}

.about-contact-card a:not(.btn-outline) {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
}

.about-contact-card a:not(.btn-outline):hover {
    color: var(--accent-sky);
    text-decoration: underline;
}

.about-open-maps-link {
    margin-top: 12px;
}

/* Contact page — two columns: details | map + photo */
.contact-page-body {
    padding: 80px 0 100px;
    background: var(--bg-light);
}

.contact-page-split {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.12fr);
    gap: 40px 56px;
    align-items: start;
}

.contact-page-aside-title,
.contact-page-visual-title {
    text-align: left;
    margin-bottom: 10px;
}

.contact-page-aside-intro {
    text-align: left;
    margin: 0 0 26px;
    max-width: 38ch;
}

.contact-page-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-page-cards .about-contact-card {
    text-align: left;
}

.contact-page-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow);
    margin-bottom: 36px;
    line-height: 0;
    background: #e2e8f0;
}

.contact-page-map iframe {
    width: 100%;
    height: 380px;
    display: block;
    border: 0;
    vertical-align: bottom;
}

.contact-page-photo {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow);
    background: var(--white);
}

.contact-page-photo-img {
    width: 100%;
    height: auto;
    min-height: 240px;
    max-height: 440px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.contact-page-photo-caption {
    margin: 0;
    border-top: 1px solid var(--border-subtle);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-top-left {
    display: flex;
    gap: 30px;
}

.footer-top-left a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-top-left a:hover {
    opacity: 1;
}

.footer-top-center {
    text-align: center;
    flex: 0 1 auto;
    width: 100%;
    max-width: 640px;
}

.footer-conversation-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    text-transform: none;
    font-family: var(--font-display);
}

.footer-underline {
    width: 80px;
    height: 2px;
    background: var(--white);
    margin: 0 auto;
}

.footer-middle {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
    margin-bottom: 40px;
    padding: 0 8px;
}

.footer-nav-quick {
    text-align: left;
    padding: 0;
    max-width: none;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    padding-right: clamp(20px, 4vw, 40px);
}

.footer-nav-quick-head {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 20px;
    font-family: var(--font-body);
}

.footer-nav-quick-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
}

.footer-nav-col-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 14px;
    font-family: var(--font-body);
}

.footer-nav-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav-col-list li {
    margin: 0 0 10px;
}

.footer-nav-col-list li:last-child {
    margin-bottom: 0;
}

.footer-nav-col-list a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    line-height: 1.35;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-nav-col-list a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.45);
}

.footer-middle .footer-contact-grid {
    margin: 0;
    max-width: none;
    border-right: none;
    padding-right: 0;
}

#support-contribute {
    scroll-margin-top: 88px;
}

.footer-top-right {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--white);
    transition: all 0.3s;
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 5vw, 56px);
    margin: 0 auto 40px;
    align-items: start;
    max-width: 1000px;
}

@media (max-width: 900px) {
    .footer-middle {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0;
    }

    .footer-nav-quick {
        border-right: none;
        padding-right: 0;
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.footer-contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 24px;
    height: 24px;
}

.footer-contact-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.footer-contact-content p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 30px 0 20px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    opacity: 0.8;
    font-size: 14px;
}

/* Floating Contact Widgets */
.floating-contact-widgets {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color);
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 10px 14px 10px 16px;
    text-decoration: none;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    min-width: 200px;
    transform: translateX(calc(-100% + 76px));
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.floating-contact-item .floating-text {
    opacity: 0;
    width: 0;
    min-width: 0;
    min-height: 0;
    max-height: 52px;
    overflow: hidden;
    flex-shrink: 0;
    transition: opacity 0.3s ease 0.1s, width 0.3s ease 0.1s, max-height 0.35s ease;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.floating-contact-item:hover {
    transform: translateX(0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.floating-contact-item:hover .floating-text {
    opacity: 1;
    width: auto;
    max-height: min(120px, 40vh);
    margin-right: 12px;
}

.floating-contact-item.floating-email:hover .floating-text {
    white-space: normal;
    max-width: min(260px, 72vw);
}

.floating-contact-item.floating-email:hover .floating-value {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.floating-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: transparent;
    color: var(--white);
    border-radius: 8px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.floating-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
}

.floating-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.floating-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}

/* Leadership Section */
.leadership-section {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--white) 0%, #eff6ff 100%);
}

.leadership-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.leadership-section .section-label {
    display: inline-block;
    color: var(--accent-sky);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    font-size: 14px;
    font-family: var(--font-body);
    margin-bottom: 15px;
}

.leadership-section .section-title-large {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.leadership-section .section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Flex + centered wrap: uneven last rows (e.g. 7 people) stay visually balanced */
.leadership-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 26px 28px;
    margin-top: 56px;
}

.leadership-card {
    background: var(--white);
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    flex: 0 1 268px;
    max-width: min(268px, 100%);
    min-width: 0;
}

.leadership-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30, 58, 138, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
}

.leadership-avatar {
    width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 220px;
    max-height: 320px;
    border-radius: 0;
    background: linear-gradient(
        160deg,
        #e8f0fe 0%,
        #dbeafe 38%,
        var(--primary-color) 100%
    );
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 2px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

/* Soft blend from photo into the white text band — reads less “cut off” */
.leadership-avatar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36%;
    background: linear-gradient(
        to bottom,
        transparent 15%,
        rgba(255, 255, 255, 0.38) 62%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.leadership-initials {
    display: block;
}

.leadership-avatar .leadership-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
    object-position: center 28%;
    display: block;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 0;
}

.leadership-card:hover .leadership-avatar .leadership-photo {
    transform: scale(1.05);
}

.leadership-info {
    padding: 20px 18px 26px;
    margin-top: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.leadership-name {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.leadership-role {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

/* Contact Information Section */
.contact-info-section {
    padding: 100px 0;
    background: #f8fafc;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.contact-info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.contact-info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.contact-info-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.contact-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Program Detail Sections */
.program-detail-section {
    padding: 100px 0;
    background: var(--white);
}

.program-section-alt {
    background: #f8fafc;
}

.program-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.program-content-reverse {
    direction: rtl;
}

.program-content-reverse > * {
    direction: ltr;
}

.program-detail-image {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.program-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-detail-image:hover img {
    transform: scale(1.05);
}

.program-detail-text {
    padding: 20px 0;
}

.program-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.program-feature-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.program-feature-item p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Secondary Tracks Section */
.secondary-tracks-section {
    padding: 100px 0;
    background: var(--white);
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.track-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--light-blue);
}

.track-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.track-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.track-card > p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

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

.track-subjects li {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-left: 25px;
}

.track-subjects li:last-child {
    border-bottom: none;
}

.track-subjects li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--light-blue);
    font-weight: bold;
    font-size: 18px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--white);
    background: linear-gradient(155deg, #3b82f6 0%, #1d4ed8 55%, #1e3a8a 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 18px rgba(30, 58, 138, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 28px rgba(30, 58, 138, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    filter: brightness(1.06);
}

.scroll-to-top:focus-visible {
    outline: 2px solid var(--accent-sky);
    outline-offset: 3px;
}

.scroll-to-top-icon {
    display: block;
    margin-top: -1px;
}

.scroll-to-top.show {
    display: flex;
}

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

/* Mobile Menu */
.mobile-nav-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .mobile-nav-menu.active {
        max-height: 500px;
        display: block;
    }

    .mobile-nav-menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 0;
        list-style: none;
        margin: 0;
    }

    .mobile-nav-menu li {
        border-bottom: 1px solid #e5e7eb;
    }

    .mobile-nav-menu li:last-child {
        border-bottom: none;
    }

    .mobile-nav-menu a {
        display: block;
        padding: 15px 0;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
    }

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

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

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

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

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

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

    .about-content,
    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .contact-page-split {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .contact-page-map iframe {
        height: 300px;
    }

    .contact-page-map {
        margin-bottom: 28px;
    }

    .about-text {
        padding-right: 0;
    }

    .about-image-wrapper {
        padding-left: 0;
    }

    .about-summary {
        padding: 60px 0;
    }

    .programs-slideshow {
        height: auto;
        min-height: 600px;
    }

    .program-slide {
        flex-direction: column !important;
        height: auto;
        min-height: 600px;
        position: relative;
    }

    .program-slide-image {
        width: 100%;
        height: 300px;
    }

    .program-slide-content {
        width: 100%;
        padding: 40px 30px;
        text-align: center;
    }

    .program-slide-content h3 {
        font-size: 28px;
    }

    .program-slide-content p {
        font-size: 16px;
    }

    .program-slide {
        flex-direction: column;
    }

    .program-slide-image {
        height: 300px;
    }

    .program-slide-content {
        padding: 30px 20px;
    }

    .program-slide-content h3 {
        font-size: 24px;
    }

    .program-slide-content p {
        font-size: 16px;
    }

    .floating-contact-widgets {
        display: none;
    }

    .leadership-section {
        padding: 80px 0;
    }

    .leadership-section .section-title-large {
        font-size: 32px;
    }

    .leadership-grid {
        gap: 20px 16px;
    }

    .leadership-card {
        flex: 0 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .leadership-avatar {
        min-height: 200px;
        max-height: 280px;
        font-size: 32px;
    }

    .program-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .program-content-reverse {
        direction: ltr;
    }

    .program-detail-image {
        height: 350px;
    }

    .program-features {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .tracks-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-top-left {
        justify-content: center;
        gap: 20px;
    }

    .footer-top-center {
        min-width: auto;
    }

    .footer-top-right {
        justify-content: center;
    }

    .footer-middle {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0;
    }

    .footer-nav-quick {
        border-right: none;
        padding-right: 0;
        padding-bottom: 28px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-nav-quick-cols {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .footer-nav-col-list a {
        font-size: 14px;
    }

    .footer-contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-contact-icon {
        margin-bottom: 10px;
    }

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

    .about-image-wrapper::after {
        left: -2px;
        width: 4px;
        top: 10%;
        bottom: 10%;
    }

    .about-image,
    .about-image-photo {
        min-height: 320px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .section-title-large {
        font-size: 32px;
    }

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

    .header {
        padding: 12px 0;
    }

    .header .container {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
    }

    .logo-container {
        order: 1;
        justify-content: center;
        width: 100%;
        margin: 0 auto;
    }

    .logo {
        height: 90px;
    }

    .header-right {
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        order: 2;
        z-index: 10;
    }

    .language-selector {
        padding: 2px;
    }

    .lang-btn {
        padding: 6px 16px;
        font-size: 12px;
        min-width: 45px;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        order: 0;
        z-index: 10;
    }

    .language-selector {
        gap: 3px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: auto;
    }

    .school-name {
        font-size: 20px;
    }

    .location-photo {
        height: 320px; /* Match mobile iframe height */
    }

    .map-embed iframe {
        height: 320px;
    }

    .map-card {
        margin-top: -10px;
    }

    /* Mobile: show map first so users find the location faster */
    .location-photo {
        order: 2;
    }

    .map-embed {
        order: 1;
    }
}

/* Page Hero (for individual pages) */
.page-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 42%, #1d4ed8 100%);
    color: var(--white);
    padding: 40px 0 44px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 55% at 70% 0%, rgba(96, 165, 250, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 18px;
    opacity: 0.88;
    font-weight: 400;
    max-width: 40ch;
    line-height: 1.5;
}

/* Page Content Sections */
.about-page,
.academics-page,
.departments-page,
.admissions-page,
.contact-page {
    padding: 80px 0;
}

/* Events listing (events.html) */
.events-page {
    padding: 56px 0 72px;
    background: linear-gradient(180deg, var(--bg-page) 0%, var(--white) 28%);
}

/* Support */
.support-page {
    padding: 80px 0;
    background: var(--white);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.partners-showcase--lead .unesco-partnership {
    margin-top: 28px;
}

.support-grid--after-showcase {
    margin-top: 56px;
    margin-bottom: 0;
}

.support-card {
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.support-card-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.support-card-text {
    margin: 0 0 14px;
    color: var(--text-light);
}

.support-actions {
    display: flex;
    gap: 12px;
}

.btn-primary, .btn-outline {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.partner-logo {
    background: var(--bg-light);
    border: 1px dashed var(--border-subtle);
    color: var(--text-light);
    border-radius: 10px;
    padding: 22px 12px;
    font-weight: 600;
}

.unesco-partnership {
    margin-top: 40px;
    text-align: left;
}

.unesco-partnership-inner {
    max-width: 920px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.unesco-partnership-top {
    padding: 20px 24px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.unesco-partnership-logo {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.unesco-partnership-intro {
    margin: 0;
    padding: 16px 24px 0;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

.unesco-partnership-article {
    margin: 0;
    padding: 14px 24px 0;
}

.unesco-partnership-article-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: var(--font-body);
}

.unesco-partnership-article-link:hover {
    text-decoration: underline;
}

.unesco-partnership-video-wrap {
    padding: 20px 24px 24px;
    line-height: 0;
}

.unesco-partnership-video {
    width: 100%;
    max-height: 520px;
    border-radius: 12px;
    background: #0f172a;
    vertical-align: middle;
}

.events-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 920px;
    margin: 0 auto;
}

.event-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

@media (min-width: 720px) {
    .event-card {
        grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
        align-items: stretch;
        min-height: 200px;
    }
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(96, 165, 250, 0.28);
}

.event-featured-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0 0%, #dbeafe 55%, #bfdbfe 100%);
    min-height: 180px;
}

.event-featured-image .event-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.45s ease;
}

.event-card:hover .event-featured-image .event-image {
    transform: scale(1.04);
}

@media (max-width: 719px) {
    .event-featured-image {
        aspect-ratio: 16 / 10;
        max-height: 260px;
        min-height: 160px;
    }

    .event-featured-image .event-image {
        min-height: 160px;
    }
}

@media (min-width: 720px) {
    .event-featured-image {
        min-height: 100%;
        aspect-ratio: auto;
        max-height: none;
    }

    .event-featured-image .event-image {
        position: absolute;
        inset: 0;
        min-height: 100%;
    }
}

.event-card-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 22px 24px 26px;
    min-width: 0;
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    color: #fff;
    width: 80px;
    height: 80px;
    box-shadow: 0 2px 8px rgba(30,58,138,0.25);
}

.event-day {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.event-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.event-desc {
    margin: 0 0 14px;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.event-meta {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.event-view-more {
    display: inline-block;
    margin-top: 0;
    padding: 10px 18px;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-blue) 55%,
        var(--secondary-color) 100%
    );
    background-size: 160% 100%;
    background-position: 0% 50%;
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.22);
    transition:
        background-position 0.4s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.event-view-more:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(30, 58, 138, 0.28);
}

/* Single event page — structure matches a typical WordPress single-event template */
.event-detail-page {
    padding: 48px 0 80px;
    background: var(--white);
}

.event-detail-back {
    margin-bottom: 24px;
}

.event-detail-back a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    font-family: var(--font-body);
}

.event-detail-back a:hover {
    text-decoration: underline;
}

.event-detail-date-row {
    margin-bottom: 14px;
}

.event-detail-date-text {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-sky);
    background: rgba(14, 165, 233, 0.12);
    padding: 7px 16px;
    border-radius: 999px;
    margin: 0;
    font-family: var(--font-body);
}

.event-detail-header {
    margin-bottom: 32px;
}

.event-detail-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 14px;
    line-height: 1.15;
    font-family: var(--font-display);
}

.event-detail-excerpt {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
    max-width: 65ch;
}

.event-detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.event-detail-content > p {
    margin-bottom: 1.1em;
}

.event-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 20px;
    margin: 32px 0;
}

.event-detail-gallery img {
    width: 100%;
    height: auto;
    min-height: 260px;
    max-height: min(480px, 70vh);
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-light);
}

.event-detail-video-block {
    margin: 28px 0;
}

.event-detail-video-block video {
    width: 100%;
    max-height: 480px;
    border-radius: 12px;
    background: #0f172a;
}

.event-related {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid var(--border-subtle);
}

.event-related-title {
    font-size: 1.45rem;
    text-align: left;
    margin-bottom: 22px;
    color: var(--primary-color);
}

.event-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.event-related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.event-related-card-image {
    height: 104px;
    overflow: hidden;
    background: var(--bg-light);
}

.event-related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-related-card-title {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.35;
    font-family: var(--font-body);
}

.about-summary,
.academics-summary,
.student-experience,
.admissions-overview {
    padding: 80px 0;
}

.about-summary {
    background: var(--bg-page);
    padding: 120px 0;
}

.academics-summary {
    background: var(--bg-light);
}

.student-experience {
    background: var(--white);
}

.admissions-overview {
    background: var(--bg-light);
}

/* Secondary CTA on light band — default .btn-secondary is for dark heroes only */
.admissions-overview .btn-secondary {
    color: var(--primary-color);
    border-color: rgba(30, 58, 138, 0.32);
    background: var(--white);
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.08);
}

.admissions-overview .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.logo-container a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
    }

    .admissions-form {
        padding: 25px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .leadership-card {
        flex: 1 1 100%;
        max-width: min(380px, 100%);
    }

    .leadership-avatar {
        min-height: 230px;
        max-height: 300px;
    }

    .leadership-info {
        padding: 18px 16px 22px;
    }
}

/* =====================================================================
   Polish layer — small, professional refinements
   ===================================================================== */

/* Selection + focus + smooth scrolling */
::selection {
    background: rgba(37, 99, 235, 0.18);
    color: var(--primary-color);
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 2px solid var(--accent-sky);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Subtle gradient hairline under the sticky header */
.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(96, 165, 250, 0.55) 22%,
        rgba(14, 165, 233, 0.55) 50%,
        rgba(96, 165, 250, 0.55) 78%,
        transparent 100%
    );
    pointer-events: none;
}

/* Active nav state (added via JS) */
.nav-menu a.is-active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a.is-active::after {
    width: 100%;
}

.mobile-nav-menu a.is-active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Primary button — gradient with a soft shift on hover */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-blue) 60%,
        var(--secondary-color) 100%
    );
    background-size: 180% 100%;
    background-position: 0% 50%;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.22);
    transition:
        background-position 0.45s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-primary:hover {
    background-position: 100% 50%;
    box-shadow: 0 10px 26px rgba(30, 58, 138, 0.3);
    transform: translateY(-1px);
}

/* Cards — soft top sheen + smoother hover */
.feature-card,
.about-mvv-card,
.about-contact-card,
.support-card {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.feature-card::before,
.about-mvv-card::before,
.about-contact-card::before,
.support-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: radial-gradient(
        ellipse 90% 70% at 50% -10%,
        rgba(96, 165, 250, 0.08),
        transparent 65%
    );
    pointer-events: none;
}

.about-mvv-card,
.about-contact-card,
.support-card {
    border: 1px solid var(--border-subtle);
}

.about-mvv-card:hover,
.about-contact-card:hover,
.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(30, 58, 138, 0.14);
    border-color: rgba(96, 165, 250, 0.35);
}

/* Page hero — fine dot pattern over the gradient */
.page-hero {
    background:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0) 0 0 / 18px 18px,
        linear-gradient(135deg, #1e3a8a 0%, #2563eb 42%, #1d4ed8 100%);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

/* Footer divider — soft horizontal gradient */
.footer-divider {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );
}

/* =====================================================================
   Reveal on scroll
   - Only active when JS has flagged <html class="js-reveal"> so the
     site looks fine if JS is disabled or motion is reduced.
   ===================================================================== */

html.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

html.js-reveal [data-reveal="left"]  { transform: translateX(-32px); }
html.js-reveal [data-reveal="right"] { transform: translateX(32px); }
html.js-reveal [data-reveal="zoom"]  { transform: scale(0.96); }
html.js-reveal [data-reveal="fade"]  { transform: none; }

html.js-reveal [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js-reveal [data-reveal],
    html.js-reveal [data-reveal].is-revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================================================================
   Mobile optimization layer
   - All rules are max-width gated, so desktop layout is untouched.
   - Sits at the end of the file to win over any later same-specificity
     desktop rules (e.g. the global .about-summary { padding: 120px 0 }).
   ===================================================================== */

@media (max-width: 768px) {
    /* Container — tighter side padding on phones */
    .container {
        padding: 0 16px;
    }

    /* Section rhythm — overrides desktop globals that override the
       original mobile rules earlier in the file */
    .about-summary,
    .academics-summary,
    .student-experience,
    .admissions-overview,
    .about-page,
    .academics-page,
    .departments-page,
    .admissions-page,
    .contact-page,
    .support-page,
    .events-page,
    .leadership-section {
        padding: 56px 0;
    }

    .about-summary {
        padding: 56px 0;
    }

    /* Typography scaling */
    .section-title {
        font-size: clamp(1.5rem, 6vw, 1.85rem);
        line-height: 1.25;
    }

    .section-title-large {
        font-size: clamp(1.6rem, 6.5vw, 2rem);
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 15px;
        line-height: 1.55;
        max-width: 38ch;
        margin-left: auto;
        margin-right: auto;
    }

    .about-text p,
    .about-summary p {
        font-size: 15.5px;
        line-height: 1.7;
    }

    /* Hero — shorter on mobile, lighter video */
    .hero {
        height: clamp(380px, 70vh, 520px);
        min-height: 380px;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero-title {
        font-size: clamp(2rem, 9vw, 2.75rem);
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4.4vw, 1.2rem);
        max-width: 28ch;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero video — soften filter, never expensive on mobile */
    .hero-video {
        filter: brightness(1) contrast(1.02) saturate(1.04);
    }

    /* Buttons — comfortable tap target, full-width-friendly */
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        min-height: 44px;
        padding: 12px 22px;
        font-size: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .about-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .about-buttons .btn {
        margin: 0;
        width: 100%;
    }

    /* Inline margin overrides (e.g. style="margin-left: 15px") */
    .admissions-overview .btn + .btn,
    .admissions-content .btn + .btn {
        margin-left: 0 !important;
        margin-top: 12px;
    }

    /* Header — keep slim and remove the language gap squish */
    .header {
        padding: 10px 0;
    }

    .logo {
        height: 64px;
    }

    /* Slightly more breathing room around the burger */
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    /* Mobile drawer — taller, scrollable, nicer typography */
    .mobile-nav-menu.active {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .mobile-nav-menu a {
        font-size: 16px;
        padding: 16px 4px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* About section image — better aspect on phones */
    .about-image,
    .about-image-photo {
        min-height: 0;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        width: 100%;
        border-radius: 14px;
    }

    /* Programs slideshow — shorter, less letterbox */
    .programs-slideshow {
        height: auto !important;
        /* Floor keeps the box stable during the brief moment the JS
           has no active slide, avoiding a flicker every cycle. */
        min-height: 440px !important;
    }

    /* Only the active slide sits in normal flow and gives the
       container its height. Inactive slides stay absolutely
       positioned so their (invisible) height doesn't stack up
       into tall empty white boxes. */
    .program-slide {
        position: absolute;
        min-height: 0 !important;
        height: auto !important;
    }

    .program-slide.active {
        position: relative;
    }

    .program-slide-image {
        height: 220px;
    }

    .program-slide-content {
        padding: 24px 18px 28px;
    }

    .program-slide-content h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .program-slide-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .programs-slideshow-indicators {
        margin-top: 14px;
        gap: 10px;
    }

    .programs-slideshow-indicators .indicator {
        width: 10px;
        height: 10px;
    }

    /* Experience pillars — tighter cards */
    .student-experience .experience-pillar.feature-card {
        padding: 22px 20px 24px;
    }

    /* Feature cards generic */
    .feature-card {
        padding: 22px 20px;
    }

    /* Footer — compact and readable */
    .footer {
        padding-top: 48px;
    }

    .footer-conversation-title {
        font-size: 22px;
        line-height: 1.15;
    }

    .footer-middle {
        gap: 28px;
    }

    .footer-nav-quick-head {
        font-size: 13px;
    }

    .footer-nav-col-heading {
        font-size: 14px;
    }

    .footer-contact-item h4 {
        font-size: 14px;
    }

    .footer-contact-item p,
    .footer-nav-col-list a {
        font-size: 14px;
    }

    .footer-bottom {
        padding: 18px 0;
        text-align: center;
        font-size: 13px;
    }

    /* Scroll-to-top — sit clear of iPhone home indicator */
    .scroll-to-top {
        right: 16px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        width: 44px;
        height: 44px;
    }

    /* Page hero — calmer, less vertical space */
    .page-hero {
        padding: 36px 0 40px;
    }

    .page-title {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    .page-subtitle {
        font-size: 15px;
    }

    /* Forms — readable inputs, no iOS zoom-on-focus (font >= 16px) */
    input,
    textarea,
    select {
        font-size: 16px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        padding: 12px 14px;
        border-radius: 10px;
        width: 100%;
    }

    .admissions-form {
        padding: 22px 18px;
    }

    /* Tap-target safety net for any small inline links */
    a {
        -webkit-tap-highlight-color: rgba(37, 99, 235, 0.18);
    }

    /* Embedded maps & videos — sensible heights */
    iframe,
    video {
        max-width: 100%;
    }

    .unesco-partnership-video {
        max-height: 320px;
    }

    /* Prevent any rogue overflow on long single words / URLs */
    h1, h2, h3, h4, p, a, li {
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

/* Phones — finer tier */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        height: clamp(360px, 64vh, 460px);
    }

    .hero-title {
        font-size: clamp(1.85rem, 9vw, 2.4rem);
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 4.2vw, 1.1rem);
    }

    .about-summary,
    .academics-summary,
    .student-experience,
    .admissions-overview,
    .about-page,
    .academics-page,
    .departments-page,
    .admissions-page,
    .contact-page,
    .support-page,
    .events-page,
    .leadership-section {
        padding: 44px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-title-large {
        font-size: 26px;
    }

    .program-slide-image {
        height: 200px;
    }

    .footer-nav-quick-cols {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .scroll-to-top {
        right: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

/* Landscape phones — keep hero from eating the whole viewport */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
    .hero {
        height: 100vh;
        min-height: 320px;
    }
}
