/*
Theme Name: 9bd বাংলা তথ্যকেন্দ্র
Theme URI: https://9bd.fashion/
Author: 9bd Editorial
Description: Independent Bengali brand information theme using the locked dark cinematic image-story preset.
Version: 1.0.0
Text Domain: nines-info
*/

:root {
  --bg: #0b0c0d;
  --bg-soft: #141618;
  --card: #1b1d20;
  --gold: #f2c94c;
  --gold-deep: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --border: #303236;
  --notice: #20231f;
  --warning: #e1a64b;
  --focus: #ffe28a;
  --max: 1240px;
  --reading: 820px;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0, rgba(242,201,76,.07), transparent 28rem),
    var(--bg);
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--focus); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.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;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--gold); color: #111; z-index: 9999; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  min-height: 70px; border-bottom: 1px solid rgba(242,201,76,.15);
  background: rgba(11,12,13,.88); backdrop-filter: blur(18px);
}
.header-inner { max-width: var(--max); min-height: 70px; margin: auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.brand { color: var(--text); font-size: 1.65rem; font-weight: 800; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 24px rgba(242,201,76,.7); }
.brand-image::after { display: none; }
.brand-logo { display: block; width: auto; height: 38px; }
.nav-toggle { display: none; margin-left: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--card); font: inherit; cursor: pointer; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: grid; place-items: center; min-height: 44px; padding: 8px 13px; border-radius: 999px; color: var(--text); font-size: .92rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav .current-menu-item > a { background: var(--card); color: var(--gold); }
.site-nav li:last-child a { margin-left: 6px; padding-inline: 20px; background: var(--gold); color: #111; }
.site-nav li:last-child a:hover { background: var(--focus); color: #111; }

.site-main { min-height: 62vh; }
.page-shell { max-width: var(--max); margin: 0 auto; padding: 66px 24px 96px; }
.article-head { max-width: 980px; margin: 0 auto 58px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--text); line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin: 0 0 24px; font-size: clamp(36px, 6vw, 76px); }
h2 { margin: 0 0 24px; font-size: clamp(30px, 4vw, 44px); }
h3 { margin: 34px 0 14px; font-size: clamp(23px, 2.5vw, 30px); }
.lead { max-width: 900px; margin: 0 auto; color: #e5e5e1; font-size: clamp(1.06rem, 2vw, 1.28rem); }
.reviewed { margin-top: 18px; color: var(--muted); font-size: .86rem; }

.content-area > section, .content-area > .wp-block-group { max-width: var(--reading); margin: 0 auto 88px; scroll-margin-top: 92px; }
.content-area > section.wide, .content-area > figure.wide, .wide { max-width: var(--max); }
.content-area p { margin: 0 0 1.25em; }
.content-area ul, .content-area ol { padding-left: 1.35em; }
.content-area li { margin-bottom: .65em; }
.section-label { display: block; margin-bottom: 12px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.jump-links { max-width: 980px; margin: 30px auto 72px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.jump-links a, .button-link { display: inline-grid; place-items: center; min-height: 48px; padding: 10px 20px; border: 1px solid #4b4d51; border-radius: 999px; color: var(--text); font-weight: 700; text-decoration: none; }
.jump-links a:hover, .button-link:hover { border-color: var(--gold); background: var(--gold); color: #111; }
.button-link.primary { border-color: var(--gold); background: var(--gold); color: #111; }

.cinematic-image { max-width: var(--max); margin: 36px auto 86px; }
.cinematic-image img { width: 100%; border: 1px solid rgba(242,201,76,.18); border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.cinematic-image figcaption { margin-top: 12px; color: var(--muted); font-size: .82rem; text-align: center; }
.ratio-wide img { aspect-ratio: 14 / 9; }
.ratio-four img { aspect-ratio: 4 / 3; }

.note, .warning { margin: 30px 0; padding: 22px 24px; border: 1px solid #3b4038; border-left: 4px solid var(--gold); border-radius: 12px; background: var(--notice); }
.warning { border-left-color: var(--warning); }
.note strong, .warning strong { color: var(--focus); }

.step-list { list-style: none !important; counter-reset: steps; padding: 0 !important; }
.step-list li { position: relative; min-height: 70px; margin: 0 0 16px; padding: 18px 20px 18px 76px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, var(--card), #151719); }
.step-list li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 18px; top: 17px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #111; font-weight: 900; }

.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.category-card { padding: 26px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.category-card h3 { margin-top: 0; }
.category-card p:last-child { margin-bottom: 0; }
.related { padding-top: 26px; border-top: 1px solid var(--border); }
.related a { margin-right: 18px; }

.table-wrap { width: 100%; margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg-soft); }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--gold); background: var(--card); font-size: .9rem; }
tr:last-child td { border-bottom: 0; }

.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.faq-list summary { min-height: 54px; padding: 16px 54px 16px 20px; color: var(--text); font-weight: 800; cursor: pointer; position: relative; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 12px; color: var(--gold); font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 20px 20px; color: #e4e4df; }

.editorial-contact { margin-top: 28px; }
.editorial-contact .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editorial-contact label { display: block; margin-bottom: 6px; color: var(--text); font-weight: 700; }
.editorial-contact input, .editorial-contact textarea, .editorial-contact select { width: 100%; min-height: 48px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #4b4d51; border-radius: 10px; color: var(--text); background: #111315; font: inherit; }
.editorial-contact textarea { min-height: 150px; resize: vertical; }
.editorial-contact button { min-height: 50px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--gold); color: #111; font: inherit; font-weight: 900; cursor: pointer; }
.form-status { padding: 14px 18px; border-radius: 10px; background: var(--notice); }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { border-top: 1px solid rgba(242,201,76,.28); background: #08090a; }
.footer-inner { max-width: var(--max); margin: auto; padding: 60px 24px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: 48px; }
.footer-title { margin: 0 0 14px; font-size: 1.5rem; font-weight: 900; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin: 0 0 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-note { color: var(--muted); font-size: .88rem; }
.copyright { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); color: #898b87; font-size: .78rem; }

.error-page { max-width: 760px; margin: 90px auto; padding: 0 24px; text-align: center; }

@media (max-width: 920px) {
  body { font-size: 17px; }
  .site-header, .header-inner { min-height: 60px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-ready .site-nav { display: none; position: absolute; top: 60px; left: 16px; right: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: #101113; box-shadow: var(--shadow); }
  .nav-ready .site-nav.is-open { display: block; }
  .site-nav { margin: 0 0 14px; width: 100%; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a { justify-content: flex-start; }
  .site-nav li:last-child a { margin: 8px 0 0; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-logo { height: 34px; }
  .header-inner, .page-shell, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .page-shell { padding-top: 48px; padding-bottom: 66px; }
  .article-head { margin-bottom: 42px; text-align: left; }
  .lead { margin-left: 0; }
  .jump-links { justify-content: flex-start; margin-bottom: 56px; }
  .jump-links a { width: 100%; justify-content: flex-start; }
  .content-area > section, .content-area > .wp-block-group { margin-bottom: 56px; }
  .cinematic-image { margin: 28px 0 56px; }
  .cinematic-image img { border-radius: 12px; }
  .ratio-wide img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center; }
  .category-grid, .footer-grid, .editorial-contact .field-row { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-links { columns: 1; }
  .step-list li { padding-left: 68px; }
  .related a { display: block; margin: 10px 0; }
}

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