/* ==========================================================================
   MedTech Founders Program — Shared Styles
   Palette + type derived from the official MFP/BMES slide template.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Color tokens — pulled directly from the slide template */
  --navy-deepest: #05070f;
  --navy-deep: #080b1c;
  --navy-mid: #0d1330;
  --violet: #6c4ce0;
  --violet-bright: #9d7bff;
  --teal-accent: #2dd4c4;
  --teal-bright: #4de8d9;
  --blue-accent: #4c6ef5;
  --white: #f3f5fa;
  --white-dim: rgba(243, 245, 250, 0.68);
  --white-faint: rgba(243, 245, 250, 0.55);
  --card-bg: rgba(18, 26, 62, 0.55);
  --card-border: rgba(120, 160, 220, 0.28);

  /* Type — Montserrat, the exact typeface used in the slide template */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Background: the actual slide-template artwork, extracted directly
   from the official BMES MedTech Founders deck. Fixed attachment so it
   behaves like a slide backdrop while the page scrolls. ---- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('../images/slide-bg-title.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Slight darkening veil so body copy stays legible over the artwork,
   without washing out the helix or circuit detail. */
.bg-glow::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(6, 10, 26, 0.35);
  pointer-events: none;
}

/* Legacy decoration hooks — the real artwork replaces these. */
.bg-decor { display: none; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.3px;
}

/* Slide-deck headline weight: the deck sets big titles in Montserrat Bold */
h1 { font-weight: 700; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---- Eyebrow + rule: the section-label + gradient line device used
       throughout the slide template ("PROGRAM OVERVIEW ————") ---- */
.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow-rule .eyebrow {
  margin-bottom: 0;
  white-space: nowrap;
}

.eyebrow-rule .rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(45, 212, 196, 0.7), rgba(108, 76, 224, 0.15));
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 14px;
}

/* ---- Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.2px;
}

.nav-brand img { height: 36px; width: 36px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white-dim);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--navy-deepest);
  background: var(--teal-accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---- Nav dropdown (About > Program / Team) ---- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--white-dim);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-toggle.active {
  color: var(--navy-deepest);
  background: var(--teal-accent);
  font-weight: 600;
}

.nav-dropdown-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  min-width: 160px;
  padding: 6px;
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.nav-dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-dim);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-menu a.active {
  color: var(--navy-deepest);
  background: var(--teal-accent);
  font-weight: 600;
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--navy-mid);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px 18px;
    display: none;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }

  .nav-dropdown-toggle { width: 100%; padding: 12px 14px; }

  .nav-dropdown-menu {
    position: static;
    margin-top: 0;
    padding: 0 0 0 14px;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--blue-accent), var(--teal-accent));
  color: var(--navy-deepest);
  box-shadow: 0 8px 24px rgba(45, 212, 196, 0.18);
}

.btn-primary:hover { box-shadow: 0 12px 30px rgba(45, 212, 196, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover { border-color: var(--teal-accent); background: rgba(45, 212, 196, 0.06); }

/* ---- Cards ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

/* .card is informational only on the home page (not a link), so no hover lift */

/* Accent-top variants — used for feature/comparison cards, echoes the
   colored step badges in the slide template (no green, per brand direction) */
.card-accent-teal { border-top: 2px solid var(--teal-accent); }
.card-accent-violet { border-top: 2px solid var(--violet-bright); }
.card-accent-blue { border-top: 2px solid var(--blue-accent); }

/* ---- Announcements (home page) ---- */
.announcements-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 6px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(120deg, var(--blue-accent), var(--teal-accent));
  color: var(--navy-deepest);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(45, 212, 196, 0.5);
  animation: announcements-pulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcements-bell:hover,
.announcements-bell:focus-visible {
  transform: scale(1.08);
}

.announcements-bell-floating {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  z-index: 150;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(45, 212, 196, 0.5);
}

.announcements-bell-floating:hover,
.announcements-bell-floating:focus-visible {
  transform: translateY(-50%) scale(1.08);
}

