/* ==========================================================================
   ROOT / GLOBAL
   ========================================================================== */
:root {
    --viva-blue: #0e3a9c;
    --viva-blue-dark: #0a2d7d;
    --viva-yellow: #ffd200;
    --viva-yellow-hover: #ffdb33;
    --viva-red: #e63946;
    --viva-red-hover: #c92f3c;
    --viva-navy: #1b2a4a;

    --font-body: "Optima", "Candara", "Segoe UI", "Helvetica Neue", sans-serif;
    --font-heading: "Poppins", system-ui, -apple-system, sans-serif;

    --header-height: 80px;
    --container-max: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--viva-navy);
    margin: 0;
    overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none; /* see note below */
}

.footer-heading {
    font-family: var(--font-heading);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}
ul,
ol {
    margin-top: 0;
}
button {
    font-family: inherit;
}

a {
    text-decoration: none;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        opacity 0.25s ease;
}
img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   LAYOUT — CONTAINER, GRID & UTILITIES  (replaces Bootstrap grid)
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(0.5 * var(--bs-gutter-x));
    padding-left: calc(0.5 * var(--bs-gutter-x));
    margin-top: var(--bs-gutter-y);
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}
.gx-5 {
    --bs-gutter-x: 3rem;
}
.gy-4 {
    --bs-gutter-y: 1.5rem;
}
.gy-5 {
    --bs-gutter-y: 3rem;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
    .col-md-12 {
        width: 100%;
    }
}
@media (min-width: 992px) {
    .col-lg-3 {
        width: 25%;
    }
    .col-lg-4 {
        width: 33.333333%;
    }
    .col-lg-6 {
        width: 50%;
    }
}

.align-items-center {
    align-items: center;
}
.justify-content-center {
    justify-content: center;
}
.flex-column-reverse {
    flex-direction: column-reverse;
}
@media (min-width: 992px) {
    .flex-lg-row {
        flex-direction: row;
    }
}

.list-unstyled {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}
.list-inline {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}
.list-inline-item {
    display: inline-block;
}
.list-inline-item:not(:last-child) {
    margin-right: 0.4rem;
}

.btn {
    display: inline-block;
    font-family: inherit;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    background: transparent;
}

/* ==========================================================================
   HEADER  (sticky, fixed height)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 0 rgba(8, 20, 50, 0.06);
    transition: box-shadow 0.25s ease;
}
.site-header.scrolled {
    box-shadow: 0 6px 22px rgba(8, 20, 50, 0.1);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}
.header-logo img {
    display: block;
    height: auto;
    max-height: 60%;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}
.header-link {
    position: relative;
    color: var(--viva-navy);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
}
.header-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.25rem;
    height: 2px;
    background: var(--viva-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.header-link:hover {
    color: var(--viva-blue);
}
.header-link:hover::after,
.header-link.active::after {
    transform: scaleX(1);
}
.header-link.active {
    color: var(--viva-blue);
}

.header-enrol {
    margin-left: 0.75rem;
    background: var(--viva-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.65rem 1.6rem;
    border-radius: 8px;
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}
.header-enrol:hover {
    background: var(--viva-red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.header-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1110; /* stays above the panel so the X is tappable */
}
.header-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--viva-navy);
    transition:
        transform 0.3s ease,
        opacity 0.2s ease;
}
.header-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header-toggle.open span:nth-child(2) {
    opacity: 0;
}
.header-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
    .header-nav {
        display: none;
    }
    .header-toggle {
        display: flex;
    }
    .header-inner {
        height: 68px;
    }
    .header-logo img {
        max-height: 70%;
    }
}

/* ==========================================================================
   MOBILE PANEL  (full-screen, slides right→left)
   ========================================================================== */
.mobile-panel,
.mobile-panel-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    /* backdrop (covers everything; panel is full-width so mostly hidden) */
    .mobile-panel-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1095;
        background: rgba(8, 20, 50, 0.4);
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }
    .mobile-panel-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    /* full-screen panel */
    .mobile-panel {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 1100;
        background: #fff;
        padding: 1.5rem;
        overflow-y: auto;

        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .mobile-panel.open {
        transform: translateX(0);
    }

    /* head: logo + close */
    .mobile-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #eef1f6;
    }
    .mobile-panel-logo {
        width: 49px;
        height: auto;
    }
    .mobile-panel-close {
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        color: var(--viva-navy);
        font-size: 1.4rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition:
            color 0.25s ease,
            transform 0.25s ease;
    }
    .mobile-panel-close:hover {
        color: var(--viva-blue);
        transform: rotate(90deg);
    }

    /* nav links */
    .mobile-panel-nav {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        padding: 1.5rem 0;
    }
    .mobile-panel-link {
        color: var(--viva-navy);
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 1.35rem;
        padding: 0.75rem 0;
        transition:
            color 0.2s ease,
            padding-left 0.2s ease;
    }
    .mobile-panel-link:hover,
    .mobile-panel-link.active {
        color: var(--viva-blue);
        padding-left: 0.5rem;
    }

    /* CTAs */
    .mobile-panel-cta {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        padding: 1.5rem 0;
        margin-top: auto; /* pushes CTAs + socials toward the bottom */
        border-top: 1px solid #eef1f6;
    }
    .mobile-panel-btn {
        text-align: center;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 1rem;
        padding: 0.95rem 1rem;
        border-radius: 10px;
        transition:
            background 0.25s ease,
            color 0.25s ease,
            transform 0.2s ease;
    }
    .mobile-panel-btn--outline {
        border: 2px solid var(--viva-blue);
        color: var(--viva-blue);
    }
    .mobile-panel-btn--outline:hover {
        background: var(--viva-blue);
        color: #fff;
    }
    .mobile-panel-btn--solid {
        background: var(--viva-red);
        color: #fff;
    }
    .mobile-panel-btn--solid:hover {
        background: var(--viva-red-hover);
        color: #fff;
        transform: translateY(-2px);
    }

    /* socials */
    .mobile-panel-socials {
        display: flex;
        justify-content: center;
        gap: 0.85rem;
        padding: 1.5rem 0 1rem;
        border-top: 1px solid #eef1f6;
    }
    .mobile-panel-socials a {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        background: #f3f5fa;
        color: var(--viva-navy);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        transition:
            background 0.25s ease,
            color 0.25s ease,
            transform 0.2s ease;
    }
    .mobile-panel-socials a:hover {
        background: var(--viva-blue);
        color: #fff;
        transform: translateY(-3px);
    }

    /* tagline */
    .mobile-panel-tagline {
        text-align: center;
        margin: 0;
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: #9aa3b5;
    }
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--viva-blue);
    color: #fff;
    position: relative;
}
.site-footer::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--viva-yellow), var(--viva-red));
}

