:root {
  --navy:      #0a1628;
  --navy-2:    #112240;
  --navy-3:    #1a3260;
  --red:       #c8102e;
  --red-2:     #a50d24;
  --gold:      #f5a623;
  --white:     #ffffff;
  --off-white: #f4f6f9;
  --text:      #1a1a2e;
  --muted:     #5a6a7e;
  --border:    #d0d9e8;
  --topbar-h:  36px;
  --nav-h:     68px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--off-white);
  color: var(--text);
  line-height: 1.65;
  padding-top: calc(var(--topbar-h) + var(--nav-h));
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* TOPBAR */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--topbar-h);
  background: var(--navy);
  color: #a8becf; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; letter-spacing: 0.02em;
}
.topbar-right { font-size: 0.75rem; opacity: 0.7; }

/* NAVBAR */
.navbar {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 199;
  height: var(--nav-h);
  background: var(--navy-2);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.seal {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: white; border: 2px solid rgba(255,255,255,0.2);
  overflow: hidden;
}
.logo-mark {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-logo-text { line-height: 1.2; }
.nav-logo-text strong { display: block; color: white; font-size: 1.05rem; letter-spacing: 0.04em; }
.nav-logo-text span  { display: block; color: #7a99b8; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 8px 11px; color: #c8d8ea;
  font-size: 0.84rem; font-weight: 500; border-radius: 6px; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav-links > li > a:hover { background: var(--red); color: white; text-decoration: none; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--navy-2); border: 1px solid var(--navy-3);
  border-top: 3px solid var(--red); border-radius: 0 0 8px 8px; list-style: none;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity 0.15s, transform 0.15s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 300;
}
.has-dropdown:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown li a { display: block; padding: 9px 16px; color: #c8d8ea; font-size: 0.83rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--red); color: white; text-decoration: none; }
.nav-hamburger {
  display: none; background: none; border: 1px solid rgba(255,255,255,0.2);
  color: white; font-size: 1.3rem; padding: 6px 10px; border-radius: 6px;
  cursor: pointer; margin-left: auto;
}

/* PAGES */
.page { display: none; }
.page.active { display: block; }

/* HERO */
.hero {
  background: var(--navy);
  min-height: 480px; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-track {
  height: 100%;
  display: flex;
  width: max-content;
  animation: hero-scroll 95s linear infinite;
}
.hero-photo {
  height: 100%;
  width: clamp(280px, 24vw, 520px);
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.95;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.72) 45%, rgba(10,22,40,0.85) 100%);
}
.hero-overlay { position: relative; z-index: 2; width: 100%; max-width: 900px; margin: 0 auto; padding: 64px 24px; }
.hero-label { color: var(--gold); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.hero-content h1 { font-family: Merriweather, Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; color: white; line-height: 1.2; margin-bottom: 18px; }
.hero-sub { color: #8faec8; font-size: 1.05rem; max-width: 640px; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.1); color: #c8d8ea; font-size: 0.75rem; border: 1px solid rgba(255,255,255,0.15); }
.chip-muted { color: #5a7a90; border-color: transparent; }

/* PAGE HERO (sub-pages) */
.page-hero {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-3) 100%);
  padding: 48px 24px; text-align: center; border-bottom: 3px solid var(--red);
}
.page-hero h1 { font-family: Merriweather, Georgia, serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: white; margin-bottom: 8px; }
.page-hero p { color: #8faec8; font-size: 1rem; }

/* BUTTONS */
.btn { display: inline-block; padding: 11px 22px; border-radius: 6px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: all 0.15s; letter-spacing: 0.02em; }
.btn-primary { background: var(--red); color: white; border-color: var(--red); }
.btn-primary:hover { background: var(--red-2); border-color: var(--red-2); text-decoration: none; }
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: white; text-decoration: none; }
.btn-block { width: 100%; text-align: center; }

/* STATS BAR */
.stats-bar { background: var(--navy-2); display: flex; justify-content: space-around; padding: 28px 24px !important; gap: 16px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--gold); font-family: Merriweather, serif; line-height: 1; }
.stat span   { display: block; font-size: 0.78rem; color: #8faec8; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* LAYOUT */
.content-section { max-width: 1160px; margin: 0 auto; padding: 48px 24px; }
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media(max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.section-title { font-family: Merriweather, Georgia, serif; font-size: 1.4rem; color: var(--navy); padding-bottom: 10px; border-bottom: 3px solid var(--red); margin-bottom: 24px; }

/* BULLETIN CARDS */
.bulletin-card { background: white; border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 8px; padding: 20px 24px; margin-bottom: 18px; transition: border-color 0.15s, box-shadow 0.15s; }
.bulletin-card:hover { border-left-color: var(--red); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.bulletin-card.featured { border-left-color: var(--red); background: #fff8f8; }
.bulletin-card h3 { font-size: 1.02rem; color: var(--navy); margin: 6px 0; }
.bulletin-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); background: #fdecea; padding: 2px 8px; border-radius: 4px; }
.bulletin-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.read-more { font-size: 0.85rem; font-weight: 600; color: var(--red); }

/* SIDEBAR */
.sidebar-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 18px; }
.sidebar-card h3 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); border-bottom: 2px solid var(--red); padding-bottom: 8px; margin-bottom: 14px; }
.sidebar-links { list-style: none; }
.sidebar-links li { padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.sidebar-links li:last-child { border-bottom: none; }
.highlight-card { background: var(--navy-2); color: white; border-color: var(--navy); }
.highlight-card h3 { color: var(--gold); border-color: var(--gold); }
.highlight-card p { color: #8faec8; font-size: 0.88rem; margin-bottom: 14px; }

/* PROSE */
.prose h2 { font-family: Merriweather, Georgia, serif; font-size: 1.4rem; color: var(--navy); margin: 2rem 0 0.75rem; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; color: var(--navy-2); margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1rem; color: var(--text); }
.prose ul { padding-left: 20px; margin-bottom: 1rem; }
.prose ul li { margin-bottom: 6px; }

/* CALLOUTS */
.callout { background: #eef4ff; border-left: 4px solid #3b82f6; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 1.5rem 0; font-size: 0.93rem; }
.callout-red { background: #fff0f0; border-left-color: var(--red); }
.callout-green { background: #f0fff4; border-left-color: #16a34a; }

/* TIMELINE */
.timeline-item { display: flex; gap: 24px; margin-bottom: 36px; align-items: start; }
.timeline-year { flex-shrink: 0; width: 72px; background: var(--red); color: white; text-align: center; padding: 6px 4px; border-radius: 6px; font-weight: 700; font-size: 0.82rem; margin-top: 4px; }
.timeline-content h3 { color: var(--navy); margin-bottom: 6px; }
.timeline-content p { color: var(--text); font-size: 0.93rem; }

/* DUES BOX */
.dues-box { background: var(--navy-2); border-radius: 12px; padding: 28px; text-align: center; margin: 1.5rem 0; border: 2px solid var(--navy-3); }
.dues-amount { font-size: 3.5rem; font-weight: 900; color: var(--gold); font-family: Merriweather, serif; line-height: 1; }
.dues-label { color: #8faec8; font-size: 0.9rem; margin-top: 6px; letter-spacing: 0.06em; text-transform: uppercase; }

/* LEADERSHIP */
.leadership-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.leader-card { background: white; border: 1px solid var(--border); border-top: 4px solid var(--red); border-radius: 8px; padding: 24px; text-align: center; }
.leader-avatar { font-size: 2.2rem; margin-bottom: 10px; }
.leader-card h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 4px; font-weight: 700; }
.leader-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.leader-bio { font-size: 0.85rem; color: var(--muted); }

/* BENEFITS */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.benefit-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.benefit-icon { font-size: 2rem; margin-bottom: 12px; }
.benefit-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; font-weight: 700; }
.benefit-card p { font-size: 0.88rem; color: var(--muted); }

/* FORMS */
.forms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.form-card { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.form-icon { font-size: 2rem; }
.form-card h3 { font-size: 1rem; color: var(--navy); font-weight: 700; }
.form-card p { font-size: 0.86rem; color: var(--muted); flex: 1; }

/* ELECTIONS TABLE */
.election-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.5rem 0; }
.election-table th { background: var(--navy-2); color: white; padding: 10px 14px; text-align: left; font-size: 0.8rem; letter-spacing: 0.04em; }
.election-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); background: white; }
.election-table tr:hover td { background: #f7f9fc; }

/* BULLETINS FULL */
.bulletin-full { background: white; border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 8px; padding: 28px 32px; margin-bottom: 24px; }
.bulletin-full h2 { font-family: Merriweather, serif; font-size: 1.2rem; color: var(--navy); margin: 10px 0 6px; }
.bulletin-full p { font-size: 0.93rem; color: var(--text); margin-bottom: 0.75rem; }

/* GALLERY */
.gallery-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 2px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.gallery-grid img:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.gallery-placeholder { grid-column: 1 / -1; text-align: center; padding: 60px 24px; color: var(--muted); background: white; border: 2px dashed var(--border); border-radius: 8px; }

/* FOOTER */
.site-footer { background: var(--navy); color: #8faec8; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media(max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media(max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo { font-family: Merriweather, serif; font-size: 1.3rem; font-weight: 900; color: white; margin-bottom: 10px; letter-spacing: 0.04em; }
.footer-logo-image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid rgba(255,255,255,0.2);
}
.footer-col p { font-size: 0.85rem; line-height: 1.6; }
.footer-fine { font-size: 0.75rem; opacity: 0.55; margin-top: 6px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; font-size: 0.86rem; }
.footer-col ul li a { color: #8faec8; }
.footer-col ul li a:hover { color: white; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; text-align: center; font-size: 0.8rem; color: #5a7a90; max-width: 1160px; margin: 0 auto; }
.footer-bottom a { color: #5a7a90; }
.footer-bottom a:hover { color: white; }
.footer-easter-egg { margin-top: 6px; font-style: italic; font-size: 0.75rem; opacity: 0.5; }

/* TOAST */
.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--navy-2); color: white; padding: 12px 24px; border-radius: 8px; border-left: 4px solid var(--red); font-size: 0.9rem; box-shadow: 0 8px 32px rgba(0,0,0,0.4); transition: transform 0.3s; z-index: 500; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* RESPONSIVE */
@media(max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--navy-2); border-top: 2px solid var(--red); padding: 12px 0; box-shadow: 0 8px 32px rgba(0,0,0,0.4); gap: 0; }
  .nav-links.open li a { border-radius: 0; }
  .dropdown { display: none; }
  .nav-hamburger { display: block; }
  .stats-bar .stat strong { font-size: 1.5rem; }
  .hero-photo { width: clamp(240px, 48vw, 420px); }
}

@keyframes hero-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track { animation: none; }
}