@media (max-width: 700px) {
  .announcements-bell-floating {
    top: auto;
    bottom: 20px;
    right: 16px;
    transform: none;
    width: 48px;
    height: 48px;
  }

  .announcements-bell-floating:hover,
  .announcements-bell-floating:focus-visible {
    transform: scale(1.08);
  }
}

@keyframes announcements-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 212, 196, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(45, 212, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 196, 0); }
}

.announcements-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff5d6c;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid var(--navy-deepest);
}

.announcements-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.announcements-modal.open { display: flex; }

.announcements-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.7);
  backdrop-filter: blur(3px);
}

.announcements-box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 26px 28px 10px;
}

.announcements-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.announcements-box-header h2 {
  font-size: 1.3rem;
}

.announcements-close {
  background: none;
  border: none;
  color: var(--white-dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.announcements-close:hover,
.announcements-close:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.announcements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.announcement-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--card-border);
}

.announcement-item:last-child { border-bottom: none; }

.announcement-date {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-accent);
  min-width: 56px;
}

.announcement-text {
  flex: 1 1 260px;
  color: var(--white-dim);
}

.announcement-new {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-deepest);
  background: var(--teal-accent);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---- Sections ---- */
section { padding: 90px 0; }

@media (max-width: 700px) {
  section { padding: 56px 0; }
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.section-heading p { color: var(--white-dim); font-size: 1.05rem; }

.section-heading .eyebrow-rule { justify-content: center; }
.section-heading .eyebrow-rule .rule-line { max-width: 120px; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; max-width: 320px; }
.footer-brand img { height: 42px; width: 42px; object-fit: contain; }
.footer-brand p { color: var(--white-faint); font-size: 0.9rem; margin-top: 4px; }

.footer-links h4 {
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-links a { color: var(--white-dim); font-size: 0.92rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--teal-accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--white-faint);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---- Placeholder / coming-soon pages ---- */
.placeholder-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 28px;
}

.placeholder-page .card { max-width: 520px; }
.placeholder-page h1 { font-size: 2rem; margin-bottom: 14px; }
.placeholder-page p { color: var(--white-dim); }

/* ---- Nav: BMES club logo, right side of the bar ---- */
.nav-bmes {
  display: flex;
  align-items: center;
  margin-left: 18px;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.nav-bmes:hover { opacity: 1; }

.nav-bmes img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 880px) {
  .nav-bmes {
    margin-left: auto;
    margin-right: 10px;
    order: 2;
  }
  .nav-bmes img { height: 28px; }
  .nav-toggle { order: 3; }
}

/* ---- Tighter top spacing where a section follows a panel directly ---- */
.section-tight-top { padding-top: 46px; }

@media (max-width: 700px) {
  .section-tight-top { padding-top: 34px; }
}

/* ---- Explore link cards: clearly interactive ---- */
.link-card {
  position: relative;
  display: block;
  padding: 26px 52px 26px 26px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24, 34, 78, 0.72), rgba(14, 22, 52, 0.62));
  border: 1px solid rgba(120, 160, 220, 0.28);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

/* Accent bar that grows on hover */
.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--teal-accent), var(--blue-accent));
  transform: scaleY(0.28);
  transform-origin: top;
  transition: transform 0.28s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 196, 0.6);
  background: linear-gradient(145deg, rgba(30, 44, 96, 0.85), rgba(18, 28, 64, 0.75));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.link-card:hover::before,
.link-card:focus-visible::before { transform: scaleY(1); }

.link-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--white);
}

.link-card p {
  color: var(--white-dim);
  font-size: 0.93rem;
  margin: 0;
}

.link-card-arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--teal-accent);
  opacity: 0.65;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.link-card:hover .link-card-arrow,
.link-card:focus-visible .link-card-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(4px);
}

/* ---- Program snapshot: four evenly-sized panels ---- */
.stat-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-item {
  background: linear-gradient(145deg, rgba(24, 34, 78, 0.72), rgba(14, 22, 52, 0.62));
  border: 1px solid rgba(120, 160, 220, 0.28);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 196, 0.5);
}