.footer-top {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-top-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-logo {
    width: 90px;
    height: auto;
}

.footer-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-tagline {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

.btn-enquire {
    flex-shrink: 0;
    background: var(--viva-yellow);
    color: var(--viva-navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    border: none;
    transition:
        background 0.25s ease,
        transform 0.2s ease;
}
.btn-enquire:hover {
    background: var(--viva-yellow-hover);
    color: var(--viva-navy);
    transform: translateY(-2px);
}

.footer-middle {
    padding: 3.5rem 0;
}

.footer-heading {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--viva-yellow);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 420px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}
.footer-socials a:hover {
    background: var(--viva-yellow);
    color: var(--viva-navy);
    transform: translateY(-3px);
}

.footer-links ul {
    margin: 0;
}
.footer-links ul li {
    margin-bottom: 0.9rem;
}
.footer-links ul li:last-child {
    margin-bottom: 0;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    position: relative;
    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}
.footer-links a:hover {
    color: var(--viva-yellow);
    padding-left: 6px;
}

.footer-contact ul {
    margin: 0;
}
.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}
.footer-contact ul li:last-child {
    margin-bottom: 0;
}
.footer-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--viva-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.25s ease;
}
.footer-contact a:hover {
    color: var(--viva-yellow);
}

@media (min-width: 992px) {
    .footer-links {
        padding-left: 2rem;
    }
    .footer-contact {
        padding-left: 1rem;
    }
}

.footer-bottom {
    background: var(--viva-blue-dark);
    padding: 1.25rem 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom .copyright {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}
.footer-legal {
    margin: 0;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    transition: color 0.25s ease;
}
.footer-legal a:hover {
    color: var(--viva-yellow);
}
.footer-legal .sep {
    color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 992px) {
    .footer-about {
        text-align: left;
    }

    .footer-links {
        text-align: center;
    }
    .footer-links .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact {
        text-align: right;
    }
    .footer-contact .footer-heading::after {
        left: auto;
        right: 0;
    }
    .footer-contact ul li {
        justify-content: flex-end;
    }
    .footer-contact ul li .footer-icon {
        order: 2;
    }
}

@media (max-width: 767.98px) {
    .footer-middle {
        text-align: center;
    }
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-about p {
        max-width: none;
    }
    .footer-socials {
        justify-content: center;
    }

    .footer-contact ul li {
        justify-content: center;
        text-align: left;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   HOME — HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    background: url("/assets/images/welcome.webp") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            120% 120% at 50% 0%,
            rgba(14, 58, 156, 0.35) 0%,
            rgba(10, 32, 90, 0.72) 100%
        ),
        linear-gradient(
            180deg,
            rgba(10, 32, 90, 0.35) 0%,
            rgba(8, 24, 70, 0.82) 100%
        );
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 160px;
    background: linear-gradient(180deg, rgba(8, 24, 70, 0.45), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    padding: 2rem 1.5rem 2rem;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--viva-yellow);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroFade 0.8s ease forwards 0.1s;
}

.hero-heading-wrap {
    display: inline-block;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
    padding: 1.1rem 0;
    opacity: 0;
    animation: heroFade 0.8s ease forwards 0.25s;
}
.hero-title {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.6vw, 3rem);
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    max-width: 620px;
    margin: 1.75rem auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0;
    animation: heroFade 0.8s ease forwards 0.4s;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.25rem;
    opacity: 0;
    animation: heroFade 0.8s ease forwards 0.55s;
}
.hero-btn {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.9rem 2.25rem;
    border-radius: 8px;
    transition:
        transform 0.2s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}
