:root {
    --bg: #f2f6ff;
    --surface: #ffffff;
    --ink: #123d79;
    --ink-dark: #0a2448;
    --muted: #435a78;
    --brand: #113f84;
    --brand-dark: #0a2f64;
    --brand-red: #113f84;
    --accent: #2a5ca8;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(25, 35, 55, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--ink-dark);
    background: radial-gradient(circle at top right, #dfe9ff, var(--bg));
}

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

.container { width: min(1120px, 92%); margin: 0 auto; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #ebedf2;
    transition: box-shadow 0.25s ease;
}

.utility-bar {
    background: linear-gradient(90deg, #e8f1ff, #f9fbff);
    border-bottom: 1px solid #e6ebf5;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}

.utility-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
}

.utility-phone {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
}

.utility-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.social-links a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid #d8e0ef;
    background: #fff;
    color: var(--brand);
}

.social-links a svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-form input {
    width: 130px;
    margin: 0;
    padding: 7px 10px;
    font-size: 0.84rem;
}

.search-form button {
    border: 0;
    background: var(--brand);
    color: #fff;
    border-radius: 20px;
    padding: 7px 11px;
    font-size: 0.78rem;
    cursor: pointer;
}

.nav-wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    transition: padding 0.25s ease;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(170px, 17vw, 250px); height: auto; display: block; }
.brand img { transition: width 0.25s ease; }

nav { margin-left: auto; }
.site-nav { margin-left: auto; }

.mobile-actions {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eaf1ff;
    border: 1px solid #d6e2f7;
    color: var(--brand);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 700;
}

