/* William Hill Fantasy Cricket India — Brand stylesheet
   Brand palette: Indigo App #3538CD + Accent #8098F9 + Highlight Amber
   Built 2026-06-29
*/

:root {
  --primary: #3538CD;
  --accent: #8098F9;
  --highlight: #FFD600;
  --bg: #03142C;
  --text: #F8FAFC;
  --muted: #CBD5E1;
  --surface: #082145;
  --surface-2: #123565;
  --border: rgba(128,152,249,0.2);
  --primary-dark: #1A1F6E;
  --primary-active: #0E1150;
  --text-dark: #F8FAFC;
  --shadow: 0 12px 36px rgba(53,56,205,0.20);
  --shadow-sm: 0 2px 8px rgba(53,56,205,0.10);
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text-dark); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--highlight); }
img { max-width: 100%; height: auto; display: block; }

h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 16px; color: var(--text); line-height: 1.15; }
h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; margin-bottom: 16px; margin-top: 32px; color: var(--text); }
h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
p { margin-bottom: 14px; line-height: 1.65; color: var(--text); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: absolute !important; left: 0 !important; top: 0 !important; background: var(--accent) !important; color: var(--primary) !important; padding: 12px 20px !important; z-index: 9999; }

.topbar { background: var(--primary); color: #fff; padding: 8px 0; font-size: 13px; border-bottom: 1px solid rgba(128,152,249,0.3); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar .promo { color: #FFFFFF !important; display: flex; align-items: center; gap: 8px; }
.topbar .promo strong { color: var(--highlight) !important; font-weight: 800; }
.topbar .badge { background: var(--highlight); color: var(--primary) !important; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.topbar .social { display: flex; gap: 10px; }
.topbar .social a { color: #fff; padding: 2px 8px; border: 1px solid rgba(128,152,249,0.3); border-radius: 4px; font-size: 11px; }

header.site { background: var(--primary); color: #fff; box-shadow: 0 2px 12px rgba(128,152,249,0.20); padding: 14px 0; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(128,152,249,0.2); }
header.site .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 22px; text-decoration: none; }
.logo .mark { background: var(--highlight); color: var(--primary); padding: 6px 10px; border-radius: 8px; font-size: 16px; font-weight: 800; }
.logo .cs { color: var(--accent); font-style: normal; font-weight: 700; }
nav.main { display: flex; gap: 16px; flex: 1; justify-content: center; }
nav.main a { color: rgba(255,255,255,0.85); padding: 8px 4px; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a.active { color: var(--highlight); border-bottom-color: var(--highlight); }

.btn { display: inline-block; padding: 12px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 15px; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--highlight); color: var(--primary) !important; font-weight: 800; }
.btn-primary:hover { background: #FFC700; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,214,0,0.35); }
.btn-outline { border: 2px solid var(--highlight); color: var(--highlight) !important; background: transparent; font-weight: 700; }
.btn-outline:hover { background: var(--highlight); color: var(--primary) !important; }

.breadcrumb { background: var(--surface); padding: 12px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.breadcrumb .container { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent) !important; text-decoration: underline; font-weight: 600; }
.breadcrumb .sep, .breadcrumb span:last-child { color: #fff !important; font-weight: 700; }

.hero { background: var(--primary); color: #fff; padding: 64px 0; }
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero .lede { font-size: 19px; color: rgba(255,255,255,0.92); max-width: 640px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

section { padding: 48px 0; }
section.alt { background: var(--surface); }

.longform { font-size: 17px; line-height: 1.75; color: #E2E8F0; }
.longform h2 { margin-top: 40px; color: var(--accent); }
.longform p { margin-bottom: 16px; }
.longform a { color: var(--accent); text-decoration: underline; }
.longform img { margin: 24px 0; border-radius: var(--radius); box-shadow: 0 12px 36px rgba(53,56,205,0.20); }

.news-list { display: grid; gap: 16px; }
.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: start; transition: all 0.2s; }
.news-card:hover { box-shadow: 0 8px 24px rgba(128,152,249,0.15); }
.news-card .news-date { background: var(--primary); color: var(--highlight); padding: 14px; border-radius: 10px; text-align: center; border: 1px solid var(--highlight); }
.news-card .news-date .day { font-size: 28px; font-weight: 800; line-height: 1; color: var(--highlight); }
.news-card .news-date .month { font-size: 12px; text-transform: uppercase; margin-top: 4px; color: rgba(255,255,255,0.8); }
.news-card h3 { font-size: 18px; margin: 6px 0; color: #fff; }
.news-card h3 a { color: #fff; }
.news-card .news-meta { font-size: 12px; color: var(--accent); text-transform: uppercase; font-weight: 700; }
.news-card .excerpt { color: #CBD5E1; font-size: 14px; line-height: 1.5; }
.news-card .tag { display: inline-block; background: var(--primary); color: var(--accent); padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; margin-right: 8px; border: 1px solid var(--accent); }
.news-card .read-more { color: var(--accent); font-weight: 700; font-size: 14px; }

.faq-list { display: grid; gap: 12px; max-width: 900px; }
details.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
details.faq-item:hover { border-color: var(--accent); }
details.faq-item summary { font-weight: 700; color: var(--accent); cursor: pointer; font-size: 17px; }
details.faq-item .answer { margin-top: 12px; color: #CBD5E1; line-height: 1.7; }

.inline-cta { color: #fff; padding: 40px; border-radius: var(--radius-lg); text-align: center; margin: 40px 0; box-shadow: var(--shadow); background: var(--primary); border: 1px solid var(--highlight); }
.inline-cta h3 { color: var(--highlight); font-size: 26px; margin-bottom: 12px; }
.inline-cta p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.inline-cta .cta-pair { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.disclaimer { background: var(--surface-2); color: #E5E7EB; border-left: 4px solid var(--highlight); padding: 14px 18px; border-radius: 6px; font-size: 13px; margin: 16px auto; max-width: 1180px; }

.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); padding: 12px 16px; z-index: 90; box-shadow: 0 -4px 20px rgba(128,152,249,0.4); gap: 10px; justify-content: center; border-top: 1px solid var(--highlight); }
@media (max-width: 1023px) {
  .sticky-cta { display: flex !important; }
  body.has-sticky { padding-bottom: 80px; }
  .sticky-cta .btn { flex: 1; max-width: 200px; }
}

footer { background: #020a18; color: rgba(255,255,255,0.7); padding: 48px 0 24px; margin-top: 48px; border-top: 1px solid rgba(128,152,249,0.3); }
footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 768px) { footer .container { grid-template-columns: 1fr 1fr; } }
footer .footer-brand p { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.65; margin: 12px 0 18px; }
footer .logo { color: #fff; }
footer .footer-heading { color: var(--accent); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #fff; text-decoration: underline; text-decoration-color: rgba(128,152,249,0.4); text-underline-offset: 2px; font-size: 14px; }
footer .legal-bar { grid-column: 1 / -1; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(128,152,249,0.15); font-size: 12px; color: rgba(255,255,255,0.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
  border-radius: 4px;
}

.banner-img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 24px 0; }

/* ========== SIMPLE HAMBURGER (display toggle) ========== */
.hamburger {
  display: none;
  background: var(--primary);
  border: 0;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 110;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px auto;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media (max-width: 768px) {
  .hamburger { display: block !important; }
  header.site .container > .btn { display: none !important; }
  nav.main {
    display: none !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--primary) !important;
    flex-direction: column !important;
    padding: 16px !important;
    gap: 0 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 100 !important;
    overflow-y: auto;
    max-height: calc(100vh - 64px);
    white-space: normal !important;
    align-items: stretch !important;
  }
  nav.main.open { display: flex !important; }
  nav.main a {
    padding: 14px 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    font-size: 15px !important;
    width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
  }
  nav.main a:last-child { border-bottom: 0 !important; }
  body.menu-open { overflow: hidden; }
}

/* ========== EXTENDED MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  body, html { overflow-x: hidden !important; max-width: 100vw !important; }
  body { font-size: 15px; }
  section { padding: 40px 0 !important; }
  .container { padding: 0 16px !important; }
  .hero, section.hero { padding: 36px 0 24px !important; }
  .hero h1 { font-size: 30px !important; line-height: 1.15 !important; }
  .hero p.lede, .hero .lede { font-size: 15px !important; }
  .hero img, .hero picture img { max-height: 220px !important; }
  h2 { font-size: 24px !important; line-height: 1.2 !important; }
  h3 { font-size: 17px !important; }
  p { font-size: 15px !important; line-height: 1.6 !important; }
  p[style*="font-size:18px"], p[style*="font-size: 18px"] { font-size: 15px !important; }
  p[style*="font-size:17px"], p[style*="font-size: 17px"] { font-size: 15px !important; }
  p[style*="font-size:19px"], p[style*="font-size: 19px"] { font-size: 16px !important; }
  [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; gap: 10px !important; }
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; gap: 14px !important; }
  [style*="grid-template-columns:repeat(2"] { grid-template-columns: 1fr !important; gap: 14px !important; }
  [style*="grid-template-columns:1fr auto 1fr"] { grid-template-columns: 1fr !important; text-align: center !important; gap: 16px !important; }
  [style*="grid-template-columns:1fr auto 1fr"] > div:nth-child(2) { transform: rotate(90deg); margin: 0 auto !important; }
  [style*="grid-template-columns:1fr auto 1fr"] > div:nth-child(3) { text-align: center !important; }
  .btn { padding: 11px 16px !important; font-size: 14px !important; }
  [style*="display:flex"][style*="gap:14px"] { gap: 10px !important; flex-wrap: wrap; }
  [style*="display:flex"][style*="gap:12px"] { gap: 8px !important; }
  .cta-pair, [style*="cta-pair"] { flex-direction: column !important; }
  .cta-pair .btn, [style*="cta-pair"] .btn { width: 100% !important; }
  header.site { padding: 10px 0 !important; }
  header.site .container { gap: 10px !important; flex-wrap: wrap; }
  .logo { font-size: 17px !important; }
  .logo .mark { padding: 4px 8px !important; font-size: 13px !important; }
  .topbar { font-size: 11px !important; padding: 6px 0 !important; }
  .topbar .promo { font-size: 11px !important; }
  .topbar .badge { font-size: 9px !important; padding: 1px 5px !important; }
  .topbar .social { display: none !important; }
  .breadcrumb { padding: 8px 0 !important; font-size: 11px !important; }
  div[style*="overflow-x:auto"] { margin: 0 -16px !important; padding: 0 16px !important; width: calc(100% + 32px) !important; }
  table { font-size: 11px !important; }
  table th, table td { padding: 8px 5px !important; font-size: 11px !important; }
  .news-list { grid-template-columns: 1fr !important; }
  .news-card { grid-template-columns: 80px 1fr !important; gap: 12px !important; padding: 16px !important; }
  .inline-cta { padding: 26px 18px !important; margin: 30px 0 !important; }
  .inline-cta h3 { font-size: 22px !important; }
  .disclaimer { font-size: 11px !important; padding: 10px 12px !important; }
  footer { padding: 32px 0 16px !important; }
  footer .container { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .footer-brand { grid-column: 1 / -1 !important; }
  [style*="font-size:24px"][style*="font-weight:800"] { font-size: 18px !important; }
  [style*="font-size:48px"][style*="font-weight:800"] { font-size: 34px !important; }
  [style*="font-size:64px"] { font-size: 44px !important; }
  [style*="font-size:42px"][style*="margin-bottom:24px"] { font-size: 26px !important; }
  [style*="font-size:36px"][style*="margin-bottom"] { font-size: 24px !important; }
  [style*="padding:24px"][style*="border-radius"] { padding: 16px !important; }
  [style*="padding:28px"][style*="border-radius"] { padding: 18px !important; }
  [style*="padding:32px"][style*="border-radius"] { padding: 18px !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  [style*="grid-template-columns:repeat(4"] { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(3, 1fr) !important; gap: 12px !important; }
  [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  [style*="grid-template-columns:repeat(2"][style*="gap:24px"] { grid-template-columns: 1fr 1fr !important; }
  .hero h1 { font-size: 42px !important; }
  footer .container { grid-template-columns: 1fr 1fr !important; }
}



/* When page has no <main> wrapper (homepage, hub pages with direct sections),
   we need the last section before footer to grow. Apply via sibling selector:
   footer is always last, so the immediate previous section becomes flex:1.
   Simpler approach: all <section> except .hero and footer grow equally. */
body > section { flex-shrink: 0; }
body > section.section-grow { flex: 1 0 auto; }
/* Force footer to bottom by making topbar+header not take flex space */
body > .topbar, body > header.site, body > .breadcrumb, body > .disclaimer { flex-shrink: 0; }
body > footer { flex-shrink: 0; margin-top: auto; }
body > .sticky-cta { flex-shrink: 0; }

/* ===== FOOTER ALWAYS AT BOTTOM (simple robust approach) ===== */
html, body { min-height: 100vh; }
body { display: flex; flex-direction: column; margin: 0; padding: 0; }
body > main { flex: 1 0 auto; min-height: 0; }
/* All non-footer/non-topbar/non-header children should stack naturally */
body > section { flex-shrink: 0; }
/* When no <main>, the body should still grow to push footer to bottom */
body { min-height: 100vh; }
/* Footer is always at the end of body */
body > footer { margin-top: auto; }
body > .sticky-cta { order: 100; }


/* === Sticky CTA override - position:fixed so it doesn't take body height === */
.sticky-cta { position: fixed !important; }
