/* Shared site chrome (header + nav + footer) — mirrors index.html. Loaded by all sub-pages. */
/* Relies on CSS vars (--crimson,--gold,--gold-light,--charcoal,--deep-red) defined per page :root */

/* ── HEADER ── */
  header {
    background: var(--crimson);
    padding: 14px 40px 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  }
  .college-crest {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 30px;
    box-shadow: 0 0 0 4px rgba(201,151,58,0.3);
  }
  .college-title { flex: 1; }
  .college-title h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(18px, 2.8vw, 30px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: 0.02em;
  }

/* ── TOPBAR + PORTAL ── */
    --ivory: #E3EAF6;
    --charcoal: #0D1B3E;
  .portal-drop { position: relative; display: inline-block; }
  .portal-drop-btn { color: var(--crimson); font-weight: 700; cursor: pointer; margin-left: 18px; background: var(--gold); color: #fff; padding: 3px 14px; border-radius: 4px; font-size: 12px; letter-spacing: 0.06em; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
  .portal-drop-btn:hover { background: var(--gold-light); color: #fff; text-decoration: none; }
  .portal-drop-menu { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid #e5e7eb; border-top: 3px solid var(--gold); min-width: 220px; z-index: 999; box-shadow: 0 8px 28px rgba(0,0,0,0.18); border-radius: 0 0 8px 8px; }
  .portal-drop-menu { transition: opacity 0.2s; opacity: 0; pointer-events: none; }
  .portal-drop:hover .portal-drop-menu, .portal-drop:focus-within .portal-drop-menu { display: block; opacity: 1; pointer-events: auto; }
  .portal-drop-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
  .portal-drop-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin: 0; color: #374151; font-size: 13px; font-weight: 500; border-bottom: 1px solid #f3f4f6; text-decoration: none; }
  .portal-drop-menu a:hover { background: rgba(201,151,58,0.06); color: var(--crimson); }

/* ── NAV ── */
  nav ul li a {
    display: block;
    padding: 14px 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    position: relative;
    white-space: nowrap;
  }
  nav ul li a::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; right: 50%;
    height: 2px; background: var(--gold);
    transition: left 0.25s, right 0.25s;
  }
  nav ul li a:hover { color: var(--gold-light); }
  nav ul li a:hover::after { left: 16px; right: 16px; }
  nav ul li a { transition: color 0.2s, background 0.2s, transform 0.15s; }
  nav ul li a:hover { transform: translateY(-1px); }

/* ── NAV DROPDOWN ── */
  .nav-dropdown { position: relative; }
  .nav-dropdown-toggle { cursor: pointer; user-select: none; }
  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--charcoal);
    border-top: 2px solid var(--gold);
    min-width: 240px; max-height: 420px; overflow-y: auto;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding: 6px 0;
    flex-direction: column;
    list-style: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: flex; }
  .nav-dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
  }
  .nav-dropdown-menu li a:hover {
    color: var(--gold-light);
    background: rgba(201,151,58,0.08);
  }
  .nav-dropdown-menu li a::after { display: none; }

/* ── HAMBURGER ── */
  .nav-hamburger {
    display: none;
    background: none; border: none; cursor: pointer;
    padding: 10px 16px; color: var(--gold-light);
    font-size: 26px; line-height: 1;
  }

/* ── FOOTER ── */
  footer {
    background: #111;
    padding: 40px 40px 20px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
  }
  .footer-col h4 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
  }
  .footer-col p { font-size: 15.5px; color: rgba(255,255,255,0.5); line-height: 1.8; }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 8px; }
  .footer-col ul li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 15.5px;
    transition: color 0.2s;
  }
  .footer-col ul li a:hover { color: var(--gold-light); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.62);
  }
  .footer-bottom a { color: var(--gold); text-decoration: none; }
  .footer-bottom a:hover { color: var(--gold-light); }

/* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .nav-hamburger { display: block; }
    nav ul { display: none; flex-direction: column; padding: 0; }
    nav ul.nav-open { display: flex; }
    nav ul li a { padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
    .nav-dropdown-menu { position: static; box-shadow: none; background: rgba(0,0,0,0.2); }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .topbar { padding: 6px 20px; font-size: 11px; }
    header { padding: 16px 20px; }
  }

/* Compact header tweaks */
.college-crest img{width:100%!important;height:100%!important;border-radius:50%;object-fit:cover}
.college-title .subtitle{margin-top:3px;letter-spacing:.14em}
