/* =========================================
   CRESTED CRANE ACADEMY
   MAIN STYLESHEET (DARK BLUE THEME)
========================================= */

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

:root {
    --navy: #102a43;
    --dark-blue: #0b1d2e;
    --deep-blue: #07131e;
    --gold: #c69b35;
    --gold-light: #e4b94f;
    --white: #ffffff;
    --cream: #f0f4f8;
    --muted: #627d98;
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333333;
    line-height: 1.7;
    background: var(--white);
    padding-top: 165px;
}

a {
    text-decoration: none;
}

/* =========================================
   HEADER & NAVBAR WITH HOVER DROPDOWN FIX
========================================= */

.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: var(--white);
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.top-contact-bar {
    background: var(--dark-blue);
    color: var(--white);
    min-height: 38px;
    padding: 6px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 12px;
}

.top-contact-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-contact-left i {
    color: var(--gold-light);
    margin-right: 5px;
}

.top-contact-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 13px;
    transition: all 0.3s ease;
}

.top-contact-social a:hover {
    background: var(--gold);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.header-main {
    min-height: 75px;
    padding: 5px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--navy);
}

.school-logo {
    width: 65px;
    height: 65px;
    object-fit: contain;
    display: block;
}

.logo-text h1 {
    color: var(--navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-text p {
    color: #777777;
    font-size: 12px;
    margin-top: 3px;
}

.login-button {
    background: var(--navy);
    color: var(--white);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    transition: 0.3s;
}

.login-button:hover {
    background: var(--gold);
    color: var(--white);
}

.navbar {
    background: var(--navy);
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    padding: 0 2%;
    min-height: 50px;
    white-space: nowrap;
    overflow: visible !important;
    border-bottom: 4px solid var(--gold);
}

.navbar > a,
.navbar .dropdown > a {
    display: block;
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 16px 8px;
    transition: color 0.3s ease;
}

.navbar > a:hover,
.navbar .dropdown > a:hover {
    color: var(--gold-light);
}

.dropdown {
    position: relative;
    flex-shrink: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 6px 6px;
    z-index: 999999;
}

.dropdown:hover .dropdown-content {
    display: block !important;
}

.dropdown-content a {
    display: block;
    padding: 11px 16px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
    border-bottom: 1px solid #eef2f6;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--cream);
    color: #a77b1d;
    padding-left: 22px;
}

.navbar .enquire-link {
    background: var(--gold);
    color: var(--dark-blue) !important;
    padding: 8px 14px !important;
    border-radius: 4px;
    border: 2px solid #ffd700 !important;
    font-weight: 800;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.navbar .enquire-link:hover {
    background: #ffd700;
    color: var(--navy) !important;
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.8);
    transform: translateY(-1px);
}

/* =========================================
   HERO SECTION & FLOATING APPLY
========================================= */

.hero {
    min-height: 520px;
    background: var(--dark-blue);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 60px 8%;
    color: var(--white);
    position: relative;
    z-index: 1;
}



/* CCA REAL-PHOTO HERO SLIDESHOW */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: translateX(-100%);
    animation: ccaHeroSlide 40s infinite;
}

.hero-slide-1 { animation-delay: 0s; }
.hero-slide-2 { animation-delay: 10s; }
.hero-slide-3 { animation-delay: 20s; }
.hero-slide-4 { animation-delay: 30s; }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Keep the school photographs visible while preserving readable text. */
    background: linear-gradient(
        90deg,
        rgba(11, 29, 46, 0.68),
        rgba(11, 29, 46, 0.28)
    );
    pointer-events: none;
}

.hero-content,
.hero-floating-apply {
    position: relative;
    z-index: 2;
}

@keyframes ccaHeroSlide {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    20% {
        opacity: 1;
        transform: translateX(0);
    }

    25% {
        opacity: 1;
        transform: translateX(-100%);
    }

    25.01% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.hero-content {
    max-width: 850px;
    transform: translateY(-24px);
}

.hero-announcement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 24px;
    width: min(100%, 1050px);
    margin-top: 24px;
    color: #ffffff;
}

.hero-announcement-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.hero-announcement-title {
    display: block;
    color: var(--gold-light);
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: .5px;
    animation: admissionsGlow 2.4s ease-in-out infinite;
}

.hero-announcement-details {
    max-width: 760px;
    font-size: 15px;
    line-height: 1.55;
}

