/*
Theme Name: bd89 বাংলা গাইড
Theme URI: https://bd89.uno/
Author: bd89.uno সম্পাদকীয় দল
Description: bd89.uno-এর স্বাধীন বাংলা ব্র্যান্ড, গেম, মোবাইল ও অ্যাকাউন্ট তথ্যসাইটের জন্য নির্মিত থিম।
Version: 1.0.3
Text Domain: bd89-guide
*/

:root {
  --bg: #F4F8F6;
  --surface: #FFFFFF;
  --hero: #0F7A5A;
  --hero-dark: #0A5C45;
  --accent: #18A879;
  --accent-soft: #7BC9A9;
  --gold: #F1C75B;
  --text: #102A22;
  --muted: #60736B;
  --border: #D8E8E0;
  --info: #EAF6F1;
  --warning: #FFF5D9;
  --warning-text: #946316;
  --danger: #B84B4B;
  --focus: #064E3B;
  --max: 1160px;
  --reading: 780px;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(17,84,63,.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--hero-dark); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.site-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 9999;
  transform: translateY(-160%); padding: 10px 16px; border-radius: 8px;
  background: #fff; color: var(--focus); font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: linear-gradient(135deg, var(--hero-dark), var(--hero)); color: #fff; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-brand { display: inline-flex; width: 92px; min-height: 36px; align-items: center; color: #fff; text-decoration: none; }
.site-brand-logo { width: 92px; height: auto; max-height: 36px; object-fit: contain; }
.site-brand:hover { color: #fff; opacity: .9; }
.menu-toggle {
  display: none; min-width: 48px; min-height: 48px; padding: 10px;
  align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.55);
  border-radius: 12px; background: transparent; color: #fff; font: inherit; font-weight: 700;
}
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after {
  display: block; width: 23px; height: 2px; background: currentColor; border-radius: 2px; content: "";
}
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before { position: absolute; top: -7px; }
.menu-toggle-lines::after { position: absolute; top: 7px; }
.site-nav ul { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { background: rgba(255,255,255,.15); color: #fff; }

.page-title-area {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(145deg, var(--hero), var(--hero-dark)); color: #fff;
  padding: 62px 0 66px;
}
.page-title-area::after {
  position: absolute; content: ""; z-index: -1; width: 420px; height: 420px;
  right: -130px; bottom: -285px; border: 70px solid rgba(255,255,255,.06); border-radius: 50%;
}
.title-reading { max-width: 900px; }
.eyebrow { margin: 0 0 12px; color: #D7F5E9; font-size: .92rem; font-weight: 800; letter-spacing: .04em; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.018em; text-wrap: balance; }
h1 { max-width: 880px; margin: 0 0 18px; font-size: clamp(2.15rem, 5vw, 4.25rem); }
.lead { max-width: 850px; margin: 0; color: #F0FFF9; font-size: clamp(1.05rem, 2vw, 1.26rem); line-height: 1.75; }
.review-line { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; color: #D7F5E9; font-size: .92rem; }
.review-line a { color: #FFFFFF; font-weight: 700; }
.review-line a:hover { color: #D7F5E9; }

.site-main { min-width: 0; }
.content-wrap { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto; padding: 66px 0 76px; }
.content-wide { width: min(calc(100% - 40px), var(--max)); }
.article-section { margin-top: 70px; scroll-margin-top: 88px; }
.article-section:first-child { margin-top: 0; }
.article-section h2 { margin: 0 0 22px; font-size: clamp(1.65rem, 3vw, 2.45rem); color: var(--hero-dark); }
.article-section h3 { margin: 34px 0 12px; font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.2em; }
.section-intro { color: var(--muted); font-size: 1.08rem; }
.in-content-link { font-weight: 800; }
.inline-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  margin-top: 8px; padding: 11px 18px; border-radius: 12px; background: var(--hero); color: #fff;
  text-decoration: none; font-weight: 800; box-shadow: 0 8px 20px rgba(15,122,90,.18);
}
.inline-cta:hover { background: var(--hero-dark); color: #fff; }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--info); }
.notice.warning { border-color: var(--gold); background: var(--warning); color: var(--warning-text); }
.editor-note { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }

.bd89-figure { margin: 40px 0; }
.bd89-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--info); }
.bd89-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.table-scroll { max-width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--info); color: var(--hero-dark); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.step-list { list-style: none; margin: 28px 0; padding: 0; counter-reset: steps; }
.step-list li { position: relative; min-height: 54px; margin: 0 0 18px; padding: 4px 0 4px 64px; counter-increment: steps; }
.step-list li::before {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--info); color: var(--hero-dark); font-weight: 900; content: counter(steps, bengali);
}
.step-list strong { display: block; color: var(--hero-dark); }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; }
.link-row a { font-weight: 800; }

.site-footer { background: var(--text); color: #D8E8E0; padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
.footer-brand { color: #fff; font-size: 1.55rem; font-weight: 850; }
.footer-copy { max-width: 540px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: #EAF6F1; font-weight: 700; }
.footer-meta { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(216,232,224,.18); font-size: .9rem; }
.footer-meta p { margin-bottom: .65em; }
.site-footer a { color: #EAF6F1; }

.error-page { min-height: 55vh; padding: 90px 0; text-align: center; }
.error-page h1 { margin-inline: auto; color: var(--hero-dark); }

@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-shell, .content-wrap { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 58px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: static; width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 0 14px; }
  .site-nav a { padding-inline: 12px; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .site-nav { position: fixed; z-index: 999; inset: 58px 0 auto 0; max-height: calc(100vh - 58px); overflow-y: auto; background: var(--hero-dark); box-shadow: 0 18px 34px rgba(0,0,0,.18); }
  .js .site-nav[hidden] { display: none; }
  .js .site-nav ul { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; padding: 12px 0 22px; }
  .page-title-area { padding: 44px 0 48px; }
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .content-wrap { padding: 46px 0 56px; }
  .article-section { margin-top: 48px; }
  .bd89-figure { margin: 30px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 390px) {
  .site-shell, .content-wrap { width: calc(100% - 32px); }
  .page-title-area { padding: 38px 0 42px; }
  .inline-cta { width: 100%; text-align: center; }
  .editor-note, .table-scroll, .bd89-figure img { border-radius: 14px; }
  .footer-nav { grid-template-columns: 1fr; }
}

@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;
  z-index: 9980;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: min(calc(100% - 32px), 520px);
  transform: translateX(-50%);
  pointer-events: none;
}

.site-bottom-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(16, 42, 34, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(8, 49, 37, .24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.site-bottom-cta__button {
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.site-bottom-cta__login {
  border-color: rgba(255, 255, 255, .16);
  background: var(--text);
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 42, 34, .18);
}

.site-bottom-cta__register {
  background: var(--gold);
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(148, 99, 22, .28);
}

.site-bottom-cta__button:hover {
  transform: translateY(-2px);
}

.site-bottom-cta__login:hover {
  background: var(--hero-dark);
  color: #fff;
}

.site-bottom-cta__register:hover {
  background: #F7D77B;
  color: var(--text);
  box-shadow: 0 12px 26px rgba(148, 99, 22, .34);
}

.site-bottom-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
}

.menu-open .site-bottom-cta {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 390px) {
  .site-bottom-cta {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
  }

  .site-bottom-cta__inner {
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
  }

  .site-bottom-cta__button {
    min-height: 50px;
    padding: 8px 10px;
    font-size: .98rem;
  }
}