.hero-btn--primary {
    background: var(--viva-yellow);
    color: var(--viva-navy);
    box-shadow: 0 10px 28px rgba(255, 210, 0, 0.3);
}
.hero-btn--primary:hover {
    background: var(--viva-yellow-hover);
    color: var(--viva-navy);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(255, 210, 0, 0.42);
}
.hero-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.hero-btn--ghost:hover {
    background: #fff;
    color: var(--viva-blue);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
}
.hero-scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero-scroll-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
    position: relative;
    overflow: hidden;
}
.hero-scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: #fff;
    animation: heroScroll 1.8s ease-in-out infinite;
}
.hero-scroll:hover {
    color: #fff;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes heroScroll {
    0% {
        transform: translateY(-12px);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateY(46px);
        opacity: 0;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(1.4rem, 4.6vw, 2.4rem);
    }
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 88vh;
    }
    .hero-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 2px;
        margin-bottom: 1.1rem;
    }
    .hero-heading-wrap {
        padding: 0.9rem 0;
    }
    .hero-title {
        white-space: normal;
        font-size: clamp(1.5rem, 7vw, 2.1rem);
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-top: 1.5rem;
    }
    .hero-actions {
        gap: 0.75rem;
        margin-top: 1.75rem;
    }
    .hero-btn {
        padding: 0.8rem 1.75rem;
        font-size: 0.85rem;
    }
    .hero-scroll {
        bottom: 20px;
    }
}

@media (max-width: 400px) {
    .hero-actions {
        flex-direction: column;
    }
    .hero-btn {
        width: 100%;
    }
}

/* ==========================================================================
   HOME — CONTENT SECTIONS
   ========================================================================== */
.section-text {
    max-width: 480px;
}
.section-title {
    color: var(--viva-blue);
    font-weight: 500;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.5rem;
}
.section-text p {
    color: #5a6478;
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .section-text .section-title {
        white-space: nowrap;
        max-width: none;
    }
}

.link-arrow {
    display: inline-block;
    color: var(--viva-navy);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(27, 42, 74, 0.35);
}
.link-arrow i {
    font-size: 0.7rem;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.link-arrow:hover {
    color: var(--viva-blue);
    border-color: var(--viva-blue);
}

.welcome-image img,
.partnership-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.welcome-section {
    padding: 5.5rem 0;
}
.welcome-section .section-text {
    margin-left: auto;
}

.partnership-section {
    padding: 5.5rem 0;
    background: #eef1f8;
}

.values-section {
    padding: 2.5rem 0;
}
.values-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 2.5rem;
}
.values-list li {
    position: relative;
    color: var(--viva-blue);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.values-list li:not(:last-child)::after {
    content: "\00b7";
    position: absolute;
    right: -1.4rem;
    color: var(--viva-blue);
    opacity: 0.5;
}

@media (max-width: 991.98px) {
    .welcome-section,
    .partnership-section {
        padding: 3.5rem 0;
    }

    .section-text {
        max-width: none;
    }
    .welcome-section .section-text {
        margin-left: 0;
    }

    .values-list {
        gap: 0.6rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .values-list {
        gap: 0.5rem 1.5rem;
    }
    .values-list li {
        font-size: 0.8rem;
    }
    .values-list li:not(:last-child)::after {
        right: -1.1rem;
    }
}

/* ==========================================================================
   HOME — MISSION
   ========================================================================== */
.mission-section {
    background: var(--viva-blue);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.mission-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-weight: 500;
    font-size: 1.6rem;
    margin: 0 auto 1.75rem;
    max-width: 460px;
}
.mission-rule {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.45);
}
.mission-box {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.75rem 2.5rem;
}
.mission-box p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   HOME — GRADES OFFERED
   ========================================================================== */
.grades-section {
    padding: 5rem 0;
}

.grades-intro {
    text-align: center;
    max-width: 635px;
    margin: 0 auto 3rem;
}
.section-eyebrow {
    display: block;
    color: var(--viva-red);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.grades-title {
    color: var(--viva-blue);
    font-weight: 500;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
}
.grades-intro p {
    color: #5a6478;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.grade-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.grade-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}
.grade-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.grade-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.grade-card-body {
    padding: 1.5rem;
}
.grade-card-body h3 {
    color: var(--viva-navy);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}
.grade-card-body p {
    color: #6a7488;
    font-size: 0.9rem;
    margin: 0;
}
.grade-card-icon,
.grade-card-chevron {
    display: none;
}

.grades-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 767.98px) {
    .grade-card {
        display: grid;
        grid-template-columns: 96px auto 1fr auto;
        align-items: center;
        gap: 1rem;
        border-radius: 14px;
        padding: 0;
        padding-right: 1rem;
        position: relative;
        overflow: hidden;
    }
    .grade-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
    }
    .grade-card--r::before {
        background: var(--viva-yellow);
    }
    .grade-card--lower::before {
        background: var(--viva-blue);
    }
    .grade-card--upper::before {
        background: var(--viva-red);
    }

    .grade-card-img {
        aspect-ratio: auto;
        width: 96px;
        height: 96px;
        margin-left: 5px;
    }
    .grade-card-img img {
        height: 100%;
    }

    .grade-card-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        color: #fff;
        font-size: 1.35rem;
    }
    .grade-card--r .grade-card-icon {
        background: var(--viva-yellow);
    }
    .grade-card--lower .grade-card-icon {
        background: var(--viva-blue);
    }
    .grade-card--upper .grade-card-icon {
        background: var(--viva-red);
    }

    .grade-card-body {
        padding: 0;
        text-align: left;
    }
    .grade-card-body h3 {
        font-size: 1.05rem;
        margin-bottom: 0.2rem;
    }
    .grade-card-body p {
        font-size: 0.82rem;
    }

    .grade-card-chevron {
        display: flex;
        align-items: center;
        color: #9aa3b5;
        font-size: 1.2rem;
    }

    .grades-section .row {
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 767.98px) {
    .mission-section {
        padding: 3rem 0;
    }
    .mission-heading {
        font-size: 1.35rem;
        gap: 1rem;
    }
    .mission-box {
        padding: 1.5rem 1.25rem;
    }

    .grades-section {
        padding: 3.5rem 0;
    }
    .grades-intro {
        padding: 1.75rem 1.25rem;
        margin-bottom: 2.5rem;
    }
}

/* ==========================================================================
   HOME — WHY CHOOSE US
   ========================================================================== */
.choose-section {
    padding: 5rem 0;
}

.choose-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}
.choose-title {
    color: var(--viva-blue);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 1rem;
}
.choose-intro p {
    color: #5a6478;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.choose-card {
    height: 100%;
    border-radius: 16px;
    padding: 2.25rem 1.5rem 2.5rem;
    text-align: center;
    color: #fff;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}
.choose-card--blue {
    background: var(--viva-blue);
}
.choose-card--orange {
    background: #f0822e;
}
.choose-card--yellow {
    background: #f5c518;
    color: var(--viva-navy);
}
.choose-card--red {
    background: #e0473f;
}

.choose-card-img {
    width: 130px;
    height: 130px;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    padding: 6px;
    border: 2px dashed rgba(255, 255, 255, 0.85);
}
.choose-card--yellow .choose-card-img {
    border-color: rgba(255, 255, 255, 0.95);
}
.choose-card-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.choose-card h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.choose-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    opacity: 0.95;
}

