/* =========================
   Variables
========================= */
:root {
  --maroon: #500000;
  --maroon-dark: #3b0000;
  --gold: #f1c232;
  --cream: #f7f5f0;
  --ink: #1a1a1a;
}

/* =========================
   Base Styles
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 150px; /* match your sticky header height */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a {
  color: var(--maroon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* Page Hero */
.page-hero {
  background: var(--maroon);
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Donate Page Styling */
.donate-section {
  padding: 40px 20px;
  background: #f8f8f8;
}

.donate-title {
  text-align: center;
  font-size: 2rem;
  color: #500000; /* Texas A&M maroon */
  margin-bottom: 10px;
}

.donate-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: #333;
}

.donate-card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  max-width: 700px;
  margin: 0 auto 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.donate-card h3 {
  color: #500000;
  margin-bottom: 15px;
}

.donate-card ol {
  padding-left: 20px;
  line-height: 1.6;
}

.donate-card a {
  color: #500000;
  font-weight: bold;
}

.donate-card code {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.donate-cta {
  text-align: center;
}

.donate-button {
  background: #500000;
  color: #fff;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.donate-button:hover {
  background: #7a0000;
}

.donate-thanks {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #555;
}

/* Smooth scrolling for in-page anchors */
html {
  scroll-behavior: smooth;
}

/* Intro text */
.intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
}

/* Timeline container */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid #500000; /* Aggie maroon */
}

/* Year label */
.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #500000;
  /* ensure anchor jumps land nicely beneath sticky header */
  scroll-margin-top: 90px;
}

/* Event wrapper */
.timeline-event {
  position: relative;
  margin-bottom: 2rem;
}

/* Dot on the line */
.timeline-dot {
  position: absolute;
  left: -0.65rem;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  background-color: #500000;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #500000;
}

