﻿
/* ==========================================
   HERITAGE NAVIGATION
   Primary: #304225
   Accent: warm champagne gold
   ========================================== */

:root {
    --hn-green: #304225;
    --hn-green-dark: #202F1B;
    --hn-green-light: #405736;
    --hn-gold: #DCC18A;
    --hn-paper: #F8F7F2;
    --hn-white: #FFFFFF;
    --hn-ink: #263323;
    --hn-line: rgba(255,255,255,.17);
    --hn-shadow: 0 24px 65px rgba(18, 31, 14, .22);
}

.heritage-nav,
.heritage-nav *,
.heritage-drawer,
.heritage-drawer *,
.heritage-backdrop {
    box-sizing: border-box;
}

.heritage-nav {
    position: relative;
    z-index: 1000;
    width: 100%;
    font-family: inherit;
}

/* ------------------------------------------
   DESKTOP GREEN BAR
   ------------------------------------------ */

.heritage-desktop {
    display: block;
    background: var(--hn-green);
    border-top: 3px solid var(--hn-gold);
    color: var(--hn-white);
}

.heritage-nav-inner {
    max-width: 1600px;
    min-height: 76px;
    margin: auto;
    padding: 0 4%;
    display: flex;
    align-items: stretch;
    gap: 25px;
}

.heritage-nav-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-right: 23px;
    border-right: 1px solid var(--hn-line);
    color: var(--hn-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.3px;
}

.heritage-label-line {
    display: block;
    width: 23px;
    height: 1px;
    background: var(--hn-gold);
}

/* CMS root UL */

.heritage-menu {
    flex: 1 1 auto;
    min-width: 0;
}

    .heritage-menu > ul {
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: 2px;
        width: 100%;
        min-height: 73px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .heritage-menu ul {
        list-style: none;
    }

    .heritage-menu li {
        position: relative;
        margin: 0;
        padding: 0;
    }

    .heritage-menu > ul > li {
        display: flex;
        align-items: stretch;
    }

        .heritage-menu > ul > li > a {
            position: relative;
            display: flex;
            align-items: center;
            padding: 0 14px;
            color: rgba(255,255,255,.91);
            font-size: 13px;
            font-weight: 700;
            letter-spacing: .35px;
            line-height: 1.5;
            text-decoration: none;
            transition: color .2s ease, background .2s ease;
        }

           

        .heritage-menu > ul > li:hover > a,
        .heritage-menu > ul > li:focus-within > a,
        .heritage-menu > ul > li.menu-open > a {
            color: var(--hn-gold);
            background: rgba(255,255,255,.035);
        }

            .heritage-menu > ul > li:hover > a::before,
            .heritage-menu > ul > li:focus-within > a::before,
            .heritage-menu > ul > li.menu-open > a::before {
                transform: scaleX(1);
            }

    /* Submenu indicator buttons */

    .heritage-menu .hn-sub-toggle {
        flex: 0 0 27px;
        width: 27px;
        height: 34px;
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 7px;
        padding: 0;
        border: 0;
        border-radius: 3px;
        background: transparent;
        color: var(--hn-gold);
        cursor: pointer;
    }

    .heritage-menu > ul > li > .hn-sub-toggle {
        display: none;
    }

    .heritage-menu .hn-sub-toggle::before {
        width: 7px;
        height: 7px;
        content: "";
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform .2s ease;
    }

    .heritage-menu li.menu-open > .hn-sub-toggle::before {
        transform: rotate(225deg) translate(-1px,-1px);
    }

    .heritage-menu li.has-submenu > a {
        padding-right: 5px;
    }

    /* ------------------------------------------
   DESKTOP DROPDOWNS
   ------------------------------------------ */

    .heritage-menu li > ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1100;
        display: block;
        width: 280px;
        margin: 0;
        padding: 12px;
        border-top: 3px solid var(--hn-gold);
        background: var(--hn-paper);
        box-shadow: var(--hn-shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    

    .heritage-menu li:hover > ul,
    .heritage-menu li:focus-within > ul,
    .heritage-menu li.menu-open > ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .heritage-menu li > ul > li {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }

        .heritage-menu li > ul > li > a {
            display: flex;
            flex: 1 1 0;
            align-items: center;
            justify-content: space-between;
            min-width: 0;
            min-height: 43px;
            padding: 10px 12px;
            border-bottom: 1px solid #E7E7DD;
            color: var(--hn-ink);
            font-size: 12px;
            font-weight: 600;
            line-height: 1.5;
            text-decoration: none;
            transition: background .18s ease, color .18s ease;
        }

        .heritage-menu li > ul > li:last-child > a {
            border-bottom-color: transparent;
        }

        .heritage-menu li > ul > li:hover > a,
        .heritage-menu li > ul > li:focus-within > a,
        .heritage-menu li > ul > li.menu-open > a {
            color: var(--hn-green);
            background: #EDEFE7;
        }

    /* Third level: floating side panel */

    .heritage-menu li > ul li > ul {
        top: -12px;
        left: calc(100% + 6px);
        border-top: 1px solid #E4E5DB;
        border-left: 3px solid var(--hn-gold);
    }

        .heritage-menu li > ul li > ul::before {
            display: none;
        }

/* Enquiry action */

.heritage-enquire {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 43px;
    padding: 0 17px;
    background: var(--hn-gold);
    color: var(--hn-green-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .8px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

    .heritage-enquire:hover {
        background: var(--hn-white);
        color: var(--hn-green-dark);
    }

.heritage-enquire-arrow {
    font-size: 17px;
    transition: transform .2s ease;
}

.heritage-enquire:hover .heritage-enquire-arrow {
    transform: translate(2px,-2px);
}

.heritage-mobile-bar {
    display: none;
}

/* ------------------------------------------
   OFFCANVAS BACKDROP
   ------------------------------------------ */

.heritage-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(12, 20, 10, .62);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

    .heritage-backdrop.is-visible {
        opacity: 1;
        visibility: visible;
    }

/* ------------------------------------------
   MOBILE / TABLET DRAWER
   ------------------------------------------ */

.heritage-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    width: min(430px, 92vw);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--hn-paper);
    box-shadow: -20px 0 65px rgba(0,0,0,.2);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .35s cubic-bezier(.22,.75,.25,1), visibility .35s ease;
}

    .heritage-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }

.heritage-drawer-head {
    flex: 0 0 auto;
    min-height: 78px;
    padding: 15px 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: var(--hn-white);
    background: var(--hn-green);
    border-top: 3px solid var(--hn-gold);
}

.heritage-drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heritage-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--hn-gold);
    color: var(--hn-gold);
    font-family: Georgia, serif;
    font-size: 24px;
}