@media (max-width: 767.98px) {
    .choose-section .row {
        --bs-gutter-y: 1rem;
    }
    .choose-section .col-lg-3 {
        flex: 0 0 auto;
        width: 100%;
    }

    .choose-card {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 1.25rem;
        row-gap: 0.5rem;
        text-align: left;
        padding: 1.5rem 1.5rem 1.5rem 1.25rem;
        border-radius: 18px;
    }
    .choose-card-img {
        grid-row: span 2;
        flex-shrink: 0;
        width: 96px;
        height: 96px;
        margin: 0;
        padding: 5px;
    }
    .choose-card h3 {
        align-self: end;
        font-size: 1.2rem;
        margin: 0;
        line-height: 1.25;
    }
    .choose-card p {
        align-self: start;
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 419.98px) {
    .choose-card {
        column-gap: 1rem;
        padding: 1.25rem;
    }
    .choose-card-img {
        width: 82px;
        height: 82px;
    }
    .choose-card h3 {
        font-size: 1.1rem;
    }
    .choose-card p {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   HOME — 3 SIMPLE STEPS
   ========================================================================== */
.steps-section {
    padding: 5rem 0;
    background: #eef1f8;
}

.steps-intro {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 3.5rem;
}
.steps-title {
    color: var(--viva-blue);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 1rem;
}
.steps-intro p {
    color: #5a6478;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
}
.step-card {
    flex: 1 1 0;
    max-width: 320px;
    background: #fff;
    border-radius: 14px;
    padding: 2rem 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 12px 30px rgba(27, 42, 74, 0.07);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.step-card::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 3.1rem;
    width: 1px;
    background: rgba(224, 71, 63, 0.25);
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(27, 42, 74, 0.14);
}
.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--viva-red);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.step-body h3 {
    color: var(--viva-navy);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.step-body p {
    color: #6a7488;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.step-arrow {
    flex-shrink: 0;
    align-self: center;
    color: var(--viva-navy);
    font-size: 1.3rem;
    opacity: 0.6;
}

.steps-cta {
    text-align: center;
    margin-top: 3.5rem;
}

@media (max-width: 991.98px) {
    .steps-section {
        padding: 3.5rem 0;
    }
    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .step-card {
        width: 100%;
        max-width: 420px;
        flex: none;
    }
    .step-arrow {
        transform: rotate(90deg);
    }
}

/* ==========================================================================
   HOME — TESTIMONIALS
   ========================================================================== */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}
.testimonials-title {
    color: var(--viva-blue);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 1rem;
}
.testimonials-intro p {
    color: #5a6478;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.testimonial-card {
    height: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 14px 36px rgba(27, 42, 74, 0.08);
    display: flex;
    flex-direction: column;
}
.testimonial-stars {
    color: var(--viva-red);
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}
.testimonial-quote {
    color: #5a6478;
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}
.testimonial-author {
    color: var(--viva-red);
    line-height: 1.5;
}
.testimonial-author .name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}
.testimonial-author .date {
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
}

@media (max-width: 991.98px) {
    .testimonials-section {
        padding: 3.5rem 0;
    }
    .testimonials-intro {
        margin-bottom: 2.5rem;
    }
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   HOME — LIFE AT VIVA PRIMARY (bento mosaic)
   ========================================================================== */
.life-section {
    padding: 5rem 0;
    overflow: hidden;
}

.life-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.life-title {
    color: var(--viva-blue);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 1rem;
}
.life-intro p {
    color: #5a6478;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ---- Mosaic grid ---- */
.life-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, clamp(150px, 14.5vw, 215px));
    grid-template-areas:
        "a a b c"
        "a a d e"
        "f g g e"
        "f h i j";
}
.life-tile--a {
    grid-area: a;
}
.life-tile--b {
    grid-area: b;
}
.life-tile--c {
    grid-area: c;
}
.life-tile--d {
    grid-area: d;
}
.life-tile--e {
    grid-area: e;
}
.life-tile--f {
    grid-area: f;
}
.life-tile--g {
    grid-area: g;
}
.life-tile--h {
    grid-area: h;
}
.life-tile--i {
    grid-area: i;
}
.life-tile--j {
    grid-area: j;
}

.life-tile {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #d8deec;
    box-shadow:
        0 1px 2px rgba(27, 42, 74, 0.08),
        0 8px 20px rgba(27, 42, 74, 0.12);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.life-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* gradient + inner ring for cohesion across mismatched photos */
.life-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    background: linear-gradient(
        to top,
        rgba(8, 20, 50, 0.4) 0%,
        rgba(8, 20, 50, 0.05) 38%,
        rgba(8, 20, 50, 0) 60%
    );
    opacity: 0.55;
    transition: opacity 0.45s ease;
}

.life-tile-expand {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--viva-blue);
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.85rem;
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    transition:
        opacity 0.35s ease,
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 6px 16px rgba(14, 58, 156, 0.25);
}

