﻿:root {
    --page-bg: #fdfceb;
    --page-bg-soft: #fdfceb;
    --text-primary: #222222;
    --text-muted: #7e7a72;
    --line-color: #004a66;
    --accent-blue: #004a66;
    --timeline-blue: #82C2DA;
    --accent-orange: #f15931;
    --footer-bg: #004a66;
    --container-width: 1240px;
    --shadow-soft: 0 18px 40px rgba(0, 74, 102, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

::-webkit-scrollbar-button {
    display: none;
}

/* Modal Specific Scrollbar */
.modal-container::-webkit-scrollbar {
    width: 6px;
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 24px 0; /* Prevents scrollbar from extending out of the rounded corners */
}

.modal-container::-webkit-scrollbar-thumb {
    background: #c0c0c0; /* Neutral color instead of blue */
    border-radius: 4px;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: #fdfceb;
    color: var(--text-primary);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 48px), var(--container-width));
    margin: 0 auto;
}

/* Global section entrance animation (all pages, footer excluded) */
main section {
    opacity: 1;
    transform: none;
}

.sections-animate main section {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.sections-animate main section.section-in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .sections-animate main section,
    .sections-animate main section.section-in-view {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.site-header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.hidden-header {
    transform: translateY(-150%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 80px;
    padding: 10px 14px 10px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.brand {
    flex: 0 0 auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.8vw, 32px);
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.main-nav a {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 0;
    transition: color 180ms ease, opacity 180ms ease;
    opacity: 0.85;
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a.active {
    font-weight: 700;
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.cta-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 32px;
    border-radius: 999px;
    background: var(--accent-orange);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(241, 89, 49, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(241, 89, 49, 0.25);
}

.cta-button .ri-arrow-right-up-line {
    margin-left: 6px;
    font-size: 18px;
    line-height: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-trigger,
.mobile-menu-close {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin: -8px;
}

.mobile-menu-trigger i,
.mobile-menu-close i {
    font-size: 24px;
    line-height: 1;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 140px;
}

.mobile-nav a:not(.cta-button) {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 1;
}

.mobile-nav a.active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
}

.mobile-cta {
    margin-top: 24px;
    width: 100%;
    max-width: 300px;
}

.timeline-section {
    padding: 140px 0 0;
}

.section-heading {
    margin-bottom: 52px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.2;
    font-weight: 700;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(34, 34, 34, 0.42);
}

.section-heading h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 600;
}

.section-subheading {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #8e8a83;
}

.timeline {
    position: relative;
    display: grid;
    gap: 44px;
    padding: 8px 0 88px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 92px;
    left: 20px;
    width: 3px;
    background: var(--timeline-blue);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 28px;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    margin-top: 20px;
    justify-self: center;
    border: 3px solid var(--timeline-blue);
    border-radius: 50%;
    background: var(--page-bg-soft);
    box-shadow: 0 0 0 10px var(--page-bg-soft);
    transition: all 0.4s ease;
}

.timeline-marker::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--timeline-blue);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.active .timeline-marker {
    border-width: 4px;
}

.timeline-item.active .timeline-marker::after {
    opacity: 1;
    transform: scale(1);
}

.timeline-item:last-child::after {
    content: '';
    position: absolute;
    left: 18px;
    width: 7px;
    top: 50px;
    bottom: 0;
    background: var(--page-bg-soft);
    z-index: 2;
}

.timeline-body {
    padding-top: 2px;
}

.time-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--timeline-blue);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-soft);
}

.timeline-body h2 {
    display: inline-block;
    margin: 14px 0 14px;
    padding-left: 18px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.08;
    font-weight: 600;
    vertical-align: middle;
}

.timeline-body p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--footer-bg);
    color: #ffffff;
}

.footer-overlay {
    position: absolute;
    inset: 0;
    background: url("../images/crayon-effect.webp") center/cover no-repeat;
    opacity: 0.35;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 1.6fr) 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding: 68px 0 72px;
}

.footer-branding img {
    width: min(480px, 100%);
    height: auto;
}

.copyright {
    margin: 18px 0 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 500;
}

.social-links a:hover {
    color: #ffffff;
}

.social-links a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--footer-bg);
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: start;
    margin-top: 14px;
}

.footer-links h3,
.footer-contact h3 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
}

.footer-links a,
.footer-contact a {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.92);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

