/* ============================================
   KONG ANDERSEN CUP – Global Stylesheet
   Lyst tema, blå accent (#2EA3F2)
   ============================================ */

:root {
  --primary: #2EA3F2;
  --primary-dark: #1a8cd8;
  --primary-light: #e8f4fd;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --text: #222222;
  --text-muted: #666666;
  --border: #e0e0e0;
  --green: #27ae60;
  --gold: #f1c40f;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 12px;
}

section { padding: 72px 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 10px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46,163,242,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--primary-dark);
}
.btn-lg { padding: 15px 36px; font-size: 1.05rem; }

/* ============================================
   NAVIGATION
   ============================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 135px;
  padding: 6px 0;
}

/* LOGO */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo-icon img {
  height: 144px;
}

.logo-text {
  display: none;
}
.logo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px 8px;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.nav-logout-btn:hover { color: var(--text); border-color: var(--text-muted); }
.nav-login-btn { display:flex; align-items:center; color:var(--text-muted); transition:color 0.2s; padding:4px; }
.nav-login-btn:hover { color:var(--primary); }

/* Auth-afhængige nav-elementer — synlighed styres af klasser på <html>
   (sat synkront fra localStorage i <head>, så menuen ikke hopper). */
#nav-mine-gaet-li,
#nav-padel-li,
#nav-admin-li             { display: none; }
html.kac-auth  #nav-mine-gaet-li { display: list-item; }
html.kac-padel #nav-padel-li     { display: list-item; }
html.kac-admin #nav-admin-li     { display: list-item; }

#logout-btn               { display: none; }
html.kac-auth #login-btn  { display: none; }
html.kac-auth #logout-btn { display: flex; }

/* ============================================
   GÆTOVERSIGT TABEL
   ============================================ */