.life-tile:hover,
.life-tile:focus-visible {
    transform: translateY(-6px);
    box-shadow:
        0 2px 4px rgba(27, 42, 74, 0.1),
        0 16px 34px rgba(14, 58, 156, 0.22);
    outline: none;
}
.life-tile:hover img,
.life-tile:focus-visible img {
    transform: scale(1.09);
}
.life-tile:hover::after,
.life-tile:focus-visible::after {
    opacity: 1;
}
.life-tile:hover .life-tile-expand,
.life-tile:focus-visible .life-tile-expand {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---- Lightbox modal ---- */
.life-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(8, 20, 50, 0.92);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}
.life-modal.open {
    opacity: 1;
    visibility: visible;
}
.life-modal-img {
    max-width: min(900px, 92vw);
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.96);
    transition: transform 0.3s ease;
}
.life-modal.open .life-modal-img {
    transform: scale(1);
}
.life-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}
.life-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}
.life-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}
.life-modal-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}
.life-modal-nav--prev {
    left: 1.5rem;
}
.life-modal-nav--next {
    right: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .life-section {
        padding: 3.5rem 0;
    }
    .life-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        grid-auto-rows: clamp(150px, 30vw, 220px);
        grid-template-areas: none;
    }
    .life-tile {
        grid-area: auto !important;
    }
    .life-tile--a {
        grid-column: span 2;
    }
    .life-tile--e,
    .life-tile--f {
        grid-row: span 2;
    }
}

@media (max-width: 575.98px) {
    /* carousel: horizontal scroll-snap with native drag-swipe */
    .life-grid {
        display: flex;
        grid-template-columns: none;
        grid-template-rows: none;
        grid-template-areas: none;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 1.25rem;
        padding: 0.5rem 1.25rem 1.25rem;
        margin: 0 -1.25rem; /* let it bleed to screen edges inside .container */
        scrollbar-width: none;
    }
    .life-grid::-webkit-scrollbar {
        display: none;
    }

    .life-tile {
        grid-area: auto !important;
        grid-column: auto !important;
        grid-row: auto !important;
        flex: 0 0 82%;
        height: clamp(300px, 78vw, 380px);
        scroll-snap-align: center;
    }

    /* show the expand icon at rest on touch (no hover) */
    .life-tile-expand {
        opacity: 1;
        transform: none;
    }

    .life-modal {
        padding: 1rem;
    }
    .life-modal-nav {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    .life-modal-nav--prev {
        left: 0.5rem;
    }
    .life-modal-nav--next {
        right: 0.5rem;
    }
    .life-modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}

/* ==========================================================================
   HOME — CTA BANNER
   ========================================================================== */
.cta-section {
    position: relative;
    padding: 5rem 0;
    background: url("/assets/images/teacher.webp") center center / cover
        no-repeat;
    text-align: center;
    overflow: hidden;
}
.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(14, 58, 156, 0.82),
        rgba(10, 45, 125, 0.82)
    );
}
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    color: #fff;
}
.cta-heading {
    font-weight: 600;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    letter-spacing: 0.5px;
    margin: 0;
}
.cta-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}
.cta-divider .cta-rule {
    width: 120px;
    height: 1px;
    background: rgba(255, 255, 255, 0.55);
}
.cta-divider img {
    width: 42px;
    height: auto;
}
.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 1.75rem;
}

/* ==========================================================================
   HOME — MAP
   ========================================================================== */
.map-section {
    line-height: 0;
}
.map-section iframe {
    display: block;
    width: 100%;
}

@media (max-width: 767.98px) {
    .cta-section {
        padding: 3.5rem 0;
    }
    .cta-divider .cta-rule {
        width: 70px;
    }
    .map-section iframe {
        height: 340px;
    }
}
.btn-enrol {
    display: inline-block;
    background: var(--viva-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.85rem 2.25rem;
    border-radius: 8px;
    border: none;
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}
.btn-enrol:hover {
    background: var(--viva-red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(230, 57, 70, 0.3);
}

/* ==========================================================================
   PAGE BANNER (inner pages)
   ========================================================================== */
.page-banner {
    position: relative;
    padding: 5.5rem 0;
    background: var(--viva-blue) center center / cover no-repeat;
    text-align: center;
}
.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(14, 58, 156, 0.78),
        rgba(10, 32, 90, 0.82)
    );
}
.page-banner .container {
    position: relative;
    z-index: 1;
}
.page-banner-title {
    color: #fff;
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.5px;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   ABOUT — CONTENT SECTIONS
   ========================================================================== */
.about-section {
    padding: 5rem 0;
}
.about-section--tint {
    background: #eef1f8;
}

.about-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.about-text {
    max-width: 520px;
}
.about-text p {
    color: #5a6478;
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}
.about-text p:last-child {
    margin-bottom: 0;
}

.about-signoff {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--viva-navy) !important;
    margin-top: 1.5rem !important;
}
.about-quote {
    color: var(--viva-blue) !important;
    font-style: italic;
}