@media (max-width: 1120px) {
    .site-header {
        position: fixed;
    }

    .main-nav {
        display: none;
    }

    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 14px 10px 24px;
        gap: 20px;
    }

    .mobile-menu-trigger,
    .mobile-menu-close {
        display: block;
    }

    .site-header .cta-button {
        display: none;
    }

    .header-actions {
        flex-direction: row-reverse;
        gap: 12px;
    }

    .timeline-body h2 {
        padding-left: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-branding {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(calc(100% - 32px), var(--container-width));
    }

    .timeline-section {
        padding-top: 180px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h1 {
        font-size: 48px;
    }

    .timeline {
        gap: 36px;
        padding-bottom: 60px;
    }

    .timeline::before {
        top: 17px;
        bottom: 64px;
        left: 17px;
    }

    .timeline-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 18px;
    }

    .timeline-marker {
        width: 24px;
        height: 24px;
        margin-top: 17px;
    }

    .time-pill {
        min-height: 32px;
        font-size: 14px;
    }

    .timeline-body h2 {
        font-size: clamp(20px, 6vw, 28px);
    }

    .timeline-body p {
        font-size: 15px;
        line-height: 1.55;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 48px 0 54px;
    }

    .footer-branding img {
        max-width: 260px;
    }

    .footer-links h3,
    .footer-contact h3 {
        font-size: 24px;
    }

    .footer-links a,
    .footer-contact a {
        font-size: 18px;
    }
}/* HOME PAGE STYLES */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0 40px;
    text-align: center;
}
.hero-container {
    max-width: 100%;
    width: 100%;
    padding: 0 24px;
}
.hero-image {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    min-height: 300px;
    flex: 1;
    align-items: center;
}
.hero-rive,
.hero-rive-fallback {
    margin: 0 auto;
    width: min(86vw, 1400px);
    max-width: none;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 32px;
    }
    .hero-container {
        padding: 0 12px;
    }
    .hero-rive,
    .hero-rive-fallback {
        width: 100%;
    }
    .hero-action {
        margin-top: 24px;
    }
}
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--page-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}
.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}
.page-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 74, 102, 0.15);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: page-spin 0.8s linear infinite;
}
@keyframes page-spin {
    to { transform: rotate(360deg); }
}
.hero-action {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.first-step-section {
    padding: 60px 0;
}
.twocol-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.twocol-layout .text-content h2 {
    font-size: clamp(32px, 4vw, 42px);
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.2;
}
.twocol-layout .text-content p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
}
.twocol-layout .image-content {
    display: flex;
    justify-content: flex-end;
}
.first-step-section .image-content img {
    width: min(100%, 440px);
    max-height: 430px;
    object-fit: contain;
    transform: translateX(-28px);
}
.why-choose-us-section {
    padding: 60px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.feature-card {
    border-radius: 20px;
    padding: 32px 24px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    aspect-ratio: 1 / 1;
}
.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    margin-top: 0;
}
.feature-card p {
    font-size: 14px;
    opacity: 1;
    margin: 0;
    line-height: 1.5;
}
.f-bg-1 { background-color: #1ABFDF; }
.f-bg-2 { background-color: #1A99B2; }
.f-bg-3 { background-color: #73CEE2; }

.map-section { padding: 60px 0; }

.cta-banner {
    background-color: var(--accent-blue);
    color: white;
    padding: 80px 0;
    margin: 80px 0;
    position: relative;
    overflow: visible;
}
.cta-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-banner-content h2 {
    font-size: clamp(32px, 4vw, 42px);
    margin: 0 0 16px;
}
.cta-banner-content p {
    font-size: 20px;
    opacity: 1;
    margin-bottom: 32px;
}
.cta-banner-actions { display: flex; gap: 16px; justify-content: center; }
.btn-outline { border: 2px solid white; color: white; padding: 0 32px; height: 56px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; text-decoration: none; background: transparent; cursor: pointer; transition: background 0.2s, color 0.2s; }
.btn-outline:hover { background: white; color: var(--accent-blue); }
.btn-solid { background: white; color: var(--accent-blue); padding: 0 32px; height: 56px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; text-decoration: none; transition: opacity 0.2s; }
.btn-solid:hover { opacity: 1; }

.cta-crayon-left,
.cta-crayon-right {
    position: absolute;
    width: 170px;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}
.cta-crayon-left { left: 13%; bottom: -8px; transform: rotate(-14deg); }
.cta-crayon-right { right: 13%; top: -8px; transform: scaleX(-1) rotate(-6deg); }

.cta-float-left { position: absolute; left: 8%; bottom: -50px; max-width: 140px; transform: rotate(-20deg); z-index: 2; }
.cta-float-right { position: absolute; right: 8%; top: -30px; max-width: 140px; transform: rotate(5deg); z-index: 2; }

.locations-section { padding: 60px 0; }
.locations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.location-card { display: block; position: relative; border-radius: 24px; overflow: hidden; height: 480px; box-shadow: var(--shadow-soft); cursor: pointer; transition: none; text-decoration: none; color: inherit; }
.location-card:hover,
.location-card:focus-within { box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.location-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.08s linear; }
.location-card:hover img,
.location-card:focus-within img { transform: scale(1.03); transition-duration: 0.2s; transition-timing-function: ease-in; }
.location-card-content { position: absolute; bottom: 0; left: 0; right: 0; min-height: 220px; padding: 40px 96px 32px 32px; background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.72) 38%, rgba(0,0,0,0) 100%); color: white; display: flex; flex-direction: column; justify-content: flex-end; }
.location-card-content h3 { margin: 0; font-size: 32px; transform: translateY(0); transition: transform 0.1s linear; }
.location-card-content p { margin: 0; font-size: 16px; opacity: 0; max-height: 0; overflow: hidden; transform: translateY(14px); transition: opacity 0.1s linear, transform 0.1s linear, max-height 0.1s linear; }
.location-card-content p:first-of-type {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.location-card-content p + p { margin-top: 8px; }
.location-card:hover .location-card-content p,
.location-card:focus-within .location-card-content p { opacity: 1; max-height: 120px; transform: translateY(0); transition-duration: 0.28s; transition-timing-function: ease-in; }
.location-card:hover .location-card-content h3,
.location-card:focus-within .location-card-content h3 { transform: translateY(-14px); transition-duration: 0.28s; transition-timing-function: ease-in; }
.location-arrow { position: absolute; bottom: 32px; right: 32px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; color: white; transition: transform 0.18s ease-in, background-color 0.18s ease-in; }
.location-card:hover .location-arrow,
.location-card:focus-within .location-arrow,
.location-arrow:hover { transform: scale(1.08); background: rgba(255,255,255,0.34); }

/* Book a Visit Modal — location switch */
.location-switch-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

#locationToggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.location-pill-track {
    position: relative;
    display: flex;
    align-items: stretch;
    background: rgba(0, 74, 102, 0.10);
    border-radius: 100px;
    padding: 4px;
    cursor: pointer;
    user-select: none;
    gap: 0;
}

.location-pill-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    bottom: 4px;
    background: var(--accent-blue);
    border-radius: 100px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

#locationToggle:checked ~ .location-pill-track .location-pill-thumb {
    transform: translateX(100%);
}