.heritage-drawer-brand strong,
.heritage-drawer-brand small {
    display: block;
}

.heritage-drawer-brand strong {
    font-size: 13px;
    letter-spacing: 2px;
}

.heritage-drawer-brand small {
    margin-top: 5px;
    color: var(--hn-gold);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.heritage-close {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

    .heritage-close span {
        position: absolute;
        width: 17px;
        height: 1.5px;
        background: white;
    }

        .heritage-close span:first-child {
            transform: rotate(45deg);
        }

        .heritage-close span:last-child {
            transform: rotate(-45deg);
        }

.heritage-drawer-intro {
    flex: 0 0 auto;
    padding: 24px 25px 21px;
    border-bottom: 1px solid #E3E4D9;
}

.heritage-eyebrow {
    color: #7D866F;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.heritage-drawer-intro p {
    margin: 8px 0 0;
    color: var(--hn-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.2;
}

/* Scrollable CMS menu */

.heritage-drawer-menu {
    flex: 1 1 auto;
    min-height: 0;
    padding: 9px 24px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #BBC3B1 transparent;
}

    .heritage-drawer-menu > ul,
    .heritage-drawer-menu ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .heritage-drawer-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #E4E6DC;
    }

        .heritage-drawer-menu li > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex: 1 1 0;
            min-width: 0;
            min-height: 52px;
            padding: 13px 3px;
            color: var(--hn-ink);
            font-size: 13px;
            font-weight: 700;
            line-height: 1.5;
            text-decoration: none;
            background:none;
        }

            .heritage-drawer-menu li > a:hover,
            .heritage-drawer-menu li.menu-open > a {
                color: var(--hn-green);
            }

            .heritage-drawer-menu li > a:focus-visible,
            .heritage-drawer button:focus-visible {
                outline: 2px solid #A58A4E;
                outline-offset: 2px;
            }

        .heritage-drawer-menu li.has-submenu {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
        }

    .heritage-drawer-menu .hn-sub-toggle {
        flex: 0 0 37px;
        width: 37px;
        height: 37px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
        border: 1px solid #E0E3D8;
        background: transparent;
        color: var(--hn-green);
        cursor: pointer;
    }

        .heritage-drawer-menu .hn-sub-toggle::before {
            width: 7px;
            height: 7px;
            content: "";
            border-right: 1.5px solid currentColor;
            border-bottom: 1.5px solid currentColor;
            transform: rotate(45deg) translateY(-2px);
            transition: transform .2s ease;
        }

    .heritage-drawer-menu li.menu-open > .hn-sub-toggle::before {
        transform: rotate(225deg) translate(-1px,-1px);
    }

    .heritage-drawer-menu li > ul {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        padding: 0 0 8px 14px;
        border-left: 2px solid var(--hn-gold);
    }

    .heritage-drawer-menu li.menu-open > ul {
        display: block;
    }

    .heritage-drawer-menu li > ul li {
        border-bottom-color: #E9EAE2;
    }

        .heritage-drawer-menu li > ul li > a {
            min-height: 43px;
            padding: 10px 9px;
            font-size: 12px;
            font-weight: 600;
        }

        .heritage-drawer-menu li > ul li > ul {
            margin-left: 5px;
            padding-left: 12px;
            border-left: 1px solid #B8C0AE;
            background: rgba(48,66,37,.035);
        }

.heritage-drawer-foot {
    flex: 0 0 auto;
    padding: 18px 25px 23px;
    color: white;
    background: var(--hn-green);
}

    .heritage-drawer-foot > span {
        display: block;
        margin-bottom: 10px;
        color: var(--hn-gold);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 1.7px;
    }

    .heritage-drawer-foot > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: white;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .6px;
        text-decoration: none;
    }

        .heritage-drawer-foot > a span {
            color: var(--hn-gold);
            font-size: 19px;
        }