.about-promise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-promise-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    color: #5a6478;
    font-size: 0.98rem;
    line-height: 1.6;
}
.about-promise-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--viva-red);
}

@media (max-width: 991.98px) {
    .about-section {
        padding: 3.5rem 0;
    }
    .about-text {
        max-width: none;
    }
    .page-banner {
        padding: 4rem 0;
    }
}

/* ==========================================================================
   MEET OUR TEAM
   ========================================================================== */
.team-section {
    padding: 5rem 0;
}

.team-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}
.team-title {
    color: var(--viva-blue);
    font-weight: 600;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    margin-bottom: 1rem;
}
.team-intro p {
    color: #5a6478;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.team-grid--teachers {
    margin-top: 1.5rem;
}

.team-card {
    text-align: center;
    height: 100%;
}
.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #cfd3dc;
}
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card h3 {
    color: var(--viva-navy);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}
.team-role {
    color: #6a7488;
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
}
.team-email {
    display: inline-block;
    background: var(--viva-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    transition:
        background 0.25s ease,
        transform 0.2s ease;
}
.team-email:hover {
    background: var(--viva-red-hover);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .team-section {
        padding: 3.5rem 0;
    }
    .team-intro {
        margin-bottom: 2.5rem;
    }
}
/* ==========================================================================
   ADMISSIONS — FEES
   ========================================================================== */
.fees-card {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 34px rgba(27, 42, 74, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.fees-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(27, 42, 74, 0.12);
}
/* icon + title on one row */
.fees-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.fees-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(14, 58, 156, 0.08);
    color: var(--viva-blue);
    font-size: 1.4rem;
    margin-bottom: 0; /* was pushing the title down */
}
.fees-card-title {
    color: var(--viva-blue);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}
.fees-card p {
    color: #5a6478;
    font-size: 0.97rem;
    line-height: 1.8;
    margin-bottom: 0.9rem;
}
.fees-card p:last-child {
    margin-bottom: 0;
}

.fees-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.fees-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    color: var(--viva-navy);
    font-size: 0.97rem;
}
.fees-list li:last-child {
    margin-bottom: 0.9rem;
}
.fees-list i {
    color: var(--viva-red);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Download CTA panel */
.fees-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    background: var(--viva-blue);
    border-radius: 16px;
    padding: 2.25rem 2.5rem;
    box-shadow: 0 16px 40px rgba(14, 58, 156, 0.22);
}
.fees-download-text {
    flex: 1 1 360px;
}
.fees-download-text h3 {
    color: #fff;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.fees-download-text p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}
.fees-download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .fees-card {
        padding: 2rem 1.5rem;
    }
    .fees-download-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    .fees-download-text {
        flex: none;
    }
    .fees-download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   ADMISSIONS — WHO CAN APPLY
   ========================================================================== */
.apply-card {
    height: 100%;
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(27, 42, 74, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.apply-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(27, 42, 74, 0.14);
}
.apply-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--viva-navy);
    margin-bottom: 1.25rem;
}
.apply-card h3 {
    color: var(--viva-red);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}
.apply-card p {
    color: #6a7488;
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   ADMISSIONS — CONTACT FORM
   ========================================================================== */
.contact-section {
    padding: 5rem 0;
    background: #eef1f8;
}
/* contact form on white so it doesn't merge with the tinted map band below */
.contact-section--white {
    background: #fff;
}
.contact-form-wrap {
    max-width: 820px;
    margin: 0 auto;
}
.contact-form-title {
    color: var(--viva-navy);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.form-control {
    width: 100%;
    background: #e6ebf4;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--viva-navy);
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}
.form-control::placeholder {
    color: #8a93a6;
}
.form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--viva-blue);
}
textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.contact-form-actions {
    margin-top: 1.25rem;
    text-align: right;
}
.contact-form-actions .btn-enrol {
    border: none;
    cursor: pointer;
}

/* form grid gutter */
.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* ==========================================================================
   ADMISSIONS — CONTACT DETAILS + MAP
   ========================================================================== */
.contact-details-section {
    padding: 4rem 0;
    background: #eef1f8;
}

.contact-details-heading {
    color: var(--viva-navy);
    font-size: 1.4rem;
    margin-bottom: 1.75rem;
}
.contact-details-heading::after {
    background: var(--viva-red);
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.1rem;
    color: #5a6478;
    font-size: 0.95rem;
}
.contact-details-list .footer-icon {
    background: rgba(230, 57, 70, 0.1);
    color: var(--viva-red);
}
.contact-details-list a {
    color: #5a6478;
}
.contact-details-list a:hover {
    color: var(--viva-red);
}

.contact-map iframe {
    display: block;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(27, 42, 74, 0.12);
}

@media (max-width: 991.98px) {
    .contact-section {
        padding: 3.5rem 0;
    }
    .contact-details-section {
        padding: 3rem 0;
    }
}

/* ==========================================================================
   ACADEMICS
   ========================================================================== */
/* intro — no box */
.grades-intro--bordered {
    max-width: 760px;
}

/* coloured grade cards normal spacing (no overlap needed without the box) */
.grades-coloured {
    margin-top: 0;
}