.location-pill-label {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 100px;
    transition: color 0.25s;
    white-space: nowrap;
}

/* Q-Center active (unchecked) */
#locationToggle:not(:checked) ~ .location-pill-track .location-pill-label.left  { color: #fff; }
#locationToggle:not(:checked) ~ .location-pill-track .location-pill-label.right { color: var(--text-muted); }

/* The Bells active (checked) */
#locationToggle:checked ~ .location-pill-track .location-pill-label.left  { color: var(--text-muted); }
#locationToggle:checked ~ .location-pill-track .location-pill-label.right { color: #fff; }

/* Book a Visit Modal — iframe & placeholder */
.book-visit-iframe-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f5f3;
    min-height: 200px;
}

.book-visit-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
}

.book-visit-placeholder svg {
    color: var(--accent-blue);
    opacity: 0.4;
    margin-bottom: 16px;
}

.book-visit-placeholder p {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.book-visit-placeholder span {
    font-size: 13px;
    opacity: 0.7;
}

.book-visit-placeholder code {
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.testimonials-section { padding: 60px 0 100px; }
.testimonials-slider { margin-top: 40px; }
.testimonials-track { 
    display: flex; 
    gap: 24px; 
    flex: 1; 
    align-items: stretch;
    overflow-x: auto; 
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    padding: 16px;
    margin: -16px;
    scroll-padding: 16px;
}
.testimonials-track::-webkit-scrollbar { display: none; }

.testimonial-card { 
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    background: var(--accent-orange); 
    border-radius: 16px; 
    padding: 32px; 
    border: 1px solid transparent; 
    opacity: 1; 
    transition: all 0.3s ease; 
    display: flex;
    flex-direction: column;
}
.testimonial-card:hover { border-color: transparent; filter: brightness(1.06); }
.testimonial-card h4 { margin: 0 0 16px; font-size: 20px; color: #ffffff; }
.testimonial-card p { 
    color: rgba(255, 255, 255, 0.88); 
    font-size: 15px; 
    line-height: 1.6; 
    margin: 0 0 16px; 
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.testimonial-card .read-more { color: #ffffff; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; background: none; border: none; padding: 0; text-align: left; }
.slider-btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.6); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-primary); flex-shrink: 0; transition: all 0.2s; }
.slider-btn:hover { background: var(--text-primary); color: white; border-color: var(--text-primary); }

/* Review Modal styling */
.review-modal-container {
    background: #fff;
    width: 600px;
    max-width: 90%;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.review-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: var(--text-primary);
}
.review-modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}
.review-modal-body p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 900px) {
    .twocol-layout { grid-template-columns: 1fr; }
    .first-step-section .image-content {
        justify-content: center;
    }
    .first-step-section .image-content img {
        transform: none;
        max-height: 400px;
    }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-grid { grid-template-columns: 1fr; }
    .location-card { height: auto; aspect-ratio: 5 / 4; }
    .testimonials-track { gap: 16px; }
    .testimonial-card { flex: 0 0 calc((100% - 16px) / 2); padding: 24px; }
    .cta-float-left, .cta-float-right, .cta-crayon-left, .cta-crayon-right { display: none; }
}
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .testimonial-card { flex: 0 0 100%; }
}