/* Event content card */
.timeline-content {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-content h4 {
  margin: 0.25rem 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.timeline-content .event-date {
  display: inline-block;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.25rem;
}

.timeline-content a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #500000;
  font-weight: 600;
  text-decoration: none;
}

.timeline-content a:hover,
.timeline-content a:focus {
  text-decoration: underline;
}

/* Optional thumbnails inside timeline-content */
.timeline-content img {
  margin-top: 0.5rem;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Sticky Year Sidebar */
.year-nav {
  position: fixed;
  top: 155px;            /* adjust if header height changes */
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  z-index: 999;          /* above content, below any modals */
}

.year-nav a {
  color: #500000;
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.year-nav a:hover,
.year-nav a:focus {
  background: #f3e8ea;   /* light maroon tint */
  outline: none;
}

/* State for the currently focused anchor (optional manual class) */
.year-nav a.active {
  background: #500000;
  color: #fff;
}

/* Back to Top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #500000;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
  background: #3c0000; /* darker maroon on hover */
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .year-nav {
    right: 12px;
    top: 100px;
  }
}

@media (max-width: 700px) {
  /* Convert sidebar to a top pill nav on small screens */
  .year-nav {
    position: sticky;
    top: 64px;                 /* just under sticky site header */
    right: auto;
    margin: 0 0 1rem;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  }

  /* Give the timeline a bit more breathing room on mobile */
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-dot {
    left: -0.55rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .year-nav a,
  .back-to-top {
    transition: none;
  }
}

/* About Content Layout */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-content p {
  margin-bottom: 1rem;
}

@media (max-width: 720px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

/* Standings List */
.standings {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.standings li {
  background: var(--cream);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--maroon);
  border-radius: 4px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.standings-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.standings-block .year h4 {
  margin: 0 0 0.25rem;
  color: var(--maroon);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--maroon);
  display: inline-block;
  padding-bottom: 0.1rem;
}

.standings-block .year p {
  margin: 0.25rem 0;
  background: var(--cream);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
}

/* Team Photos */
.team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.team-photos img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.team-photos figcaption {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .team-photos {
    grid-template-columns: 1fr;
  }
}

/* Lightbox overlay */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.lightbox:target {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* =========================
   Header & Navigation
========================= */
.site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--maroon), var(--maroon-dark));
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  min-height: unset;       /* remove any fixed tall height */
  padding: 0;              /* remove extra space inside header */  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;       /* small vertical padding */

}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
  color: #fff;
  align-items: center;      /* keep logo/text vertically aligned */
}

.brand img {
  height: 150px;       /* or whatever size you prefer */
  width: auto;
  object-fit: contain;
  border-radius: 6px; /* keep if you still want rounded corners */
  background: none;   /* remove white background */
  padding: 0;         /* remove padding that created the border effect */
  box-shadow: none;   /* optional: remove shadow if you want it totally flat */
  padding: 0;               /* no extra space inside the image box */
  margin: 0;                /* no extra space outside the image */
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .line1 {
  font-size: 1.4rem;
  font-weight: 800;
}

.brand-text .line2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.nav a {
  color: #fff;
  margin: 0 0.5rem;
  font-weight: 600;
  opacity: 0.95;
}

.nav a:hover {
  opacity: 1;
}

.nav .menu {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 0.5rem 1rem;
  align-items: center;   /* ✅ vertically center all items in their cells */
}

.nav .menu a {
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  display: flex;         /* ✅ lets us center text vertically */
  flex-direction: column;/* ✅ keeps <br> text stacked nicely */
  justify-content: center;
  text-align: center;
  line-height: 1.1;      /* tighter spacing for multi-line labels */
}

.nav .menu a:hover {
  background-color: rgba(255,255,255,0.1);
  opacity: 1;
}

@media (max-width: 720px) {
  .nav .menu {
    grid-template-columns: repeat(2, auto); /* fewer columns on mobile */
  }

  .nav .menu {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid #0002;
}

/* =========================
   Layout & Components
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid #0001;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 1rem;
}

.card h3 {
  margin: 0.25rem 0;
}

.section {
  padding: 2rem 0;
}

.section h2 {
  margin: 0.2rem 0 1rem;
  color: var(--maroon);
}

.list {
  padding-left: 1.25rem;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.25rem 0.75rem;
}

.kv div {
  padding: 0.05rem 0;
}

.roster-hero {
  background-color: var(--maroon);
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.roster-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: 1px;
}

.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.person {
  background: #fff;
  border: 1px solid #0001;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.person img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #ffffff;
  transition: transform 0.3s ease;
}

.person .body {
  padding: 0.75rem;
}

.person .name {
  font-weight: 800;
  margin: 0.25rem 0;
  text-align: center;
}

.person .meta {
  font-size: 0.95rem;
  color: #555;
}

/* Hover effects */
.person:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.person:hover img {
  transform: scale(1.05);
}

.notice {
  padding: 1rem;
  border-left: 4px solid var(--maroon);
  background: #f9f3f3;
  border-radius: 8px;
}

table.scores {
  border-collapse: collapse;
  width: 100%;
}

table.scores tr {
  height: auto;
}

table.scores th {
  border: 1px solid #0001;
  padding: 0.5rem;
  text-align: left;
}

table.scores td {
  border: 1px solid #0001;
  padding: 0.25rem 0.4rem; /* tighter vertical & horizontal padding */
  font-size: 0.9rem;       /* optional: slightly smaller text */
  line-height: 1.2;        /* reduce vertical spacing inside cells */
  vertical-align: middle; /* keep text centered vertically */
}

table.scores th {
  background: #faf6f6;
}

/* =========================
   Calendar Embed
========================= */
.calendar-container {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.calendar-container iframe {
  width: 100%;
  max-width: 900px;
  height: 600px;
  border: 2px solid var(--maroon);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background-color: var(--cream);
}

/* =========================
   Footer
========================= */
.footer {
  background-color: #000;
  color: #fff;
  padding: 20px 0;
}

.footer a {
  color: #fff;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Grid layout: 
   address (left) | icons (right)
   sponsor text centered across
   logos below (unchanged position)
*/
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "address icons"
    "thanks  icons"
    "logos   logos";
  align-items: start;
  row-gap: 6px; /* tight space between address and thank-you */
}

/* Address */
.footer-address {
  grid-area: address;
  font-size: 0.95rem;
}

/* Thank-you text centered full width */
.sponsor-text {
  grid-area: thanks;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 6px 0 0;
}

/* Social icons on right, vertically centered between address + thank-you */
.social-icons {
  grid-area: icons;
  display: flex;
  gap: 12px;
  align-self: center;      /* center within the spanned rows */
}
.social-icons img {
  width: 60px;
  height: 60px;
  transition: transform 0.2s ease;
}
.social-icons img:hover {
  transform: scale(1.1);
}

/* Make icons span rows 1–2 to sit between the two text lines */
.social-icons {
  /* Explicit row span for reliable centering */
  grid-row: 1 / 3;
}

/* Sponsor logos row (unchanged position) */
.sponsor-logos {
  grid-area: logos;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  margin-top: 6px; /* small nudge down to match your first image */
}
.sponsor-logos img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  flex: 0 1 100px;
}

/* Mobile: stack cleanly, keep center alignment */
@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "address"
      "icons"
      "thanks"
      "logos";
    row-gap: 10px;
  }
  .social-icons {
    justify-content: center;
    grid-row: auto; /* reset span on mobile */
  }
  .social-icons img {
    width: 50px;
    height: 50px;
  }
  .sponsor-logos img {
    max-height: 50px;
    flex: 0 1 80px;
  }
}

/* =========================
   Responsive
========================= */
@media (max-width: 720px) {
  .kv {
    grid-template-columns: 1fr;
  }

  .calendar-container iframe {
    height: 500px;
  }
}

/* =========================
   Bracket + Results Hybrid
   (Drop-in styles for new HTML)
========================= */

/* Event header accent */
.event {
  margin-bottom: 2.5rem;
}

.event-header {
  margin-bottom: 1rem;
  border-left: 6px solid var(--maroon, #500000);
  padding-left: 0.75rem;
}

.event-header h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--maroon, #500000);
}

/* Bracket container — no flex */
.bracket {
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

/* Optional: nice scrollbar on desktop */
.bracket::-webkit-scrollbar {
  height: 8px;
}
.bracket::-webkit-scrollbar-thumb {
  background: #d7d7d7;
  border-radius: 999px;
}

/* Two-column grid for matches */
.round {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  grid-auto-flow: row;           /* fill across, then wrap to next row */
  gap: 1.5rem;
  align-items: stretch;          /* both cells in a row match height */
}

/* Keep cards stacked vertically within their column */
.match {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  background: #fff;
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.25rem 1.5rem;  /* more breathing room inside */
}

.match:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.09);
  border-color: #d8d8d8;
}