.hero-apply-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 14px 23px;
    border-radius: 5px;
    background: var(--gold);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 0 0 rgba(198, 155, 53, .65);
    animation: applyPulse 2s infinite;
    transition: background .3s, color .3s, transform .3s;
}

.hero-apply-inline:hover {
    background: #ffffff;
    color: var(--navy) !important;
    transform: translateY(-3px);
    animation-play-state: paused;
}

@keyframes admissionsGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(228,185,79,0); transform: translateY(0); }
    50% { text-shadow: 0 0 15px rgba(228,185,79,.55); transform: translateY(-2px); }
}

@keyframes applyPulse {
    0% { box-shadow: 0 0 0 0 rgba(198,155,53,.65); }
    70% { box-shadow: 0 0 0 11px rgba(198,155,53,0); }
    100% { box-shadow: 0 0 0 0 rgba(198,155,53,0); }
}

.hero-subtitle {
    color: var(--gold-light);
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 13px;
}

.hero-content h2 {
    font-size: 48px;
    line-height: 1.2;
    margin: 15px 0;
    font-weight: 800;
}

.hero-content p {
    font-size: 16px;
    max-width: 650px;
    margin-bottom: 25px;
    color: #eeeeee;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background: var(--white);
    color: var(--navy);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.hero-floating-apply {
    position: absolute;
    bottom: 30px;
    right: 5%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffd700, #c69b35);
    color: var(--navy) !important;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 22px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffffff;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-floating-apply:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, #ffffff, #ffd700);
    box-shadow: 0 12px 30px rgba(255, 215, 0, 0.5);
    color: var(--dark-blue) !important;
}

.hero-floating-apply:hover .fa-arrow-right {
    transform: translateX(4px);
}

.apply-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50px;
    border: 2px solid #ffd700;
    animation: heroApplyPulse 2s infinite;
    pointer-events: none;
}

@keyframes heroApplyPulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.15, 1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* =========================================
   SCHOOL HIGHLIGHTS
========================================= */

.school-highlights {
    background: var(--dark-blue);
    color: var(--white);
    padding: 20px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid var(--gold);
}

.school-highlights span {
    border-right: 1px solid var(--gold);
    padding-right: 25px;
}

.school-highlights span:last-child {
    border-right: none;
}

/* =========================================
   COMPACT LEARNING STAGES CARDS
========================================= */

.learning-stages {
    background: var(--cream);
    padding: 70px 7%;
}

.section-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 35px;
}

.subtitle {
    color: #a77b1d;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
}

.section-heading h2 {
    color: var(--navy);
    font-size: 32px;
    margin: 10px 0;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}

.stage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stage-card {
    background: var(--dark-blue);
    color: var(--white);
    padding: 22px 18px;
    border-radius: 8px;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 6px 18px rgba(11, 29, 46, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(11, 29, 46, 0.25);
}

.stage-icon {
    font-size: 26px;
    margin-bottom: 8px;
}

.stage-card h3 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 6px;
    font-weight: 700;
}

.stage-card p {
    color: #bcccdc;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.stage-btn {
    display: inline-block;
    background: var(--gold);
    color: var(--dark-blue);
    padding: 7px 14px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: auto;
}

.stage-btn:hover {
    background: var(--white);
    color: var(--navy);
}

/* =========================================
   CURRICULUM SECTION
========================================= */

.curriculum-section {
    padding: 80px 8%;
    background: var(--white);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: auto;
}

.curriculum-card {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(11,42,67,0.05);
    transition: 0.35s ease;
}

.curriculum-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.curriculum-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 18px;
}

.curriculum-card h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-size: 20px;
}

.curriculum-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.curriculum-card a {
    color: #a77b1d;
    font-weight: bold;
    font-size: 13px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
}

/* =========================================
   WHY FAMILIES CHOOSE CCA
========================================= */

.why-cca {
    padding: 90px 7%;
    background: var(--dark-blue);
}

.why-cca .section-heading h2 { color: var(--white); }
.why-cca .section-heading p { color: #bcccdc; }
.why-cca .subtitle { color: var(--gold-light); }

.why-cca-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1200px;
    margin: auto;
}

.why-card {
    background: linear-gradient(145deg, #183b56, #0f273c);
    padding: 35px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 10px 25px rgba(0,0,0,0.16);
    transition: 0.35s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(145deg, #244d6e, #13324d);
}

.why-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--gold);
    color: var(--dark-blue);
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 18px;
}

