/* ==========================================================================
   Mentor High School Science Olympiad - Professional Design System
   Brand Colors: Mentor Cardinal Red (#C41230), Black (#0B0D11), White, Cool Gray
   ========================================================================== */


:root {
  /* Brand Core */
  --cardinal: #C41230;
  --cardinal-dark: #8F0A20;
  --cardinal-light: #E02646;
  --cardinal-glow: rgba(196, 18, 48, 0.35);
  --cardinal-subtle: rgba(196, 18, 48, 0.12);

  /* Clean Professional Dark Theme */
  --bg-body: #0B0D11;
  --bg-header: rgba(11, 13, 17, 0.94);
  --bg-surface: #12151B;
  --bg-surface-elevated: #181C24;
  --bg-surface-hover: #1F2430;
  --bg-card: rgba(18, 22, 30, 0.85);

  /* Cool Grays & Text */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-faint: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.16);

  /* Accents */
  --accent-gold: #F59E0B;
  --accent-green: #22C55E;

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-script: 'Bebas Neue', 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
}

/* Base Reset & Typography */
html, body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a {
  color: var(--cardinal-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #FFF;
}

/* Header & Navigation (Northview-inspired clean aesthetic) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-navbar {
  padding: 12px 0;
}

.navbar-brand-mentor {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Mascot Logo */
.brand-cardinal-logo {
  height: 42px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(196, 18, 48, 0.45));
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.navbar-brand-mentor:hover .brand-cardinal-logo {
  transform: scale(1.08);
}

.brand-full-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: -0.01em;
}

/* Nav links */
.site-nav-link {
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.site-nav-link:hover {
  color: #FFF !important;
  background: rgba(255, 255, 255, 0.06);
}

/* Active Nav pill highlight */
.site-nav-link.active {
  background: var(--cardinal) !important;
  color: #FFF !important;
  box-shadow: 0 2px 10px var(--cardinal-glow);
}

/* Live Results Header Button */
.btn-live-results {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-medium);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-live-results:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFF !important;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

/* ==========================================================================
   Hero Section with Frosted Background (Matches uploaded photo & screenshot)
   ========================================================================== */
.hero-frosted-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('/images/mentor-campus-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-frosted-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 18, 0.42);
  backdrop-filter: blur(4px) brightness(0.88) saturate(115%);
  -webkit-backdrop-filter: blur(4px) brightness(0.88) saturate(115%);
  z-index: 1;
}

.hero-frosted-content {
  position: relative;
  z-index: 2;
  padding: 90px 20px 80px 20px;
  max-width: 960px;
}

/* Giant "Mentor" Title (Matching "Northview" from screenshot) */
.hero-giant-title {
  font-family: var(--font-heading);
  font-size: clamp(4.2rem, 12vw, 9.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.92;
  color: #C41230; /* Mentor Cardinal Red */
  text-shadow: 0 8px 36px rgba(0, 0, 0, 0.85);
  margin-bottom: 4px;
  user-select: none;
}

/* Cursive "Science Olympiad" (Matching script font in screenshot) */
.hero-script-subtitle {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
  margin-bottom: 28px;
  line-height: 1.1;
  user-select: none;
}

.hero-lead-text {
  font-size: 1.1rem;
  color: #E2E8F0;
  max-width: 680px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Scroll Chevron Indicator */
.hero-scroll-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
  animation: bounceSlow 2.5s infinite;
  text-decoration: none;
}

.hero-scroll-indicator:hover {
  background: var(--cardinal);
  color: #FFF;
  border-color: var(--cardinal);
  transform: translateY(2px);
}

@keyframes bounceSlow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* Buttons */
.btn-cardinal {
  background: var(--cardinal);
  color: #FFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px var(--cardinal-glow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cardinal:hover {
  background: var(--cardinal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 18, 48, 0.45);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #FFF !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-cardinal-outline {
  background: transparent;
  color: #FFF !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--cardinal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-cardinal-outline:hover {
  background: var(--cardinal);
  color: #FFF !important;
}

/* Professional Cards & Sections */
.mentor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.25s ease;
}

.mentor-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-surface-elevated);
}