.stat-item h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  line-height: 1.25;
}

.stat-item p {
  color: var(--white-dim);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px) {
  .stat-panel { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .stat-panel { grid-template-columns: 1fr; }
}

/* ---- Footer: solid panel so it separates from the background artwork ---- */
.site-footer {
  background: #070b1d;
  border-top: 1px solid rgba(120, 160, 220, 0.22);
  position: relative;
  z-index: 1;
}

/* ---- Program phases: three tinted panels, echoing the deck's phase slide ---- */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.phase-card {
  border-radius: 20px;
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* .phase-card is informational only (not a link), so no hover lift */

/* Tints taken from the Program Overview slide (violet / deep blue / teal) */
.phase-fall   { background: linear-gradient(160deg, rgba(124, 86, 214, 0.92), rgba(96, 62, 186, 0.82)); }
.phase-winter { background: linear-gradient(160deg, rgba(29, 92, 133, 0.92), rgba(21, 70, 108, 0.82)); }
.phase-spring { background: linear-gradient(160deg, rgba(34, 148, 138, 0.92), rgba(24, 118, 112, 0.82)); }

.phase-term {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  margin-bottom: 14px;
}

.phase-card h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
  color: #fff;
}

.phase-card > p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  margin-bottom: 22px;
}

.phase-spotlight {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.phase-spotlight-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 4px;
}

.phase-spotlight strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
  min-height: calc(1.05rem * 1.3 * 2);
  color: #fff;
}

@media (max-width: 860px) {
  .phase-grid { grid-template-columns: 1fr; }
}

/* ---- Explore grid: centers any orphan row instead of stretching it ---- */
.explore-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.explore-grid > .link-card {
  flex: 0 1 calc((100% - 44px) / 3);
  min-width: 240px;
}

@media (max-width: 820px) {
  .explore-grid > .link-card { flex: 0 1 calc((100% - 22px) / 2); }
}

@media (max-width: 540px) {
  .explore-grid > .link-card { flex: 1 1 100%; }
}

/* ---- About page ---- */
.about-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: start;
}

@media (max-width: 860px) {
  .about-split { grid-template-columns: 1fr; gap: 30px; }
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--white-dim);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--teal-accent), var(--blue-accent));
}

.feature-list strong { color: var(--white); font-weight: 600; }

.inline-link {
  color: var(--teal-accent);
  border-bottom: 1px solid rgba(45, 212, 196, 0.4);
  transition: border-color 0.2s ease;
}

.inline-link:hover { border-color: var(--teal-accent); }

/* Photo placeholders — swap the inner div for an <img> when photos arrive */
.photo-placeholder { margin: 0; }

.photo-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed rgba(120, 160, 220, 0.4);
  background: rgba(18, 26, 62, 0.42);
  color: var(--white-faint);
  text-align: center;
  padding: 20px;
}

.photo-placeholder-inner span {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.photo-placeholder-inner small { font-size: 0.85rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Requirements — 3 on top, 2 centered below */
.requirement-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.requirement-card {
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 250px;
  background: linear-gradient(145deg, rgba(24, 34, 78, 0.72), rgba(14, 22, 52, 0.62));
  border: 1px solid rgba(120, 160, 220, 0.28);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.requirement-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 196, 0.5);
}

.requirement-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.requirement-card p { color: var(--white-dim); font-size: 0.93rem; margin: 0; }

@media (max-width: 820px) {
  .requirement-card { flex: 1 1 100%; }
}

/* CTA panel */
.cta-panel {
  text-align: center;
  padding: 48px 32px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(30, 44, 96, 0.7), rgba(16, 26, 60, 0.6));
  border: 1px solid rgba(120, 160, 220, 0.3);
}

/* ---- Roadmap timeline (About page) — echoes the deck's "At a Glance" slide ---- */
.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 8px;
}

/* Connector line running behind the nodes */
.roadmap-track {
  position: absolute;
  top: 62px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(124, 86, 214, 0.7),
    rgba(29, 92, 133, 0.7),
    rgba(34, 148, 138, 0.7));
}

