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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 85% 7%, rgba(61, 214, 198, .08), transparent 28%), radial-gradient(circle at 12% 22%, rgba(184, 243, 74, .05), transparent 25%);
}
a { color: var(--lime); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--cyan); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.24; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.25rem, 6vw, 4.6rem); letter-spacing: -.035em; }
h2 { margin: 0 0 22px; font-size: clamp(1.7rem, 3.6vw, 2.55rem); }
h3 { margin: 32px 0 10px; font-size: clamp(1.25rem, 2.6vw, 1.55rem); color: #e7f7ef; }
p { margin: 0 0 1.15em; }
ul, ol { padding-inline-start: 1.35em; }
li + li { margin-top: .55em; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--focus);
  color: var(--bg);
}
.skip-link:focus { top: 12px; }
.content-width { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.reading-width { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; min-width: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 66px;
  border-bottom: 1px solid rgba(41, 69, 58, .9);
  background: rgba(7, 17, 14, .96);
  backdrop-filter: blur(14px);
}
.header-inner { width: min(calc(100% - 40px), var(--content)); height: 100%; margin: auto; display: flex; align-items: center; gap: 24px; }
.site-logo { display: flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.site-logo img { width: auto; height: 34px; }
.primary-navigation { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.primary-menu { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: grid; min-height: 44px; place-items: center; color: var(--text); font-weight: 600; text-decoration: none; }
.primary-menu .current-menu-item > a, .primary-menu a:hover { color: var(--lime); }
.header-cta, .button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.header-cta, .button-primary { border: 1px solid var(--lime); background: var(--lime); color: var(--bg); }
.header-cta:hover, .button-primary:hover { transform: translateY(-1px); background: var(--focus); color: var(--bg); }
.button-secondary { border: 1px solid var(--cyan); color: var(--text); background: transparent; }
.menu-toggle { display: none; width: 48px; height: 48px; margin-left: auto; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--text); }

.site-main { min-height: 55vh; }
.article-header { padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(48px, 7vw, 72px); }
.article-header::after { content: ""; display: block; width: 96px; height: 3px; margin-top: 34px; border-radius: 999px; background: linear-gradient(90deg, var(--lime), var(--cyan)); }
.eyebrow { margin-bottom: 16px; color: var(--lime); font-size: .86rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.article-subtitle { max-width: 720px; margin-top: 24px; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.28rem); }
.updated-date { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.entry-content { padding-bottom: 72px; }
.entry-content > .lead { color: #f8fbf9; font-size: clamp(1.15rem, 2.3vw, 1.35rem); line-height: 1.75; }
.entry-content > section { padding: 62px 0; border-top: 1px solid var(--border); scroll-margin-top: 84px; }
.entry-content > section:first-of-type { margin-top: 56px; }
.entry-content .section-note { padding: 24px 26px; border-left: 4px solid var(--cyan); border-radius: 0 var(--radius) var(--radius) 0; background: var(--bg-alt); color: var(--muted); }
.entry-content .boundary-note { padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.editorial-figure { width: min(100%, 960px); margin: 44px auto 8px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.editorial-image { width: 100%; }

.table-wrap { width: 100%; margin: 30px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--bg-alt); }
th, td { padding: 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--card); color: var(--lime); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.step-list { margin: 28px 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { position: relative; min-height: 76px; margin: 0; padding: 16px 16px 18px 74px; border-bottom: 1px solid var(--border); counter-increment: steps; }
.step-list li::before { content: counter(steps, bengali); position: absolute; left: 12px; top: 13px; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; background: var(--lime); color: var(--bg); font-weight: 800; }
.step-list strong { display: block; margin-bottom: 4px; color: var(--text); }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.faq-list summary { min-height: 56px; padding: 16px 54px 16px 20px; cursor: pointer; font-weight: 700; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 13px; color: var(--lime); font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: var(--muted); }

.contact-form { margin: 28px 0; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 700; }
.form-row input, .form-row textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.form-row textarea { min-height: 170px; resize: vertical; }
.form-help { color: var(--warning); font-size: .95rem; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 0 0 24px; padding: 16px 18px; border-radius: 10px; }
.form-success { border: 1px solid var(--lime); background: rgba(184, 243, 74, .08); }
.form-error { border: 1px solid var(--error); background: rgba(225, 111, 115, .08); }

.site-footer { border-top: 1px solid var(--border); background: #050d0b; }
.footer-inner { width: min(calc(100% - 40px), var(--content)); margin: auto; padding: 64px 0 48px; display: grid; grid-template-columns: 1.4fr .75fr 1fr; gap: 54px; }
.footer-inner h2 { margin-bottom: 15px; font-size: 1rem; color: var(--lime); }
.footer-inner p { color: var(--muted); font-size: .94rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }
.footer-links a, .site-footer a { color: var(--text); }
.footer-bottom { width: min(calc(100% - 40px), var(--content)); margin: auto; padding: 24px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .86rem; }
.footer-bottom p { margin: 0; }

.archive-layout, .error-page { padding-top: 72px; padding-bottom: 88px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.archive-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.archive-card h2 { font-size: 1.28rem; }

@media (max-width: 899px) {
  .site-header { height: 58px; }
  .header-inner { width: min(calc(100% - 32px), var(--content)); }
  .site-logo img { height: 30px; }
  .menu-toggle { display: block; }
  .primary-navigation { position: absolute; top: 57px; left: 0; right: 0; display: none; margin: 0; padding: 18px 16px 22px; border-bottom: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow); }
  .menu-open .primary-navigation { display: block; }
  .primary-menu { display: block; }
  .primary-menu li { margin: 0; }
  .primary-menu a { justify-content: start; min-height: 48px; padding: 8px 4px; }
  .header-cta { width: 100%; margin-top: 12px; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .reading-width, .content-width { width: calc(100% - 32px); }
  .article-header { padding-top: 52px; padding-bottom: 38px; }
  .entry-content { padding-bottom: 44px; }
  .entry-content > section { padding: 44px 0; }
  .entry-content > section:first-of-type { margin-top: 38px; }
  .cta-row { display: grid; }
  .button { width: 100%; }
  .editorial-figure { margin-top: 32px; }
  .archive-grid, .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-inner { width: calc(100% - 32px); gap: 32px; padding: 48px 0 36px; }
  .footer-bottom { width: calc(100% - 32px); flex-direction: column; }
  .step-list li { padding-left: 66px; }
}

@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(7, 17, 14, .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: var(--text) !important;
  background: var(--hover);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

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

.site-bottom-cta__register {
  color: var(--bg) !important;
  background: linear-gradient(135deg, var(--lime) 0%, var(--cyan) 100%);
  box-shadow: 0 8px 22px rgba(61, 214, 198, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.site-bottom-cta__register:hover {
  color: var(--bg) !important;
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(61, 214, 198, .48), 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;
  }
}