/* MAP STYLES */
#world-map {
    width: 100%;
    height: 100%;
}
.country {
    fill: #d3d3d3; /* Light gray for unhighlighted */
    stroke: #fff;
    stroke-width: 0.8px;
    transition: fill 0.3s, filter 0.3s;
}
.highlighted {
    fill: #004A66; /* Dark blue from color guide */
    cursor: pointer;
}
.highlighted:hover {
    fill: #1ABFDF;
    filter: brightness(0.85); /* Darken slightly on hover */
}
.tooltip {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    text-align: center;
    transform: translate(-50%, -100%);
    z-index: 10;
    padding-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.flag {
    font-size: 3rem;
    line-height: 1;
}
.flag img {
    width: 45px;
    display: block;
}
.character {
    width: 45px;
    height: auto;
    animation: bounce 0.8s infinite alternate;
}
.name-tag {
    font-family: 'Inter', sans-serif;
    background: var(--accent-orange);
    color: white;
    min-width: 70px;
    padding: 6px 18px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: url("../images/crayon-effect.webp") center/cover no-repeat;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}









@media (max-width: 768px) {
    .map-iframe {
        height: 400px !important;
    }
}

/* ADMISSION PAGE STYLES */
.admission-page {
    padding-top: 0;
}

.admission-hero {
    background-color: var(--accent-blue);
    position: relative;
    overflow: hidden;
    padding: 160px 0 80px;
    color: white;
}

.adm-hero-overlay {
    position: absolute;
    inset: 0;
    background: url("assets/crayon.webp") center/cover no-repeat;
    opacity: 0.35;
    mix-blend-mode: luminosity;
    pointer-events: none;
}

.adm-hero-inner {
    position: relative;
    z-index: 1;
}

.adm-hero-heading {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 40px;
}

.director-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: none;
}

.adm-hero-title {
    font-size: clamp(52px, 7vw, 80px);
    font-weight: 800;
    line-height: 1;
    margin: 0;
    color: white;
}

.adm-hero-body p {
    font-size: 16px;
    line-height: 1.75;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px;
}

.adm-signature {
    margin-top: 36px !important;
    font-style: normal !important;
    font-weight: 500;
    line-height: 1.6 !important;
}

/* Admission Process */
.admission-process {
    padding: 80px 0 100px;
}

.adm-process-title {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 700;
    margin: 0 0 48px;
    color: var(--text-primary);
}

.adm-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.adm-card {
    background-color: var(--timeline-blue);
    border-radius: 16px;
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 160px;
    position: relative;
}

.adm-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adm-card-icon i {
    font-size: 18px;
    line-height: 1;
}

.adm-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1.4;
    flex: 1;
    margin: 0;
}

.adm-card-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(0, 74, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    flex-shrink: 0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.adm-card:hover .adm-card-arrow {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.adm-card.adm-card-cta {
    background-color: var(--accent-orange);
}

.adm-card.adm-card-cta .adm-card-title {
    color: white;
}

.adm-card.adm-card-cta .adm-card-icon {
    background: white;
    color: var(--accent-orange);
}

.adm-card-cta-arrow {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.adm-card.adm-card-cta:hover .adm-card-cta-arrow {
    background: white;
    border-color: white;
    color: var(--accent-orange);
}

@media (max-width: 900px) {
    .adm-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admission-hero {
        padding: 140px 0 60px;
    }
}

@media (max-width: 600px) {
    .adm-cards-grid {
        grid-template-columns: 1fr;
    }
    .adm-hero-heading {
        flex-wrap: wrap;
    }
}
/* ABOUT US PAGE STYLES */
.about-page {
    padding-top: 100px;
}
.about-hero {
    padding-top: 60px;
    padding-bottom: 40px;
}
.about-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}
.about-hero p, .about-intro p, .about-mission p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-muted);
}
.about-hero p strong {
    color: var(--text-primary);
}
.align-items-center {
    align-items: center;
}
.section-max-width { max-width: 900px; }