/* tighter section spacing for stacked text/image rows */
.about-section--flush {
    padding: 4rem 0 1rem;
}

/* red underline accent under section titles */
.section-title--accent {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.section-title--accent::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--viva-red);
}

/* CTA banner */
/* uniform image rectangles for the teaching-approach rows */
.about-section .about-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.academics-cta {
    position: relative;
    padding: 4.5rem 0;
    background: var(--viva-blue) center center / cover no-repeat;
    text-align: center;
    overflow: hidden;
}
.academics-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(14, 58, 156, 0.82),
        rgba(10, 32, 90, 0.86)
    );
}
.academics-cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}
.academics-cta-text {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

@media (max-width: 991.98px) {
    .grades-coloured {
        margin-top: 0;
    }
    .grades-intro--bordered {
        padding: 2rem 1.25rem;
    }
    .about-section--flush {
        padding: 3rem 0;
    }
    .academics-cta {
        padding: 3.5rem 0;
    }
}
/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-lede {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    color: #5a6478;
    font-size: 1rem;
    line-height: 1.8;
}

/* ==========================================================================
   CULTURE — SPOTLIGHT CAROUSEL
   ========================================================================== */
.culture-section {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #eef1f8 0%, #e6ebf6 100%);
    overflow: hidden;
}

/* stage holds absolutely-positioned cards, centred */
.spotlight {
    position: relative;
    height: 440px;
    margin-top: 1rem;
}
.spotlight-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* each card is centred then transformed by JS */
.spotlight-card {
    position: absolute;
    width: 340px;
    height: 420px;
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(14, 58, 156, 0.18);
    cursor: pointer;
    will-change: transform, opacity;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.55s ease,
        box-shadow 0.4s ease;
}
.spotlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.spotlight-card.is-active {
    box-shadow: 0 30px 70px rgba(14, 58, 156, 0.32);
}
.spotlight-card.is-active img {
    transform: scale(1.04);
}

/* caption — gradient scrim + blue accent bar */
.spotlight-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 1.25rem 1.25rem;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(8, 24, 70, 0.9));
    transform: translateY(8px);
    opacity: 0.85;
    transition:
        transform 0.4s ease,
        opacity 0.4s ease;
}
.spotlight-card.is-active figcaption {
    transform: translateY(0);
    opacity: 1;
}

/* arrows */
.spotlight-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--viva-blue);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 10px 28px rgba(14, 58, 156, 0.22);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}
.spotlight-arrow:hover {
    background: var(--viva-blue);
    color: #fff;
}
.spotlight-arrow:active {
    transform: translateY(-50%) scale(0.92);
}
.spotlight-arrow--prev {
    left: 1.5rem;
}
.spotlight-arrow--next {
    right: 1.5rem;
}

/* dots */
.spotlight-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}
.spotlight-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(14, 58, 156, 0.25);
    cursor: pointer;
    transition:
        background 0.25s ease,
        width 0.25s ease;
}
.spotlight-dots button.active {
    width: 28px;
    border-radius: 5px;
    background: var(--viva-blue);
}

@media (max-width: 991.98px) {
    .culture-section {
        padding: 3.5rem 0;
    }
    .spotlight {
        height: 400px;
    }
    .spotlight-card {
        width: 280px;
        height: 360px;
    }
    .spotlight-arrow {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
    .spotlight-arrow--prev {
        left: 0.5rem;
    }
    .spotlight-arrow--next {
        right: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .spotlight {
        height: 380px;
    }
    .spotlight-card {
        width: 230px;
        height: 330px;
    }
    .spotlight-card figcaption {
        font-size: 1rem;
    }
}

/* ==========================================================================
   PHOTO GRID + LIGHTBOX
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.gallery-item {
    position: relative;
    border: none;
    padding: 0;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #eef1f8;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 58, 156, 0.55);
    color: #fff;
    font-size: 1.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}
/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

/* Section background rhythm:
   intro (white) -> general (white) -> enrolment (tint) -> info (white) -> visit (tint) */
.enquiry-block {
    padding: 0 0 4rem;
}
.enquiry-block--tint {
    background: #eef1f8;
    padding: 4.5rem 0;
}

/* Enquiry card */
.enquiry-card {
    height: 100%;
    background: #fff;
    border-radius: 20px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 18px 46px rgba(27, 42, 74, 0.09);
    border: 1px solid #eef1f6;
}
.enquiry-card--accent {
    border-top: 5px solid var(--viva-red);
}

/* General (stacked) card stays centred and capped */
.enquiry-block:not(.enquiry-block--tint) .enquiry-card {
    max-width: 820px;
    margin: 0 auto;
}

.enquiry-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #eef1f6;
}
.enquiry-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(14, 58, 156, 0.08);
    color: var(--viva-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.enquiry-card-icon--red {
    background: rgba(230, 57, 70, 0.1);
    color: var(--viva-red);
}
.enquiry-card-head h3 {
    color: var(--viva-navy);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}
.enquiry-card-head p {
    color: #6a7488;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Form */
.enquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.enquiry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.enquiry-grid .form-control:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.enquiry-form .form-control {
    width: 100%;
    background: #eef1f8;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.95rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--viva-navy);
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}
.enquiry-form .form-control::placeholder {
    color: #8a93a6;
}
.enquiry-form .form-control:focus {
    outline: none;
    background: #fff;
    border-color: var(--viva-blue);
}
.enquiry-form textarea.form-control {
    resize: vertical;
    min-height: 130px;
}
.enquiry-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230e3a9c' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #5a6478;
    line-height: 1.5;
    cursor: pointer;
}
.contact-consent input {
    margin-top: 0.15rem;
    accent-color: var(--viva-blue);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.enquiry-form .btn-enrol {
    align-self: flex-start;
    border: none;
    cursor: pointer;
    margin-top: 0.25rem;
}

/* Enrolment row — make columns equal height so the download card matches the form */
.enrol-row {
    align-items: stretch;
}
.enrol-row > [class*="col-"] {
    display: flex;
}

/* Download panel (right side) — blue card */
.enrol-download-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--viva-blue);
    color: #fff;
    border-radius: 20px;
    padding: 2.75rem 2.25rem;
    box-shadow: 0 18px 46px rgba(14, 58, 156, 0.25);
}
.enrol-download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--viva-yellow);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.enrol-download-card h3 {
    color: #fff;
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}
.enrol-download-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.enrol-download-btn {
    margin-top: auto; /* pin button to the bottom */
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--viva-yellow);
    color: var(--viva-navy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}
