/* ===== IPL Contest Game - L06 Regional Map Theme ===== */
:root {
  --primary: #8B0000;
  --primary-light: #B22222;
  --primary-dark: #5C0000;
  --bg: #FAF3E0;
  --surface: #FFFFFF;
  --surface-2: #F5EBD3;
  --text: #1A1A1A;
  --text-2: #4A4A4A;
  --text-3: #7A7A7A;
  --border: #E0D5B8;
  --accent: #1B998B;
  --accent-light: #2EBFA9;
  --gold: #D4A017;
  --ink-900: #0D0D0D;
  --ink-700: #2A2A2A;
  --ink-500: #4A4A4A;
  --ink-300: #999999;
  --container: 1240px;
  --header-h: 76px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); line-height: 1.25; font-weight: 400; }
h1 { font-size: 48px; letter-spacing: -0.01em; }
h2 { font-size: 36px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }
p { margin: 0 0 16px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ===== HEADER with TOP SEARCH BAR ===== */
.top-search-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
  font-family: var(--font-mono);
}
.top-search-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-search-bar a { color: rgba(255,255,255,0.85); }
.top-search-bar a:hover { color: #fff; }
.top-search-bar .search-link { background: rgba(255,255,255,0.1); padding: 4px 12px; border-radius: 4px; }

.site-header {
  z-index: 150 !important;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--primary);
  z-index: 50;
  height: var(--header-h);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--ink-900); }
.brand-tag { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }

.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a { padding: 8px 14px; color: var(--text); font-size: 14px; font-weight: 500; border-radius: var(--r-sm); transition: all 0.2s; }
.main-nav a:hover { background: var(--surface-2); color: var(--primary); }
.main-nav .cta { background: var(--primary); color: #fff; padding: 10px 18px; }
.main-nav .cta:hover { background: var(--primary-dark); color: #fff; }

.header-right { display: flex; gap: 8px; align-items: center; }
.header-cta-ghost { padding: 8px 14px; border: 1.5px solid var(--primary); border-radius: var(--r-sm); color: var(--primary); font-size: 14px; font-weight: 500; }
.header-cta { background: var(--primary); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }

.hamburger {
  z-index: 200 !important;
  position: relative !important;
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink-900); border-radius: 1px; transition: all 0.3s; }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(139, 0, 0, 0.98);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 80px 24px 60px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-drawer.open, .mobile-drawer.is-open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer a { color: #fff; font-size: 22px; font-family: var(--font-display); padding: 12px 0; text-decoration: none; }

/* ===== HERO - SPLIT IMAGE ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface-2) 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; background: var(--primary); color: #fff; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; border-radius: 20px; margin-bottom: 20px; }
.hero-eyebrow .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: 56px; font-weight: 700; line-height: 1.05; margin-bottom: 24px; color: var(--ink-900); }
.hero-title em { color: var(--primary); font-style: italic; }
.hero-sub { font-size: 19px; color: var(--text-2); margin-bottom: 32px; line-height: 1.55; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.hero-meta-item { background: var(--surface); padding: 16px 14px; border-radius: var(--r-md); border: 1px solid var(--border); }
.hero-meta-num { font-size: 22px; font-weight: 700; color: var(--primary); display: block; }
.hero-meta-label { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); }

.hero-side { position: relative; }
.hero-news-image { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--border); margin-bottom: 16px; }
.hero-news-image img { display: block; width: 100%; height: 280px; object-fit: cover; }
.hero-news-image .label { position: absolute; left: 16px; top: 16px; background: var(--primary); color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.state-map-preview { background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-md); border: 2px solid var(--border); }
.state-map-preview h3 { font-size: 18px; margin-bottom: 16px; color: var(--primary); }

/* ===== BANDS ===== */
.band { padding: 72px 0; border-bottom: 1px solid var(--border); }
.band-elev-1 { background: var(--surface); }
.band-header { text-align: center; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; font-weight: 600; }
.band-title { font-size: 40px; margin-bottom: 16px; }
.lede { font-size: 18px; color: var(--text-2); line-height: 1.6; }
.band > .band-header, .band > .prose, .band > .section-hero-image, .band > .image-gallery, .band > .content-image-card, .band > .content-hero-image, .band > .content-2col { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

.prose { max-width: 780px; font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 32px; margin: 40px 0 20px; }
.prose h3 { font-size: 24px; margin: 32px 0 16px; }

/* ===== CARDS ===== */
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); padding: 24px; border-radius: var(--r-md); border: 1px solid var(--border); transition: all 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.card .ico { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; font-family: var(--font-mono); margin-bottom: 16px; }
.card .ico.orange { background: linear-gradient(135deg, #FF6B1A, #FF8B4D); }
.card .ico.teal { background: linear-gradient(135deg, var(--accent), var(--accent-light)); }
.card .ico.red { background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.card .ico.gold { background: linear-gradient(135deg, var(--gold), #E5B23A); }
.card .ico.blue { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.card h3 { font-size: 20px; margin-bottom: 12px; color: var(--ink-900); }
.card p { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.card .meta span { background: var(--surface-2); padding: 4px 10px; border-radius: 12px; font-size: 12px; color: var(--text-2); font-family: var(--font-mono); }
.card .meta .num { color: var(--primary); font-weight: 600; }

/* ===== CONTENT IMAGES ===== */
.content-hero-image { position: relative; margin: 48px auto; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.content-hero-image img { width: 100%; height: 420px; object-fit: cover; }
.content-hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 32px; background: linear-gradient(0deg, rgba(139,0,0,0.92) 0%, transparent 100%); color: #fff; }
.content-hero-label { display: inline-block; background: var(--accent); color: #fff; padding: 4px 12px; border-radius: 20px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.content-hero-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 0; }
.content-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 48px auto; max-width: 100%; background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.content-2col-image img { width: 100%; height: 280px; object-fit: cover; }
.content-2col-caption { padding: 24px 28px; }
.content-2col-caption p { margin: 0; font-size: 16px; line-height: 1.65; font-weight: 500; }
.content-image-card { margin: 40px auto; max-width: 100%; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface); border: 1px solid var(--border); }
.content-image-card img { width: 100%; height: 380px; object-fit: cover; }
.content-image-caption { padding: 16px 24px; font-size: 14px; font-style: italic; color: var(--text-2); text-align: center; margin: 0; background: var(--surface-2); border-top: 1px solid var(--border); }

/* ===== STATE ELIGIBILITY ===== */
.state-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 32px 0; }
.state-card { background: var(--surface); padding: 18px 16px; border-radius: var(--r-md); border: 1px solid var(--border); text-align: center; transition: all 0.2s; }
.state-card.eligible { border-left: 4px solid var(--accent); }
.state-card.partial { border-left: 4px solid var(--gold); }
.state-card.restricted { border-left: 4px solid var(--primary); opacity: 0.7; }
.state-card .state-name { font-weight: 700; color: var(--ink-900); display: block; margin-bottom: 4px; }
.state-card .state-status { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; font-family: var(--font-sans); font-weight: 600; }
.footer-col a { color: rgba(255,255,255,0.7); display: block; padding: 6px 0; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta-ghost { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 36px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .content-hero-image img, .content-image-card img { height: 240px; }
  .content-2col { grid-template-columns: 1fr; }
  .content-2col-image img { height: 200px; }
  .content-hero-overlay { padding: 16px 20px; }
  .content-hero-title { font-size: 20px; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 0; }
  .hero-title { font-size: 30px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
}


/* === ADDITIONAL CSS CLASSES (required by verify) === */
.data-card { background: var(--surface); padding: 20px; border-radius: var(--r-md); border: 1px solid var(--border); }
.data-card .title { font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); margin-bottom: 8px; }
.data-card .v { font-size: 28px; font-weight: 700; color: var(--primary); display: block; }
.data-card .delta { font-size: 13px; color: var(--accent); margin-top: 4px; }
.step-card { background: var(--surface); padding: 24px; border-radius: var(--r-md); border: 1px solid var(--border); }
.step-card .step-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; }
.step-card h4 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-2); margin: 0; }
.loose-card { background: var(--surface); padding: 18px 20px; border-radius: var(--r-md); border-left: 4px solid var(--primary); }
.loose-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.inline-image-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.faq-grid { display: grid; gap: 12px; }
.faq-grid details { background: var(--surface); padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--border); }
.faq-grid details summary { font-weight: 600; cursor: pointer; color: var(--ink-900); }
.faq-grid details[open] summary { color: var(--primary); }
.faq-grid details p { margin: 12px 0 0; font-size: 15px; color: var(--text-2); }

/* Mobile hero fix */
@media (max-width: 900px) {
  .hero { padding: 40px 0; }
  .hero-side { display: none; }
}


/* Card visual structure fixes */
.card { border: 1px solid var(--border); padding: 20px; }
@media (max-width: 900px) {
  .hero { max-height: 720px; overflow: hidden; }
  .hero-side { display: none !important; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); margin-top: 24px; }
}

/* A11y: Color contrast fixes */
.brand-tag, .hero-meta-label {
  color: #555555 !important;
}
.section-eyebrow, .eyebrow {
  color: #555555 !important;
}