.about-intro .twocol-layout {
    grid-template-columns: 0.48fr 1.52fr;
    gap: 10px;
}

.about-intro .image-content {
    justify-content: flex-start;
    text-align: left;
}

.about-intro .image-content img {
    width: min(100%, 175px);
    max-height: 235px;
    object-fit: contain;
}

.about-mission {
    padding-top: 42px;
}

.about-quote {
    background-color: var(--accent-orange);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}
.about-quote-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.quote-icon {
    font-size: 160px;
    line-height: 0.8;
    font-weight: 800;
    opacity: 1;
    color: white;
    transform: translateY(20px);
 font-family: "Georgia", serif;}
.quote-content {
    padding-top: 20px;
}
.quote-content h2 {
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: 700;
}
.quote-content p {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 400;
}

.about-philosophy {
    padding: 60px 0 100px;
}
.philosophy-list {
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding-left: 0;
}
.philosophy-item {
    background-color: var(--accent-blue);
    color: white;
    border-radius: 0 999px 999px 0;
    padding: 12px 28px 12px 108px;
    /* width: calc(100% + 34px);
    margin-left: -34px; */
    position: relative;
    font-size: 16px;
    font-weight: 500;
    min-height: 64px;
    display: flex;
    align-items: center;
    margin-left: 35px;
}
.philosophy-item .phil-img {
    margin-left: -35px;
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    height: 118px;
    width: auto;
    max-width: none;
    z-index: 2;
}

@media (max-width: 900px) {
    .about-intro .twocol-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-intro .image-content {
        justify-content: center;
        text-align: center;
    }
    .about-quote-inner {
        flex-direction: column;
        gap: 20px;
    }
    .quote-icon {
        font-size: 100px;
        transform: translateY(0);
     font-family: "Georgia", serif;}
    .quote-content h2 {
        font-size: clamp(28px, 6vw, 36px);
    }
    .philosophy-item {
        padding: 12px 20px 12px 82px;
        font-size: 15px;
        min-height: 58px;
        width: calc(100% + 24px);
        margin-left: -24px;
    }
    .philosophy-list {
        gap: 36px;
    }
    .philosophy-item .phil-img {
        height: 94px;
        left: -6px;
    }

    .philosophy-item:nth-child(3) span {
        margin-left: -6px;
    }
}
@media (max-width: 768px) {
    .about-title {
        font-size: 40px;
    }
}

/* ACADEMIC APPROACH PAGE STYLES */
.academic-page {
    padding-top: 132px;
}

.academic-hero {
    padding: 20px 0 28px;
}

.academic-title {
    margin: 0;
    font-size: clamp(44px, 5.6vw, 58px);
    line-height: 1.05;
    font-weight: 700;
    color: #333333;
}

.academic-intro {
    margin: 28px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #8e8a83;
}

.acad-section {
    padding: 18px 0 26px;
}

.acad-section-title {
    margin: 0;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 700;
    color: #333333;
}

.acad-section-intro {
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #8e8a83;
}

.feature-cards {
    margin-top: 24px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, 1fr);
}

.feature-card-item {
    background: #004a66;
    border-radius: 14px;
    border-top: 5px solid var(--page-bg);
    padding: 16px 14px 14px;
    min-height: 156px;
}

.feature-card-item h3 {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.3;
    color: var(--page-bg);
    font-weight: 700;
}

.feature-card-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(253, 252, 235, 0.7);
}

.acad-after-copy {
    margin: 24px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #8e8a83;
}

.program-list {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.program-row {
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #82c2da;
    padding: 14px 18px 16px 16px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    height: 132px;
}

.program-row.oxford {
    border-left-color: #f15931;
}

.program-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #82c2da;
    color: #004a66;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: 0;
}

.program-row.oxford .program-icon {
    background: #f15931;
    color: #ffffff;
}

.program-body {
    display: grid;
    row-gap: 8px;
}

.program-heading {
    display: block;
}

.program-number {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #82c2da;
    letter-spacing: 0.05em;
}