.section-header {
  margin-bottom: 36px;
}

.section-tag {
  color: var(--cardinal-light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #FFF;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 680px;
  margin-top: 8px;
}

/* Event Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFF;
}

.filter-btn.active {
  background: var(--cardinal);
  border-color: var(--cardinal);
  color: #FFF;
  box-shadow: 0 2px 10px var(--cardinal-glow);
}

/* Event Cards */
.event-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.event-card:hover {
  border-color: rgba(196, 18, 48, 0.4);
  transform: translateY(-3px);
}

.event-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-transform: uppercase;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  margin: 10px 0 6px 0;
}

.event-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

/* Gallery Showcase */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  aspect-ratio: 16 / 11;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 13, 17, 0.92) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-title {
  color: #FFF;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}

.gallery-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  position: relative;
}

.lightbox-img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: none;
  color: #FFF;
  font-size: 2rem;
  cursor: pointer;
}

/* Contact Forms */
.mentor-form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: #FFF;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.mentor-form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cardinal);
  box-shadow: 0 0 0 3px var(--cardinal-glow);
  color: #FFF;
  outline: none;
}

.mentor-form-label {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #080A0E;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 25px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-col-title {
  color: #FFF;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li {
  margin-bottom: 8px;
}

.footer-link-list a {
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-link-list a:hover {
  color: #FFF;
}

.footer-partner-plates {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partner-plate {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.partner-plate img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  margin-top: 36px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Mobile Bottom Navigation Toolbar (Native App Experience)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1060;
  background: rgba(11, 13, 17, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

.mobile-nav-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-item {
  flex: 1;
  text-align: center;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-height: 48px;
}

.mobile-nav-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #FFF;
}

.mobile-nav-link.active svg {
  stroke: var(--cardinal-light);
  transform: translateY(-2px);
}

.mobile-nav-link.active .mobile-nav-label {
  color: var(--cardinal-light);
  font-weight: 700;
}

.mobile-nav-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--cardinal);
  box-shadow: 0 0 8px var(--cardinal);
  animation: pulseLive 1.8s infinite;
}

/* Mobile Offcanvas Drawer */
.offcanvas-mentor {
  background-color: var(--bg-surface-elevated) !important;
  color: var(--text-primary);
  border-left: 1px solid var(--border-subtle);
}

.offcanvas-mentor .offcanvas-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px;
}

.offcanvas-mentor .offcanvas-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
}

.offcanvas-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-nav-list li {
  margin-bottom: 6px;
}

.offcanvas-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.offcanvas-nav-list a:hover {
  background: var(--cardinal-subtle);
  border-color: var(--cardinal);
  color: #FFF;
  transform: translateX(4px);
}

/* ==========================================================================
   Northview-Inspired Season Roadmap & Timeline
   ========================================================================== */
.season-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.timeline-event-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

.timeline-event-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--border-medium);
  transition: background 0.25s ease;
}

.timeline-event-card.featured::before {
  background: var(--cardinal);
}

.timeline-event-card.next-up::before {
  background: var(--accent-gold);
}

