:root {
    --main: #002147;

    /* Replace yellow/gold with silver/white */
    --accent: #e5e7eb;
    --gold: #9ca3af;
    --gold-soft: #d1d5db;

    /* Existing light colors */
    --text-light: #f5f5dc;
    --cream: #f5f5dc;

    /* Navy palette */
    --main-lighter: #0f4686;
    --navy: #002147;
    --navy-deep: #001530;

    /* Neutral colors */
    --muted: #6b7280;
    --grey-bg: #f2f2f2;
    --ink: #16232f;

    /* Site typography — the actual brand webfonts (loaded via Google
       Fonts on every page), with system fonts as fallback while they
       load. Every stylesheet should reference these two variables
       rather than hard-coding "Fraunces"/"Source Sans 3" directly, so
       the whole site's type always stays in sync from one place. */
    --serif: "Fraunces", "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
    --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}




*{
    scrollbar-width: none;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    overflow-x: hidden; /* prevents any stray element from creating horizontal scroll on phones */
}

/* Site-wide default: keeps the nav, dropdown, and any page that forgets
   to set its own body font-family from silently falling back to the
   browser's serif default. Page-specific stylesheets may still set
   body { font-family: var(--sans) } themselves (harmless — same value),
   but this is now the single source of truth. */
body {
    font-family: var(--sans);
}

/* ====================== TOP BAR ====================== */
.top-bar {
    width: 100%;
    min-height: 8vh;
    background: var(--main);
    color: var(--accent);
    font-family: var(--sans);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 3rem;
    flex-wrap: wrap;
}

.top-bar ul {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 2.5em;
    justify-content: flex-end;
}

.top-bar li {
    letter-spacing: 0.5px;
}

.register-button {
    display: inline-block;
    border: 2px solid var(--accent);
    padding: 0.75rem 2rem;
    color: var(--main);
    background: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s ease;
    white-space: nowrap;
}

.register-button:hover {
    color: var(--accent);
    background: transparent;
}

/* ====================== HERO ====================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background: var(--main);
}
.hero>img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vidBG {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    max-width: none;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 33, 71, 0.45);
    z-index: 1;
}

.hero-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: baseline;
    text-align: center;
    padding: 30vh 2rem;
    color: var(--text-light);
    pointer-events: none;
}

.hero-text h4 {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-family: var(--serif);
    font-size: clamp(4rem, 6vw, 4.75rem);
    font-weight: 600;
    line-height: 1.2;
    max-width: 50rem;
    color: var(--text-light);
}

/* ====================== MAIN NAV (desktop) ====================== */
.main-menu {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 90%;
    max-width: 75rem;
}

.mainul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--sans);
}

.mainul li {
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 500;
}

.menu-logo {
    width: 8rem;
    height: auto;
}

/* Injected by script.js for mobile only — hidden by default so it has
   no effect on desktop, where the nav's own logo item is already
   visible inline. */
.mobile-logo-btn {
    display: none;
}

/* Dropdown now anchors to its own parent <li> */
.mainul li.has-dropdown {
    position: relative;
}

.mainul li,
.dropdown {
    cursor: pointer;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background-color: white;
    width: max-content;
    min-width: 9vw;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-family: var(--sans);
}

