:root {
    --sas-green: #064b38;
    --sas-deep: #043b2d;
    --sas-gold: #e7bd3e;
    --sas-red: #b5222b;
    --sas-ink: #18352d;
}

.sas-header,
.sas-header * {
    box-sizing: border-box;
}

.sas-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    width: 100%;
    background: #fff;
    color: var(--sas-ink);
    font-family: "DM Sans", Arial, sans-serif;
    box-shadow: 0 5px 22px #1230240e;
}


/* =========================================
   SAS — NEON METALLIC TRICOLOUR LIGHT
========================================= */

.sas-colour-flow {
    position: relative;
    width: 100%;
    height: 4px;
    display: grid;
    grid-template-columns: 32% 38% 30%;
    overflow: visible;
    isolation: isolate;
    background: transparent;

    /* Fade both ends, keeping the centre luminous */
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 8%,
        #000 25%,
        #000 75%,
        rgba(0, 0, 0, 0.15) 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.15) 8%,
        #000 25%,
        #000 75%,
        rgba(0, 0, 0, 0.15) 92%,
        transparent 100%
    );

    animation: sas-colour-ratio 10s ease-in-out infinite,
               sas-neon-pulse 4s ease-in-out infinite;
}

.sas-colour-flow span {
    display: block;
    height: 100%;
    min-width: 0;
}

.sas-flow-green {
    background: linear-gradient(
        180deg,
        #b0ff9a 0%,
        #13e65a 35%,
        #064b38 100%
    );
}

.sas-flow-gold {
    background: linear-gradient(
        180deg,
        #fff8bd 0%,
        #ffdc55 40%,
        #b88716 100%
    );
}

.sas-flow-red {
    background: linear-gradient(
        180deg,
        #ffc0c0 0%,
        #f04450 40%,
        #8f1425 100%
    );
}

/* Soft luminous reflection across the centre */
.sas-colour-flow::after {
    content: "";
    position: absolute;
    inset: -5px 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.18) 28%,
        transparent 72%
    );
    filter: blur(4px);
    opacity: 0.7;
    animation: sas-light-shimmer 4s ease-in-out infinite;
}

/* Colour proportions move continuously */
@keyframes sas-colour-ratio {
    0%, 100% { grid-template-columns: 48% 30% 22%; }
    25%      { grid-template-columns: 25% 52% 23%; }
    50%      { grid-template-columns: 20% 31% 49%; }
    75%      { grid-template-columns: 43% 22% 35%; }
}

/* Overall neon brightness */
@keyframes sas-neon-pulse {
    0%, 100% {
        filter: brightness(0.75)
                drop-shadow(0 0 3px rgba(231, 189, 62, 0.25));
    }
    50% {
        filter: brightness(1.35)
                drop-shadow(0 0 7px rgba(231, 189, 62, 0.55));
    }
}

/* Subtle central light shimmer */
@keyframes sas-light-shimmer {
    0%, 100% { opacity: 0.35; transform: scaleX(0.85); }
    50%      { opacity: 0.9; transform: scaleX(1.05); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .sas-colour-flow,
    .sas-colour-flow::after {
        animation: none !important;
    }

    .sas-colour-flow {
        grid-template-columns: 32% 38% 30%;
    }
}










.sas-topline {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: var(--sas-deep);
    color: #ffffffdf;
    font-size: 11px;
    letter-spacing: .04em;
}

.sas-topline-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.sas-topline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sas-gold);
}

.sas-topline a {
    margin-left: 5px;
    color: var(--sas-gold);
    font-weight: 700;
    text-decoration: none;
}

.sas-nav-wrap {
    width: min(1320px, 100%);
    margin: auto;
    padding: 0 32px;
}

.sas-mainbar {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.sas-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    color: inherit;
    text-decoration: none;
}

.sas-brand img {
    display: block;
    width: 60px;
    height: 66px;
    object-fit: contain;
}

.sas-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sas-brand-copy strong {
    color: var(--sas-green);
    font: 600 17px/1.1 "Playfair Display", Georgia, serif;
    letter-spacing: .04em;
    white-space: nowrap;
}

.sas-brand-copy small {
    color: #819088;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
}

.sas-desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.5vw, 23px);
    margin-left: auto;
}

.sas-nav-item {
    position: relative;
}

.sas-nav-link,
.sas-nav-trigger {
    padding: 14px 0;
    border: 0;
    background: none;
    color: #233d34;
    font: 600 13px/1.2 "DM Sans", Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.sas-nav-link:hover,
.sas-nav-trigger:hover {
    color: #a77d0d;
}

.sas-nav-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sas-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #b38a18;
    border-bottom: 1.5px solid #b38a18;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s;
}

.sas-nav-item:hover .sas-chevron,
.sas-nav-item:focus-within .sas-chevron,
.sas-nav-item.is-open .sas-chevron {
    transform: rotate(225deg);
}

.sas-dropdown {
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 30;
    width: 250px;
    padding: 10px;
    border: 1px solid #064b3818;
    border-radius: 0 0 11px 11px;
    background: #fff;
    box-shadow: 0 18px 38px #0c2a301f;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: .18s;
}

.sas-nav-item:hover .sas-dropdown,
.sas-nav-item:focus-within .sas-dropdown,
.sas-nav-item.is-open .sas-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sas-dropdown a {
    display: block;
    padding: 11px 12px;
    border-radius: 6px;
    color: #40564b;
    font-size: 12px;
    text-decoration: none;
}

