/* Shared header, footer, navigation, and motion layer */
body > header:not(.site-shell),
body > footer:not(.site-shell),
body > .topbar:not(.site-shell) {
    display: none;
}

.container {
    width: 80%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.topbar.site-shell,
header.site-shell,
footer.site-shell {
    font-family: var(--font-sans, 'DM Sans', sans-serif);
}

body > .topbar > .container,
body > header > .container,
body > header > .header-inner,
body > footer > .container,
header.site-shell .header-inner,
footer.site-shell > .container {
    width: 85%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

body > header > .header-inner,
body > header > .container.header-inner,
header.site-shell .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1.25rem;
}

body > header .logo,
body > header .logo-block,
header.site-shell .site-logo {
    flex: 0 1 auto;
    min-width: 0;
}

body > header .logo-text,
body > header .logo-block .logo-text,
header.site-shell .site-logo span {
    min-width: 0;
}

body > header .logo-text h2,
body > header .logo-block .logo-name,
header.site-shell .site-logo-name {
    white-space: nowrap;
}

body > header .header-cta,
body > header .site-header-cta,
header.site-shell .site-header-cta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

body > header nav,
header.site-shell nav {
    flex: 0 0 auto;
}

body > header nav ul,
header.site-shell nav ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.9rem;
}

body > header nav a,
header.site-shell nav a {
    white-space: nowrap;
}