/* Team rows inside a match */
.team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0;
}

.team img.team-logo {
  width: 48px;   /* bigger circle */
  height: 48px;
  border-radius: 50%;
  object-fit: contain; /* prevents cropping inside the circle */
  background-color: #fff; /* optional: white background behind transparent logos */
  padding: 4px; /* optional: space between logo graphic and circle edge */
}


.team .name {
  flex: 1;
  font-size: 1rem;
}

.team .score {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.3px;
}

/* Win/Loss coloring (applies to the team element with .win) */
.team.win .score {
  color: #0a7a2f; /* win green */
}
.team:not(.win) .score {
  color: #a61b1b; /* loss red */
}

/* Meta line under the two teams (MVP etc.) */
.meta {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #a67c00; /* gold tone for MVP line */
  text-align: center;
}

/* =========================
   Scores table touch-up
   (keeps your existing table styles; adds polish for new markup)
========================= */
.event .scores {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden; /* rounded corners */
  margin-bottom: 2rem;
}

.event .scores thead th {
  background: var(--maroon, #500000);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem;
  text-align: left;
}

.event .scores tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.event .scores tbody tr:last-child td {
  border-bottom: none;
}

.event .scores td img.team-logo {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.event .scores td .vs {
  margin: 0 0.35rem;
  color: #888;
  font-size: 0.85rem;
}

/* Make the result column feel a bit stronger */
.event .scores tbody td:nth-child(2) {
  font-weight: 700;
}

/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .round {
    grid-template-columns: 1fr;
    grid-auto-flow: row;    /* stack in source order on small screens */
  }

  .team .name {
    font-size: 0.9rem;
  }
  .team .score {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .event-header h3 {
    font-size: 1.1rem;
  }
  /* Optional: stack table into “cards” on very small screens */
  .event .scores thead {
    display: none;
  }
  .event .scores tbody tr {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.6rem;
  }
  .event .scores tbody td {
    display: flex;
    justify-content: space-between;
    border-bottom: none;
    padding: 0.4rem 0;
  }
}

/* Sidebar layout */
.scores-nav {
  position: sticky;
  top: 0; /* below your site header; adjust if needed */
  align-self: flex-start;
  height: calc(100vh - 0px); /* full viewport height */
  overflow: auto;
  padding: 0.75rem 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  width: 260px;
}

/* If your page uses a main container, place nav and content side-by-side */
.scores-content {
  margin-left: 280px; /* sidebar width + gap */
}

/* Title */
.scores-nav__title {
  font-weight: 700;
  color: var(--maroon, #500000);
  margin-bottom: 0.5rem;
}

/* List */
.scores-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links */
.scores-nav__link {
  display: block;
  padding: 0.5rem 0.4rem;
  margin: 0.125rem 0;
  text-decoration: none;
  border-radius: 6px;
  color: #222;
  font-weight: 600;
  line-height: 1.2;
}

.scores-nav__link:hover {
  background: #f6f6f6;
}

/* Active link */
.scores-nav__link.is-active {
  color: #fff;
  background: var(--maroon, #500000);
}

/* Responsive: collapse on small screens */
@media (max-width: 900px) {
  .scores-nav {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
  }
  .scores-content {
    margin-left: 0;
  }
}

/* Maroon nav panel */
.event-nav {
  position: fixed;
  top: 150px;
  left: 0;
  height: calc(100vh - 150px);
  width: 200px;
  background: #500000;
  color: #fff;
  padding: 1rem 0.5rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  box-shadow: 2px 0 6px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* smooth ease */
}

/* Collapsed state */
.event-nav.collapsed {
  transform: translateX(-200px);
}

/* Toggle button — fixed to bottom-left corner */
.toggle-btn {
  position: fixed;
  bottom: 20px;
  left: 10px;
  background: #7a0000;
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  font-weight: bold;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
  min-width: 100px;
  text-align: center;
  transition: all 0.3s ease;
}

/* Nav links */
.event-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event-nav li {
  margin-bottom: 0.25rem;
}

.event-nav a {
  display: block;
  padding: 0.4rem 0.6rem;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.event-nav a:hover {
  background: #7a0000;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

.officers {
  max-width: 1000px;
  margin: auto;
}

.officer {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(to right, #fff, #f8f4f4);
  padding: 1.5rem;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.officer:nth-child(even) {
  flex-direction: row-reverse;
  background: linear-gradient(to left, #fff, #f8f4f4);
}

.officer:hover {
  background: linear-gradient(to right, #50000015, #f8f4f4);
}

.officer img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.officer:hover img {
  transform: scale(1.05);
}

.officer .info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.officer .info h3 span {
  font-weight: normal;
  color: #777;
}

.officer .role {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #500000; /* Aggie maroon */
}

.officer .bio {
  line-height: 1.5;
}


/* Announcement Bar */
.announcement {
  background: #ffefc2;
  border: 1px solid #e0c97f;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 6px;
  font-size: 1rem;
}

/* Livestream Embed */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Schedule Table */
.schedule {
  margin-top: 2rem;
}
.schedule h3 {
  margin-bottom: 0.75rem;
}
.schedule table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.schedule th, .schedule td {
  padding: 0.75rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.schedule th {
  background: #f5f5f5;
  font-weight: bold;
}
.schedule tr:last-child td {
  border-bottom: none;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(to right, rgba(80,0,0,0.9), rgba(128,0,0,0.9)),
              url('assets/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 1.5rem 1rem 5.5rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.hero .tournament-title {
  font-size: 1.25rem;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Fade into page content */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(80,0,0,0) 0%, #fff 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Offline Overlay */
#offline-overlay {
  position: absolute;
  top: calc(var(--header-height, 0px) + var(--hero-height, 0px));
  left: 0;
  width: 100%;
  min-height: calc(100vh - var(--header-height, 0px));
  background: #500000;
  color: #fff;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 999;
  padding: 2rem;
}

.offline-message {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.offline-title {
  font-size: 2rem;
  font-weight: bold;
}

.offline-subtitle {
  font-size: 1.25rem;
  font-weight: normal;
  opacity: 0.9;
}