.why-card h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 19px;
}

.why-card p {
    color: #bcccdc;
    font-size: 14px;
    margin-bottom: 12px;
}

.why-card a {
    color: var(--gold-light);
    font-weight: bold;
    font-size: 14px;
}

/* =========================================
   DAY AND BOARDING
========================================= */

.school-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.option-card {
    padding: 90px 10%;
    color: var(--white);
    position: relative;
}

.day-card { background: linear-gradient(135deg, #183b56, #102a43); }
.boarding-card { background: linear-gradient(135deg, #0b1d2e, #07131e); }

.option-label {
    display: block;
    color: var(--gold-light);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.option-card h2 { font-size: 34px; margin-bottom: 15px; }
.option-card p { color: #bcccdc; margin-bottom: 25px; }

/* =========================================
   STUDENT LIFE
========================================= */

.student-life {
    padding: 75px 8%;
    background: var(--cream);
}

.student-life .section-heading h2 { color: var(--navy); }

.student-life-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 45px;
    margin: auto;
}

.student-life-intro h3 {
    color: var(--navy);
    font-size: 27px;
    margin-bottom: 15px;
}

.student-life-intro p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.student-life-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-outline-dark {
    display: inline-block;
    padding: 11px 22px;
    border: 2px solid var(--navy);
    border-radius: 4px;
    color: var(--navy);
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}

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

.student-life-list span {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    background: #ffffff;
    color: var(--navy);
    border: 1px solid #d9e2ec;
    border-left: 3px solid var(--gold);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.04);
    transition: 0.3s ease;
}

.student-life-list span:hover {
    background: var(--navy);
    color: #ffffff;
    transform: translateY(-4px);
}

/* =========================================
   MEET OUR STAFF
========================================= */

.meet-staff {
    padding: 90px 8%;
    background: var(--navy);
    text-align: center;
}

.staff-content {
    max-width: 750px;
    margin: auto;
}

.staff-content .subtitle { color: var(--gold-light); }
.staff-content h2 { color: var(--white); font-size: 36px; margin: 12px 0; }
.staff-subtitle { color: var(--gold-light); font-weight: bold; font-size: 18px; margin-bottom: 12px; }
.staff-content > p:not(.staff-subtitle) { color: #bcccdc; margin-bottom: 25px; }

/* =========================================
   HOW TO APPLY
========================================= */

.how-to-apply {
    padding: 90px 7%;
    background: var(--white);
}

.application-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1200px;
    margin: auto;
}

.application-step {
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    border: 1px solid #d9e2ec;
    border-top: 5px solid var(--gold);
    border-radius: 11px;
    padding: 32px 25px;
    box-shadow: 0 7px 22px rgba(11,42,67,0.06);
    transition: 0.35s ease;
}

.application-step:hover { transform: translateY(-8px); }

.step-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold-light);
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.application-step h3 { color: var(--navy); margin-bottom: 12px; font-size: 18px; }
.application-step p { color: var(--muted); font-size: 14px; }

.application-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

/* =========================================
   TESTIMONIALS
========================================= */

.testimonials-section {
    padding: 80px 8%;
    background: var(--cream);
}

.testimonial-notice {
    max-width: 750px;
    margin: auto;
    padding: 30px;
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    border-left: 5px solid var(--gold);
    box-shadow: 0 10px 30px rgba(11,42,67,0.08);
}

.testimonial-notice p { color: var(--muted); font-style: italic; }

/* =========================================
   FOOTER, MAP & SUBSCRIBE
========================================= */

.site-footer {
    background: var(--deep-blue);
    color: var(--white);
    padding: 45px 6% 18px;
    font-size: 13px;
    margin-top: 50px;
    border-top: 4px solid var(--gold);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: 35px;
    max-width: 1200px;
    margin: auto;
}

.site-footer h3 { color: var(--gold-light); font-size: 18px; margin-bottom: 10px; }
.site-footer h4 { color: var(--gold-light); font-size: 14px; margin-bottom: 10px; }
.site-footer p { color: #bcccdc; line-height: 1.8; margin-bottom: 6px; }

.footer-links a {
    display: block;
    color: #bcccdc;
    margin-bottom: 6px;
    transition: 0.3s;
}

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

.footer-map iframe {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.footer-subscribe {
    margin-top: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    max-width: 320px;
}

.footer-subscribe h4 { color: var(--gold-light); font-size: 13px; margin-bottom: 4px; }
.footer-subscribe p { color: #bcccdc; font-size: 11px; line-height: 1.4; margin-bottom: 10px; }

.subscribe-form { display: flex; gap: 6px; }
.subscribe-form input {
    flex: 1; min-width: 0; padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px; font-size: 11px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy); outline: none;
}

.subscribe-form button {
    background: var(--gold); color: var(--dark-blue);
    border: none; padding: 8px 12px; border-radius: 4px;
    cursor: pointer; font-weight: bold; font-size: 11px;
    transition: background 0.3s ease;
}

.subscribe-form button:hover { background: #ffd700; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 25px; padding-top: 15px; text-align: center;
}

.footer-bottom p { font-size: 12px; margin: 0; }


/* =========================================================
   RESPONSIVE LAYOUT PATCH — CCA BRAND COLOURS PRESERVED
   Desktop, tablet and mobile
========================================================= */

/* Keep media and content within the viewport. */
html { max-width: 100%; overflow-x: hidden; }
body { max-width: 100%; overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

/* The mobile menu control is added by script.js. */
.mobile-menu-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 4px solid var(--gold);
    background: var(--dark-blue);
    color: var(--white);
    font: 700 15px Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.mobile-menu-toggle .menu-icon { color: var(--gold-light); font-size: 19px; }
.mobile-menu-toggle:focus-visible,
.navbar a:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }

@media (max-width: 1000px) {
    body { padding-top: 0; }
    html { scroll-padding-top: 15px; }
    .site-header { position: relative !important; }
    .header-main { flex-wrap: wrap; min-height: auto; }
    .logo { flex: 1 1 250px; min-width: 0; }
    .login-button { flex: 0 1 auto; }

    .mobile-menu-toggle { display: flex; }
    .navbar {
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-height: 68vh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        white-space: normal;
        padding: 7px 4%;
        gap: 0;
        background: var(--navy);
    }
    .navbar.mobile-open { display: flex !important; }
    .navbar > a,
    .navbar .dropdown > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 13px 10px;
        border-bottom: 1px solid rgba(255,255,255,.14);
        font-size: 14px;
        white-space: normal;
    }
    .navbar .dropdown { width: 100%; }
    .navbar .dropdown-content {
        display: none !important;
        position: static;
        width: 100%;
        min-width: 0;
        padding: 2px 0 7px 14px;
        border: 0;
        border-left: 2px solid var(--gold);
        border-radius: 0;
        box-shadow: none;
        background: var(--dark-blue);
    }
    .navbar .dropdown.open > .dropdown-content { display: block !important; }
    .navbar .dropdown-content a {
        display: block;
        padding: 11px 12px;
        color: var(--white);
        font-size: 13px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .navbar .dropdown-content a:hover { color: var(--gold-light); }
    .navbar .enquire-link { justify-content: center; text-align: center; margin: 8px 0; }

    .hero { min-height: 440px; padding: 55px 6%; background-position: center; }
    .hero-content h2 { font-size: clamp(32px, 5vw, 44px); }
    .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-cca-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-map { min-width: 0; }
}

@media (max-width: 700px) {
    .top-contact-bar { flex-wrap: wrap; padding: 8px 4%; gap: 7px 12px; }
    .top-contact-left { flex-wrap: wrap; gap: 5px 13px; font-size: 11px; }
    .top-contact-social { gap: 7px; }
    .header-main { padding: 12px 4%; gap: 10px; }
    .school-logo { width: 52px; height: 52px; }
    .logo { gap: 10px; flex-basis: 100%; }
    .logo-text h1 { font-size: clamp(15px, 4.2vw, 19px); }
    .logo-text p { font-size: 11px; }
    .login-button { margin-left: 62px; font-size: 11px; padding: 9px 12px; }

    .hero { min-height: 390px; padding: 42px 5%; }
    .hero-content { max-width: 100%; transform: translateY(-12px); }
    .hero-announcement { flex-wrap: wrap; align-items: flex-start; gap: 13px; margin-top: 18px; }
    .hero-announcement-title { font-size: clamp(23px, 7vw, 30px); }
    .hero-announcement-details { font-size: 13px; }
    .hero-apply-inline { padding: 11px 18px; font-size: 14px; }
    .hero-subtitle { font-size: 10px; letter-spacing: 1.5px; }
    .hero-content h2 { font-size: clamp(29px, 8vw, 38px); line-height: 1.15; }
    .hero-content p { font-size: 14px; }
    .hero-buttons { flex-wrap: wrap; gap: 10px; }
    .hero-floating-apply { right: 12px; bottom: 12px; }

    .school-highlights { gap: 9px 14px; padding: 14px 5%; font-size: 12px; }
    .school-highlights span { border-right: 0; padding-right: 0; }
    .learning-stages, .curriculum-section, .why-cca,
    .testimonials-section { padding: 45px 5%; }
    .section-heading h2 { font-size: clamp(23px, 6vw, 30px); }
    .section-heading p { font-size: 14px; }
    .stage-grid, .why-cca-grid, .curriculum-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .curriculum-card { padding: 25px 20px; }
    .footer-container { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .site-footer { padding: 35px 5% 18px; }
    .footer-subscribe { max-width: 100%; }
    .subscribe-form { flex-wrap: wrap; }
    .subscribe-form input { min-width: 0; }
    .footer-map iframe { min-height: 180px; }
}

@media (max-width: 420px) {
    .top-contact-left { flex-direction: column; align-items: flex-start; }
    .top-contact-social { align-self: flex-end; }
    .school-logo { width: 46px; height: 46px; }
    .logo-text h1 { font-size: 14px; }
    .login-button { margin-left: 56px; }
    .hero { min-height: 360px; }
    .hero-buttons .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* The Apply Now action now sits beside the 2027 admissions announcement. */
.hero-floating-apply { display: none !important; }


/* CCA website update: admissions visibility, social links and WhatsApp hero shortcut */
.top-contact-social a:hover { background: var(--gold); color: var(--dark-blue); }
.footer-social { display:flex; align-items:center; gap:12px; margin-top:14px; }
.footer-social a { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.12); color:#fff; font-size:16px; transition:all .25s ease; }
.footer-social a:hover { background:var(--gold); color:var(--navy); transform:translateY(-2px); }
.hero-announcement-title { color:#FFD85A; text-shadow:0 2px 12px rgba(0,0,0,.55), 0 0 18px rgba(255,216,90,.55); animation:admissionsGlow 2s ease-in-out infinite; }
.hero-apply-inline { background:#F2C94C; color:#10243A !important; border:2px solid #FFE28A; box-shadow:0 5px 18px rgba(0,0,0,.28), 0 0 0 0 rgba(242,201,76,.65); }
.hero-apply-inline:hover { background:#fff; color:var(--navy) !important; }
.hero-announcement-actions { position:relative; flex:0 0 205px; min-height:112px; display:flex; align-items:flex-end; justify-content:flex-start; }
@media (max-width:700px) {
 .hero-announcement-actions { flex:1 1 100%; min-height:95px; width:100%; }
 .hero-apply-inline { align-self:flex-end; }
}


/* WhatsApp contact button — positioned inside the hero, never fixed to the viewport */
.whatsapp-fixed-contact {
    position: absolute;
    top: 38%;
    right: 3.5%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0,0,0,.85);
    transition: transform .2s ease, color .2s ease;
}
.whatsapp-fixed-contact i {
    display: block;
    color: #25D366 !important;
    font-size: 43px;
    line-height: 1;
    text-shadow: none;
}
.whatsapp-fixed-contact:hover {
    color: #FFE28A !important;
    background: transparent !important;
    transform: translateY(-2px);
}
.whatsapp-fixed-contact:hover i { color: #25D366 !important; }

/* =========================================
   MOBILE REFINEMENTS — CCA
========================================= */
.office-email, .top-contact-phones a { color: inherit; }
.office-email:hover, .top-contact-phones a:hover { color: var(--gold-light); }
.top-contact-row { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
.top-contact-phones { display:flex; align-items:center; gap:18px; }
.top-contact-phones i { color:var(--gold-light); margin-right:5px; }
.mobile-primary-nav { display:none; }
.back-to-top {
    position:fixed; right:18px; bottom:20px; z-index:99990;
    width:46px; height:46px; display:flex; align-items:center; justify-content:center;
    border:0; border-radius:50%; background:var(--gold); color:var(--navy);
    box-shadow:0 4px 14px rgba(0,0,0,.25); font-size:20px; cursor:pointer;
    opacity:0; visibility:hidden; transform:translateY(8px); transition:.2s ease;
}
.back-to-top.is-visible { opacity:1; visibility:visible; transform:translateY(0); }
.contact-layout { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
.contact-layout > div { min-width:0; }
.student-life-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.student-life-list span { background:var(--cream); color:var(--navy); border-left:3px solid var(--gold); padding:9px 12px; border-radius:4px; }
.application-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }

@media (max-width:1000px) {
    .site-header { position:relative !important; }
    body { padding-top:0; }
    .top-contact-bar { display:flex; flex-direction:column; align-items:stretch; gap:5px; padding:6px 4%; }
    .top-contact-row { width:100%; }
    .top-contact-left { display:none; }
    .top-contact-social { flex:0 0 auto; }
    .top-contact-social a { width:23px; height:23px; }
    .top-contact-phones { justify-content:flex-start; gap:14px; font-size:10px; white-space:nowrap; }
    .header-main { display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:7px; padding:8px 3%; min-height:66px; }
    .logo { flex:1 1 auto; min-width:0; gap:7px; }
    .school-logo { width:43px; height:43px; flex:0 0 43px; }
    .logo-text { min-width:0; }
    .logo-text h1 { font-size:clamp(11px,3.6vw,17px); white-space:nowrap; line-height:1.15; letter-spacing:-.35px; }
    .logo-text p { font-size:10px; white-space:nowrap; margin-top:2px; line-height:1.2; }
    .login-button { flex:0 0 auto; margin:0; padding:8px 9px; font-size:9px; letter-spacing:-.15px; text-align:center; }
    .mobile-primary-nav { display:flex; align-items:center; justify-content:space-around; gap:2px; background:var(--navy); border-bottom:2px solid var(--gold); padding:0 2%; }
    .mobile-primary-nav a { color:#fff; font-size:11px; font-weight:700; text-transform:uppercase; padding:12px 5px; white-space:nowrap; }
    .mobile-menu-toggle { display:flex; width:auto; flex:0 0 auto; padding:9px 12px; border:0; border-bottom:2px solid var(--gold); border-radius:0; font-size:11px; }
    .mobile-menu-toggle .menu-label { display:none; }
    .navbar { display:none !important; }
    .navbar.mobile-open { display:flex !important; }
    .navbar .dropdown:hover > .dropdown-content { display:none !important; }
    .navbar .dropdown.open > .dropdown-content { display:block !important; }
    .hero-slide { object-fit:cover; }
    .hero-slideshow { display:block; }
    .footer-container { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
    .footer-brand { grid-column:1 / -1; }
    .footer-links { grid-column:1; grid-row:2; }
    .footer-contact { grid-column:2; grid-row:2; min-width:0; }
    .footer-map iframe { height:115px; min-height:115px; }
    .site-footer { padding:24px 4% 12px; margin-top:28px; }
    .footer-container { gap:12px; }
    .footer-subscribe { margin-top:10px; padding:11px; }
    .contact-layout { grid-template-columns:minmax(0,1fr) !important; gap:22px !important; }
    .contact-layout > div { width:100%; }
    .contact-layout > div:first-child { order:2; }
    .contact-layout > div:last-child { order:1; }
    .contact-layout form input, .contact-layout form textarea { width:100%; max-width:100%; font-size:16px; }
    .application-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:420px) {
    .top-contact-phones { gap:9px; font-size:9px; }
    .office-email { font-size:10px; white-space:nowrap; }
    .top-contact-social { gap:4px; }
    .top-contact-social a { width:21px; height:21px; font-size:11px; }
    .school-logo { width:38px; height:38px; flex-basis:38px; }
    .logo-text h1 { font-size:11px; letter-spacing:-.45px; }
    .logo-text p { font-size:9px; }
    .login-button { font-size:8px; padding:7px 6px; }
    .mobile-primary-nav a { font-size:10px; padding:11px 3px; }
    .mobile-menu-toggle { padding:8px 10px; }
    .footer-container { gap:10px; }
    .footer-links a, .footer-contact p { font-size:11px; overflow-wrap:anywhere; }
    .footer-map iframe { height:100px; min-height:100px; }
    .application-steps { grid-template-columns:minmax(0,1fr); }
}


/* CCA corrections 17-20: contact bar, WhatsApp placement, platform colours, mobile hero tint */
.top-contact-bar { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.top-contact-left { display:flex; align-items:center; flex-wrap:wrap; gap:8px 22px; min-width:0; }
.top-contact-left .office-email { white-space:nowrap; }
.top-contact-phones { display:flex; align-items:center; gap:18px; white-space:nowrap; }
.top-contact-social a[aria-label="Facebook"], .footer-social a[aria-label="Facebook"] { color:#1877F2 !important; }
.top-contact-social a[aria-label="Instagram"], .footer-social a[aria-label="Instagram"] { color:#E4405F !important; }
.top-contact-social a[aria-label="TikTok"], .footer-social a[aria-label="TikTok"] { color:#EE1D52 !important; text-shadow:1px 1px 0 #25F4EE; }
.top-contact-social a[aria-label="WhatsApp"], .footer-social a[aria-label="WhatsApp"] { color:#25D366 !important; }
.top-contact-social a:hover, .footer-social a:hover { filter:brightness(1.12); transform:translateY(-2px); }
.mobile-chat-strip { display:none; }
/* The desktop floating WhatsApp shortcut remains in its established position. */
@media (max-width:1000px) {
  .top-contact-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"contact social" "phones phones"; align-items:center; gap:5px 10px; }
  .top-contact-left { display:contents; }
  .top-contact-left .office-email { grid-area:contact; min-width:0; overflow:hidden; text-overflow:ellipsis; font-size:10px; }
  .top-contact-phones { grid-area:phones; display:flex; justify-content:flex-start; gap:14px; font-size:10px; }
  .top-contact-social { grid-area:social; display:flex; justify-content:flex-end; gap:7px; }
  .top-contact-social a { background:transparent !important; }
  .mobile-chat-strip { display:flex; justify-content:flex-end; padding:5px 4%; background:var(--navy); }
  .mobile-chat-strip a { display:inline-flex; align-items:center; gap:7px; color:#fff; background:#075E54; border-radius:18px; padding:6px 12px; font-size:11px; font-weight:700; text-decoration:none; }
  .mobile-chat-strip i { color:#25D366; font-size:16px; }
  .desktop-whatsapp-contact { display:none !important; }
  .hero { position:relative; overflow:hidden; }
  .hero::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:rgba(8,39,65,.30); }
  .hero-overlay { background:rgba(8,39,65,.30) !important; }
  .hero-content { position:relative; z-index:2; }
}
@media (max-width:420px) {
  .top-contact-phones { gap:9px; font-size:9px; }
  .top-contact-left .office-email { font-size:9px; }
  .top-contact-social { gap:4px; }
}

/* WhatsApp button stays within the hero on every screen size */
@media screen and (max-width: 1000px) {
    .mobile-chat-strip { display: none !important; }
    .whatsapp-fixed-contact,
    .desktop-whatsapp-contact,
    .hero-whatsapp,
    .mobile-hero-whatsapp { display: none !important; }
    .hero { position: relative; overflow: hidden; }
    .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(8,39,65,.30); }
    .hero-overlay { background: rgba(8,39,65,.30) !important; }
    .hero-content { position: relative; z-index: 2; }
    .whatsapp-fixed-contact {
        display: inline-flex !important;
        position: absolute;
        top: auto;
        right: 18px;
        bottom: 22px;
        left: auto;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: #25D366 !important;
        border-radius: 28px;
        color: #ffffff !important;
        font-size: 15px;
        text-shadow: none;
        z-index: 5;
        box-shadow: 0 3px 10px rgba(0,0,0,.20) !important;
    }
    .whatsapp-fixed-contact i { color: #ffffff !important; font-size: 21px; }
}
@media screen and (min-width: 1001px) {
    .hero { position: relative; }
    .whatsapp-fixed-contact { display: flex !important; position: absolute; }
    .mobile-hero-whatsapp { display: none !important; }
}

/* DESKTOP HERO LAYOUT — keep mobile layout unchanged */
@media screen and (min-width: 1001px) {
    /* Move Chat with Us to the upper-right corner of the hero */
    .whatsapp-fixed-contact {
        top: 8% !important;
        right: 3.5% !important;
        bottom: auto !important;
        left: auto !important;
    }

    /* Stack the Apply Now button beneath the admissions text on the left */
    .hero-announcement {
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 14px !important;
    }
    .hero-announcement-actions {
        flex: 0 0 auto !important;
        width: auto !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        margin-top: 2px;
    }
    .hero-apply-inline {
        align-self: flex-start !important;
    }
}
