/* =========================================================
   Betwinner PK — design system
   Brand: deep green #12513C / green #1E7C5A / yellow #FFCE05
   Layout philosophy: linear flow (text → banner → table → text)
   ========================================================= */

:root{
  --bw-green-900:#0e3f2f;
  --bw-green-800:#12513C;
  --bw-green-600:#1E7C5A;
  --bw-green-500:#23916a;
  --bw-yellow:#FFCE05;
  --bw-yellow-600:#e0b400;
  --bw-ink:#16201c;
  --bw-text:#2a322e;
  --bw-muted:#5d6963;
  --bw-line:#e3e8e5;
  --bw-bg:#ffffff;
  --bw-bg-soft:#f5f7f6;
  --bw-bg-soft2:#eef2f0;
  --bw-radius:8px;
  --bw-shadow:0 1px 3px rgba(16,40,30,.08);
  --bw-maxw:1080px;
  --bw-font:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --bw-font-urdu:"Noto Nastaliq Urdu","Jameel Noori Nastaleeq",serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--bw-font);
  font-size:17px;
  line-height:1.7;
  color:var(--bw-text);
  background:var(--bw-bg);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--bw-green-600);text-decoration:none}
a:hover{text-decoration:underline}

.wrap{max-width:var(--bw-maxw);margin:0 auto;padding:0 18px}

