/*
Theme Name: 7000bet Editorial Help Center
Theme URI: https://7000bet.beer/
Author: 7000bet Editorial Team
Description: A light editorial Bengali information theme for 7000bet.beer.
Version: 1.0.2
Text Domain: sevenbet
*/

:root {
  --bg: #f7f4ee;
  --surface: #fff;
  --surface-2: #f0ebe2;
  --accent: #a83e32;
  --accent-2: #d89a32;
  --link: #8e332a;
  --ink: #242321;
  --muted: #68645e;
  --border: #ddd5c8;
  --info-bg: #eef4f1;
  --info: #2f7764;
  --warn-bg: #fff4d9;
  --warn: #9b6416;
  --danger: #b43b3b;
  --focus: #2f7764;
  --shadow: 0 12px 32px rgba(58,45,30,.09);
  --radius: 12px;
  --max: 1160px;
  --reading: 780px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.76;
  overflow-wrap: anywhere;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: #68241e; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 68px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(58,45,30,.04);
}
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 28px; }
.site-branding { flex: 0 0 auto; display: flex; align-items: center; line-height: 0; }
.custom-logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.custom-logo { width: auto; height: 38px; max-width: 156px; object-fit: contain; }
.brand { color: var(--ink); font-size: 26px; line-height: 1; font-weight: 900; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 11px; border-radius: 8px; color: var(--ink); font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--surface-2); color: var(--accent); }
.main-nav .nav-cta { margin-left: 8px; padding-inline: 17px; background: var(--accent); color: #fff; }
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] { background: #873027; color: #fff; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); }
.menu-toggle svg { width: 24px; height: 24px; margin: auto; }

.hero { padding: 58px 0 48px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr); align-items: center; gap: 46px; }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-weight: 800; letter-spacing: .04em; }
h1, h2, h3 { margin-top: 0; line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin-bottom: 20px; font-size: clamp(2.25rem, 5vw, 3.55rem); }
h2 { margin-bottom: 20px; font-size: clamp(1.85rem, 3vw, 2.35rem); }
h2::before { content: ""; display: block; width: 46px; height: 5px; margin-bottom: 14px; border-radius: 4px; background: var(--accent); }
h3 { margin: 28px 0 10px; font-size: clamp(1.35rem, 2.3vw, 1.6rem); }
p { margin: 0 0 1.2em; }
.lead { font-size: 1.1em; color: #393733; }
.hero-subtitle { font-size: 1.08em; font-weight: 700; color: var(--muted); }
.hero-media { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); background: #fff; }
.hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 20px; border: 2px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover { background: #873027; border-color: #873027; color: #fff; }
.button.secondary { background: #fff; color: var(--accent); }
.button.secondary:hover { background: var(--surface-2); }

.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.article-header { padding: 54px 0 34px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.article-header .reading { display: grid; gap: 22px; }
.article-header h1 { max-width: 740px; margin-bottom: 0; }
.article-header .lead { margin-bottom: 0; }
.article-body { padding: 58px 0 72px; }
.article-panel { padding: clamp(22px, 4vw, 52px); border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.article-panel section + section { margin-top: 64px; padding-top: 62px; border-top: 1px solid var(--border); }
.content-image { margin: 28px 0 34px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.content-image img { width: 100%; }
.caption { padding: 10px 14px; color: var(--muted); font-size: .9rem; }

.prose-list { padding-left: 1.3em; }
.prose-list li { margin-bottom: .58em; padding-left: .25em; }
.check-list { list-style: none; padding: 0; margin: 22px 0; }
.check-list li { position: relative; margin: 0 0 12px; padding: 13px 14px 13px 46px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.check-list li::before { content: "✓"; position: absolute; left: 15px; top: 11px; color: var(--info); font-weight: 900; }
.note { margin: 24px 0; padding: 18px 20px; border-left: 5px solid var(--info); border-radius: 8px; background: var(--info-bg); }
.note.warning { border-color: var(--warn); background: var(--warn-bg); }
.note.danger { border-color: var(--danger); background: #fff0ef; }
.note > :last-child { margin-bottom: 0; }

.table-wrap { margin: 24px 0 30px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-2); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.steps { counter-reset: step; margin: 26px 0; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 70px; margin-left: 21px; padding: 0 0 28px 50px; border-left: 2px solid var(--border); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: -22px; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps strong { display: block; font-size: 1.08em; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.path-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.path-card h3 { margin-top: 0; color: var(--accent); }
.path-card > :last-child { margin-bottom: 0; }
.link-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.related { margin-top: 54px; padding: 28px; border-radius: var(--radius); background: var(--surface-2); }
.related h2 { font-size: 1.65rem; }
.related h2::before { display: none; }

.faq { margin-top: 24px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.faq details + details { margin-top: 12px; }
.faq details[open] { border-left: 5px solid var(--accent); }
.faq summary { display: flex; align-items: center; min-height: 52px; padding: 12px 48px 12px 16px; cursor: pointer; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 17px; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; }
.faq-answer > :last-child { margin-bottom: 0; }
.updated { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; }

.correction-form { margin-top: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 800; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #a9a198; border-radius: 8px; background: #fff; color: var(--ink); }
.field textarea { min-height: 160px; resize: vertical; }
.field-hp { position: absolute; left: -10000px; }
.form-status { padding: 14px 16px; border-radius: 8px; background: var(--info-bg); color: var(--info); font-weight: 700; }
.form-status.error { background: #fff0ef; color: var(--danger); }

.site-footer { padding: 54px 0 28px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 46px; }
.site-footer .brand { color: #fff; }
.footer-title { margin: 0 0 12px; font-weight: 900; color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: #fff; }
.footer-copy { color: #ded9d2; }
.footer-note { margin-top: 30px; padding-top: 24px; border-top: 1px solid #57534d; color: #ded9d2; }
.footer-note p { margin-bottom: .55em; }
.site-footer a:hover { color: #f5c465; }
.copyright { margin-top: 25px; color: #aaa49c; font-size: .9rem; }

.not-found { min-height: 58vh; display: grid; align-items: center; padding-block: 64px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 10px 20px 22px; border-bottom: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .main-nav a { width: 100%; padding: 9px 12px; }
  .main-nav .nav-cta { margin: 7px 0 0; justify-content: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-media { max-width: 760px; }
}

@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .site-header, .header-inner { min-height: 58px; }
  .custom-logo { height: 32px; max-width: 131px; }
  .main-nav { top: 58px; }
  .hero { padding: 42px 0 38px; }
  .hero-grid { gap: 28px; }
  .hero-media img { aspect-ratio: 4/3; object-position: 63% center; }
  .section { padding: 44px 0; }
  .article-header { padding: 40px 0 30px; }
  .article-body { padding: 34px 0 48px; }
  .article-panel { padding: 22px 18px; }
  .article-panel section + section { margin-top: 44px; padding-top: 42px; }
  .split, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 26px; }
  .button { width: 100%; }
  table.responsive { min-width: 0; }
  table.responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.responsive, table.responsive tbody, table.responsive tr, table.responsive td { display: block; width: 100%; }
  table.responsive tr { padding: 10px 14px; border-bottom: 1px solid var(--border); }
  table.responsive tr:last-child { border-bottom: 0; }
  table.responsive td { display: grid; grid-template-columns: minmax(110px, .8fr) 1.5fr; gap: 12px; padding: 8px 0; border: 0; }
  table.responsive td::before { content: attr(data-label); font-weight: 800; color: var(--muted); }
}

@media (max-width: 390px) {
  .container { width: min(calc(100% - 32px), var(--max)); }
  .brand { font-size: 23px; }
  .hero-media img { aspect-ratio: 4/5; object-position: 69% center; }
  h1 { font-size: 2.12rem; }
  h2 { font-size: 1.75rem; }
  .article-panel { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !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, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .48), 0 4px 12px rgba(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 .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}

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

.site-bottom-cta__login:hover {
  color: #fff !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, .42), inset 0 1px 0 rgba(255, 255, 255, .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, .56), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.site-bottom-cta__button:active { transform: translateY(0) scale(.97); }
.site-bottom-cta__button:focus-visible { outline: 3px solid #fff; 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; }
}
