/*
Theme Name: jeta9 Editorial Help Center
Theme URI: https://jeta9.beer/
Author: jeta9 Editorial
Description: বাংলা ব্র্যান্ড, পণ্য ও ব্যবহার-সহায়তা তথ্যসাইটের জন্য হালকা সম্পাদকীয় থিম।
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jeta9-editorial
*/

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Sans Bengali", "Nirmala UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.76;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--accent); }
: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; }
.screen-reader-text:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: var(--ink); }
.site-shell { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 50; height: 68px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; flex: 0 0 auto; align-items: center; color: var(--ink); font-size: 1.45rem; font-weight: 900; line-height: 0; letter-spacing: -.04em; text-decoration: none; }
.site-brand::after { content: none; }
.site-brand__logo { width: 101px; height: 40px; }
.menu-toggle { display: none; min-width: 46px; min-height: 46px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 11px; border-radius: 9px; color: var(--ink); font-size: .94rem; font-weight: 750; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: var(--surface-soft); color: var(--accent-dark); }
.primary-nav .menu-item-cta > a { margin-left: 5px; padding-inline: 16px; background: var(--accent); color: #fff; }
.primary-nav .menu-item-cta > a:hover { background: var(--accent-dark); color: #fff; }

.main-content { min-height: 70vh; }
.article-hero { padding: 62px 0 34px; background: linear-gradient(135deg, var(--surface-soft), var(--page) 65%); border-bottom: 1px solid var(--border); }
.article-hero .site-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.article-hero.has-image .site-shell { grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); align-items: center; }
.breadcrumbs { margin: 0 0 14px; color: var(--muted); font-size: .88rem; }
.breadcrumbs a { color: var(--muted); }
h1, h2, h3 { margin-top: 0; color: var(--ink); line-height: 1.22; letter-spacing: -.025em; }
h1 { max-width: 900px; margin-bottom: 18px; font-size: clamp(2.35rem, 5.3vw, 3.65rem); }
h2 { position: relative; margin: 64px 0 20px; padding-top: 4px; font-size: clamp(1.85rem, 3.3vw, 2.35rem); }
h2::before { content: ""; display: block; width: 44px; height: 5px; margin-bottom: 13px; border-radius: 5px; background: var(--accent); }
h3 { margin: 34px 0 14px; font-size: clamp(1.35rem, 2.4vw, 1.62rem); }
.hero-intro { max-width: 760px; margin: 0; color: #393733; font-size: 1.08rem; }
.hero-media { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.review-date { margin-top: 18px; color: var(--muted); font-size: .86rem; }

.article-wrap { width: min(calc(100% - 40px), var(--reading)); margin: 0 auto; padding: 22px 0 72px; }
.article-wrap > :first-child { margin-top: 30px; }
.article-wrap p { margin: 0 0 1.2em; }
.article-wrap ul, .article-wrap ol { margin: 0 0 1.5em; padding-left: 1.3em; }
.article-wrap li { margin-bottom: .58em; }
.article-wrap strong { font-weight: 800; }
.section-image { width: min(100%, 960px); margin: 30px auto 38px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.section-image img { width: 100%; }
.section-image figcaption { padding: 10px 14px; color: var(--muted); font-size: .84rem; }
.note, .warning, .danger-note { margin: 26px 0; padding: 18px 20px; border-left: 5px solid; border-radius: 8px; }
.note { border-color: var(--info); background: var(--info-bg); }
.warning { border-color: var(--warning); background: var(--warning-bg); }
.danger-note { border-color: var(--danger); background: #fff0ef; }
.steps { counter-reset: step; margin: 28px 0; padding: 0; list-style: none; }
.steps li { position: relative; min-height: 64px; margin: 0 0 16px; padding: 14px 16px 14px 66px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 13px; left: 14px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; }
.table-scroll { margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); color: var(--ink); font-weight: 850; }
tr:last-child td { border-bottom: 0; }
.faq-list { margin: 28px 0; }
.faq-list details { margin-bottom: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.faq-list details[open] { border-left: 5px solid var(--accent); }
.faq-list summary { min-height: 52px; padding: 15px 48px 15px 17px; cursor: pointer; font-weight: 800; line-height: 1.45; }
.faq-list details p { padding: 0 18px 18px; margin: 0; color: #403e3a; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border: 2px solid var(--accent); border-radius: 10px; background: var(--accent); color: #fff; font-weight: 850; text-decoration: none; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--accent-dark); }
.editorial-note { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

.site-footer { padding: 50px 0 28px; background: var(--ink); color: #f7f4ee; }
.footer-grid { display: grid; grid-template-columns: minmax(250px, 1.2fr) 1fr; gap: 56px; }
.footer-brand { margin: 0 0 12px; color: #fff; font-size: 1.45rem; font-weight: 900; }
.site-footer p { max-width: 650px; margin: 0 0 10px; color: #d9d4ca; }
.site-footer nav ul { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: #fff; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.17); color: #bfb9ae; font-size: .82rem; }

.not-found { width: min(calc(100% - 40px), 760px); margin: 0 auto; padding: 90px 0; }

@media (max-width: 980px) {
  .site-header { height: 58px; }
  .header-inner { min-height: 58px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .primary-nav { position: absolute; top: 58px; left: 0; right: 0; display: none; max-height: calc(100vh - 58px); overflow-y: auto; padding: 12px 20px 22px; border-bottom: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; gap: 4px; }
  .primary-nav a { width: 100%; padding: 10px 12px; }
  .primary-nav .menu-item-cta > a { margin: 8px 0 0; justify-content: center; }
  .article-hero.has-image .site-shell { grid-template-columns: 1fr; }
  .hero-media { max-width: 760px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.7; }
  .site-shell, .article-wrap { width: min(calc(100% - 32px), var(--container)); }
  .article-hero { padding: 42px 0 26px; }
  h1 { font-size: clamp(2.12rem, 10vw, 2.65rem); }
  h2 { margin-top: 48px; font-size: clamp(1.7rem, 7vw, 2rem); }
  .article-wrap { padding-bottom: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 390px) {
  .site-shell, .article-wrap { width: min(calc(100% - 32px), var(--container)); }
  .hero-media img { aspect-ratio: 4 / 5; object-position: center; }
  .cta-row { display: grid; }
  .button { width: 100%; }
  .site-footer nav ul { 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; }
}