/* ---------- Top bar ---------- */
.topbar{background:var(--bw-green-900);color:#cfe4da;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:34px}
.topbar a{color:#cfe4da}
.topbar .tb-right{display:flex;gap:16px;align-items:center}

/* ---------- Header ---------- */
.site-header{background:var(--bw-green-800);position:sticky;top:0;z-index:50;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:64px;gap:18px}
.brand{display:flex;align-items:center;gap:10px}
.brand img{height:34px;width:auto}
.brand b{display:none}

/* language switch */
.lang-switch{display:flex;gap:2px;background:rgba(0,0,0,.2);border-radius:6px;padding:3px}
.lang-switch a{
  color:#cfe4da;font-size:13px;font-weight:600;padding:4px 9px;border-radius:4px;
}
.lang-switch a.active{background:var(--bw-yellow);color:var(--bw-green-900)}
.lang-switch a:hover{text-decoration:none}

/* ---------- CTA button ---------- */
.btn{
  display:inline-block;background:var(--bw-yellow);color:var(--bw-green-900);
  font-weight:800;padding:13px 30px;border-radius:6px;font-size:16px;
  letter-spacing:.2px;border:0;cursor:pointer;text-align:center;
  transition:background .15s ease,transform .05s ease;
}
.btn:hover{background:var(--bw-yellow-600);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn-block{display:block;width:100%}
.btn-lg{padding:16px 42px;font-size:18px}
.cta-row{text-align:center;margin:26px 0}

/* ---------- Headings (linear rhythm) ---------- */
h1,h2,h3,h4{color:var(--bw-ink);line-height:1.25;font-weight:800}
h1{font-size:30px;margin:18px 0 14px}
h2{font-size:24px;margin:34px 0 12px;padding-bottom:8px;border-bottom:2px solid var(--bw-line)}
h3{font-size:19px;margin:24px 0 8px}
p{margin:0 0 14px}
ul,ol{margin:0 0 16px;padding-left:22px}
li{margin-bottom:7px}
strong{color:var(--bw-ink)}

/* lead intro */
.lead{font-size:18px;color:var(--bw-muted)}

/* ---------- Banner (full-width, in-flow) ---------- */
.banner{
  margin:26px 0;border-radius:var(--bw-radius);overflow:hidden;
  background:linear-gradient(105deg,var(--bw-green-800),var(--bw-green-600));
  color:#fff;position:relative;
}
.banner-inner{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  padding:26px 30px;flex-wrap:wrap;
}
.banner-text{flex:1 1 340px;min-width:260px}
.banner-text .kicker{color:var(--bw-yellow);font-weight:800;letter-spacing:1px;text-transform:uppercase;font-size:13px;margin-bottom:6px}
.banner-text h3{color:#fff;margin:0 0 8px;font-size:24px}
.banner-text p{color:#d8efe5;margin:0 0 14px}
.banner-logo{flex:0 0 auto;opacity:.9}
.banner-logo img{height:46px}
.banner .btn{box-shadow:0 4px 14px rgba(0,0,0,.2)}

/* ---------- Tables ---------- */
.table-scroll{overflow-x:auto;margin:18px 0;border:1px solid var(--bw-line);border-radius:var(--bw-radius)}
table{width:100%;border-collapse:collapse;font-size:15px;min-width:520px}
caption{caption-side:top;text-align:left;font-weight:700;color:var(--bw-muted);padding:10px 12px;font-size:14px}
th,td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--bw-line)}
thead th{background:var(--bw-green-800);color:#fff;font-weight:700;border-bottom:0}
tbody tr:nth-child(even){background:var(--bw-bg-soft)}
tbody tr:hover{background:var(--bw-bg-soft2)}
td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
.win-amt{color:var(--bw-green-600);font-weight:700}

/* small note */
.note{background:var(--bw-bg-soft);border-left:3px solid var(--bw-yellow);padding:12px 16px;border-radius:0 6px 6px 0;margin:18px 0;font-size:15px;color:var(--bw-muted)}

/* fact box */
.factbox{border:1px solid var(--bw-line);border-radius:var(--bw-radius);padding:16px 18px;margin:20px 0;background:var(--bw-bg-soft)}
.factbox h3{margin:0 0 10px;font-size:16px}
.factbox dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:15px}
.factbox dt{color:var(--bw-muted)}
.factbox dd{margin:0;font-weight:600;color:var(--bw-ink)}

/* author box (E-E-A-T) */
.author-box{display:flex;gap:14px;align-items:flex-start;border:1px solid var(--bw-line);border-radius:var(--bw-radius);padding:16px;margin:30px 0;background:var(--bw-bg-soft)}
.author-box .ava{flex:0 0 56px;width:56px;height:56px;border-radius:50%;background:var(--bw-green-600);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px}
.author-box .ab-body{font-size:14px;color:var(--bw-muted)}
.author-box .ab-body b{display:block;color:var(--bw-ink);font-size:15px}
.author-box .ab-body .role{color:var(--bw-green-600);font-weight:600}

/* ---------- FAQ ---------- */
.faq{margin:18px 0}
.faq details{border-bottom:1px solid var(--bw-line);padding:4px 0}
.faq summary{cursor:pointer;font-weight:700;padding:12px 0;list-style:none;color:var(--bw-ink);font-size:17px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"+";color:var(--bw-green-600);font-weight:800;margin-right:10px}
.faq details[open] summary::before{content:"\2212"}
.faq details p{padding:0 0 14px}

/* breadcrumb */
.crumbs{font-size:13px;color:var(--bw-muted);margin:14px 0}
.crumbs a{color:var(--bw-muted)}
.crumbs span{margin:0 6px}

/* page meta line */
.page-meta{font-size:13px;color:var(--bw-muted);margin:0 0 18px;border-bottom:1px solid var(--bw-line);padding-bottom:12px}

/* urdu blocks */
.urdu{font-family:var(--bw-font-urdu);direction:rtl;text-align:right;font-size:19px;line-height:2.1;color:var(--bw-text)}
[dir="rtl"]{direction:rtl}

/* main content spacing */
main{padding:10px 0 40px}
section{margin-bottom:6px}

/* ---------- HERO (commercial, numbers, CTA) ---------- */
.hero{
  background:linear-gradient(120deg,var(--bw-green-800),var(--bw-green-600));
  color:#fff;border-radius:var(--bw-radius);padding:24px 26px;margin:8px 0 26px;
}
.hero h2{color:#fff;border:0;margin:0 0 6px;font-size:21px}
.hero .hero-sub{color:#d8efe5;margin:0 0 18px;font-size:16px}
.hero-stats{display:flex;flex-wrap:wrap;gap:14px;margin:0 0 20px}
.hero-stat{flex:1 1 130px;min-width:120px;background:rgba(255,255,255,.10);border-radius:8px;padding:14px 16px}
.hero-stat .num{display:block;font-size:26px;font-weight:800;color:var(--bw-yellow);line-height:1.1}
.hero-stat .lbl{display:block;font-size:13px;color:#d8efe5;margin-top:4px}
.hero .btn{box-shadow:0 4px 14px rgba(0,0,0,.22)}

/* banner image (generated, full width, in-flow) */
.banner-img{margin:26px 0;border-radius:var(--bw-radius);overflow:hidden;line-height:0;position:relative}
.banner-img img{width:100%;height:auto;display:block}
.banner-img a.btn{position:absolute;right:22px;bottom:18px;line-height:1.2}
@media(max-width:560px){.banner-img a.btn{position:static;display:block;margin:0;border-radius:0}}

/* ---------- Sidebar layout (home only) ---------- */
.layout-2col{display:flex;gap:26px;align-items:flex-start}
.layout-2col .col-main{flex:1 1 auto;min-width:0}
.sidebar{flex:0 0 268px;width:268px}
.sb-block{background:var(--bw-green-800);border-radius:8px;overflow:hidden;margin-bottom:12px}
.sb-head{color:#fff;font-weight:700;padding:11px 14px;display:flex;align-items:center;gap:9px;font-size:15px;border-bottom:1px solid rgba(255,255,255,.08)}
.sb-head .ic{color:var(--bw-yellow);width:18px;display:inline-flex;align-items:center;justify-content:center}
.sb-head .chev{margin-left:auto;color:#9fc7b6;display:inline-flex;align-items:center}
.sb-head .ic svg,.sb-list .ic svg,.chev svg{display:block}
.live-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#7CFFB0;margin-right:5px;vertical-align:middle}

/* live match card in sidebar */
.sb-match{background:#fff;padding:12px 14px}
.sb-match .league{font-size:12px;color:var(--bw-muted);font-weight:600}
.sb-match .phase{font-size:12px;color:var(--bw-yellow-600);margin:2px 0 8px}
.sb-team{display:flex;justify-content:space-between;font-size:14px;padding:3px 0}
.sb-team .score{font-weight:800;color:var(--bw-ink)}
.sb-odds{display:flex;gap:6px;margin-top:10px}
.sb-odds span{flex:1;text-align:center;background:var(--bw-bg-soft);border-radius:5px;padding:7px 4px;font-size:13px}
.sb-odds span b{display:block;color:var(--bw-ink);font-weight:800}
.sb-odds span.hot{background:var(--bw-green-600);color:#fff}
.sb-odds span.hot b{color:#fff}

/* live/sports tabs */
.sb-tabs{display:flex;background:var(--bw-green-900)}
.sb-tabs a{flex:1;text-align:center;color:#bcd4c9;padding:10px;font-weight:700;font-size:14px}
.sb-tabs a.active{background:var(--bw-green-600);color:#fff}
.sb-tabs a:hover{text-decoration:none}

/* sport list */
.sb-sportbar{background:var(--bw-bg-soft2);font-size:12px;color:var(--bw-muted);padding:7px 14px;font-weight:600;display:flex;justify-content:space-between}
.sb-list{background:#fff;list-style:none;margin:0;padding:0}
.sb-list li{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid var(--bw-line);font-size:14px}
.sb-list li:last-child{border-bottom:0}
.sb-list .ic{width:18px;color:var(--bw-green-600);display:inline-flex;align-items:center;justify-content:center}
.sb-list .cnt{margin-left:auto;color:var(--bw-muted);font-size:13px}
.sb-list .grp{background:var(--bw-bg-soft);color:var(--bw-muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;padding:7px 14px}
.sb-list .chev{color:#c2ccc7;margin-left:6px;display:inline-flex;align-items:center}

@media(max-width:980px){
  .layout-2col{flex-direction:column}
  .sidebar{width:100%;flex-basis:auto;order:2;margin-top:24px}
}
@media(max-width:560px){
  .hero-stat .num{font-size:22px}
  .hero{padding:20px 18px}
}

/* ---------- Footer ---------- */
.site-footer{background:var(--bw-green-900);color:#bcd4c9;font-size:14px;padding:36px 0 20px;margin-top:40px}
.footer-cols{display:flex;flex-wrap:wrap;gap:30px;justify-content:space-between}
.footer-col{flex:1 1 200px;min-width:180px}
.footer-col h3{color:#fff;font-size:15px;margin:0 0 12px}
.footer-col ul{list-style:none;padding:0;margin:0}
.footer-col li{margin-bottom:8px}
.footer-col a{color:#bcd4c9}
.footer-brand img{height:30px;margin-bottom:12px}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:26px;padding-top:18px;font-size:13px;color:#90b0a3;line-height:1.6}
.age-badge{display:inline-block;border:2px solid var(--bw-yellow);color:var(--bw-yellow);border-radius:50%;width:30px;height:30px;line-height:26px;text-align:center;font-weight:800;font-size:13px;margin-right:8px;vertical-align:middle}

/* ---------- Responsive ---------- */
@media(max-width:860px){
  .topbar{display:none}
  h1{font-size:25px}
  h2{font-size:21px}
  body{font-size:16px}
  .banner-inner{padding:22px 18px}
  .banner-logo{display:none}
  /* mobile tap targets: links/buttons comfortably tappable (>=44px) */
  .footer-col li{margin-bottom:11px}
  .footer-col a,.crumbs a{display:inline-block;padding:2px 0;min-height:24px}
  .lang-switch a{padding:7px 11px}
  .faq summary{padding:14px 0}
  .btn{padding:14px 28px}
  .wrap{padding:0 15px}
}
@media(max-width:480px){
  .btn-lg{width:100%;padding:15px 20px}
  .hero-stat{flex:1 1 100%}
  table{font-size:14px}
  th,td{padding:9px 10px}
}

/* render perf: skip off-screen layout/paint work until scrolled into view */
.site-footer{content-visibility:auto;contain-intrinsic-size:auto 600px}
.faq{content-visibility:auto;contain-intrinsic-size:auto 400px}

/* respect reduced-motion preference */
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