.program-row.oxford .program-number {
    color: #f15931;
}

.program-name {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #333333;
}

.program-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #8f8b84;
}

.oxford-why {
    margin: 22px 0 0;
    padding-left: 18px;
    color: #8f8b84;
}

.oxford-why li {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 4px;
}

.extra-activities {
    padding-bottom: 92px;
}

.extra-subtitle {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #8e8a83;
}

.extra-focus {
    margin: 28px 0 0;
    text-align: center;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    color: #333333;
}

.extra-icons {
    margin-top: 52px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.extra-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    color: #ffffff;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.extra-icon::before {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 8px);
    opacity: 0;
    color: #333333;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.extra-icon:hover,
.extra-icon:focus-visible {
    transform: scale(1.09);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    outline: none;
}

.extra-icon.is-active {
    transform: scale(1.22);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.extra-icon:hover::before,
.extra-icon:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

.extra-icon.icon-blue-dark {
    background: #004a66;
}

.extra-icon.icon-blue-light {
    background: #82c2da;
}

.extra-icon.icon-orange {
    background: #f15931;
}

.extra-icon.icon-mustard {
    background: #f0b857;
}

@media (max-width: 600px) {
    .extra-icons {
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: space-between;
    }
    .extra-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
        font-size: 30px;
        flex-shrink: 0;
    }
}

/* Activity inline panel */
.activity-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.45s ease-in-out, opacity 0.35s ease-in-out, margin-top 0.35s ease-in-out;
}

.activity-panel.is-open {
    /* max-height is set dynamically by JS to match actual content height */
    opacity: 1;
    margin-top: 40px;
}

.activity-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px 28px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.activity-panel-icon {
    display: none;
}

.activity-panel-icon.icon-blue-dark  { background: #004a66; }
.activity-panel-icon.icon-blue-light { background: #82c2da; }
.activity-panel-icon.icon-orange     { background: #f15931; }
.activity-panel-icon.icon-mustard    { background: #f0b857; }

.activity-panel-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
}

.activity-panel-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
}

/* ACTIVITY VIDEO */
.activity-video-wrap {
    width: 100%;
    margin-bottom: 32px;
}

.activity-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: 12px;
    background: #000;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .feature-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .academic-page {
        padding-top: 150px;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .academic-title {
        font-size: clamp(36px, 7.8vw, 48px);
    }

    .acad-section-title {
        font-size: clamp(32px, 4vw, 42px);
    }
}

@media (max-width: 640px) {
    .academic-page {
        padding-top: 166px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .program-row {
        grid-template-columns: 1fr;
        row-gap: 10px;
        height: auto;
    }

    .program-icon {
        margin-top: 0;
    }

    .extra-focus {
        font-size: 34px;
    }
}





/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-soft, 0 18px 40px rgba(0, 74, 102, 0.08));
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: background 0.2s ease;
    z-index: 2;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.modal-content {
    /* Format markdown imported content */
    color: var(--text-dark);
    line-height: 1.6;
}

.modal-content h1, .modal-content h2, .modal-content h3 {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.modal-content hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Team member modal */
.team-modal-content {
    padding-top: 8px;
}

.team-modal-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.team-modal-photo {
    width: 120px;
    height: 140px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Override .modal-content img which has higher specificity (class+element) */
.team-modal-header .team-modal-photo {
    margin: 0;
    border-radius: 16px;
    max-width: 120px;
    display: block;
}

.team-modal-header-text {
    flex: 1;
    min-width: 0;
}

.team-modal-header-text h3 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-blue);
}

.team-modal-header-text p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

#teamModalBio p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
}

#teamModalBio p:last-child {
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .team-modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .team-modal-photo {
        width: 100%;
        height: 200px;
    }
}

.modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.modal-content th, .modal-content td {
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.05);
    text-align: left;
}

.modal-content th {
    background: rgba(0,0,0,0.02);
    font-weight: 600;
}

.modal-content img {
    max-width: 100%;
    display: block;
    margin: 0 auto 24px;
    border-radius: 8px;
}

.enrollment-welcome-block {
    margin: 0 0 24px;
    padding: 0;
}

.enrollment-welcome-block p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.enrollment-welcome-block p:last-child {
    margin-bottom: 0;
}

