@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS VARIABLES & DESIGN SYSTEM --- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;

  /* Colors */
  --bg-dark: #07090e;
  --bg-card: #0e131f;
  --bg-card-hover: #161e31;
  --border-color: #1e293b;
  --border-hover: #334155;
  
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.15);
  --primary-hover: #3b82f6;
  
  --accent: #06b6d4;
  --accent-hover: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.15);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  /* Status Colors */
  --status-live-bg: rgba(239, 68, 68, 0.15);
  --status-live-text: #f87171;
  --status-live-border: rgba(239, 68, 68, 0.3);
  
  --status-upcoming-bg: rgba(16, 185, 129, 0.15);
  --status-upcoming-text: #34d399;
  --status-upcoming-border: rgba(16, 185, 129, 0.3);
  
  --status-completed-bg: rgba(148, 163, 184, 0.1);
  --status-completed-text: #cbd5e1;
  --status-completed-border: rgba(148, 163, 184, 0.2);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* --- UTILITY CLASSES --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-accent {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

/* --- HEADER & NAVIGATION --- */
header {
  height: var(--header-height);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--bg-dark);
  -webkit-text-fill-color: var(--bg-dark);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover, nav a.active {
  color: var(--text-main);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-smooth);
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 8rem 0 6rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stats span::before {
  content: '•';
  color: var(--accent);
  font-size: 1.2rem;
}
.hero-stats span:first-child::before {
  display: none;
}

/* --- FEATURED TOURNAMENTS (TICKER/SHELF) --- */
.featured-shelf {
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
}

.shelf-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.shelf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.shelf-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.shelf-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.shelf-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.status-badge-live {
  background: var(--status-live-bg);
  color: var(--status-live-text);
  border-color: var(--status-live-border);
  animation: pulse-live 2s infinite;
}

.status-badge-upcoming {
  background: var(--status-upcoming-bg);
  color: var(--status-upcoming-text);
  border-color: var(--status-upcoming-border);
}

.shelf-card-body {
  margin-bottom: 1rem;
}

.shelf-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.shelf-card-matchup {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.shelf-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.shelf-card-date {
  font-size: 0.8rem;
  color: var(--text-dark);
}

.shelf-card-btn {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}
.shelf-card-btn:hover {
  color: var(--accent-hover);
}

/* --- CALENDAR SECTION (MAIN LAYOUT) --- */
.calendar-section {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(14, 19, 31, 0.4) 100%);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Sidebar / Controls */
.calendar-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: sticky;
  top: 100px;
}

.sidebar-group {
  margin-bottom: 2rem;
}

.sidebar-group:last-child {
  margin-bottom: 0;
}

.sidebar-group h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Category Filter Tabs (Vertical in Sidebar) */
.category-filters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary-glow);
  color: var(--text-main);
  border-color: rgba(37, 99, 235, 0.3);
}

.filter-count {
  font-size: 0.75rem;
  background: var(--bg-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.filter-btn.active .filter-count {
  color: var(--accent);
  border-color: rgba(6, 182, 212, 0.2);
}

/* Search Box style */
.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark);
  font-size: 0.9rem;
  pointer-events: none;
}

/* Sort dropdown */
.sort-select {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Calendar Grid & Cards */
.calendar-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calendar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 2rem;
  align-items: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.calendar-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: scale(1.005);
}

.calendar-card-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid var(--border-color);
  padding-right: 1rem;
}

.event-date-large {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.event-month-large {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.event-day-label {
  font-size: 0.85rem;
  color: var(--text-dark);
}

.calendar-card-middle {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-category-tag {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.event-status-tag {
  font-size: 0.7rem;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-live {
  background: var(--status-live-bg);
  color: var(--status-live-text);
  border-color: var(--status-live-border);
  animation: pulse-live 2s infinite;
}

.status-upcoming {
  background: var(--status-upcoming-bg);
  color: var(--status-upcoming-text);
  border-color: var(--status-upcoming-border);
}

.status-completed {
  background: var(--status-completed-bg);
  color: var(--status-completed-text);
  border-color: var(--status-completed-border);
}

.event-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.event-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-location {
  font-size: 0.8rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.calendar-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* Empty State styling */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--text-dark);
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- SPORTS COVERAGE HUB --- */
.sports-hub {
  padding: 6rem 0;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-color);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.hub-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
}

.hub-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hub-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hub-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- FAQ SECTION --- */
.faq-section {
  padding: 6rem 0;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Native details/summary styles */
details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

details.faq-item[open] {
  border-color: var(--border-hover);
}

summary.faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Hide default triangle */
}

summary.faq-summary::-webkit-details-marker {
  display: none; /* Hide default triangle in Safari */
}

/* Chevron indicator */
summary.faq-summary::after {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s ease;
}

details.faq-item[open] summary.faq-summary::after {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- DIALOG OVERLAY (MODAL) --- */
dialog.event-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-main);
  padding: 0;
  max-width: 600px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  outline: none;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

dialog.event-modal[open] {
  opacity: 1;
  transform: scale(1);
}

dialog.event-modal::backdrop {
  background-color: rgba(6, 11, 23, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

dialog.event-modal[open]::backdrop {
  opacity: 1;
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.modal-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.modal-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.modal-info-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.01);
}

/* --- FOOTER --- */
footer {
  padding: 4rem 0;
  background: #04060a;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.footer-logo span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}
.footer-nav a:hover {
  color: var(--text-main);
}

.footer-disclaimer {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  font-size: 0.75rem;
  color: var(--text-dark);
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-dark);
}

/* --- ANIMATIONS & KEYFRAMES --- */
@keyframes pulse-live {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .calendar-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .calendar-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  
  .sidebar-group {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  
  .hero {
    padding: 5rem 0 3.5rem 0;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto 2rem auto;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    width: 100%;
  }
  
  .hero-stats span::before {
    display: none;
  }
  
  .calendar-sidebar {
    grid-template-columns: 1fr;
  }
  
  .calendar-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  
  .calendar-card-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 1rem;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }
  
  .event-date-large {
    font-size: 1.8rem;
  }
  
  .calendar-card-right {
    align-items: stretch;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .calendar-card-right .btn {
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  nav {
    display: none; /* Can be handled by drawer logic in JS if needed */
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}
