/* ============================================
   betjee affiliate - style.css
   Bangladesh market | bn-BD
   ============================================ */

/* --- Reset & Base --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"Noto Sans Bengali",sans-serif;
  font-size:17px;line-height:1.75;color:#1a1a2e;background:#f8f9fc;
  overflow-x:hidden;min-height:100vh;display:flex;flex-direction:column;
}
img{max-width:100%;height:auto;display:block}
a{color:#0d6efd;text-decoration:none;transition:color .2s}
a:hover{color:#0a58ca}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{line-height:1.25;font-weight:700;color:#0f1b3d}
h1{font-size:clamp(30px,4vw,48px);margin:0 0 20px}
h2{font-size:clamp(24px,3vw,38px);margin:0 0 16px}
h3{font-size:clamp(20px,2.2vw,28px);margin:24px 0 12px}
p{margin:0 0 16px}
main{flex:1}

/* --- Utility --- */
.container{max-width:1180px;margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.text-center{text-align:center}
.mt-0{margin-top:0}.mb-0{margin-bottom:0}

/* ============================================
   HEADER - Stable single-line layout
   ============================================ */
.site-header{
  position:sticky;top:0;z-index:1000;width:100%;
  background:linear-gradient(135deg,#0f1b3d 0%,#1a2d5e 100%);
  box-shadow:0 2px 12px rgba(0,0,0,.18);
}
.header-inner{
  max-width:1180px;margin:0 auto;min-height:72px;padding:0 20px;
  display:grid;grid-template-columns:168px minmax(0,1fr) auto;
  align-items:center;gap:18px;
}
.brand-wrap{
  width:168px;min-width:168px;max-width:168px;height:56px;
  display:flex;align-items:center;gap:10px;overflow:hidden;text-decoration:none;
}
.brand-mark{
  width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;
  background:linear-gradient(135deg,#f7c948,#e8a020);border-radius:10px;
}
.brand-mark svg{width:28px;height:28px}
.brand-text{min-width:0;line-height:1.05}
.brand-text strong{
  display:block;max-width:105px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:16px;color:#f7c948;letter-spacing:.5px;
}
.brand-text span{
  display:block;max-width:105px;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;font-size:11px;color:rgba(255,255,255,.7);
}

/* --- Primary Nav --- */
.primary-nav{
  min-width:0;display:flex;align-items:center;justify-content:center;
  gap:clamp(8px,1.2vw,20px);overflow:hidden;flex-wrap:nowrap;
}
.primary-nav a{
  white-space:nowrap;flex:0 1 auto;max-width:128px;overflow:hidden;
  text-overflow:ellipsis;line-height:1;padding:10px 8px;
  color:rgba(255,255,255,.88);font-size:15px;font-weight:500;
  border-bottom:2px solid transparent;transition:all .2s;text-decoration:none;
}
.primary-nav a:hover,.primary-nav a.active{
  color:#f7c948;border-bottom-color:#f7c948;
}

/* --- Header Actions --- */
.header-actions{
  flex-shrink:0;display:flex;align-items:center;gap:10px;white-space:nowrap;
}
.btn{
  min-height:42px;padding:0 18px;display:inline-flex;align-items:center;
  justify-content:center;white-space:nowrap;border-radius:8px;font-weight:600;
  font-size:14px;text-decoration:none;transition:all .2s;border:none;cursor:pointer;
}
.btn-register{
  background:linear-gradient(135deg,#f7c948,#e8a020);color:#0f1b3d;
  box-shadow:0 2px 8px rgba(247,201,72,.35);
}
.btn-register:hover{background:linear-gradient(135deg,#ffe066,#f7c948);color:#0f1b3d;transform:translateY(-1px)}
.btn-login{
  background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.45);
}
.btn-login:hover{border-color:#f7c948;color:#f7c948;transform:translateY(-1px)}

/* --- Nav Toggle (mobile) --- */
.nav-toggle{
  display:none;width:42px;height:42px;background:transparent;border:1.5px solid rgba(255,255,255,.35);
  border-radius:8px;cursor:pointer;align-items:center;justify-content:center;color:#fff;font-size:22px;
}

/* --- More Menu --- */
.nav-more{position:relative;flex:0 0 auto}
.more-toggle{
  min-height:38px;padding:0 12px;border:0;border-radius:999px;cursor:pointer;
  white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.1);color:rgba(255,255,255,.88);font-size:14px;font-weight:500;
  transition:all .2s;
}
.more-toggle:hover{background:rgba(255,255,255,.2);color:#f7c948}
.more-menu{
  position:absolute;top:calc(100% + 12px);right:0;min-width:210px;padding:10px;
  border-radius:16px;z-index:1200;background:#1a2d5e;box-shadow:0 8px 32px rgba(0,0,0,.35);
  border:1px solid rgba(255,255,255,.1);
}
.more-menu[hidden]{display:none !important}
.nav-more.is-open .more-menu{display:grid;gap:4px}
.more-menu a{
  display:block;width:100%;max-width:none;padding:11px 12px;white-space:nowrap;
  text-overflow:ellipsis;overflow:hidden;color:rgba(255,255,255,.88);font-size:14px;
  border-radius:8px;transition:all .2s;text-decoration:none;
}
.more-menu a:hover,.more-menu a.active{background:rgba(247,201,72,.15);color:#f7c948}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero-section{
  position:relative;overflow:hidden;
  background:linear-gradient(160deg,#0f1b3d 0%,#162550 50%,#1a2d5e 100%);
  color:#fff;padding:72px 0 80px;
}
.hero-inner{
  display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;
}
.hero-content{max-width:560px}
.hero-content h1{color:#fff;margin-bottom:18px}
.hero-content p{color:rgba(255,255,255,.82);font-size:18px;line-height:1.7;margin-bottom:28px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero-cta .btn{min-height:50px;padding:0 28px;font-size:16px}
.hero-image{text-align:center}
.hero-image img{border-radius:18px;max-height:420px;margin:0 auto;box-shadow:0 12px 40px rgba(0,0,0,.3)}

/* Banner image style */
.banner-section{position:relative;overflow:hidden}
.banner-section img{width:100%;height:auto;display:block;max-height:520px;object-fit:cover}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section{padding:72px 0}
.content-section:nth-child(even){background:#fff}
.content-section:nth-child(odd){background:#f8f9fc}

.section-header{text-align:center;max-width:720px;margin:0 auto 48px}
.section-header p{color:#555;font-size:17px}

.content-grid{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr);
  gap:36px;align-items:start;
}
.content-grid.reverse{grid-template-columns:minmax(280px,.95fr) minmax(0,1.05fr)}

/* --- Prose --- */
.prose{max-width:820px}
.prose p{font-size:17px;line-height:1.9;margin:0 0 18px;color:#2d3748}
.prose h2{font-size:clamp(24px,3vw,38px);line-height:1.25;margin:36px 0 18px;color:#0f1b3d}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:clamp(20px,2vw,28px);line-height:1.35;margin:28px 0 12px;color:#1a2d5e}
.prose ul,.prose ol{margin:0 0 18px;padding-left:24px}
.prose li{margin-bottom:8px;line-height:1.7}
.prose ul li{list-style:disc}
.prose ol li{list-style:decimal}
.prose img{border-radius:14px;margin:24px 0;box-shadow:0 4px 16px rgba(0,0,0,.1)}

/* ============================================
   CARDS
   ============================================ */
.card-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;
}
.card{
  background:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.06);transition:all .3s;border:1px solid #eef1f6;
}
.card:hover{transform:translateY(-4px);box-shadow:0 8px 28px rgba(0,0,0,.1)}
.card-img{height:200px;overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.card:hover .card-img img{transform:scale(1.05)}
.card-body{padding:20px}
.card-body h3{font-size:20px;margin:0 0 10px;color:#0f1b3d}
.card-body p{font-size:15px;color:#555;margin:0 0 14px;line-height:1.65}
.card-link{
  display:inline-flex;align-items:center;gap:6px;
  color:#0d6efd;font-weight:600;font-size:14px;
}
.card-link:hover{color:#f7c948}

/* --- Feature Cards --- */
.feature-card{
  padding:32px;border-radius:16px;background:#fff;
  box-shadow:0 2px 12px rgba(0,0,0,.06);border:1px solid #eef1f6;
  transition:all .3s;
}
.feature-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.1)}
.feature-icon{
  width:56px;height:56px;border-radius:14px;display:grid;place-items:center;
  margin-bottom:18px;font-size:26px;
  background:linear-gradient(135deg,rgba(247,201,72,.15),rgba(247,201,72,.05));
  color:#e8a020;
}
.feature-card h3{font-size:20px;margin:0 0 10px}
.feature-card p{font-size:15px;color:#555;line-height:1.65;margin:0}

/* ============================================
   STEPS / TIMELINE
   ============================================ */
.steps-list{counter-reset:step-counter}
.step-item{
  display:grid;grid-template-columns:60px 1fr;gap:20px;
  padding:24px 0;border-bottom:1px solid #eef1f6;position:relative;
}
.step-item:last-child{border-bottom:none}
.step-number{
  counter-increment:step-counter;width:52px;height:52px;border-radius:14px;
  display:grid;place-items:center;font-size:22px;font-weight:700;
  background:linear-gradient(135deg,#0f1b3d,#1a2d5e);color:#f7c948;
}
.step-number::before{content:counter(step-counter)}
.step-content h3{font-size:20px;margin:0 0 8px}
.step-content p{font-size:16px;color:#555;margin:0;line-height:1.7}

/* ============================================
   WARNING / INFO PANELS
   ============================================ */
.warning-panel{
  background:linear-gradient(135deg,#fff8e1,#fff3cd);border-left:4px solid #f7c948;
  border-radius:0 12px 12px 0;padding:24px 28px;margin:24px 0;
}
.warning-panel h3{color:#856404;font-size:19px;margin:0 0 10px}
.warning-panel p,.warning-panel li{color:#6b5300;font-size:16px}

.info-panel{
  background:linear-gradient(135deg,#e8f4fd,#d1ecf8);border-left:4px solid #0d6efd;
  border-radius:0 12px 12px 0;padding:24px 28px;margin:24px 0;
}
.info-panel h3{color:#004085;font-size:19px;margin:0 0 10px}
.info-panel p,.info-panel li{color:#003060;font-size:16px}

/* ============================================
   FAQ
   ============================================ */
.faq-section{padding:72px 0;background:#fff}
.faq-list{max-width:820px;margin:0 auto}
.faq-item{border-bottom:1px solid #eef1f6;padding:0}
.faq-question{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:20px 0;cursor:pointer;font-size:17px;font-weight:600;color:#0f1b3d;
  background:none;border:none;width:100%;text-align:left;
  font-family:inherit;line-height:1.5;
}
.faq-question::after{
  content:'+';font-size:24px;color:#999;transition:transform .3s;flex-shrink:0;
}
.faq-item.is-open .faq-question::after{content:'\2212'}
.faq-answer{
  max-height:0;overflow:hidden;transition:max-height .35s ease;
}
.faq-item.is-open .faq-answer{max-height:600px}
.faq-answer-inner{padding:0 0 20px;color:#555;font-size:16px;line-height:1.8}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section{
  padding:64px 0;text-align:center;
  background:linear-gradient(135deg,#0f1b3d,#1a2d5e);color:#fff;
}
.cta-section h2{color:#fff;margin-bottom:16px}
.cta-section p{color:rgba(255,255,255,.8);max-width:600px;margin:0 auto 28px;font-size:18px}
.cta-buttons{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* --- Alternate CTA --- */
.cta-banner{
  padding:48px;border-radius:18px;
  background:linear-gradient(135deg,#162550,#0f1b3d);color:#fff;
  display:grid;grid-template-columns:1fr auto;gap:32px;align-items:center;
  margin:48px 0;
}
.cta-banner h2{color:#fff;margin-bottom:10px}
.cta-banner p{color:rgba(255,255,255,.8);margin:0}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb{padding:14px 0;font-size:14px;color:#888}
.breadcrumb a{color:#0d6efd}
.breadcrumb span{margin:0 6px;color:#ccc}

/* ============================================
   ARTICLE / BLOG
   ============================================ */
.article-header{padding:48px 0 24px}
.article-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:14px;color:#888;margin-bottom:20px}
.article-cover{border-radius:18px;overflow:hidden;margin-bottom:32px;max-height:480px}
.article-cover img{width:100%;height:100%;object-fit:cover}

.article-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:28px}

.related-articles{padding:48px 0;border-top:1px solid #eef1f6;margin-top:48px}
.related-articles h2{margin-bottom:28px}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table{width:100%;border-collapse:collapse;margin:24px 0;border-radius:12px;overflow:hidden}
.comparison-table th{
  background:#0f1b3d;color:#fff;padding:14px 18px;text-align:left;font-size:15px;font-weight:600;
}
.comparison-table td{
  padding:14px 18px;border-bottom:1px solid #eef1f6;font-size:15px;color:#2d3748;
}
.comparison-table tr:nth-child(even) td{background:#f8f9fc}
.comparison-table tr:hover td{background:#eef4ff}

/* ============================================
   FOOTER
   ============================================ */
.site-footer{
  background:#0a1128;color:rgba(255,255,255,.75);padding:64px 0 0;
}
.footer-grid{
  display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:40px;
  padding-bottom:48px;border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-brand p{font-size:15px;line-height:1.7;margin:16px 0 0;color:rgba(255,255,255,.6)}
.footer-col h4{color:#f7c948;font-size:16px;margin-bottom:18px;font-weight:600}
.footer-col ul{display:flex;flex-direction:column;gap:10px}
.footer-col a{color:rgba(255,255,255,.7);font-size:14px;transition:color .2s;text-decoration:none}
.footer-col a:hover{color:#f7c948}
.footer-contact{display:flex;flex-direction:column;gap:10px}
.footer-contact li{font-size:14px;color:rgba(255,255,255,.65);display:flex;align-items:flex-start;gap:8px}
.footer-bottom{
  padding:24px 0;text-align:center;font-size:13px;color:rgba(255,255,255,.45);
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* Slot page - grid showcase */
.game-showcase{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;
}
.game-tile{
  border-radius:14px;overflow:hidden;position:relative;
  box-shadow:0 2px 12px rgba(0,0,0,.08);transition:all .3s;
}
.game-tile:hover{transform:translateY(-3px);box-shadow:0 6px 20px rgba(0,0,0,.15)}
.game-tile img{width:100%;aspect-ratio:4/3;object-fit:cover}
.game-tile-label{
  position:absolute;bottom:0;left:0;right:0;padding:12px;
  background:linear-gradient(transparent,rgba(0,0,0,.7));color:#fff;font-size:14px;font-weight:600;
}

/* Sportsbook page - odds layout */
.odds-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}
.odds-card{
  background:#fff;border-radius:14px;padding:24px;
  border:1px solid #eef1f6;transition:all .3s;
}
.odds-card:hover{border-color:#0d6efd;box-shadow:0 4px 16px rgba(13,110,253,.1)}

/* About page - timeline */
.timeline{position:relative;padding-left:40px}
.timeline::before{
  content:'';position:absolute;left:15px;top:0;bottom:0;width:2px;
  background:linear-gradient(to bottom,#f7c948,#0d6efd);
}
.timeline-item{position:relative;margin-bottom:36px}
.timeline-item::before{
  content:'';position:absolute;left:-33px;top:6px;width:14px;height:14px;
  border-radius:50%;background:#f7c948;border:3px solid #fff;box-shadow:0 0 0 2px #f7c948;
}

/* Policy page */
.policy-content{max-width:820px;margin:0 auto}
.policy-content h2{margin-top:48px;padding-top:24px;border-top:1px solid #eef1f6}
.policy-content h2:first-child{margin-top:0;padding-top:0;border-top:none}

/* 404 page */
.error-page{
  display:flex;align-items:center;justify-content:center;min-height:60vh;
  text-align:center;padding:48px 20px;
}
.error-page h1{font-size:clamp(60px,10vw,120px);color:#eef1f6;margin-bottom:0}
.error-page h2{margin-top:12px}

/* Register/Login pages */
.auth-section{padding:72px 0;text-align:center}
.auth-card{
  max-width:520px;margin:0 auto;background:#fff;border-radius:18px;
  padding:48px 36px;box-shadow:0 4px 24px rgba(0,0,0,.08);
}
.auth-card h1{font-size:28px}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero-inner{grid-template-columns:1fr;text-align:center}
  .hero-content{max-width:100%;margin:0 auto}
  .hero-image{margin-top:24px}
  .content-grid,.content-grid.reverse{grid-template-columns:1fr}
  .cta-banner{grid-template-columns:1fr;text-align:center}
}

/* ============================================
   RESPONSIVE - Mobile (<=900px)
   ============================================ */
@media(max-width:900px){
  .header-inner{
    min-height:68px;grid-template-columns:140px 1fr auto;gap:10px;
  }
  .brand-wrap{width:140px;min-width:140px;max-width:140px;height:48px}
  .brand-mark{width:38px;height:38px;flex-basis:38px}
  .brand-text strong,.brand-text span{max-width:86px}

  .primary-nav{
    position:fixed;left:12px;right:12px;top:76px;
    display:none;flex-direction:column;align-items:stretch;gap:0;
    padding:14px;border-radius:18px;max-height:calc(100vh - 96px);overflow-y:auto;
    background:#1a2d5e;box-shadow:0 12px 40px rgba(0,0,0,.4);
    border:1px solid rgba(255,255,255,.1);z-index:1100;
  }
  .primary-nav.is-open{display:flex}
  .primary-nav a{
    max-width:none;width:100%;padding:14px 12px;text-overflow:initial;
    border-bottom:1px solid rgba(255,255,255,.06);border-left:none;
  }
  .primary-nav a:last-child{border-bottom:none}

  .header-actions{justify-content:flex-end;gap:6px}
  .header-actions .btn{min-height:38px;padding:0 12px;font-size:14px}
  .nav-toggle{display:inline-flex}
  .nav-more{display:none !important}

  .hero-section{padding:48px 0 56px}
  .content-section{padding:48px 0}
  .prose p{font-size:16px;line-height:1.85}

  .card-grid{grid-template-columns:1fr}
  .game-showcase{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .article-list{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-grid{gap:28px}
  .comparison-table{font-size:14px}
  .comparison-table th,.comparison-table td{padding:10px 12px}
}

/* ============================================
   RESPONSIVE - Small Mobile
   ============================================ */
@media(max-width:480px){
  .header-inner{padding:0 14px}
  .hero-cta{flex-direction:column;align-items:stretch}
  .hero-cta .btn{width:100%;justify-content:center}
  .cta-buttons{flex-direction:column;align-items:center}
  .cta-buttons .btn{width:100%;max-width:280px}
  .auth-card{padding:32px 20px}
  .step-item{grid-template-columns:48px 1fr;gap:14px}
  .step-number{width:44px;height:44px;font-size:18px}
}

/* ============================================
   PRINT
   ============================================ */
@media print{
  .site-header,.site-footer,.cta-section,.nav-toggle,.header-actions{display:none}
  body{font-size:12pt;color:#000;background:#fff}
}