.modal-content table.form-table {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 32px;
    overflow: visible; /* Prevents clipping of the custom dropdown menus */
}
#enrollmentModal .modal-content table.form-table th,
#enrollmentModal .modal-content table.form-table td {
    border: none;
}
.modal-content table.form-table.two-cols tr {
    display: flex;
    flex-direction: column;
}
.modal-content table.form-table.two-cols th,
.modal-content table.form-table.two-cols td {
    width: 100%;
    box-sizing: border-box;
    display: block;
}
.modal-content table.form-table.two-cols td:first-child {
    border-bottom: none;
    padding-bottom: 4px;
}
.modal-content table.form-table.two-cols td:last-child {
    border-top: none;
    padding-top: 0;
}
.modal-content table.form-table.three-cols th,
.modal-content table.form-table.three-cols td {
    width: 33.333%;
}
.modal-content tr.section-header th {
    background-color: #004a66 !important;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    border: none;
    border-radius: 12px;
}
.modal-content tr.sub-header th {
    background-color: rgba(0,0,0,0.02) !important;
}

.modal-content input.form-input, .modal-content select.form-input, .modal-content textarea.form-input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.modal-content textarea.form-input {
    border-radius: 16px;
    resize: vertical;
    line-height: 1.5;
    min-height: 80px;
    padding: 14px 18px;
}

/* Base style for actual select inputs to hide them when replaced by custom wrapper */
.custom-select-wrapper select.form-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 100%;
    bottom: 0;
    z-index: -1;
    margin: 0;
    padding: 0;
    border: none;
}

/* Fallback visible select if JS fails/loads late */
.modal-content select.form-input:not(.custom-select-wrapper select) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

/* Custom Select Architecture */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 8px 44px 8px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 999px;
    background-color: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-height: 38px;
    user-select: none;
    position: relative;
}

.custom-select-trigger::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #333333;
    border-bottom: 2px solid #333333;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
    pointer-events: none;
}

.custom-select-trigger.focus,
.modal-content input.form-input:focus, .modal-content select.form-input:focus, .modal-content textarea.form-input:focus {
    outline: none;
    border-color: #f15931;
    background: transparent;
    box-shadow: 0 0 0 3px rgba(241,89,49,0.2);
}

.custom-select-trigger.focus::after {
    transform: translateY(-35%) rotate(-135deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 20px; /* Custom rounded corners for the dropdown popup */
    box-shadow: 0 10px 30px rgba(0,74,102,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.custom-select-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 12px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(0,74,102,0.04);
}

.custom-option.selected {
    background: rgba(0,74,102,0.08);
    font-weight: 600;
    color: #004a66;
}

/* Custom Round Checkboxes */
.round-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px !important;
    height: 22px !important;
    border: 2px solid rgba(0,0,0,0.2) !important;
    border-radius: 50% !important;
    outline: none !important;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin: 0 !important;
    background-color: transparent;
}

.round-checkbox:hover {
    border-color: var(--accent-orange) !important;
}

.round-checkbox:checked {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange) !important;
}

.round-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.round-checkbox.error-border {
    border-color: red !important;
    background: rgba(255,0,0,0.05);
}

/* Bind Error state */
.modal-content .form-input.error-border,
.modal-content textarea.form-input.error-border,
select.form-input.error-border ~ .custom-select-trigger {
    border: 2px solid red !important;
    background: rgba(255,0,0,0.05);
}

input[type="checkbox"]:not(.round-checkbox).error-border {
    outline: 2px solid red !important;
    outline-offset: 2px;
}

.error-message {
    color: red;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
}

.modal-submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 32px auto 0;
    padding: 16px 24px;
    background-color: #f15931;
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.modal-submit-btn:hover {
    background-color: #d14725;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .tuition-table, 
    .tuition-table tbody, 
    .tuition-table tr, 
    .tuition-table th, 
    .tuition-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tuition-table td {
        white-space: normal !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .tuition-table td[colspan="2"] {
        display: block;
    }
    
    .tuition-table tr {
        margin-bottom: 24px;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }
    
    .tuition-table td[rowspan] {
        background: rgba(0, 74, 102, 0.05); /* very light blue to subtly emphasize section group */
        font-weight: 700;
        font-size: 16px;
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    }
    
    .tuition-table td strong {
        display: block;
        margin-bottom: 4px;
    }
}

/* LOCATION PAGE STYLES */
.location-page {
    padding-top: 132px;
    padding-bottom: 40px;
}
.location-hero {
    margin-bottom: 80px;
}
.location-hero .twocol-layout {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.location-hero-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.location-hero-title {
    font-size: clamp(38px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 32px;
}
.location-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.location-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.location-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.location-feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}
.location-team {
    padding: 64px 0 80px;
}

.team-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.team-section-intro {
    flex: 1;
}

.location-team-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 12px;
}
.location-team-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0;
}

