/*
Theme Name: BJ77 তথ্য সহায়িকা
Theme URI: https://bj77.beer/
Author: BJ77 তথ্য সহায়িকা
Description: বাংলাদেশের ব্যবহারকারীদের জন্য স্বাধীন পরিচয় যাচাই, নিরাপত্তা ও সমস্যা সমাধান তথ্যকেন্দ্র।
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: bj77-guide
*/

:root {
  --navy: #0B1F33;
  --teal: #0F766E;
  --amber: #D97706;
  --danger: #B42318;
  --success: #067647;
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --muted-surface: #EEF3F5;
  --text: #172033;
  --muted: #5B6676;
  --border: #D6DEE8;
  --focus: #D97706;
  --radius: 14px;
  --button-radius: 10px;
  --space: clamp(56px, 8vw, 96px);
  --content: 1180px;
  --reading: 760px;
  --shadow: 0 16px 42px rgba(11, 31, 51, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
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.75;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: .18em; overflow-wrap: anywhere; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
button, input, select, textarea { font: inherit; }
p, li { overflow-wrap: anywhere; }
.container { width: min(100% - 32px, var(--content)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { height: 72px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; color: var(--navy); font-size: 1.18rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.site-logo-image { width: auto; height: 46px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 10px; color: var(--text); font-size: .92rem; font-weight: 700; text-decoration: none; border-radius: 8px; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--muted-surface); color: var(--teal); }
.primary-nav .nav-cta { margin-left: 6px; background: var(--teal); color: #fff; padding-inline: 15px; }
.primary-nav .nav-cta:hover, .primary-nav .nav-cta[aria-current="page"] { background: var(--navy); color: #fff; }
.menu-toggle { display: none; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 8px; color: var(--navy); background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.menu-backdrop { display: none; }

.hero { padding: clamp(54px, 7vw, 88px) 0; background: linear-gradient(135deg, #EDF5F4 0%, #F8F3E9 100%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--teal); font-size: .9rem; font-weight: 800; letter-spacing: .03em; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--amber); border-radius: 3px; }
h1, h2, h3 { color: var(--navy); line-height: 1.24; letter-spacing: -.015em; }
h1 { margin: 0 0 20px; font-size: clamp(2.25rem, 5vw, 3.65rem); }
h2 { margin: 0 0 22px; font-size: clamp(1.8rem, 3.4vw, 2.45rem); }
h3 { margin: 0 0 12px; font-size: clamp(1.2rem, 2vw, 1.48rem); }
.lead { margin: 0; max-width: 680px; color: #344054; font-size: clamp(1.05rem, 1.8vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 19px; border: 2px solid var(--teal); border-radius: var(--button-radius); background: var(--teal); color: #fff; font-weight: 800; line-height: 1.35; text-align: center; text-decoration: none; }
.button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button-secondary { background: #fff; color: var(--teal); }
.button-secondary:hover { background: var(--muted-surface); color: var(--navy); }
.hero-media img, .section-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.hero-media img { aspect-ratio: 16/9; }

.breadcrumb { margin: 0 0 24px; color: var(--muted); font-size: .92rem; }
.breadcrumb a { color: var(--teal); font-weight: 700; }
.content-section { padding: var(--space) 0; }
.content-section + .content-section { border-top: 1px solid rgba(214,222,232,.7); }
.section-heading { max-width: var(--reading); margin-bottom: 28px; }
.section-heading h2::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; border-radius: 4px; background: var(--teal); }
.section-intro { color: var(--muted); font-size: 1.06rem; }
.section-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr); gap: clamp(28px, 5vw, 62px); align-items: center; }
.surface { background: var(--surface); }
.tinted { background: #EEF5F4; }
.warm { background: #FFF8EC; }
.legal-alert { margin-top: 28px; padding: 22px 24px; background: #FFF1F0; border: 1px solid #F5B7B1; border-left: 4px solid var(--danger); border-radius: 0 var(--radius) var(--radius) 0; }
.legal-alert h2, .legal-alert h3 { color: #7A271A; }
.legal-alert > :last-child, .notice > :last-child { margin-bottom: 0; }
.notice { padding: 20px 22px; margin: 24px 0; background: #FFF8E8; border: 1px solid #F4D59B; border-left: 4px solid var(--amber); border-radius: 0 12px 12px 0; }
.notice-danger { background: #FFF1F0; border-color: #F5B7B1; border-left-color: var(--danger); }
.notice-success { background: #ECFDF3; border-color: #ABEFC6; border-left-color: var(--success); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(11,31,51,.05); }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; background: #E7F3F1; color: var(--teal); border-radius: 12px; font-size: 1.35rem; font-weight: 900; }
.card p { margin: 0 0 20px; color: var(--muted); }
.card a { margin-top: auto; font-weight: 800; }
.split-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.status-box { padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.status-box ul { margin-bottom: 0; }
.status-label { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: .84rem; font-weight: 800; }
.verified { background: #ECFDF3; color: var(--success); }.unverified { background: #FFF4E5; color: #9A4B05; }.conflict { background: #FFF1F0; color: var(--danger); }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 28px 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 62px 22px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(step, bengali); position: absolute; top: 18px; left: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; }
.checklist, .evidence-list { padding-left: 0; list-style: none; }
.checklist li, .evidence-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }
.evidence-list li::before { content: "▣"; position: absolute; left: 2px; top: 0; color: var(--teal); }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; }
.inline-links a { font-weight: 800; }
.article-panel { width: min(100% - 32px, 980px); margin: var(--space) auto; padding: clamp(24px,5vw,56px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

.faq-list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
details[open] { border-left: 4px solid var(--teal); }
summary { min-height: 52px; padding: 15px 48px 15px 18px; cursor: pointer; color: var(--navy); font-weight: 800; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 1.4rem; }
details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; color: #344054; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-filter-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.faq-filter-links a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 13px; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-weight: 800; text-decoration: none; }

.site-footer { padding: 56px 0 24px; background: var(--navy); color: #D7E0EA; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 32px; }
.site-footer h2 { margin-bottom: 15px; color: #fff; font-size: 1.12rem; }
.site-footer p { margin-top: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #F1F5F9; }
.footer-brand { color: #fff; font-size: 1.22rem; font-weight: 900; }
.footer-legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: .92rem; }
.footer-email { color: #fff; font-weight: 800; }
.copyright { margin: 18px 0 0; color: #AEBBC9; font-size: .85rem; }
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: fixed; z-index: 1002; inset: 64px 0 auto auto; width: min(88vw, 380px); max-height: calc(100vh - 64px); overflow-y: auto; padding: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateX(105%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-nav a { padding: 10px 12px; }
  .primary-nav .nav-cta { margin: 8px 0 0; justify-content: center; }
  .menu-backdrop.is-open { display: block; position: fixed; inset: 64px 0 0; z-index: 1001; background: rgba(11,31,51,.45); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-header { height: 64px; }
  .site-logo-image { height: 42px; }
  .hero-grid, .section-grid { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 48px; }
  .hero-copy { order: 1; }.hero-media { order: 2; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 100%; }
  .cards, .steps, .split-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-panel { width: min(100% - 32px, 980px); padding: 24px 20px; }
  .content-section { padding: 48px 0; }
  .section-media img { max-height: 420px; object-fit: cover; object-position: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