@keyframes showDrop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-0.5vh);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-dropped {
    animation-name: showDrop;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

.dropdown ul {
    list-style-type: none;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dropdown ul li {
    padding: 10px;
}

.dropdown ul li:hover {
    background-color: rgb(243, 236, 228);
    color: #14355a;
}
.dropdown ul li a{
    text-decoration: none;
    color:#32557d;
    width: 100%;
    height: 100%;
}

/* ====================== MOBILE NAV TOGGLE ====================== */
/* Pure-CSS hamburger menu — no JS needed.
   Requires this markup added inside <section class="hero">,
   right before <nav class="main-menu">:

   <input type="checkbox" id="nav-toggle" class="nav-toggle-checkbox">
   <label for="nav-toggle" class="menu-toggle" aria-label="Toggle menu">
     <span></span><span></span><span></span>
   </label>
*/
.nav-toggle-checkbox {
    display: none;
}

.menu-toggle {
    display: none;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 20;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(0, 33, 71, 0.55);
    border-radius: 6px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--accent);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-checkbox:checked ~ .menu-toggle span:nth-child(1) {
    transform: translateY(0.5rem) rotate(45deg);
}
.nav-toggle-checkbox:checked ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
}
.nav-toggle-checkbox:checked ~ .menu-toggle span:nth-child(3) {
    transform: translateY(-0.5rem) rotate(-45deg);
}

/* ---------- CTA banner ---------- */
.cta {
  background: var(--main);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0 2px,
    transparent 2px 22px
  );
}
.cta .wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 56px 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-text .kicker {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 700;
}
.cta-text .headline {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  color:beige;
}
.cta-btn {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 16px 36px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.cta-btn:hover {
  background: var(--gold);
  color: var(--main);
}


/* ====================== FOOTER ====================== */
footer {
    background: var(--main);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    height: auto;
    padding: 3.5rem 0 0;
}

footer::before {
    content: "";
    position: absolute;
    left: -7.5rem;
    bottom: -8.75rem;
    width: 26.25rem;
    height: 26.25rem;
    border: 2px solid rgba(201, 162, 74, 0.08);
    border-radius: 50%;
}

footer::after {
    content: "";
    position: absolute;
    left: -2.5rem;
    bottom: -2.5rem;
    width: 17.5rem;
    height: 17.5rem;
    border: 1px solid rgba(201, 162, 74, 0.1);
    border-radius: 50%;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 2.5rem;
}


.footer-brand .crest {
    width: 8rem;
    height: 8rem;
    text-align: center;
    margin-bottom: 5vh;
    pointer-events: none;

}

.footer-brand .crest img {
    width: 8vw;
    min-width: 4rem;
    margin:0 0 0 1vw;
}

.footer-brand .school-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.footer-brand .school-tag {
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-brand address {
    font-style: normal;
    font-family: var(--sans);
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.footer-brand .contact-link {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-brand .contact-link:hover {
    color: var(--accent);
}

.socials {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.375rem;
}

.socials a {
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main);
    text-decoration: none;
    font-family: var(--sans);
    font-weight: bold;
    font-size: 0.875rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
    background: #ffda6a;
    transform: translateY(-2px);
}

.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
    color: var(--text-light);
    position: relative;
    padding-bottom: 0.625rem;
}

.footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1.875rem;
    height: 2px;
    background: var(--accent);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8125rem;
}

.footer-col a {
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
    padding-left: 0.25rem;
}
.bg-logo-footer{
    position:absolute;
    z-index:-10;
    width:30vw;
    margin:14vh 0 0 -19vw;
    opacity: 0.5;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    padding: 1.25rem 3rem;
    border-top: 1px solid rgba(245, 245, 220, 0.12);
    text-align: center;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    color: rgba(245, 245, 220, 0.65);
}


/* ======================================================================
   RESPONSIVE / MOBILE STYLES
   Breakpoints: 1024px (tablet / small laptop), 768px (phones), 480px (small phones)
   ====================================================================== */

/* ---------- TABLET & BELOW (nav becomes a hamburger menu) ---------- */
@media (max-width: 1024px) {

    .top-bar {
        padding: 0.6rem 1.25rem;
        justify-content: center;
        text-align: center;
    }

    .top-bar ul {
        justify-content: center;
    }

    .top-bar li {
        font-size: 0.8rem;
    }

    .register-button {
        padding: 0.5rem 1.25rem;
    }

    .main-menu {
        top: 0;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Persistent top-middle "home" button for mobile — see script.js,
       which clones the nav's logo link (already wired to the right
       relative index.html/logo.png path on every page) into .main-menu
       as a sibling of .mainul, so it sits outside the sliding panel's
       transform and stays visible and tappable at all times. */
    .mobile-logo-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 12;
        width: 4.5rem;
        height: 4.5rem;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 10px;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-logo-btn img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .mobile-logo-btn:hover {
        background: #ffffff;
    }

    .mobile-logo-btn:active {
        transform: translateX(-50%) scale(0.93);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    }

    /* Hide it while the panel is open — the panel already shows its own
       logo at the top, so avoid two overlapping buttons. */
    .nav-toggle-checkbox:checked ~ .main-menu .mobile-logo-btn {
        opacity: 0;
        pointer-events: none;
    }

    /* The .mainul itself becomes the slide-in panel; the logo item is
       pulled out of flow and pinned in the header bar via order. */
    .mainul {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        height: 100dvh;
        width: min(80vw, 20rem);
        background: var(--main);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 6rem 1.5rem 2rem;
        overflow-y: auto;
        overflow-x:hidden;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
        z-index: 15;
    }

    .nav-toggle-checkbox:checked ~ .main-menu .mainul {
        transform: translateX(0);
    }

    /* Logo appears at the top of the sliding panel itself */
    .mainul > li:has(.menu-logo) {
        order: -1;
        width: 100%;
        padding-bottom: 1.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .mainul > li:not(:has(.menu-logo)) {
        width: 100%;
    }

    .mainul li.has-dropdown {
        width: 100%;
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        /* These headers aren't links on mobile (their dropdown is always
           expanded below), so drop the pointer affordance and the tap
           flash that came with it. */
        cursor: default;
        -webkit-tap-highlight-color: transparent;
    }

    /* Dropdowns become static, always-expanded sub-lists instead of hover flyouts,
       styled to match the panel: navy background, amber text */
    .dropdown {
        display: block !important;
        position: static !important;
        transform: none !important;
        margin-top: 0.6rem;
        width: 100%;
        min-width: 0;
        background: var(--main);
        box-shadow: none;
        border-radius: 4px;
        animation: none !important;
        /* .dropdown inherited cursor:pointer from the desktop rule, and
           still carries onmouseenter/onmouseleave attributes from the
           desktop hover logic. On touch browsers that combination made
           the ENTIRE dropdown box (i.e. the whole sub-<ul>) light up with
           the default grey tap-highlight whenever any part of it was
           tapped. Neutralise both so only the actual link a person taps
           gets a highlight. */
        cursor: default;
        -webkit-tap-highlight-color: transparent;
    }

    .dropdown ul li {
        padding: 0;
        -webkit-tap-highlight-color: transparent;
    }

    /* The link itself — not just the padded <li> around it — is what's
       actually tappable, so make it fill the full row at a comfortable
       touch-target size (~44px tall) instead of hugging the text. */
    .dropdown ul li a {
        display: block;
        width: 100%;
        padding: 0.95rem 0.75rem;
        min-height: 2.75rem;
        color: var(--accent);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .dropdown ul li:hover {
        background: var(--main-lighter);
        color: var(--accent);
    }

    /* Explicit, correctly-scoped feedback on tap, replacing the browser's
       default highlight that used to bleed across the whole dropdown. */
    .dropdown ul li a:active {
        background: var(--main-lighter);
        color: var(--accent);
    }

    .hero-text {
        padding: 22vh 1.5rem 4rem;
    }

    .hero-text h1 {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
        max-width: 100%;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        padding: 0 2rem;
        gap: 2rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .bg-logo-footer {
        width: 45vw;
        margin: 10vh 0 0 -25vw;
    }
}

/* ---------- PHONES ---------- */
@media (max-width: 768px) {

    .top-bar li:first-child {
        font-size: 0.75rem;
    }

    /* full-height video hero felt oversized on phones — shrink it and
       the vidBG along with it (vidBG is 100%/100% of .hero, so it
       follows automatically) */
    .hero {
        height: 62vh;
        height: 62lvh;
    }

    .hero-text {
        padding: 10vh 1.25rem 3rem;
    }

    .hero-text h4 {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-text h1 {
        font-size: clamp(1.9rem, 8vw, 2.75rem);
    }

    .menu-logo {
        width: 4.5rem;
    }

    .mobile-logo-btn {
        top: 0.85rem;
        width: 3.75rem;
        height: 3.75rem;
    }

    .cta .wrap {
        padding: 40px 20px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    footer {
        padding: 2.5rem 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 2rem;
    }

    .footer-brand .crest {
        margin-bottom: 1.5rem;
    }

    .footer-brand .crest img {
        width: 100%;
        margin: 0;
    }

    .bg-logo-footer {
        display: none; /* purely decorative watermark — just clutters small screens */
    }

    .footer-bottom {
        margin-top: 2rem;
        padding: 1rem 1.5rem;
        font-size: 0.72rem;
    }
}

/* ---------- SMALL PHONES ---------- */
@media (max-width: 480px) {

    .top-bar ul {
        gap: 0.5rem 1rem;
    }

    .top-bar li:first-child {
        width: 100%;
        font-size: 0.7rem;
    }

    .register-button {
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
    }

    .hero-text h1 {
        font-size: clamp(1.6rem, 9vw, 2.1rem);
    }

    .hero-text h4 {
        font-size: 0.9rem;
    }

    .mainul > li:not(:has(.menu-logo)) {
        width: 85vw;
    }
}