.enrol-download-btn:hover {
    background: var(--viva-yellow-hover);
    color: var(--viva-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 210, 0, 0.32);
}

/* Contact details + photo band (white, to alternate against the tinted enrolment block) */
.contact-info-section {
    padding: 4.5rem 0;
    background: #fff;
}
.contact-info-title {
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
}
.contact-info-lede {
    color: #5a6478;
    font-size: 0.97rem;
    margin-bottom: 1.75rem;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #5a6478;
    font-size: 0.97rem;
}
.contact-info-list li:last-child {
    margin-bottom: 0;
}
.contact-info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(230, 57, 70, 0.1);
    color: var(--viva-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}
.contact-info-list a {
    color: #5a6478;
    transition: color 0.2s ease;
}
.contact-info-list a:hover {
    color: var(--viva-red);
}

.contact-info-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(27, 42, 74, 0.14);
}

/* Map + visit (tint, to alternate against the white info band) */
.visit-section {
    padding: 4.5rem 0;
    background: #eef1f8;
}
.visit-map iframe {
    display: block;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(27, 42, 74, 0.12);
}

@media (max-width: 991.98px) {
    .enrol-row > [class*="col-"] {
        display: block;
    }
    .enrol-download-card {
        margin-top: 0;
    }
}
@media (max-width: 767.98px) {
    .enquiry-card {
        padding: 2rem 1.5rem;
    }
    .enquiry-grid {
        grid-template-columns: 1fr;
    }
    .enrol-download-card {
        padding: 2rem 1.5rem;
    }
    .enrol-download-btn {
        width: 100%;
        justify-content: center;
    }
    .contact-info-section {
        padding: 3rem 0;
    }
    .visit-section {
        padding: 3rem 0;
    }
}
/* ==========================================================================
   LEGAL PAGES (Terms & Privacy)
   ========================================================================== */
.legal-section {
    padding: 4.5rem 0 5.5rem;
}

.legal-content {
    max-width: 820px;
    margin: 0 auto;
}

.legal-updated {
    color: #9aa3b5;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.legal-intro {
    color: #5a6478;
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eef1f6;
}

.legal-content h2 {
    color: var(--viva-blue);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 2.25rem 0 0.85rem;
}

.legal-content p {
    color: #5a6478;
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.legal-content a {
    color: var(--viva-red);
    font-weight: 500;
}
.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .legal-section {
        padding: 3rem 0 4rem;
    }
    .legal-content h2 {
        font-size: 1.1rem;
    }
    .legal-intro {
        font-size: 1rem;
    }
}

/* ==========================================================================
   PROMO / ANNOUNCEMENT MODAL
   ========================================================================== */
.promo-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(8, 20, 50, 0.8);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}
.promo-modal.open {
    opacity: 1;
    visibility: visible;
}

.promo-modal-inner {
    position: relative;
    max-width: 560px;
    width: 100%;
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.promo-modal.open .promo-modal-inner {
    transform: scale(1);
}

.promo-modal-inner img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: block;
}

.promo-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: var(--viva-navy);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease;
}
.promo-modal-close:hover {
    background: var(--viva-red);
    color: #fff;
    transform: rotate(90deg);
}

@media (max-width: 575.98px) {
    .promo-modal-close {
        top: -10px;
        right: -10px;
        width: 40px;
        height: 40px;
    }
}

.promo-modal-btn {
    display: block;
    width: fit-content;
    margin: 1.25rem auto 0;
    background: var(--viva-yellow);
    color: var(--viva-navy);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.9rem 2.75rem;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(255, 210, 0, 0.35);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.promo-modal-btn:hover {
    background: var(--viva-yellow-hover);
    color: var(--viva-navy);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(255, 210, 0, 0.45);
}
/* ── Contact form additions ────────────────────── */
.contact-alert {
    margin: 24px auto 0;
    max-width: 760px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}
.contact-alert--success {
    background: #e7f6ec;
    border: 1px solid #b7e2c4;
    color: #1b6b39;
}
.contact-alert--error {
    background: #fdecee;
    border: 1px solid #f5c2c7;
    color: var(--viva-red-hover);
}
.contact-recaptcha-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #8a94a6;
}
.contact-recaptcha-note a {
    color: var(--viva-blue);
    text-decoration: underline;
}

/* Hide the floating reCAPTCHA badge (legal notice shown in-form instead) */
.grecaptcha-badge { visibility: hidden; }