.call-btn svg,
.menu-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.menu-toggle {
    border: 1px solid #d6e2f7;
    background: #fff;
    color: var(--brand);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.menu > li { position: relative; }

.menu > li > a,
.menu-parent > a {
    font-size: 0.92rem;
    color: #25466f;
    font-weight: 600;
    padding: 6px 2px;
    display: inline-block;
}

.menu-parent {
    display: flex;
    align-items: center;
}

.menu-parent > a::after {
    content: "\25BE";
    margin-left: 6px;
    font-size: 0.65rem;
}

.dropdown-toggle { display: none; }

.menu > .has-mega { position: static; }

.dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    min-width: 240px;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f3;
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.mobile-drawer-tools {
    display: none;
}

.dropdown-menu li a {
    display: block;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #2b4b73;
}

.dropdown-menu li a:hover { background: #f3f7ff; }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu {
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

.mega-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    color: #fff;
    background: linear-gradient(110deg, var(--brand-dark), var(--brand));
}

.mega-menu-top div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mega-menu-top span {
    color: #bcd3f8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mega-menu-top strong { font-size: 1rem; }

.mega-menu-top > a {
    flex: 0 0 auto;
    padding: 8px 13px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.mega-menu-top > a:hover { background: rgba(255, 255, 255, 0.12); }

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 18px 10px 20px;
}

.mega-menu-group {
    padding: 0 16px;
    border-right: 1px solid #e6ecf6;
}

.mega-menu-group:last-child { border-right: 0; }

.mega-menu-group h3 {
    margin: 0 10px 7px;
    color: var(--brand);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mega-menu-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-menu-group li a {
    line-height: 1.35;
    padding: 8px 10px;
}

.mega-menu-group .mega-feature-link {
    color: var(--brand);
    font-weight: 800;
    background: #eef4ff;
}

.mega-feature-link span {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 6px;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

main { min-height: 65vh; }

.hero { padding: 48px 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }

.tag { color: var(--brand-red); font-weight: 700; margin-bottom: 10px; letter-spacing: 0.2px; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.85rem, 3vw, 2.75rem); margin: 0 0 14px; }

.subtitle { color: var(--muted); margin: 0 0 14px; max-width: 760px; }

.name-block {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    background: #fff;
    border: 1px solid #dbe4f3;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.name-block strong { font-size: 1.04rem; color: var(--brand); }
.name-block span { font-size: 0.92rem; color: var(--muted); }

.hero-side-image {
    margin-top: 16px;
}

.hero-side-image img {
    width: 100%;
    max-width: 575px;
    height: 350px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #dfe7f4;
    box-shadow: var(--shadow);
}

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

.hero-card, .card, .course-card, .stat-card, .notice, .service-card, .testimonial-card, .split-card, .cta-banner {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

form label { display: block; font-size: 0.92rem; margin-bottom: 12px; color: #404040; }
input, select, textarea, button { font: inherit; }

label.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

label.inline-check input {
    width: auto;
    margin: 0;
}

input, select, textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #d7deea;
    border-radius: 10px;
    padding: 11px 12px;
    outline: none;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(31, 79, 149, 0.16);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31, 79, 149, 0.24); }
.btn.small { padding: 8px 14px; font-size: 0.85rem; color: #fff; }
.btn.ghost { background: #edf3ff; color: var(--brand-red); border: 1px solid #cfe0ff; }
.btn.full { width: 100%; }

.text-link { color: var(--brand-red); font-weight: 700; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.section { padding: 34px 0; }
.section-sm { padding: 12px 0 6px; }
.section-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 14px; }
.narrow { width: min(560px, 92%); }

.trust-strip {
    background: linear-gradient(90deg, rgba(17, 63, 132, 0.11), rgba(17, 63, 132, 0.04));
    border-top: 1px solid #dde6f4;
    border-bottom: 1px solid #dde6f4;
}

.chip-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip-row.left { justify-content: flex-start; }
.chip-row span {
    background: #fff;
    border: 1px solid #dbe3f1;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.88rem;
    color: #31517a;
    font-weight: 600;
}

.split-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.split-card ul { margin: 0; padding-left: 18px; }

.service-grid, .course-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.service-card, .testimonial-card { border: 1px solid #e6ecf6; }
.service-card p { color: var(--muted); }
.service-card ul {
    margin: 8px 0 12px;
    padding-left: 18px;
    color: var(--muted);
}
.service-card a { font-weight: 700; color: var(--brand); }

.services-uniform .service-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
}

.services-uniform .service-card h3 {
    min-height: 54px;
}

.services-uniform .service-card a {
    margin-top: auto;
}

.courses-offered-grid .course-program-card {
    display: flex;
    flex-direction: column;
    scroll-margin-top: 130px;
}

.courses-offered-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.courses-offered-grid .course-program-card .btn,
.flagship-course .btn {
    align-self: flex-start;
    color: #fff;
    margin-top: auto;
}

.flagship-course .btn.ghost {
    color: var(--brand-red);
}

.flagship-course .cta-row .btn {
    margin-top: 0;
}

.programs-intro {
    max-width: 850px;
    margin-bottom: 28px;
}

.programs-intro h2 { margin: 0 0 12px; }

.feature-media {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe4f3;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.feature-media img {
    display: block;
    width: 100%;
    height: auto;
}

.feature-media figcaption {
    padding: 11px 15px 13px;
    color: var(--muted);
    font-size: 0.9rem;
}

.feature-media-wide {
    margin-bottom: 28px;
}

.feature-media-wide img {
    max-height: 620px;
    object-fit: cover;
}

.editorial-split {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: center;
}

.feature-media-portrait img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.flagship-course {
    position: relative;
    border: 1px solid #c9d9f2;
    background: linear-gradient(135deg, #fff, #edf4ff);
}

#certified-career-curator { scroll-margin-top: 130px; }

.flagship-label {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 10px;
    color: #fff;
    background: var(--brand);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.flagship-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0;
}

.flagship-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -160px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.flagship-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 28px;
    align-items: center;
}

.flagship-hero .flagship-label {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.flagship-hero h1 {
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    line-height: 1.02;
    margin-bottom: 14px;
}

.flagship-hero .cta-row {
    margin-top: 22px;
}

.flagship-hero .btn.ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
}

.flagship-hero-card {
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.flagship-hero-card span {
    display: inline-block;
    margin-bottom: 12px;
    color: #d7e6ff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flagship-hero-card h2 {
    margin: 0 0 12px;
    color: #fff;
}

.flagship-hero-card p {
    margin: 0;
}

.flagship-module-grid .service-card {
    min-height: 210px;
}

.core-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.core-service-card {
    background: #fff;
    border: 1px solid #dfe7f4;
    border-radius: 14px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    box-shadow: var(--shadow);
}

.core-service-card h3 {
    margin: 0;
    font-size: 1.02rem;
}

.core-service-card > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.core-service-card a {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand);
}

.core-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2ecff, #f8fbff);
    border: 1px solid #dce6f8;
    color: var(--brand);
    flex: 0 0 auto;
    font-size: 1.35rem;
    line-height: 1;
}

.core-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.testimonial-card p { color: #415777; }
.testimonial-card strong { display: block; margin-top: 10px; color: var(--brand); }
.testimonial-card span { font-size: 0.88rem; color: var(--muted); }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.photo-grid.four { grid-template-columns: repeat(4, 1fr); }
.photo-grid.two { grid-template-columns: repeat(2, 1fr); }

.photo-grid img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e3e9f4;
}

.workshop-gallery {
    columns: 3 280px;
    column-gap: 16px;
    margin-top: 24px;
}

.workshop-gallery figure {
    break-inside: avoid;
    margin: 0 0 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dbe4f3;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(16, 43, 82, 0.08);
}

.workshop-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.workshop-gallery figcaption {
    padding: 12px 14px 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.cta-banner {
    background: linear-gradient(120deg, rgba(17, 63, 132, 0.96), rgba(9, 35, 74, 0.92));
    color: #fff;
}

.cta-banner h2, .cta-banner p { color: #fff; }

.page-hero {
    background: linear-gradient(120deg, rgba(17, 63, 132, 0.94), rgba(9, 35, 74, 0.8));
    color: #fff;
    padding: 40px 0;
}

.page-hero h1, .page-hero p { color: #fff; margin: 0; }
.page-hero p { margin-top: 8px; max-width: 760px; }

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}

.course-card p { color: var(--muted); min-height: 48px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 10px; }

.video-wrap { background: #000; border-radius: var(--radius); overflow: hidden; }
.video-wrap video { width: 100%; max-height: 70vh; }
.video-list { list-style: none; padding: 0; margin: 14px 0; }
.video-list li { background: #fff; border: 1px solid #ececec; border-radius: 10px; margin-bottom: 10px; padding: 12px; }
.video-list a { color: var(--brand); font-weight: 600; }

.step-list { margin: 0 0 18px; padding-left: 22px; }
.step-list li { margin-bottom: 8px; color: #2f4566; }
.step-list.large li { margin-bottom: 12px; }

.note { color: var(--muted); margin-bottom: 14px; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
    background: #fff;
    border: 1px solid #e1e8f3;
    border-radius: 12px;
    padding: 12px 14px;
}
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.faq-item p { margin: 10px 0 4px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 18px; }
.map { width: 100%; height: 260px; border: 0; border-radius: 12px; margin-top: 10px; }

.lets-talk-options {
    border: 1px solid #d8e2f3;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 8px 0 14px;
}

.lets-talk-options legend {
    padding: 0 6px;
    font-weight: 700;
    color: var(--ink);
    font-size: 0.92rem;
}

.lets-talk-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 0.9rem;
    color: #3e4f67;
}

.lets-talk-options input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.small-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--brand-red);
    font-weight: 700;
    margin: 0;
}

.home-intro-visual {
    padding: 18px 0 8px;
}

.home-intro-visual img {
    width: 100%;
    border-radius: 14px;
}

.hero-start-banner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: clamp(240px, 38vw, 400px);
    box-shadow: var(--shadow);
}

.hero-start-banner img {
    width: 100%;
    height: 100%;
    min-height: clamp(240px, 38vw, 400px);
    object-fit: cover;
    display: block;
}

.hero-start-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(9, 35, 74, 0.82) 15%, rgba(9, 35, 74, 0.38) 55%, rgba(9, 35, 74, 0.2) 100%);
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: clamp(18px, 3vw, 34px);
}

.hero-start-overlay h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.hero-start-overlay p {
    margin: 0;
    color: #e7f1ff;
    max-width: 680px;
}

.lead-popup {
    position: fixed;
    inset: 0;
    background: rgba(10, 24, 50, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 250;
    padding: 16px;
}

.lead-popup.active {
    display: flex;
}

.lead-popup-panel {
    width: min(980px, 100%);
    background: #fff;
    border-radius: 14px;
    overflow: scroll;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 56px rgba(7, 25, 54, 0.35);
    max-height: 90%;
}

.lead-popup-visual {
    background: #eef4ff;
    position: relative;
}

.lead-popup-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 560px;
    display: block;
}

.lead-popup-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #113f84;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
}

.lead-popup-content {
    padding: 22px;
    position: relative;
}

.lead-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #113f84;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.lead-popup-content h3 {
    margin: 4px 50px 8px 0;
    font-size: clamp(1.3rem, 2.1vw, 2.1rem);
}

.lead-popup-content p {
    margin: 0 0 12px;
    color: var(--muted);
}

.lead-popup-form label {
    margin-bottom: 9px;
}

.lead-popup-form input,
.lead-popup-form select,
.lead-popup-form textarea {
    padding: 10px 11px;
}

.lead-popup-form textarea {
    resize: vertical;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}

.table th, .table td {
    border-bottom: 1px solid #efefef;
    text-align: left;
    padding: 12px;
    font-size: 0.93rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card p { margin: 0; color: var(--muted); }
.stat-card strong { font-size: 1.5rem; }
.admin-links { display: flex; flex-wrap: wrap; gap: 10px; }
.status { margin-top: 12px; font-weight: 600; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--brand-dark); }

.footer {
    border-top: 1px solid #dfe7f4;
    margin-top: 30px;
    color: #35557f;
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    padding: 26px 0;
}

.footer-grid h4 { margin: 0 0 10px; }
.footer-grid p { margin: 0 0 8px; color: #557093; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 6px 0; }
.footer-bottom { border-top: 1px solid #e7edf7; padding: 14px 0 22px; }

.hidden { display: none; }
.flash { margin: 14px auto 0; width: min(1120px, 92%); padding: 12px 14px; border-radius: 10px; }
.flash.success { background: #e7f7ef; color: #0f7a55; }
.flash.error { background: #ffe9e9; color: #b3121b; }

body.scrolled .utility-bar {
    max-height: 0;
    opacity: 0;
    border-color: transparent;
}

body.scrolled .nav-wrap {
    padding: 4px 0;
}

body.scrolled .brand img {
    width: clamp(130px, 13vw, 180px);
}

body.scrolled .topbar {
    box-shadow: 0 6px 18px rgba(16, 43, 82, 0.12);
}

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
    .menu { gap: 12px; }
    .menu > li > a, .menu-parent > a { font-size: 0.88rem; }
}

@media (max-width: 980px) {
    .hero-grid, .split-card, .contact-grid, .footer-grid, .flagship-hero-grid, .editorial-split { grid-template-columns: 1fr; }
    .photo-grid.four, .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .utility-bar { display: none; }

    .nav-wrap {
        position: relative;
        padding: 8px 0;
    }

    .brand img {
        width: 160px;
    }

    .mobile-actions {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e3e9f4;
        box-shadow: 0 14px 30px rgba(16, 43, 82, 0.12);
        border-radius: 0 0 14px 14px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-8px);
        transition: max-height 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
        margin-left: 0;
        z-index: 120;
    }

    .topbar.menu-open .site-nav {
        max-height: 85vh;
        opacity: 1;
        overflow-y: auto;
        transform: translateY(0);
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 12px 0;
    }

    .menu > li > a,
    .menu-parent > a {
        display: block;
        padding: 11px 8px;
        border-bottom: 1px solid #edf1f8;
    }

    .menu-parent > a {
        flex: 1;
        border-bottom: 0;
    }

    .menu-parent {
        border-bottom: 1px solid #edf1f8;
    }

    .menu-parent > a::after { display: none; }

    .dropdown-toggle {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-right: 2px;
        padding: 0;
        color: var(--brand);
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .dropdown-toggle::before {
        content: "";
        width: 8px;
        height: 8px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translate(-2px, -2px);
        transition: transform 0.2s ease;
    }

    .submenu-open .dropdown-toggle::before {
        transform: rotate(225deg) translate(-1px, -1px);
    }

    .menu > li:last-child > a {
        border-bottom: 0;
    }

    .menu .btn.small {
        width: 100%;
        margin-top: 8px;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        min-width: 0;
        padding: 0 0 0 10px;
    }

    .has-dropdown.submenu-open > .dropdown-menu { display: block; }

    .dropdown-menu li a {
        padding: 10px 8px;
        border-bottom: 1px solid #f1f4fa;
    }

    .mega-menu {
        width: auto;
        overflow: visible;
        background: #f8faff;
    }

    .mega-menu-top { display: none; }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        padding: 8px 0 10px;
    }

    .mega-menu-group {
        padding: 7px 8px 5px;
        border-right: 0;
    }

    .mega-menu-group h3 { margin: 3px 8px 4px; }

    .mobile-drawer-tools {
        display: grid;
        gap: 10px;
        padding: 12px;
        border-top: 1px solid #e8edf6;
    }

    .mobile-drawer-tools .search-form input {
        width: 100%;
    }

    .mobile-drawer-tools .social-links {
        justify-content: flex-start;
    }

    body.scrolled .nav-wrap {
        padding: 8px 0;
    }

    body.scrolled .brand img {
        width: 160px;
    }

    .lead-popup-panel {
        grid-template-columns: 1fr;
        max-height: 92vh;
        overflow-y: auto;
    }

    .lead-popup-visual img {
        min-height: 220px;
        max-height: 260px;
    }
}

@media (max-width: 900px) {
    .table { display: block; overflow-x: auto; white-space: nowrap; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .booking-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .courses-offered-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .photo-grid.four, .photo-grid { grid-template-columns: 1fr; }
    .courses-offered-grid { grid-template-columns: 1fr; }
    .search-form input { width: 100px; }
    .brand img { width: 170px; }

    .trust-strip .chip-row {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px;
    }

    .trust-strip .chip-row span {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .testimonial-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 14% 6px 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .testimonial-grid .testimonial-card {
        flex: 0 0 82%;
        min-width: 82%;
        max-width: 82%;
        scroll-snap-align: start;
    }

    .testimonial-grid::-webkit-scrollbar {
        display: none;
    }

    .trust-strip .chip-row::-webkit-scrollbar {
        display: none;
    }

    .core-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .core-service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .hero-start-overlay {
        align-items: center;
        text-align: left;
        padding: 16px;
    }

    .lead-popup-content {
        padding: 18px 14px;
    }
}
