
:root {
  --bg-main: #050509;
  --bg-soft: #0b0d14;
  --bg-elevated: #11121c;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --text-main: #f9fafb;
  --text-soft: #9ca3af;
  --accent-gold: #fbbf24;
  --accent-gold-soft: rgba(251, 191, 36, 0.12);
  --accent-purple: #8b5cf6;
  --accent-purple-soft: rgba(139, 92, 246, 0.18);
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.7);
  --radius-xl: 1.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text","Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #111827 0, #020617 55%),
    radial-gradient(circle at 120% 120%, #1e293b 0, #020617 55%);
  color: var(--text-main);
}

/* Layout shell */

.page {
  width: 100%;
  max-width: 1120px;
  margin: 20px auto 32px;
  padding: 18px 16px 28px;
}

@media (min-width: 768px) {
  .page {
    padding: 22px 22px 36px;
  }
}

/* NAVBAR */

.nav-shell {
  position: sticky;
  top: 8px;
  z-index: 40;
  margin-bottom: 20px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to right,
    rgba(15,23,42,0.96),
    rgba(15,23,42,0.9)
  );
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
  backdrop-filter: blur(18px);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crest-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,0.9);
  background:
    radial-gradient(circle at 20% 0, rgba(255,255,255,0.25), rgba(15,23,42,1)),
    url('../img/crest_insignia_64.png') center/cover no-repeat;
  background-blend-mode: soft-light;
  box-shadow:
    0 0 0 1px rgba(15,23,42,0.9),
    0 0 35px rgba(251,191,36,0.55);
}