.roadmap-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.roadmap-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 14px;
}

.roadmap-node {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: var(--navy-deepest);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.roadmap-node-fall   { background: #7c56d6; box-shadow: 0 0 0 5px rgba(124, 86, 214, 0.22); }
.roadmap-node-winter { background: #1d5c85; box-shadow: 0 0 0 5px rgba(29, 92, 133, 0.22); }
.roadmap-node-spring { background: #22948a; box-shadow: 0 0 0 5px rgba(34, 148, 138, 0.22); }

.roadmap-body { max-width: 300px; }

.roadmap-term {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 8px;
}

.roadmap-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.roadmap-body p {
  color: var(--white-dim);
  font-size: 0.94rem;
  margin-bottom: 16px;
}

.roadmap-event {
  padding-top: 14px;
  border-top: 1px solid rgba(120, 160, 220, 0.28);
}

.roadmap-event span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 3px;
}

.roadmap-event strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

@media (max-width: 820px) {
  .roadmap { grid-template-columns: 1fr; gap: 34px; }
  .roadmap-track { display: none; }
  .roadmap-step { text-align: left; align-items: flex-start; }
  .roadmap-num { font-size: 1.6rem; margin-bottom: 8px; }
  .roadmap-node { margin-bottom: 14px; }
  .roadmap-body { max-width: none; }
}

/* ---- Quarter week-by-week timeline (fall/winter/spring event pages) ---- */
.quarter-timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 4px 0;
}

.quarter-timeline-track {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.quarter-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 28px;
}

.quarter-item:last-child { padding-bottom: 0; }

.quarter-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  border: 3px solid var(--navy-deepest);
  position: relative;
  z-index: 1;
}

.quarter-dot-fall   { background: #7c56d6; box-shadow: 0 0 0 4px rgba(124, 86, 214, 0.22); }
.quarter-dot-winter { background: #1d5c85; box-shadow: 0 0 0 4px rgba(29, 92, 133, 0.22); }
.quarter-dot-spring { background: #22948a; box-shadow: 0 0 0 4px rgba(34, 148, 138, 0.22); }

.quarter-card {
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
}

.quarter-card-flagship {
  position: relative;
  display: flex;
  color: inherit;
  text-decoration: none;
  border-color: rgba(45, 212, 196, 0.45);
  background: linear-gradient(120deg, rgba(76, 110, 245, 0.12), rgba(45, 212, 196, 0.12));
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quarter-card-flagship:hover,
.quarter-card-flagship:focus-visible {
  border-color: var(--teal-accent);
  background: linear-gradient(120deg, rgba(76, 110, 245, 0.2), rgba(45, 212, 196, 0.2));
  transform: translateX(2px);
}

.quarter-flag {
  position: absolute;
  top: -16px;
  right: 22px;
  display: flex;
  align-items: flex-end;
  color: var(--teal-accent);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
  transform: rotate(8deg);
}

.quarter-flag svg { width: 26px; height: 26px; }

.quarter-week {
  flex: 0 0 auto;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  color: #fff;
}

.quarter-week-fall   { background: rgba(124, 86, 214, 0.55); }
.quarter-week-winter { background: rgba(29, 92, 133, 0.6); }
.quarter-week-spring { background: rgba(34, 148, 138, 0.55); }

.quarter-card h3 {
  flex: 1 1 200px;
  font-size: 1rem;
  line-height: 1.3;
}

.quarter-date {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--white-dim);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .quarter-card { flex-direction: column; align-items: flex-start; padding: 14px 16px; }
  .quarter-date { white-space: normal; }
}

/* ---- Resources access gate ---- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.gate-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 46px 34px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(30, 44, 96, 0.72), rgba(16, 26, 60, 0.62));
  border: 1px solid rgba(120, 160, 220, 0.3);
}

.gate-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.gate-input {
  flex: 1 1 260px;
  padding: 13px 18px;
  border-radius: 8px;
  border: 1px solid rgba(120, 160, 220, 0.38);
  background: rgba(8, 12, 30, 0.7);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gate-input::placeholder { color: var(--white-faint); }

.gate-input:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 196, 0.16);
}

.gate-error {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(220, 80, 100, 0.12);
  border: 1px solid rgba(220, 80, 100, 0.35);
  color: #ffb3c0;
  font-size: 0.92rem;
}

/* ---- Resources content ---- */
.resource-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.signed-in-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(18, 26, 62, 0.6);
  border: 1px solid rgba(120, 160, 220, 0.26);
  font-size: 0.85rem;
}

.signed-in-badge span {
  color: var(--white-faint);
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.signed-in-badge strong { color: var(--white); font-weight: 600; }

.sign-out-btn {
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--teal-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid transparent;
}

.sign-out-btn:hover { border-bottom-color: var(--teal-accent); }

.resource-category { margin-bottom: 52px; }

.resource-category h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(120, 160, 220, 0.24);
}

.resource-grid {
  display: flex;
  flex-direction: column;
}

.resource-link {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 4px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(120, 160, 220, 0.18);
  color: inherit;
  transition: background 0.15s ease, padding-left 0.15s ease;
}

.resource-grid .resource-link:last-child { border-bottom: none; }

.resource-link:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 10px;
}

.resource-link-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

.resource-link h3 { flex: 1 1 auto; font-size: 1rem; }
.resource-link p { flex-basis: 100%; color: var(--white-dim); font-size: 0.86rem; margin: 0; order: 3; }

.resource-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--teal-accent);
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.resource-link-multi:hover { padding-left: 4px; }

.resource-sublinks {
  flex-basis: 100%;
  order: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.resource-sublink {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-accent);
  border: 1px solid rgba(45, 212, 196, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.resource-sublink:hover {
  color: var(--navy-deepest);
  background: var(--teal-accent);
  border-color: var(--teal-accent);
}

.resource-link:hover .resource-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* ---- Resources toolbar: search + section jump links ---- */
.resource-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(120, 160, 220, 0.2);
}

.resource-search {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 11px 16px;
  border-radius: 8px;
  border: 1px solid rgba(120, 160, 220, 0.34);
  background: rgba(8, 12, 30, 0.66);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.94rem;
}

.resource-search::placeholder { color: var(--white-faint); }

.resource-search:focus {
  outline: none;
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 196, 0.15);
}

.resource-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jump-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--white-dim);
  border: 1px solid rgba(120, 160, 220, 0.28);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.jump-link:hover {
  color: var(--white);
  border-color: var(--teal-accent);
  background: rgba(45, 212, 196, 0.08);
}

