/*
Theme Name: 3666bet বাংলা গাইড
Theme URI: https://3666bet.pw/
Author: 3666bet তথ্যসাইট
Description: Bangladesh-focused independent brand information theme using the locked Dark Lime Help Portal visual preset.
Version: 1.0.6
Text Domain: bet-guide
*/

:root {
  --bg: #07110e;
  --bg-soft: #0d1b17;
  --card: #12241e;
  --card-hover: #183027;
  --accent: #b8f34a;
  --accent-2: #3dd6c6;
  --text: #f3f8f5;
  --muted: #afc2b8;
  --border: #29453a;
  --warning: #f0b44d;
  --error: #e16f73;
  --focus: #d3ff7c;
  --content: 1200px;
  --reading: 800px;
  --radius: 14px;
  --button-radius: 10px;
  --shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Nirmala UI", Vrinda, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover { color: var(--accent); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button, input, textarea { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 700;
}

.site-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  min-height: 66px;
  background: rgba(7, 17, 14, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  flex: 0 0 auto;
  width: 174px;
  line-height: 0;
  text-decoration: none;
}

.site-logo img {
  width: 100%;
  height: auto;
}

.site-nav {
  min-width: 0;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  background: var(--card-hover);
  color: var(--text);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--button-radius);
  background: var(--accent);
  color: var(--bg);
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
  background: #c8ff62;
  color: var(--bg);
}

.button-secondary {
  background: transparent;
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.button-secondary:hover {
  background: rgba(61, 214, 198, .1);
  color: var(--text);
}

.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: .8rem;
  font-weight: 700;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  content: "";
}

.menu-toggle-lines { position: relative; margin-bottom: 5px; }
.menu-toggle-lines::before { position: absolute; top: -6px; }
.menu-toggle-lines::after { position: absolute; top: 6px; }