.gaet-tabel { width:100%; border-collapse:collapse; font-size:0.875rem; }
.gaet-tabel th { text-align:center; padding:8px 4px; font-size:0.75rem; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); border-bottom:2px solid var(--border); white-space:nowrap; }
.gaet-tabel td { padding:8px 4px; border-bottom:1px solid var(--border); vertical-align:middle; text-align:center; white-space:nowrap; }
.gaet-sticky { position:sticky; left:0; background:#fff; z-index:1; text-align:left !important; box-shadow:2px 0 4px rgba(0,0,0,0.06); }
.gaet-tabel thead .gaet-sticky { background:var(--bg-alt, #f8f9fa); }
.gaet-sticky-res { position:sticky; left:0; background:#fff; z-index:1; box-shadow:2px 0 4px rgba(0,0,0,0.06); }
.gaet-tabel thead .gaet-sticky-res { background:var(--bg-alt, #f8f9fa); }
.gaet-kamp { font-weight:600; }
.gaet-kamp > div { max-width:160px; white-space:normal; overflow-wrap:break-word; }
.gaet-hold { line-height:1.3; }
.gaet-total-row { background:var(--bg-alt, #f8f9fa); border-top:2px solid var(--border); border-bottom:2px solid var(--border); }
.gaet-total-label { font-weight:600; font-size:0.8rem; color:var(--text-muted); }
.gaet-total { text-align:center; font-size:1rem; }
/* Sticky thead + total row ved vertikal scroll */
.gaet-tabel thead tr:first-child th { position:sticky; top:0; z-index:2; background:var(--bg-alt, #f8f9fa); }
.gaet-tabel thead tr:first-child .gaet-sticky,
.gaet-tabel thead tr:first-child .gaet-sticky-res { z-index:4; }
.gaet-total-row td { position:sticky; z-index:2; background:var(--bg-alt, #f8f9fa); }
.gaet-total-row .gaet-sticky,
.gaet-total-row .gaet-sticky-res { z-index:4; background:var(--bg-alt, #f8f9fa); }
.gaet-kolonne-res { font-weight:700; color:var(--primary-dark, #1e3a5f); margin-top:2px; }
.gaet-pt { font-size:0.7rem; color:inherit; opacity:0.75; margin-top:2px; }
.gaet-dato { font-size:0.78rem; color:var(--text-muted); font-weight:400; margin-top:2px; }
.gaet-exact  { background:#dcfce7; color:#166534; font-weight:700; }
.gaet-vinder { background:#fef9c3; color:#854d0e; }
.gaet-wrong  { background:#fef2f2; color:#991b1b; }
.gaet-pending { color:var(--text-muted); }
.gaet-none   { color:#d1d5db; }
.gaet-panel--hidden { display:none; }
.gaet-top-scroll { overflow-x: auto; overflow-y: hidden; }
.gaet-top-scroll-inner { height: 1px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  height: 680px;
}
.hero-info-section {
  background: var(--bg-alt);
  padding: 32px 0;
  text-align: center;
}

.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.hero-content { position: relative; z-index: 1; }
.hero-box {
  display: inline-block;
  background: #1a3a5c;
  border-radius: 16px;
  padding: 36px 48px;
  max-width: 580px;
  width: 100%;
  color: #fff;
}
.hero .badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero h1 { color: #fff; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 auto 32px;
}
.hero-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.cat-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.cat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.cat-card .cat-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}
.cat-card h3 { margin-bottom: 6px; }
.cat-card p { color: var(--text-muted); font-size: 0.9rem; }
.cat-card .coming-soon {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   PAGE HERO (subpages)
   ============================================ */
.page-hero {
  background: linear-gradient(120deg, #1a3a5c 0%, #2EA3F2 100%);
  color: #fff;
  height: 220px;
  display: flex;
  align-items: center;
}
.page-hero > .container { width: 100%; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; }

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  flex: 1;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  max-height: 500px;
  display: flex;
  justify-content: center;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  display: block;
}

.carousel-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  color: var(--text);
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .carousel-slide img { height: 260px; }
  .carousel-slide { max-height: 260px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 1rem; }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1000;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  font-weight: 600;
}

.carousel-slide img {
  cursor: zoom-in;
}

/* ============================================
   HERO COUNTDOWN (lille)
   ============================================ */
.hero-cd-box {
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  min-width: 64px;
  text-align: center;
}

.hero-cd-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.hero-cd-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-cd-sep {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: center;
  padding-bottom: 14px;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  min-width: 90px;
  box-shadow: var(--shadow);
}

.countdown-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 6px;
}

.countdown-sep {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--border);
  align-self: center;
  padding-bottom: 20px;
}

@media (max-width: 480px) {
  .countdown-box { padding: 16px 18px; min-width: 70px; }
  .countdown-num { font-size: 2rem; }
  .countdown-sep { font-size: 1.8rem; }
}

/* ============================================
   TIMELINE (dagsprogram)
   ============================================ */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 24px 1fr;
  gap: 0 20px;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}

.timeline-time {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 28px;
  white-space: nowrap;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--border);
  margin-top: 30px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-dot--sport   { background: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.timeline-dot--padel   { background: #e67e22;        box-shadow: 0 0 0 2px #e67e22; }
.timeline-dot--highlight { background: var(--gold);  box-shadow: 0 0 0 2px var(--gold); }

.timeline-card {
  padding: 20px 24px;
}

.timeline-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.timeline-card h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  .timeline::before { left: 0; }
  .timeline-item {
    grid-template-columns: 20px 1fr;
    gap: 0 16px;
  }
  .timeline-time {
    grid-column: 1 / -1;
    text-align: left;
    padding: 0 0 6px 36px;
    font-size: 0.85rem;
  }
  .timeline-dot { margin-top: 0; }
}

/* ============================================
   COMING SOON
   ============================================ */
.coming-soon-section {
  text-align: center;
  padding: 96px 24px;
}
.coming-soon-icon { font-size: 5rem; margin-bottom: 24px; }
.coming-soon-section h2 { margin-bottom: 12px; }
.coming-soon-section p { color: var(--text-muted); max-width: 460px; margin: 0 auto 32px; }

/* ============================================
   RULES
   ============================================ */
.rules-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.rules-nav {
  position: sticky;
  top: 88px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.rules-nav h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.rules-nav ul { list-style: none; }
.rules-nav ul li a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.rules-nav ul li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.rules-content h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 12px;
  margin: 48px 0 20px;
  font-size: 1.5rem;
}
.rules-content h2:first-child { margin-top: 0; }
.rules-content h3 { margin: 24px 0 8px; color: var(--primary-dark); }
.rules-content p { color: var(--text-muted); margin-bottom: 14px; }
.rules-content ul {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
}
.rules-content ul li { margin-bottom: 6px; }

/* ============================================
   PROGRAM
   ============================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.program-day { margin-bottom: 40px; }
.program-day-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-weight: 700;
  font-size: 1rem;
}
.match-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.match-table thead tr {
  background: var(--bg-alt);
}
.match-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.match-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.match-table tr:last-child td { border-bottom: none; }
.match-table tr:hover td { background: var(--primary-light); }

.match-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  min-width: 68px;
  text-align: center;
}
.match-cat.oldboys { background: #fde8e8; color: #c0392b; }
.match-cat.senior  { background: #e8f5e9; color: #27ae60; }
.match-cat.junior  { background: #e8f0fd; color: #2563eb; }
.match-cat.padel   { background: #fff3e0; color: #e67e22; }

.match-result {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

/* ============================================
   HALL OF FAME
   ============================================ */
.hof-year-group { margin-bottom: 48px; }
.hof-year-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.hof-year-badge {
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 50px;
}
.hof-year-line { flex: 1; height: 2px; background: var(--border); }
.hof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hof-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hof-medal { font-size: 1.8rem; }
.hof-card h4 { font-size: 1rem; margin-bottom: 2px; }
.hof-card p { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 100%);
  color: #fff;
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
  margin: 0 0 72px;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 1.05rem; }

/* ============================================
   SPONSORS
   ============================================ */
.sponsors { background: var(--bg-alt); border-top: 1px solid var(--border); }
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}
.sponsor-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-item img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}
.sponsor-item--empty {
  border-style: dashed;
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #222;
  color: #aaa;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo-title { color: #fff; }
.footer-brand .logo-subtitle { color: var(--primary); }
.footer-brand p { color: #888; font-size: 0.9rem; margin-top: 12px; max-width: 260px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #888; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  padding-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-nav { position: static; }
  .hof-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 52px 0; }

  .hamburger { display: flex; }

  nav { position: relative; }

  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: -24px;
    right: -24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; font-size: 0.95rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hof-grid { grid-template-columns: 1fr; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { display: none; }
  .hero-meta { gap: 20px; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .cta-banner { padding: 40px 24px; }

  .match-table { font-size: 0.85rem; }
  .match-table th, .match-table td { padding: 9px 10px; }
}

@media (max-width: 480px) {
  .sponsor-grid { grid-template-columns: 1fr; }
  .hof-grid { grid-template-columns: 1fr; }
}