/* ------------------------------------------
   BREAKPOINT
   Desktop: 992px and above
   Tablet/mobile: below 992px
   ------------------------------------------ */

@media (max-width: 1199.98px) and (min-width: 992px) {
    .heritage-nav-inner {
        gap: 13px;
        padding: 0 20px;
    }

    .heritage-nav-label {
       display:none;
    }

    .heritage-menu > ul > li > a {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 11px;
    }

        .heritage-menu > ul > li > a::before {
            right: 9px;
            left: 9px;
        }

    .heritage-enquire {
        gap: 8px;
        padding: 0 11px;
        font-size: 9px;
    }
}

@media (max-width: 991.98px) {
    .heritage-desktop {
        display: none;
    }

    .heritage-mobile-bar {
        min-height: 65px;
        padding: 0 22px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        background: var(--hn-green);
        border-top: 3px solid var(--hn-gold);
        color: white;
    }

    .heritage-mobile-caption {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.5px;
    }

    .heritage-mobile-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--hn-gold);
        box-shadow: 0 0 0 4px rgba(220,193,138,.12);
    }

    .heritage-open {
        display: inline-flex;
        align-items: center;
        gap: 13px;
        min-height: 43px;
        padding: 0 12px;
        border: 1px solid rgba(255,255,255,.3);
        background: transparent;
        color: white;
        cursor: pointer;
    }

    .heritage-open-text {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.3px;
    }

    .heritage-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 19px;
    }

        .heritage-hamburger i {
            display: block;
            width: 19px;
            height: 1.5px;
            background: var(--hn-gold);
        }

            .heritage-hamburger i:nth-child(2) {
                width: 13px;
                margin-left: auto;
            }

    body.heritage-menu-locked {
        overflow: hidden;
        touch-action: none;
    }

    .heritage-drawer-brand img{
        background:white;
        border-radius:10px;
    }

    .heritage-close{
        background:white;
        border-radius:10px;
    }

        .heritage-close span {
            background: var(--hn-green);
        }

    .heritage-drawer-menu {
        padding: 9px 20px;
    }

        .heritage-drawer-menu li{
            box-shadow:none;
        }
}

@media (prefers-reduced-motion: reduce) {
    .heritage-nav *,
    .heritage-drawer *,
    .heritage-backdrop {
        transition: none !important;
        animation: none !important;
    }
}



/* =========================================
   CAMPUS BULLETIN — PREMIUM NEWS RAIL
========================================= */

.campus-bulletin {
    --bulletin-green: #304225;
    --bulletin-gold: #DCC18A;
    --bulletin-paper: #F7F6F0;
    --bulletin-text: #30372B;
    padding: 18px 0;
    background: transparent;
    font-family: inherit;
}