.nav-text {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-subtitle {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav-links {
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.16s ease-out;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  border-color: rgba(148,163,184,0.9);
  background: rgba(15,23,42,0.95);
}

.nav-link-strong {
  border-color: rgba(251,191,36,0.75);
  color: #111827;
  background: radial-gradient(circle at top left, #facc15, #8b5cf6);
  box-shadow: 0 0 28px rgba(251,191,36,0.7);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* HERO / generic sections */

.hero {
  background:
    radial-gradient(circle at top left, rgba(251,191,36,0.14), transparent 60%),
    radial-gradient(circle at bottom right, rgba(139,92,246,0.16), transparent 60%),
    linear-gradient(to bottom right, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: var(--shadow-soft);
  padding: 22px 18px 20px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 26px 26px 24px;
  }
}

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.hero-title span {
  background: linear-gradient(120deg, #facc15, #f97316, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(251,191,36,0.7);
}

.hero-sub {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 44rem;
  margin: 0 0 16px;
}

.hero-sub strong {
  color: var(--text-main);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.16s ease-out;
}

.btn-primary {
  background:
    radial-gradient(circle at top left, #facc15, #f97316);
  border-color: rgba(251,191,36,0.9);
  color: #111827;
  box-shadow: 0 14px 40px rgba(251,191,36,0.6);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 50px rgba(251,191,36,0.8);
}

.btn-ghost {
  border-color: rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.9);
  color: var(--text-soft);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(15,23,42,1);
}

.section {
  margin-top: 28px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-subtitle {
  font-size: 0.86rem;
  color: var(--text-soft);
  max-width: 36rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at top left, rgba(139,92,246,0.12), rgba(15,23,42,0.96));
  padding: 14px 14px 12px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.6);
  font-size: 0.86rem;
  color: var(--text-soft);
}

.card h3 {
  font-size: 0.98rem;
  margin: 0 0 4px;
  color: var(--text-main);
}

.card p {
  margin: 0 0 10px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
}

.card-link {
  color: var(--accent-gold);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

/* Layout */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
}

@media (max-width: 880px) {
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Footer */

.footer {
  margin-top: 30px;
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,0.55);
  font-size: 0.78rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.footer-tag {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.7);
}

.footer a {
  color: var(--accent-gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* President specific */

.president-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 20px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  .president-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.president-panel {
  background:
    radial-gradient(circle at top left, rgba(251,191,36,0.12), transparent 60%),
    linear-gradient(to bottom right, rgba(15,23,42,0.98), rgba(15,23,42,0.97));
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148,163,184,0.6);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 18px;
}

.president-crests {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

@media (max-width: 768px) {
  .president-crests {
    flex-direction: column;
  }
}

.frame-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.crest-frame,
.portrait-frame {
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crest-frame {
  width: 210px;
  height: 210px;
  border: 2px solid var(--accent-gold);
  background: radial-gradient(circle at top, rgba(250,204,21,0.12), #020617);
}

.portrait-frame {
  width: 210px;
  height: 260px;
  border: 2px solid var(--accent-purple);
  background: radial-gradient(circle at bottom, rgba(139,92,246,0.18), #020617);
}

.president-quote {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 12px;
  color: var(--text-soft);
}

.president-quote strong {
  color: var(--text-main);
}


.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.nav-menu-toggle {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.6);
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(2,6,23,0.95));
  color: var(--text-soft);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav-menu-toggle {
  padding: 6px 8px;
}

.nav-menu-lines {
  width: 16px;
  height: 10px;
  position: relative;
  display: inline-block;
}

.nav-menu-lines::before,
.nav-menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(248,250,252,0.9);
}

.nav-menu-lines::before {
  top: 0;
}

.nav-menu-lines::after {
  bottom: 0;
}

@media (min-width: 900px) {
  .nav-menu-toggle {
    display: none;
  }
}

@media (max-width: 899px) {
  .nav-links {
    display: none;
  }
}

/* Glass side-panel navigation */

.nav-panel-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.6), rgba(15,23,42,0.9));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 80;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 76%;
  max-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(251,191,36,0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.12), transparent 55%),
    linear-gradient(to bottom right, rgba(15,23,42,0.96), rgba(15,23,42,0.98));
  backdrop-filter: blur(22px);
  box-shadow: -18px 0 42px rgba(0,0,0,0.9);
  border-left: 1px solid rgba(148,163,184,0.6);
  border-bottom: 1px solid rgba(148,163,184,0.45);
  transform: translateX(100%);
  transition: transform 0.22s ease-out;
  z-index: 90;
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-panel-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-soft);
}

.nav-panel-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.nav-panel-links .nav-link {
  display: block;
  padding: 8px 0;
  font-size: 0.92rem;
}

.nav-panel-links .nav-link.nav-link-strong {
  margin-top: 4px;
}

.nav-panel-open {
  transform: translateX(0);
}

.nav-panel-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Light theme */

body.theme-light {
  --text-main: #111827;
  --text-soft: #4b5563;
  --border-subtle: rgba(148,163,184,0.5);
  background:
    radial-gradient(circle at top, #f9fafb 0, #e5e7eb 45%, #e5e7eb 100%);
  color: var(--text-main);
}

body.theme-light .nav {
  background: linear-gradient(to right, rgba(248,250,252,0.96), rgba(229,231,235,0.96));
  box-shadow: 0 12px 28px rgba(15,23,42,0.16);
}

body.theme-light .nav-title {
  color: #111827;
}

body.theme-light .nav-subtitle {
  color: #6b7280;
}

body.theme-light .nav-link {
  color: #374151;
}

body.theme-light .nav-link.nav-link-strong {
  background: radial-gradient(circle at top, rgba(251,191,36,0.14), rgba(253,224,71,0.96));
  color: #111827;
  box-shadow: 0 12px 28px rgba(251,191,36,0.35);
}

body.theme-light .hero {
  background:
    radial-gradient(circle at top left, rgba(251,191,36,0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.14), transparent 60%),
    linear-gradient(to bottom right, #f9fafb, #e5e7eb);
  box-shadow: 0 18px 35px rgba(15,23,42,0.18);
}

body.theme-light .card {
  background: linear-gradient(to bottom right, #ffffff, #f3f4f6);
  box-shadow: 0 18px 32px rgba(15,23,42,0.14);
}

body.theme-light .president-panel {
  background: linear-gradient(to bottom right, #ffffff, #e5e7eb);
  box-shadow: 0 18px 32px rgba(15,23,42,0.16);
}

body.theme-light .footer {
  color: #6b7280;
}

/* Footer centering polish */
.footer, .footer-left, .footer-links {
  text-align: center !important;
  justify-content: center !important;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center !important;
}

/* Mobile menu text padding polish */
.nav-panel-links a {
  padding-left: 18px !important;
  padding-right: 18px !important;
}

/* Center Presence section */
body.page-president .section,
body.page-president .section * {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
