/**
 * MEDVERSE'26 - Official Stylesheet
 * National Level Biomedical Engineering Symposium
 * Theme: AURAMED - The Rhythm of Medical Innovation
 */

/* ----------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   ---------------------------------------------------- */
:root {
  /* Colors derived from official MEDVERSE'26 logo */
  --bg-darkest: #030712;
  --bg-darker: #060D1E;
  --bg-dark: #0A1630;
  --bg-card: rgba(10, 22, 48, 0.72);
  --bg-card-hover: rgba(14, 30, 66, 0.85);
  --bg-glass-nav: rgba(6, 13, 30, 0.88);

  /* Primary & Accent Highlights */
  --electric-blue: #0066FF;
  --electric-blue-glow: rgba(0, 102, 255, 0.45);
  --electric-cyan: #00E5FF;
  --electric-cyan-glow: rgba(0, 229, 255, 0.35);
  --metallic-gold: #E5A93C;
  --metallic-gold-light: #FFC857;
  --metallic-gold-glow: rgba(229, 169, 60, 0.4);
  --accent-red: #EF4444;

  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Borders & Dividers */
  --border-cyan: rgba(0, 229, 255, 0.22);
  --border-blue: rgba(0, 102, 255, 0.3);
  --border-gold: rgba(229, 169, 60, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Shadows */
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 25px rgba(0, 229, 255, 0.25);
  --shadow-glow-gold: 0 0 25px rgba(229, 169, 60, 0.3);
  --shadow-glow-blue: 0 0 25px rgba(0, 102, 255, 0.35);

  /* Typography Stack */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout & Transitions */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------
   2. Base & Reset
   ---------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #0c1a3b 0%, #060d1e 40%, #030712 100%);
}

/* Focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--electric-cyan);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------
   3. Typography Utilities & Section Headers
   ---------------------------------------------------- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--electric-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-tag-gold {
  color: var(--metallic-gold-light);
  background: rgba(229, 169, 60, 0.1);
  border-color: rgba(229, 169, 60, 0.3);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 40%, #cbe4ff 70%, var(--electric-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title-gold {
  background: linear-gradient(135deg, #ffffff 40%, var(--metallic-gold-light) 80%, var(--metallic-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.gold-text {
  color: var(--metallic-gold-light);
}

.cyan-text {
  color: var(--electric-cyan);
}

/* ----------------------------------------------------
   4. Buttons & CTAs
   ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #0052cc 0%, #0066ff 50%, #00d2ff 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.65), 0 0 15px rgba(0, 229, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #b45309 0%, #e5a93c 50%, #ffd700 100%);
  color: #050b18;
  font-weight: 800;
  box-shadow: 0 4px 22px rgba(229, 169, 60, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(229, 169, 60, 0.7), 0 0 20px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
  background: rgba(10, 22, 48, 0.6);
  color: var(--text-secondary);
  border: 1px solid var(--border-cyan);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.12);
  color: #ffffff;
  border-color: var(--electric-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-whatsapp {
  background: #25D366;
  color: #050B18;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-whatsapp:hover {
  background: #2ee571;
  color: #030712;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  transform: translateY(-2px);
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* ----------------------------------------------------
   5. Sticky Navigation Bar
   ---------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  height: 70px;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo-img {
  height: 42px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
}

.nav-brand-theme {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--electric-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--electric-cyan), var(--metallic-gold));
  transition: width var(--transition-fast);
}

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

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

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

.mobile-menu-btn {
  display: none;
  background: transparent;
  color: #ffffff;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer .nav-link {
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
}

/* ----------------------------------------------------
   6. Hero Section
   ---------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--electric-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-logo-wrapper {
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-logo {
  max-width: 380px;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.35));
  transition: transform var(--transition-normal);
}

.hero-logo:hover {
  transform: scale(1.02);
}

.hero-title-main {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #e0f2fe 60%, var(--electric-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-theme-tagline {
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--metallic-gold-light);
  text-shadow: 0 0 25px rgba(229, 169, 60, 0.4);
}

.hero-theme-subtagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--text-secondary);
  font-style: italic;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

.hero-dates-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(10, 22, 48, 0.8);
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.2);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.hero-organizer-info {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.hero-organizer-dept {
  font-weight: 700;
  color: #ffffff;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* ----------------------------------------------------
   7. Live Countdown Section
   ---------------------------------------------------- */
.countdown-section {
  position: relative;
  z-index: 10;
  margin-top: -30px;
  margin-bottom: 60px;
}

.countdown-card-wrapper {
  background: rgba(6, 13, 30, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-card), 0 0 35px rgba(0, 229, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-align: center;
}

.countdown-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric-cyan);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 680px;
  margin: 0 auto;
}