.team-carousel-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.team-carousel-viewport {
    overflow-x: auto;
    scrollbar-width: none;
    /* align first card with container left edge */
    padding-left: max(24px, calc((100vw - 1240px) / 2));
    padding-right: 24px;
    padding-top: 6px;
    padding-bottom: 12px;
    scroll-behavior: smooth;
}

.team-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.team-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    min-width: max-content;
}

.team-card {
    flex: 0 0 clamp(250px, 27vw, 310px);
    border-radius: 28px;
    background: #ece8e1;
    color: #171717;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(20, 20, 20, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 430px;
}

.team-card-featured {
    background: #f15931;
    color: #ffffff;
}

.team-card-copy {
    padding: 28px 22px 18px;
}

.team-card-name {
    font-size: clamp(32px, 2.8vw, 46px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
    font-weight: 700;
}

.team-card-role {
    margin: 14px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #2f2f2f;
}

.team-card-bio {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.74);
    max-width: 240px;
}

.team-card-media {
    position: relative;
    margin-top: auto;
    height: 220px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    background: linear-gradient(140deg, #d7d1c6, #c7deea);
}

.team-card-featured .team-card-media {
    background: #f15931;
}

.team-card-featured .team-card-photo {
    object-fit: cover;
    object-position: top center;
}

.team-card-featured .team-card-role {
    color: rgba(255, 255, 255, 0.85);
}

.team-card-featured .team-card-bio {
    color: rgba(255, 255, 255, 0.78);
}

.team-card-featured .team-photo-placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.team-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
}

.team-photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.62);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.team-read-more {
    position: absolute;
    left: 16px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    font-size: 12px;
    font-weight: 700;
}

.team-read-more i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-size: 14px;
}

.team-carousel-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: #1f1f1f;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
    transition: background 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.team-carousel-arrow:hover {
    background: var(--accent-orange);
    transform: scale(1.06);
}

.team-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Mobile & tablet responsive */
@media (max-width: 900px) {
    .team-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .team-carousel-controls {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .location-team {
        padding: 48px 0 60px;
    }

    .team-carousel-viewport {
        padding-left: 20px;
    }

    .team-card {
        flex: 0 0 min(80vw, 280px);
    }

    .team-card-name {
        font-size: clamp(26px, 8vw, 36px);
    }

    .team-card-media {
        height: 180px;
    }
}

.location-facility {
    padding: 80px 0;
    background-color: var(--page-bg-soft);
}
.location-facility-title {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

@media (max-width: 900px) {
    .location-hero .twocol-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* GALLERY MASONRY */
@keyframes masonry-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.masonry-gallery {
    column-count: 3;
    column-gap: 20px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(90deg, #e8e4d0 25%, #f3f0e0 50%, #e8e4d0 75%);
    background-size: 800px 100%;
    animation: masonry-shimmer 1.4s ease-in-out infinite;
}
.masonry-item img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.4s ease;
}
.masonry-item img.is-loaded {
    opacity: 1;
    aspect-ratio: auto;
}
.masonry-item:hover img {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .masonry-gallery {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .masonry-gallery {
        column-count: 1;
    }
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s ease;
}
.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    z-index: 10001;
}
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev {
    left: 24px;
}
.lightbox-next {
    right: 24px;
}

@media (max-width: 900px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        background: transparent;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
    }
    .lightbox-content {
        max-width: 100%;
    }
    .lightbox-nav {
        position: absolute;
        background: transparent;
        width: 40px;
        height: 40px;
        font-size: 42px;
    }
    .lightbox-nav:hover {
        background: transparent;
    }
    .lightbox-prev {
        left: 4px;
    }
    .lightbox-next {
        right: 4px;
    }
}

/* Bulgarian Flag Side Button */
.bg-flag-btn {
    position: fixed;
    right: 0;
    top: 75%;
    transform: translateY(-50%);
    z-index: 9999;
    background: #000;
    border: none;
    cursor: pointer;
    padding: 11px 11px 11px 13px;
    border-radius: 999px 0 0 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.25);
    transition: padding 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.bg-flag-btn:hover {
    padding-left: 17px;
    box-shadow: -4px 2px 16px rgba(0,0,0,0.35);
}
.bg-flag-btn .bg-flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bg-flag-btn .bg-flag span {
    flex: 1;
    display: block;
}
.bg-flag-btn .bg-flag .flag-white  { background: #ffffff; }
.bg-flag-btn .bg-flag .flag-green  { background: #00966E; }
.bg-flag-btn .bg-flag .flag-red    { background: #D62612; }