.resource-category-head { margin-bottom: 20px; }

.resource-category-head h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.resource-coming-soon {
  color: var(--white-faint);
  font-size: 0.95rem;
  padding: 16px 4px;
}

.type-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.type-pdf    { background: rgba(232, 86, 96, 0.18);  color: #ff9aa2; }
.type-doc    { background: rgba(76, 110, 245, 0.2);  color: #9db4ff; }
.type-sheet  { background: rgba(34, 148, 138, 0.22); color: #6fdccf; }
.type-slides { background: rgba(232, 152, 60, 0.18); color: #ffc588; }
.type-form   { background: rgba(124, 86, 214, 0.24); color: #c2a8ff; }
.type-link   { background: rgba(45, 212, 196, 0.16); color: #7fe4d9; }
.type-video  { background: rgba(214, 86, 186, 0.18); color: #f0a3dd; }
.type-folder { background: rgba(150, 160, 190, 0.18); color: #c2cbe0; }

.new-badge {
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  background: var(--teal-accent);
  color: var(--navy-deepest);
}

.pending-badge {
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white-faint);
}

/* Items with no link yet */
.resource-link-pending {
  cursor: default;
  color: var(--white-faint);
}

.resource-link-pending:hover {
  background: none;
  padding-left: 4px;
}

.resource-empty {
  text-align: center;
  color: var(--white-dim);
  padding: 40px 0;
}

@media (max-width: 700px) {
  .resource-toolbar { flex-direction: column; align-items: stretch; }
  .resource-search { max-width: none; }
}

/* ---- Gate form: stacked labelled fields ---- */
.gate-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.gate-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gate-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--white-faint);
}

.gate-form .gate-input {
  flex: none;
  width: 100%;
}

.gate-submit {
  justify-content: center;
  margin-top: 4px;
}

/* ---- Calendar page ---- */
.cal-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.cal-views {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(8, 12, 30, 0.6);
  border: 1px solid rgba(120, 160, 220, 0.26);
}

.cal-view-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--white-dim);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cal-view-btn:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }

.cal-view-btn.is-active {
  background: var(--teal-accent);
  color: var(--navy-deepest);
  font-weight: 600;
}

.cal-open-link {
  font-size: 0.9rem;
  color: var(--teal-accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cal-open-link:hover { border-bottom-color: var(--teal-accent); }

.cal-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(120, 160, 220, 0.28);
  background: #0b1024;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cal-frame iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
}

.cal-note {
  margin-top: 16px;
  color: var(--white-faint);
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .cal-frame iframe { height: 560px; }
  .cal-toolbar { flex-direction: column; align-items: stretch; }
  .cal-views { justify-content: space-between; }
  .cal-view-btn { flex: 1; padding: 9px 10px; }
}

/* ---- Events hub ---- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.event-card {
  position: relative;
  display: block;
  padding: 32px 34px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 34, 78, 0.7), rgba(14, 22, 52, 0.6));
  border: 1px solid rgba(120, 160, 220, 0.28);
  border-left: 3px solid transparent;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.event-card:hover {
  transform: translateX(4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.event-fall   { border-left-color: #7c56d6; }
.event-winter { border-left-color: #2d9cdb; }
.event-spring { border-left-color: #22948a; }

.event-fall:hover   { border-color: rgba(124, 86, 214, 0.6); }
.event-winter:hover { border-color: rgba(45, 156, 219, 0.6); }
.event-spring:hover { border-color: rgba(34, 148, 138, 0.6); }

.event-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.event-term {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--teal-accent);
}

.event-open {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white-faint);
}

.event-open-highlight {
  background: rgba(45, 212, 196, 0.16);
  color: var(--teal-accent);
}

.event-card h2 { font-size: 1.6rem; margin-bottom: 8px; }

.event-tagline {
  color: var(--white);
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.event-desc {
  color: var(--white-dim);
  font-size: 0.96rem;
  max-width: 720px;
  margin-bottom: 18px;
}

.event-cta {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-accent);
}

.event-card:hover .event-cta span { display: inline-block; transform: translateX(4px); transition: transform 0.2s ease; }

@media (max-width: 700px) {
  .event-card { padding: 26px 22px; }
  .event-card h2 { font-size: 1.35rem; }
}

/* ---- Individual event pages ---- */
.event-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  background: rgba(45, 212, 196, 0.16);
  border: 1px solid rgba(45, 212, 196, 0.4);
  color: var(--teal-accent);
}

.event-badge-fall {
  background: rgba(124, 86, 214, 0.18);
  border-color: rgba(124, 86, 214, 0.45);
  color: #c2a8ff;
}

.event-badge-spring {
  background: rgba(34, 148, 138, 0.18);
  border-color: rgba(34, 148, 138, 0.45);
  color: #6fdccf;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 760px;
}

.event-fact {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(18, 26, 62, 0.55);
  border: 1px solid rgba(120, 160, 220, 0.24);
}

.event-fact span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--white-faint);
  margin-bottom: 4px;
}

.event-fact strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--white);
}