.countdown-box {
  background: rgba(10, 22, 48, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-fast);
}

.countdown-box:hover {
  border-color: var(--metallic-gold);
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.25);
  transform: translateY(-2px);
}

.countdown-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
  background: linear-gradient(180deg, #ffffff 40%, var(--electric-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-unit {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-live-banner {
  display: none;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--metallic-gold-light);
  letter-spacing: 0.08em;
  animation: pulseBeacon 2s infinite;
}

/* ----------------------------------------------------
   8. Scan to Register & Dynamic QR Section
   ---------------------------------------------------- */
.register-qr-section {
  padding: 80px 0;
  position: relative;
}

.register-card-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: rgba(10, 22, 48, 0.75);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-card), 0 0 45px rgba(229, 169, 60, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.qr-code-frame-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-code-frame {
  position: relative;
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.3), 0 0 15px rgba(229, 169, 60, 0.25);
  border: 3px solid var(--metallic-gold);
}

.qr-canvas {
  display: block;
  width: 250px;
  height: 250px;
  border-radius: var(--radius-sm);
}

.qr-helper-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.register-info-content h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.register-info-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.register-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.register-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--electric-blue);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------
   9. About & AURAMED Theme Section
   ---------------------------------------------------- */
.about-section {
  padding: 90px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.about-text-block p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.theme-highlight-box {
  background: rgba(10, 22, 48, 0.7);
  border-left: 4px solid var(--metallic-gold);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.theme-highlight-box h4 {
  font-size: 1.25rem;
  color: var(--metallic-gold-light);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.theme-highlight-box p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.highlights-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.highlight-card {
  background: rgba(10, 22, 48, 0.6);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.highlight-card:hover {
  background: rgba(14, 30, 66, 0.85);
  border-color: var(--metallic-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 169, 60, 0.2);
  transform: translateY(-4px);
}

.highlight-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--electric-cyan);
}

.highlight-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

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

/* ----------------------------------------------------
   10. Events Section & Interactive Cards
   ---------------------------------------------------- */
.events-section {
  padding: 100px 0;
  position: relative;
}

.events-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.event-tab-btn {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  color: var(--text-muted);
  background: rgba(10, 22, 48, 0.6);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.event-tab-btn:hover {
  color: #ffffff;
  border-color: var(--border-cyan);
}

.event-tab-btn.active {
  color: #ffffff;
  background: var(--electric-blue);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 102, 255, 0.5);
}

.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--electric-blue), var(--electric-cyan));
  opacity: 0.8;
  transition: var(--transition-fast);
}

.event-card.non-tech::before {
  background: linear-gradient(90deg, var(--electric-cyan), var(--metallic-gold));
}

.event-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--electric-cyan);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 229, 255, 0.25);
  transform: translateY(-6px);
}

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

.event-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--electric-cyan);
}

.event-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.event-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.event-type-line {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--metallic-gold-light);
  margin-bottom: 0.85rem;
}

.event-meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.event-short-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.event-coordinator-credit {
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
  margin-bottom: 1.25rem;
}

.event-coordinator-name {
  font-weight: 700;
  color: var(--text-secondary);
}

.event-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.event-card-actions .btn-full {
  grid-column: span 2;
}

/* ----------------------------------------------------
   11. Event Rules Modal
   ---------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-dark);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card), 0 0 50px rgba(0, 229, 255, 0.25);
  padding: 2.25rem;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.modal-header {
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

.modal-event-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.modal-rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.modal-rules-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.rule-check-icon {
  color: var(--electric-cyan);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* ----------------------------------------------------
   12. Event Pricing & Combos Section
   ---------------------------------------------------- */
.pricing-section {
  padding: 90px 0;
  position: relative;
}

.pricing-block {
  margin-bottom: 4rem;
}

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

.pricing-card {
  background: rgba(10, 22, 48, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pricing-card:hover {
  border-color: var(--electric-cyan);
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 229, 255, 0.2);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border-color: var(--metallic-gold);
  background: rgba(14, 28, 60, 0.85);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 30px rgba(229, 169, 60, 0.2);
}

.pricing-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--metallic-gold);
  color: #050b18;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.pricing-type-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.pricing-amount-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 1rem 0 1.25rem;
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--electric-cyan);
  line-height: 1;
}