.timeline-event-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-medium);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.timeline-event-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cardinal-light);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-event-title {
  color: #FFF;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.timeline-event-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   Northview-Inspired Cardinal News / Updates
   ========================================================================== */
.cardinal-news-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.cardinal-news-card:hover {
  border-color: rgba(196, 18, 48, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.news-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.news-badge.announcement {
  background: var(--cardinal-subtle);
  color: var(--cardinal-light);
  border: 1px solid rgba(196, 18, 48, 0.3);
}

.news-badge.competition {
  background: rgba(34, 197, 94, 0.12);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.news-badge.volunteer {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Premier Sponsor Spotlight (SphinxTEK LLC)
   ========================================================================== */
.premier-sponsor-hero {
  background: linear-gradient(135deg, rgba(196, 18, 48, 0.12) 0%, rgba(18, 22, 30, 0.95) 100%);
  border: 1px solid rgba(196, 18, 48, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.sponsor-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--cardinal);
  color: #FFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  body {
    padding-bottom: 72px; /* Space for mobile bottom toolbar */
  }
  .mobile-bottom-nav {
    display: block;
  }
  .site-header {
    padding: 2px 0;
  }
  .hero-giant-title {
    font-size: 3rem;
  }
}
/* Footer: keep secondary text readable on the dark background */
.site-footer .text-muted,
.site-footer .text-secondary { color: rgba(234, 238, 245, 0.68) !important; }

/* Countdown: tournament-day state and Invitational hero placement */
.cd-today { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 10px; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.35); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.cd-today[hidden] { display: none; }
.cd-today-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: cdPulse 1.6s infinite; }
@keyframes cdPulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .cd-today-dot { animation: none; } }
.inv-countdown { max-width: 460px; margin: 0 0 24px; }
#mainCountdownBox .text-muted, #cd-where { color: rgba(234, 238, 245, 0.62) !important; }

/* Bottom dock: floats off the screen edge on phones */
.mobile-bottom-nav {
  left: 50%;
  right: auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 560px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}
.mobile-nav-link { min-height: 52px; gap: 4px; border-radius: 16px; line-height: 1; }
.mobile-nav-label { display: block; font-size: 0.68rem; white-space: nowrap; }
.mobile-nav-link.active { background: rgba(196, 18, 48, 0.14); }
.mobile-nav-link:focus-visible { outline: 2px solid var(--cardinal-light); outline-offset: 2px; }
@media (max-width: 768px) {
  body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* Desktop top menu uses the same icon-over-label buttons as the phone dock */
@media (min-width: 992px) {
  .site-nav-link {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 76px;
    padding: 7px 12px !important;
    font-size: 0.74rem;
    line-height: 1;
    border-radius: 14px;
  }
  .site-nav-link svg { width: 20px; height: 20px; stroke-width: 2; transition: transform 0.2s ease; }
  .site-nav-link.active {
    background: rgba(196, 18, 48, 0.16) !important;
    box-shadow: none;
    color: var(--cardinal-light) !important;
  }
  .site-nav-link.active svg { stroke: var(--cardinal-light); transform: translateY(-1px); }
  .site-nav-link:focus-visible { outline: 2px solid var(--cardinal-light); outline-offset: 2px; }
}
@media (max-width: 991.98px) {
  .site-nav-link svg { display: none; }
}

/* Phones use the bottom dock, so the header menu button isn't needed */
@media (max-width: 768px) {
  .site-header .navbar-toggler { display: none !important; }
}

/* Muted text stays readable on the dark theme */
.text-muted { color: rgba(234, 238, 245, 0.6) !important; }

/* Team history: five-season window with arrows */
.history-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 14px; }
.history-nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.05); color: #fff; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: background 0.2s ease; }
.history-nav-btn:hover:not(:disabled) { background: rgba(196, 18, 48, 0.25); border-color: rgba(196, 18, 48, 0.6); }
.history-nav-btn:disabled { opacity: 0.3; cursor: default; }
.history-nav-btn:focus-visible { outline: 2px solid var(--cardinal-light); outline-offset: 2px; }
.history-nav-range { min-width: 150px; text-align: center; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
/* Team history: school picker */
.history-school { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 16px; }
.history-school .btn { transition: all 0.2s ease; border-radius: 50px; font-size: 0.82rem; }
.history-school .btn:hover:not(.active) { background: #2a2826 !important; color: #fff !important; border-color: #4a4845 !important; }


/* Brand name stays on one line at every width */
.brand-full-name { white-space: nowrap; }
@media (max-width: 420px) {
  .brand-full-name { font-size: clamp(0.95rem, 4.6vw, 1.2rem); }
  .brand-cardinal-logo { height: 36px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .brand-full-name { font-size: 1.02rem; }
  .brand-cardinal-logo { height: 34px; }
  .site-nav-link { min-width: 0; padding: 7px 8px !important; }
  .site-nav-link span { white-space: nowrap; }
  .btn-live-results { white-space: nowrap; }
}

/* Affiliation logo tiles */
.affil-logo { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.affil-logo img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.affil-logo-light { background: #fff; padding: 4px; }
.affil-logo-light img { border-radius: 0; }
.affil-logo-osu { background: #1a1d24; border: 1px solid rgba(255, 255, 255, 0.12); padding: 10px; }
.affil-logo-osu img { height: 42px; width: auto; border-radius: 0; }

/* Premier sponsor: SphinxTEK | Nebulyx logos and stacked buttons */
.sponsor-logos { display: flex; align-items: center; justify-content: center; gap: 18px; }
.sponsor-logo-sphinx { max-height: 56px; max-width: 140px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4)); }
.sponsor-logos-divider { width: 1px; height: 60px; background: rgba(255, 255, 255, 0.22); }
.sponsor-logo-nebulyx { width: 76px; height: 76px; border-radius: 17px; display: block; }
.sponsor-actions { display: inline-flex; flex-direction: column; gap: 10px; min-width: 210px; }
.sponsor-actions a { justify-content: center; white-space: nowrap; }
@media (min-width: 992px) { .sponsor-logos { justify-content: flex-start; } }
.sponsor-powered { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.85rem; color: rgba(234, 238, 245, 0.75); }
.sponsor-powered img { width: 20px; height: 20px; border-radius: 5px; }
.sponsor-powered strong { color: #fff; }

/* Surface Utilities & Bootstrap Dark Overrides */
.bg-surface { background-color: var(--bg-surface) !important; }
.bg-surface-elevated { background-color: var(--bg-surface-elevated) !important; }
.card {
  background-color: var(--bg-surface-elevated) !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-primary) !important;
}

/* Division B Dedicated Event Cards & Badges */
.divb-event-card {
  background: #14171F !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  padding: 18px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.divb-event-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 18, 48, 0.45) !important;
  background: #181D26 !important;
}
.divb-event-title {
  color: #FFFFFF !important;
  font-size: 1.12rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.divb-event-desc {
  color: #94A3B8 !important;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0;
}
.divb-event-link {
  color: var(--cardinal-light) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: color 0.15s ease;
}
.divb-event-link:hover {
  color: #FFFFFF !important;
}

/* Clean Event Category Badges */
.event-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 9999px;
  line-height: 1;
}
.event-tag-life { background: rgba(34, 197, 94, 0.16); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.35); }
.event-tag-earth { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.event-tag-physical { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }
.event-tag-tech { background: rgba(239, 68, 68, 0.16); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.event-tag-inquiry { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }

/* Division B Dark Accordion */
.divb-accordion .accordion-item {
  background: #14171F !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  margin-bottom: 12px;
  overflow: hidden;
}
.divb-accordion .accordion-button {
  background: #14171F !important;
  color: #FFFFFF !important;
  font-weight: 700;
  padding: 16px 20px;
  box-shadow: none !important;
}
.divb-accordion .accordion-button:not(.collapsed) {
  background: #191E28 !important;
  color: var(--cardinal-light) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.divb-accordion .accordion-button::after {
  filter: invert(1);
}
.divb-accordion .accordion-body {
  background: #14171F !important;
  color: #CBD5E1 !important;
  padding: 18px 20px;
}


/* Album Showcase Cards */
.album-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.album-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 27, 35, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.album-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0f131a;
}

.album-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.album-card:hover .album-cover-img {
  transform: scale(1.05);
}

.album-cover-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.album-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.album-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cardinal-red);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.album-title {
  color: #FFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.album-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-grow: 1;
}

.album-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFF;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.album-card:hover .album-action {
  color: var(--cardinal-red);
}

.album-card:hover .album-action svg {
  transform: translateX(3px);
}

/* Form Select & Option High-Contrast Dark Styling */
select,
.form-select,
.mentor-form-control {
  background-color: #141821 !important;
  color: #FFFFFF !important;
}

select option,
.form-select option {
  background-color: #141821 !important;
  color: #FFFFFF !important;
  padding: 8px 12px;
}

/* Collection Grid: Clean photos with no text overlay */
.gallery-card .gallery-overlay {
  display: none !important;
}

/* Lightbox Navigation Arrows */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 24, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1060;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-arrow:hover {
  background: var(--cardinal-red);
  border-color: var(--cardinal-red);
  transform: translateY(-50%) scale(1.1);
  color: #FFFFFF;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
  .lightbox-next {
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }
}