/* Tracks */
.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.track-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(24, 34, 78, 0.7), rgba(14, 22, 52, 0.6));
  border: 1px solid rgba(120, 160, 220, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.track-card:hover { transform: translateY(-3px); border-color: rgba(45, 212, 196, 0.5); }

.track-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal-accent);
  margin-bottom: 10px;
}

.track-card h3 { font-size: 1.08rem; margin-bottom: 7px; }
.track-card p { color: var(--white-dim); font-size: 0.92rem; margin: 0; }

@media (max-width: 820px) {
  .track-grid { grid-template-columns: 1fr; }
}

/* Numbered steps */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: rgba(18, 26, 62, 0.5);
  border: 1px solid rgba(120, 160, 220, 0.24);
}

.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--teal-accent));
  color: var(--navy-deepest);
}

.step-item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step-item p { color: var(--white-dim); font-size: 0.94rem; margin: 0; }

@media (max-width: 600px) {
  .step-item { padding: 20px; gap: 14px; }
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius);
  background: rgba(18, 26, 62, 0.5);
  border: 1px solid rgba(120, 160, 220, 0.24);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] { border-color: rgba(45, 212, 196, 0.42); }

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--white);
  list-style: none;
  position: relative;
  padding-right: 52px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--teal-accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
  padding: 0 24px 22px;
  color: var(--white-dim);
  font-size: 0.96rem;
  margin: 0;
}