.pricing-card.popular .pricing-amount {
  color: var(--metallic-gold-light);
}

.pricing-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-strike-amount {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.pricing-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.pricing-event-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.separate-notice-box {
  background: rgba(10, 22, 48, 0.6);
  border: 1px dashed var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.separate-notice-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ----------------------------------------------------
   13. Payment Section
   ---------------------------------------------------- */
.payment-section {
  padding: 90px 0;
  position: relative;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.payment-qr-placeholder-card {
  background: rgba(10, 22, 48, 0.7);
  border: 2px dashed rgba(229, 169, 60, 0.4);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.payment-placeholder-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.1);
  border: 1px solid rgba(229, 169, 60, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--metallic-gold-light);
  margin-bottom: 1.25rem;
}

.payment-placeholder-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.payment-placeholder-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.6;
}

.payment-instructions-card {
  background: rgba(10, 22, 48, 0.7);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.instructions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.instruction-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.instruction-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric-cyan);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.proof-alert-box {
  background: rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(0, 102, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.proof-alert-box h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--electric-cyan);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.proof-alert-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ----------------------------------------------------
   14. WhatsApp Group Directory Section
   ---------------------------------------------------- */
.whatsapp-section {
  padding: 90px 0;
  position: relative;
}

.whatsapp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.whatsapp-card {
  background: rgba(10, 22, 48, 0.7);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.whatsapp-card:hover {
  border-color: #25D366;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(37, 211, 102, 0.25);
  transform: translateY(-4px);
}

.whatsapp-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.whatsapp-card-type {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ----------------------------------------------------
   15. Rule Book Section
   ---------------------------------------------------- */
.rulebook-section {
  padding: 90px 0;
  position: relative;
}

.rulebook-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(10, 22, 48, 0.7);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--electric-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.general-rules-card {
  background: rgba(10, 22, 48, 0.75);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.general-rules-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.general-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.rule-item-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.rule-number-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid var(--border-cyan);
  color: var(--electric-cyan);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Accordion Rules */
.accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: rgba(10, 22, 48, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.accordion-item.active {
  border-color: var(--border-cyan);
  background: rgba(10, 22, 48, 0.85);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.accordion-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--electric-cyan);
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.5rem;
}

.accordion-item.active .accordion-body {
  padding: 0 1.5rem 1.5rem;
}

/* ----------------------------------------------------
   16. Coordinators Section
   ---------------------------------------------------- */
.coordinators-section {
  padding: 90px 0;
  position: relative;
}

.coord-group-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--metallic-gold-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.coord-grid-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.coord-card {
  background: rgba(10, 22, 48, 0.7);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.coord-card:hover {
  border-color: var(--metallic-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(229, 169, 60, 0.2);
  transform: translateY(-4px);
}

.coord-role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--electric-cyan);
  margin-bottom: 0.5rem;
}

.coord-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.coord-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.coord-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.coord-tel-link:hover {
  background: var(--electric-blue);
  color: #ffffff;
  border-color: var(--electric-cyan);
}

/* Event Staff Directory Table */
.event-staff-table-wrapper {
  background: rgba(10, 22, 48, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.event-staff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.event-staff-table th {
  background: rgba(6, 13, 30, 0.9);
  padding: 1.15rem 1.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--electric-cyan);
  border-bottom: 1px solid var(--border-subtle);
}

.event-staff-table td {
  padding: 1.15rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.event-staff-table tr:hover td {
  background: rgba(0, 229, 255, 0.04);
  color: #ffffff;
}

/* ----------------------------------------------------
   17. Department & Contact Section
   ---------------------------------------------------- */
.contact-section {
  padding: 90px 0;
  position: relative;
}

.contact-card-wrapper {
  background: rgba(10, 22, 48, 0.75);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-card), 0 0 45px rgba(0, 229, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.dept-header-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.dept-pretitle {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--metallic-gold-light);
  margin-bottom: 0.75rem;
}

.dept-main-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.dept-sub-title {
  font-size: 1.15rem;
  color: var(--electric-cyan);
  margin-bottom: 0.25rem;
}

.dept-inst-title {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.dept-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.dept-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--electric-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  margin-top: 1.25rem;
  transition: var(--transition-fast);
}

.dept-link-pill:hover {
  background: var(--electric-cyan);
  color: #050b18;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* ----------------------------------------------------
   18. Footer
   ---------------------------------------------------- */
.footer {
  background: #02050e;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 35px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.footer-theme {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--metallic-gold-light);
  margin-bottom: 1rem;
}

.footer-dept-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 440px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--electric-cyan);
  margin-bottom: 1.25rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ----------------------------------------------------
   19. Back to Top Button
   ---------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(10, 22, 48, 0.85);
  border: 1px solid var(--border-cyan);
  color: var(--electric-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 990;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

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

.back-to-top:hover {
  background: var(--electric-cyan);
  color: #050b18;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* ----------------------------------------------------
   20. Responsive Media Queries
   ---------------------------------------------------- */

/* Large tablets / small laptops */
@media (max-width: 1100px) {
  .footer-grid {
    gap: 2.5rem;
  }
  .about-grid {
    gap: 2.5rem;
  }
}

@media (max-width: 992px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .register-card-container, .about-grid, .payment-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-card-wrapper, .register-card-container {
    padding: 2.25rem 1.5rem;
  }
  .register-card-container {
    padding: 2.5rem 1.75rem;
  }
  /* QR column reads better above the copy on stacked layout */
  .register-card-container .qr-code-frame-wrapper {
    order: -1;
  }
  .general-rules-card,
  .payment-instructions-card {
    padding: 2rem 1.75rem;
  }
  /* Slightly tighter vertical rhythm on medium screens */
  .events-section { padding: 80px 0; }
  .about-section,
  .pricing-section,
  .payment-section,
  .whatsapp-section,
  .rulebook-section,
  .coordinators-section,
  .contact-section { padding: 70px 0; }
}

/* Tablets */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .countdown-section {
    margin-top: 0;
  }
  .countdown-card-wrapper {
    padding: 1.75rem 1.5rem;
  }
  .general-rules-grid {
    grid-template-columns: 1fr;
  }
  .event-card-actions {
    grid-template-columns: 1fr;
  }
  .event-card-actions .btn-full {
    grid-column: span 1;
  }
  /* Horizontal-scroll table with a subtle cue that it scrolls */
  .event-staff-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .event-staff-table {
    min-width: 640px;
  }
  .highlights-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-logo {
    max-width: 290px;
  }
  .hero-section {
    padding-top: 128px;
    padding-bottom: 60px;
    min-height: auto;
  }
  .hero-cta-group {
    gap: 0.85rem;
  }
  .general-rules-card {
    padding: 1.75rem 1.5rem;
  }
  .rulebook-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input-wrapper {
    max-width: none;
  }
  .rulebook-actions-bar .btn {
    justify-content: center;
  }
  .modal-footer {
    flex-wrap: wrap;
  }
}

/* Large phones */
@media (max-width: 600px) {
  .highlights-cards-grid {
    grid-template-columns: 1fr;
  }
  .events-cards-grid {
    grid-template-columns: 1fr;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-cards-grid {
    grid-template-columns: 1fr;
  }
  .coord-grid-main,
  .dept-contact-grid {
    grid-template-columns: 1fr;
  }
  .events-tabs-nav {
    gap: 0.5rem;
  }
  .event-tab-btn {
    padding: 0.6rem 1.15rem;
    font-size: 0.88rem;
  }
  /* Full-width CTAs are easier to tap */
  .hero-cta-group .btn,
  .register-info-content .btn {
    width: 100%;
  }
  .hero-cta-group,
  .register-info-content > div[style*="flex"] {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Small phones */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  .navbar {
    height: 68px;
  }
  .nav-logo-img {
    height: 40px;
  }
  .nav-brand-name {
    font-size: 1.1rem;
  }
  .hero-section {
    padding-top: 108px;
  }
  .hero-dates-badge {
    font-size: 0.95rem;
    padding: 0.5rem 1.1rem;
  }
  .countdown-value {
    font-size: 1.85rem;
  }
  .countdown-box {
    padding: 1rem 0.5rem;
  }
  .modal-dialog {
    padding: 1.5rem 1.25rem;
  }
  .modal-footer {
    justify-content: stretch;
  }
  .modal-footer .btn {
    flex: 1;
  }
  .general-rules-card,
  .contact-card-wrapper {
    padding: 1.75rem 1.25rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