main { min-height: 60vh; }

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 80% 18%, rgba(61, 214, 198, .10), transparent 34%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(184,243,74,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(184,243,74,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
  padding-block: 72px;
}

.hero-copy, .hero-media { min-width: 0; }

.hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(2.45rem, 5vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.75;
}

.hero-note { margin: 0 0 28px; color: var(--muted); }

.hero-media img,
.section-figure img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-media img { aspect-ratio: 16 / 9; object-fit: cover; }

.content-section {
  padding-block: 72px;
  border-bottom: 1px solid rgba(41, 69, 58, .72);
}

.content-section:last-child { border-bottom: 0; }

.reading-width {
  width: min(100%, var(--reading));
  margin-inline: auto;
}

.wide-width {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.article-header {
  padding-block: 70px 40px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}

.article-header-inner { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; }

.article-header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.article-content { padding-block: 24px 72px; }

.article-content > * {
  width: min(calc(100% - 40px), var(--reading));
  margin-inline: auto;
}

.article-content > .content-section,
.article-content > .wide-width,
.article-content > .section-figure,
.article-content > .table-wrap {
  width: min(calc(100% - 40px), 1040px);
}

h2, h3 { scroll-margin-top: 92px; }

h2 {
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.22;
  letter-spacing: -.035em;
}

h3 {
  margin: 34px 0 10px;
  color: var(--accent);
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  line-height: 1.35;
}

p { margin-top: 0; margin-bottom: 1.25em; }

.section-intro { color: var(--muted); font-size: 1.08rem; }

.reviewed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.reviewed::before {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  content: "";
}

.section-figure { margin-block: 32px 40px; }
.section-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }

.table-wrap {
  margin-block: 28px 38px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th, td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th { background: rgba(184, 243, 74, .08); color: var(--text); font-weight: 750; }
tr:last-child td { border-bottom: 0; }

.step-list {
  margin: 28px 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.step-list li {
  position: relative;
  min-width: 0;
  margin: 0 0 14px;
  padding: 20px 22px 20px 76px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  counter-increment: steps;
}

.step-list li::before {
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  content: counter(steps);
  font-weight: 800;
}

.step-list strong { color: var(--text); }

.notice {
  margin-block: 28px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--card);
}

.notice-warning { border-left-color: var(--warning); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.faq-list { display: grid; gap: 12px; margin-top: 28px; }

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.faq-list summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--accent); content: "+"; font-size: 1.35rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; color: var(--muted); }
.faq-answer p:last-child { margin-bottom: 0; }

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-form label { display: grid; gap: 7px; color: var(--text); font-weight: 650; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #0a1713;
  color: var(--text);
}

.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .button { justify-self: start; cursor: pointer; }
.form-status { padding: 14px 16px; border-radius: 10px; background: rgba(61,214,198,.12); color: var(--text); }
.form-status.error { background: rgba(225,111,115,.12); }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer {
  padding-block: 46px 28px;
  border-top: 1px solid var(--border);
  background: #050d0b;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr) minmax(180px, .6fr);
  gap: 40px;
}

.footer-title { margin: 0 0 12px; font-size: 1.35rem; }
.footer-copy, .footer-note { color: var(--muted); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-meta { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .9rem; }

.not-found { padding-block: 100px; text-align: center; }
.not-found p { color: var(--muted); }

@media (max-width: 1023px) {
  .header-cta { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-block: 56px; }
  .hero-copy { max-width: 800px; }
  .hero-media { max-width: 840px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-shell { width: min(calc(100% - 32px), var(--content)); }
  .site-header, .header-inner { min-height: 58px; }
  .js .menu-toggle { display: block; }
  .header-inner { position: relative; flex-wrap: wrap; gap: 0; }
  .site-logo { width: 158px; min-width: 0; }
  .site-nav { width: 100%; margin: 0; padding: 10px 0 14px; }
  .site-nav ul { display: grid; align-items: stretch; gap: 4px; }
  .site-nav a { min-height: 48px; padding-inline: 14px; }
  .site-nav .menu-item:last-child { margin-bottom: 4px; }
  .site-nav .mobile-menu-cta { display: flex; margin-top: 8px; }
  .hero-grid { padding-block: 44px; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3.8rem); }
  .content-section { padding-block: 52px; }
  .article-header { padding-block: 48px 32px; }
  .article-content { padding-block: 14px 54px; }
  .article-content > *, .article-content > .content-section, .article-content > .wide-width, .article-content > .section-figure, .article-content > .table-wrap { width: min(calc(100% - 32px), 1040px); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (min-width: 821px) {
  .site-nav .mobile-menu-cta { display: none; }
}

@media (max-width: 480px) {
  .site-shell { width: min(calc(100% - 32px), var(--content)); }
  .hero-copy .button, .cta-row .button { width: 100%; }
  .step-list li { padding: 70px 18px 18px; }
  .step-list li::before { top: 16px; left: 18px; }
  .contact-form { padding: 18px; }
  th, td { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.site-bottom-cta {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px;
  background: rgba(9, 13, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48), 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-bottom-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.site-bottom-cta__login {
  color: #ffffff !important;
  background: #20283a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.site-bottom-cta__login:hover {
  color: #ffffff !important;
  background: #2d3850;
  transform: translateY(-2px);
}

.site-bottom-cta__register {
  color: #07130c !important;
  background: linear-gradient(135deg, #46f28c 0%, #14c968 100%);
  box-shadow: 0 8px 22px rgba(20, 201, 104, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site-bottom-cta__register:hover {
  color: #07130c !important;
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(20, 201, 104, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.site-bottom-cta__button:active {
  transform: translateY(0) scale(0.97);
}

.site-bottom-cta__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .site-bottom-cta {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    gap: 7px;
    padding: 7px;
  }

  .site-bottom-cta__button {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
  }

  .site-bottom-cta__register {
    flex-grow: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-bottom-cta__button {
    transition: none;
  }
}