.sas-dropdown a:hover {
    background: #f3f6f1;
    color: var(--sas-green);
}

.sas-admission-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 45px;
    padding: 0 18px;
    border: 1px solid var(--sas-gold);
    border-radius: 5px;
    background: var(--sas-gold);
    color: #173a2d;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s;
}

.sas-admission-cta:hover {
    background: #f0ca55;
    transform: translateY(-1px);
}

.sas-mobile-actions {
    display: none;
}

.sas-menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #064b3826;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.sas-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--sas-green);
    transition: .2s;
}

.sas-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.sas-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.sas-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.sas-mobile-overlay,
.sas-mobile-panel {
    display: none;
}

body.sas-menu-open {
    overflow: hidden;
}

@media (max-width: 1120px) {
    .sas-nav-wrap { padding: 0 22px; }
    .sas-mainbar { min-height: 80px; }
    .sas-brand { min-width: 0; }
    .sas-desktop-nav { gap: 12px; }
    .sas-nav-link,
    .sas-nav-trigger { font-size: 12px; }
    .sas-admission-cta { padding: 0 13px; }
}

@media (max-width: 960px) {
    .sas-topline { min-height: 32px; font-size: 10px; }
    .sas-nav-wrap { padding: 0 20px; }
    .sas-mainbar { min-height: 76px; }
    .sas-brand img { width: 53px; height: 58px; }
    .sas-brand-copy strong { font-size: 15px; }
    .sas-desktop-nav { display: none; }
    .sas-mobile-actions { display: flex; align-items: center; gap: 9px; }

    .sas-mobile-apply {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 41px;
        padding: 0 13px;
        border-radius: 5px;
        background: var(--sas-gold);
        color: #173a2d;
        font-size: 11px;
        font-weight: 800;
        text-decoration: none;
    }

    .sas-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 1300;
        display: block;
        background: #04191288;
        opacity: 0;
        visibility: hidden;
        transition: .25s;
    }

    .sas-mobile-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .sas-mobile-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1301;
        display: flex;
        flex-direction: column;
        width: min(420px, 90vw);
        background: #fff;
        box-shadow: -20px 0 50px #0002;
        transform: translateX(102%);
        visibility: hidden;
        transition: transform .28s cubic-bezier(.2, .75, .25, 1);
    }

    .sas-mobile-panel.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .sas-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 17px 19px;
        border-bottom: 1px solid #e9eee9;
    }

    .sas-mobile-head .sas-brand img { width: 47px; height: 51px; }
    .sas-mobile-head .sas-brand-copy strong { font-size: 13px; }
    .sas-mobile-head .sas-brand-copy small { font-size: 8px; }

    .sas-mobile-close {
        width: 38px;
        height: 38px;
        border: 1px solid #e0e8e2;
        border-radius: 50%;
        background: #fff;
        color: var(--sas-green);
        font-size: 24px;
        cursor: pointer;
    }

    .sas-mobile-scroll {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 10px 20px 24px;
    }

    .sas-mobile-link,
    .sas-mobile-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 50px;
        padding: 13px 2px;
        border: 0;
        border-bottom: 1px solid #edf0ec;
        background: none;
        color: #243f34;
        text-align: left;
        text-decoration: none;
        font: 600 14px/1.3 "DM Sans", Arial, sans-serif;
        cursor: pointer;
    }

    .sas-mobile-submenu {
        display: none;
        padding: 5px 0 10px 13px;
        border-bottom: 1px solid #edf0ec;
    }

    .sas-mobile-group.is-open .sas-mobile-submenu { display: block; }

    .sas-mobile-submenu a {
        display: block;
        padding: 11px 10px;
        border-radius: 5px;
        color: #65756c;
        font-size: 12px;
        text-decoration: none;
    }

    .sas-mobile-submenu a:hover {
        background: #f3f6f1;
        color: var(--sas-green);
    }

    .sas-mobile-bottom {
        padding: 17px 20px 22px;
        border-top: 1px solid #e9eee9;
        background: #fbfcfa;
    }

    .sas-mobile-bottom a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        border-radius: 5px;
        background: var(--sas-green);
        color: #fff;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

    .sas-mobile-bottom p {
        margin: 10px 0 0;
        color: #849087;
        font-size: 10px;
        letter-spacing: .05em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sas-topline-inner { gap: 7px; font-size: 9px; }
    .sas-topline a { margin-left: 1px; }
    .sas-nav-wrap { padding: 0 14px; }
    .sas-mainbar { min-height: 70px; gap: 7px; }
    .sas-brand { gap: 8px; }
    .sas-brand img { width: 44px; height: 49px; }
    .sas-brand-copy strong { font-size: 12px; letter-spacing: .02em; }
    .sas-brand-copy small { font-size: 7px; letter-spacing: .13em; }
    .sas-mobile-actions { gap: 7px; }
    .sas-mobile-apply { min-height: 38px; padding: 0 10px; font-size: 10px; }
    .sas-menu-toggle { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .sas-header *,
    .sas-mobile-panel,
    .sas-mobile-overlay {
        transition: none !important;
    }

    .sas-colour-flow,
    .sas-colour-flow::after {
        animation: none !important;
    }

    .sas-colour-flow {
        grid-template-columns: 32% 38% 30%;
    }
}