/* ---- Real photos (replaces placeholder boxes) ---- */
.photo-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(120, 160, 220, 0.28);
  background: rgba(18, 26, 62, 0.4);
}

.photo-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-figure-wide { max-width: 100%; }

.photo-figure figcaption {
  padding: 14px 18px;
  color: var(--white-faint);
  font-size: 0.88rem;
  border-top: 1px solid rgba(120, 160, 220, 0.2);
}

/* ---- Team page ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.team-card {
  text-align: center;
  padding: 26px 22px 30px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 34, 78, 0.7), rgba(14, 22, 52, 0.6));
  border: 1px solid rgba(120, 160, 220, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 196, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.team-photo {
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(45, 212, 196, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card h3 { font-size: 1.15rem; margin-bottom: 6px; }

.team-role {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal-accent);
}

@media (max-width: 820px) {
  .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

/* ---- Contact page ---- */
.contact-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
}

.form-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(120, 160, 220, 0.28);
  background: #ffffff;
}

.form-frame iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-block {
  padding: 24px 24px;
  border-radius: var(--radius);
  background: rgba(18, 26, 62, 0.55);
  border: 1px solid rgba(120, 160, 220, 0.26);
}

.contact-block-highlight {
  background: linear-gradient(145deg, rgba(30, 44, 96, 0.7), rgba(16, 26, 60, 0.6));
  border-color: rgba(45, 212, 196, 0.32);
}

.contact-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 12px;
}

.contact-link {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--white);
  border-bottom: 1px solid rgba(45, 212, 196, 0.4);
  transition: border-color 0.2s ease;
}

.contact-link:hover { border-color: var(--teal-accent); }

.contact-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.contact-links a {
  color: var(--white-dim);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.contact-links a:hover { color: var(--teal-accent); }

@media (max-width: 700px) {
  .form-frame iframe { height: 900px; }
}

/* ---- Event date chip on hub cards ---- */
.event-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-dim);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(120, 160, 220, 0.3);
}

/* ---- Team page: two feature photos side by side ---- */
.team-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}

.team-feature-grid .photo-figure img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (max-width: 700px) {
  .team-feature-grid { grid-template-columns: 1fr; max-width: 400px; }
}

.team-feature-single { grid-template-columns: 1fr; max-width: 420px; }

/* Keep gallery photos uniform height regardless of source aspect ratio */
.gallery-grid .photo-figure img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Visible keyboard focus on every interactive element.
   :focus-visible only shows for keyboard users, not mouse clicks. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link — lets keyboard users jump past the nav */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--teal-accent);
  color: var(--navy-deepest);
  font-weight: 600;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* Respect the OS "reduce motion" setting for hover transforms too */
@media (prefers-reduced-motion: reduce) {
  .link-card:hover,
  .stat-item:hover,
  .event-card:hover,
  .team-card:hover,
  .track-card:hover,
  .resource-link:hover,
  .requirement-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* Ensure form controls meet the 44px minimum touch target on mobile */
@media (max-width: 700px) {
  .btn,
  .nav-links a,
  .cal-view-btn,
  .jump-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