.bulletin-shell {
    display: flex;
    width: 100%;
    min-height: 65px;
    background: var(--bulletin-paper);
    border: 1px solid #e5e4da;
    border-radius: 5px;
    overflow: hidden;
}

/* LEFT IDENTITY PANEL */

.bulletin-heading {
    flex: 0 0 240px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    color: #fff;
    background: var(--bulletin-green);
    position: relative;
    z-index: 2;
}

.bulletin-icon {
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bulletin-green);
    background: var(--bulletin-gold);
    border-radius: 4px;
    font-size: 19px;
}

.bulletin-heading-text {
    min-width: 0;
}

.bulletin-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--bulletin-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

.bulletin-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.4px;
}

    .bulletin-heading h2 span {
        color: var(--bulletin-gold);
        font-weight: 400;
    }

.bulletin-live {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #e8eadf;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.bulletin-live-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #a8d49c;
    box-shadow: 0 0 0 3px rgba(168, 212, 156, .13);
}

/* RIGHT TICKER PANEL */

.bulletin-content {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
}

.bulletin-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

/* Two identical sets create a seamless loop.
   This also works when there is only ONE notice. */

.bulletin-track {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: max-content;
    height: 100%;
    animation: bulletinTravel 32s linear infinite;
    will-change: transform;
}

.bulletin-set {
    display: flex;
    align-items: center;
    flex: 0 0 max-content;
    min-width: 100%;
    width: max-content;
    box-sizing: border-box;
}

.bulletin-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--bulletin-text);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    transition: color .2s ease;
}

    .bulletin-item:hover,
    .bulletin-item:focus {
        color: var(--bulletin-green);
    }

.bulletin-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: var(--bulletin-green);
    background: #304225;
    border-radius: 3px;
    font-size: 13px;
}

.bulletin-item-text {
    display: inline-block;
}

.bulletin-item-arrow {
    color: #8b8e7f;
    font-size: 12px;
    margin-left: 3px;
}

@keyframes bulletinTravel {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* CONTROLS */

.bulletin-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 3px;
    padding: 0 12px;
    border-left: 1px solid #e3e2d8;
    background: var(--bulletin-paper);
    z-index: 1;
}

.bulletin-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 3px;
    background: #304225;
    color: var(--bulletin-green);
    font-size: 17px;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

    .bulletin-control:hover,
    .bulletin-control:focus-visible {
        background: #e9eadd;
        border-color: #d7d8ca;
        outline: none;
    }

.bulletin-control-divider {
    width: 1px;
    height: 22px;
    margin: 0 4px;
    background: #deded2;
}

.bulletin-track.is-paused {
    animation-play-state: paused !important;
}

.bulletin-track.is-static {
    animation: none !important;
    transform: none !important;
}

.bulletin-empty {
    padding: 20px 24px;
    color: #6e7165;
    font-size: 13px;
}

/* TABLET */

@media (max-width: 991px) {
    .campus-bulletin {
        padding: 14px 0;
    }

    .bulletin-shell {
        flex-direction: column;
    }

    .bulletin-heading {
        flex: 0 0 auto;
        min-height: 70px;
        padding: 13px 18px;
    }

        .bulletin-heading h2 {
            font-size: 19px;
        }

    .bulletin-content {
        min-height: 65px;
    }

    .bulletin-item {
        padding: 16px 20px;
        font-size: 13px;
    }

    .bulletin-controls {
        padding: 0 8px;
    }
}

/* MOBILE */

@media (max-width: 575px) {
    .campus-bulletin {
        padding: 10px 0;
    }

    .bulletin-heading {
        gap: 11px;
        padding: 13px 14px;
    }

    .bulletin-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 16px;
    }

    .bulletin-eyebrow {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .bulletin-heading h2 {
        font-size: 18px;
    }

    .bulletin-live {
        font-size: 7px;
        letter-spacing: .5px;
    }

    .bulletin-content {
        min-height: 60px;
    }

    .bulletin-item {
        gap: 9px;
        padding: 13px 14px;
        font-size: 12px;
    }

    .bulletin-item-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .bulletin-control {
        width: 27px;
        height: 31px;
        font-size: 15px;
    }

    .bulletin-control-divider {
        margin: 0 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bulletin-track {
        animation-duration: 90s;
    }
}