.topbar.site-shell {
    background: var(--navy, #0b1f3a);
    color: rgba(255,255,255,0.68);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(201,168,76,0.25);
}

.topbar.site-shell .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.topbar.site-shell a {
    color: rgba(255,255,255,0.68);
    text-decoration: none;
    margin-left: 1.1rem;
    transition: color 0.2s ease;
}

.topbar.site-shell a:hover { color: var(--gold2, #e8c76e); }

.site-topbar-left {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

header.site-shell {
    background: var(--navy2, #162d52);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 24px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ticker-bar + .hero,
.ticker-bar + main .hero {
    margin-top: 0;
    padding-top: 0;
}

.ticker-bar {
    opacity: 1 !important;
    transform: none !important;
}

header.site-shell .header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 82px;
    height: auto;
    width: 85%;
    padding: 0.85rem 0;
    max-width: none;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-logo-emblem {
    width: 72px;
    height: 50px;
    flex: 0 0 72px;
    object-fit: contain;
    border-radius: 4px;
    background: transparent;
}

.site-logo-name {
    font-family: var(--font-serif, Georgia, serif);
    display: block;
    font-size: 1.12rem;
    line-height: 1.15;
    font-weight: 700;
    color: #fff;
}

.site-logo-est {
    font-family: var(--font-mono, monospace);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--gold, #c9a84c);
    text-transform: uppercase;
    margin-top: 0.2rem;
}

header.site-shell nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

header.site-shell nav ul {
    list-style: none;
    display: flex;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
}

header.site-shell nav a {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    padding: 0.55rem 0.85rem;
    border-radius: 3px;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

header.site-shell nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 4px;
    height: 1.5px;
    background: var(--gold, #c9a84c);
    transition: left 0.25s ease, right 0.25s ease;
}

header.site-shell nav a:hover,
header.site-shell nav a.active {
    color: var(--gold2, #e8c76e);
}

header.site-shell nav a:hover { transform: translateY(-1px); }

header.site-shell nav a:hover::after,
header.site-shell nav a.active::after {
    left: 0.85rem;
    right: 0.85rem;
}

.site-header-cta {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.site-btn-outline,
.site-btn-fill {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.site-btn-outline {
    border: 1px solid var(--gold, #c9a84c);
    color: var(--gold2, #e8c76e);
    background: transparent;
}

.site-btn-fill {
    border: 1px solid var(--gold, #c9a84c);
    color: var(--navy, #0b1f3a);
    background: var(--gold, #c9a84c);
}

.site-btn-outline:hover,
.site-btn-fill:hover {
    transform: translateY(-1px);
}

.site-btn-outline:hover {
    background: var(--gold, #c9a84c);
    color: var(--navy, #0b1f3a);
}

.site-btn-fill:hover { background: var(--gold2, #e8c76e); }

footer.site-shell {
    background: var(--navy, #0b1f3a);
    color: rgba(255,255,255,0.72);
    padding: 4rem 0 1.5rem;
}

footer.site-shell .footer-grid {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, 1fr);
    gap: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-footer-brand p {
    max-width: 27rem;
    line-height: 1.8;
    margin: 1rem 0;
}

.site-footer-contact {
    font-size: 0.86rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.58);
}

footer.site-shell h5 {
    color: var(--gold2, #e8c76e);
    font-family: var(--font-mono, monospace);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

footer.site-shell ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer.site-shell li { margin: 0.62rem 0; }

footer.site-shell a {
    color: rgba(255,255,255,0.66);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

footer.site-shell a:hover {
    color: #fff;
    padding-left: 0.25rem;
}

footer.site-shell .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.4rem;
    text-align: left;
    color: rgba(255,255,255,0.48);
    font-size: 0.82rem;
}

.site-accred {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.site-accred span {
    border: 1px solid rgba(201,168,76,0.42);
    color: var(--gold2, #e8c76e);
    padding: 0.24rem 0.5rem;
    font-family: var(--font-mono, monospace);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

body.site-loaded .site-animate {
    animation: siteFadeUp 0.75s ease both;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.program-card,
.department-card,
.value-card,
.leader-card,
.area-card,
.centre-card,
.facility-card,
.lab-card,
.contact-card,
.info-card,
.admission-card {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.program-card:hover,
.department-card:hover,
.value-card:hover,
.leader-card:hover,
.area-card:hover,
.centre-card:hover,
.facility-card:hover,
.lab-card:hover,
.contact-card:hover,
.info-card:hover,
.admission-card:hover {
    transform: translateY(-6px);
}

@keyframes siteFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
    body > .topbar > .container,
    body > header > .container,
    body > header > .header-inner,
    body > footer > .container,
    header.site-shell .header-inner {
        width: 90%;
    }

    body > header nav ul,
    header.site-shell nav ul {
        gap: 0.55rem;
    }

    body > header nav a,
    header.site-shell nav a {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }

    header.site-shell .header-inner {
        gap: 0.9rem;
    }

    header.site-shell nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-header-cta {
        justify-content: center;
    }
}

@media (max-width: 760px) {
    body > .topbar > .container,
    body > header > .container,
    body > header > .header-inner,
    body > footer > .container,
    header.site-shell .header-inner {
        width: 94%;
    }

    .topbar.site-shell .container,
    footer.site-shell .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar.site-shell a { margin: 0 0.9rem 0 0; }

    header.site-shell .header-inner {
        padding: 0.8rem 1rem;
    }

    .site-logo-name { font-size: 0.92rem; }

    .site-logo-emblem {
        width: 58px;
        height: 42px;
        flex-basis: 58px;
    }

    header.site-shell nav a {
        font-size: 0.72rem;
        padding: 0.45rem 0.55rem;
    }

    .site-header-cta {
        width: 100%;
    }

    .site-btn-outline,
    .site-btn-fill {
        flex: 1;
        text-align: center;
    }

    footer.site-shell .footer-grid {
        grid-template-columns: 1fr;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ─── DROPDOWN NAVIGATION ─── */
nav ul li {
  position: relative;
}

/* The dropdown container */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy2, #162d52);
  min-width: 220px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  border-radius: 0 0 4px 4px;
  border-top: 2px solid var(--gold, #c9a84c);
  padding: 0.5rem 0;
  z-index: 200;
}

/* Dropdown links */
.dropdown-content a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  text-decoration: none;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover {
  background: rgba(201,168,76,0.15);
  color: var(--gold2, #e8c76e);
  padding-left: 1.5rem;
}
.dropdown-content a::after { display: none; }

/* Show dropdown on hover */
nav ul li:hover .dropdown-content {
  display: block;
}

/* Arrow indicator on parent menu item */
nav ul li.dropdown > a::after {
  content: ' ▾';
  font-size: 0.6rem;
  opacity: 0.6;
  margin-left: 0.2rem;
}

/* ─── MOBILE ADJUSTMENT ─── */
@media (max-width: 900px) {
  .dropdown-content {
    position: static;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border-top: none;
    padding-left: 1rem;
    border-radius: 0;
  }
  .dropdown-content a {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  .dropdown-content a:hover {
    padding-left: 1.2rem;
  }
  nav ul li.dropdown > a::after {
    content: ' ▾';
  }
}