/*
Theme Name: k444 বাংলা গাইড
Theme URI: https://k444.beer/
Author: k444.beer
Description: k444-এর জন্য পরিষ্কার, মোবাইল-প্রথম বাংলা তথ্যসাইট থিম।
Version: 1.0.0
Text Domain: k444-guide
*/

:root {
  --bg: #f4f8f6;
  --surface: #fff;
  --hero: #0f7a5a;
  --hero-deep: #0a5c45;
  --accent: #18a879;
  --accent-soft: #7bc9a9;
  --gold: #f1c75b;
  --text: #102a22;
  --muted: #60736b;
  --border: #d8e8e0;
  --info: #eaf6f1;
  --warn: #fff5d9;
  --warn-text: #946316;
  --danger: #b84b4b;
  --focus: #064e3b;
  --footer: #102a22;
  --content: 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;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans Bengali", "Nirmala UI", "Vrinda", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--hero-deep); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea: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: 12px; left: 12px; z-index: 999; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; }

.site-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.site-header { background: var(--hero); color: #fff; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-logo { color: #fff; font-size: 1.75rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; text-decoration: none; }
.site-logo:hover { color: #fff; opacity: .9; }
.primary-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: inline-flex; min-height: 46px; align-items: center; padding: 8px 14px; border-radius: 12px; color: #fff; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { background: rgba(255,255,255,.13); color: #fff; }
.primary-nav .menu-cta > a { background: #fff; color: var(--hero-deep); }
.primary-nav .menu-cta > a:hover { background: #eaf6f1; color: var(--hero-deep); }
.nav-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.65); border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 22px; height: 2px; margin: auto; background: currentColor; content: ""; transition: transform .18s ease; }
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; top: -7px; }
.nav-toggle-lines::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.page-intro { background: linear-gradient(135deg, var(--hero) 0%, var(--hero-deep) 100%); color: #fff; }
.page-intro-inner { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; padding: 64px 0 58px; }
.page-intro h1 { max-width: 760px; margin: 0; color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.14; letter-spacing: -.035em; }
.review-date { margin: 18px 0 0; color: #d9f3e9; font-size: .94rem; }

.content-area { padding: 60px 0 80px; }
.entry-content { width: min(calc(100% - 40px), var(--reading)); margin-inline: auto; min-width: 0; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2 { margin: 2.2em 0 .75em; color: var(--hero-deep); font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.25; letter-spacing: -.02em; scroll-margin-top: 24px; }
.entry-content h3 { margin: 1.6em 0 .55em; font-size: 1.25rem; line-height: 1.35; }
.entry-content ul, .entry-content ol { margin: 0 0 1.35em; padding-inline-start: 1.4em; }
.entry-content li + li { margin-top: .5em; }
.entry-content strong { color: #0a513f; }
.lead { font-size: 1.14rem; line-height: 1.75; color: #203f35; }
.section-kicker { margin-bottom: .55rem; color: var(--accent); font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.content-image { margin: 30px 0 48px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.content-image img { width: 100%; }
.content-image--portrait { width: min(100%, 560px); margin-inline: auto; }

.table-scroll { max-width: 100%; margin: 28px 0 40px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 24px rgba(17,84,63,.06); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
th { background: var(--info); color: var(--hero-deep); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.notice { margin: 30px 0; padding: 22px 24px; border: 1px solid #efd98c; border-radius: 16px; background: var(--warn); color: #654812; }
.notice--info { border-color: var(--border); background: var(--info); color: var(--text); }
.notice--danger { border-color: #e8b9b9; background: #fff0f0; color: #7c3030; }

.steps { margin: 28px 0 40px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; min-height: 56px; margin: 0 0 18px; padding: 13px 16px 13px 66px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.steps li::before { position: absolute; top: 12px; left: 14px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--hero); color: #fff; font-weight: 800; counter-increment: steps; content: counter(steps); }

.faq-list { margin: 28px 0 42px; }
.faq-list details { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); overflow: hidden; }
.faq-list details[open] { border-left: 4px solid var(--accent); }
.faq-list summary { min-height: 52px; padding: 14px 52px 14px 18px; cursor: pointer; color: var(--text); font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { float: right; margin-right: -32px; color: var(--accent); content: "+"; font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 18px; color: #314c43; }
.faq-answer p:last-child { margin-bottom: 0; }

.button-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; margin: 18px 0 10px; padding: 11px 20px; border-radius: 12px; background: var(--hero); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(15,122,90,.16); }
.button-link:hover { background: var(--hero-deep); color: #fff; }
.related-links { margin-top: 50px; padding: 24px; border-radius: var(--radius); background: var(--info); }
.related-links h2 { margin-top: 0; font-size: 1.35rem; }

.correction-form { margin-top: 28px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-field { min-width: 0; }
.form-field--wide { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; color: var(--hero-deep); font-weight: 800; }
input, textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #afcfc1; border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
textarea { min-height: 150px; resize: vertical; }
button[type="submit"] { min-height: 48px; padding: 11px 22px; border: 0; border-radius: 12px; background: var(--hero); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.form-note { font-size: .92rem; color: var(--muted); }
.form-status { margin-bottom: 24px; padding: 14px 18px; border-radius: 12px; background: var(--info); }

.site-footer { background: var(--footer); color: #d7e8e1; }
.footer-inner { padding: 52px 0 34px; }
.footer-top { display: grid; grid-template-columns: minmax(220px,1fr) minmax(280px,2fr); gap: 48px; }
.footer-logo { margin: 0 0 12px; color: #fff; font-size: 1.75rem; font-weight: 900; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px; padding: 0; list-style: none; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: #fff; }
.footer-statement { margin: 0 0 12px; }
.footer-meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #a9c2b8; font-size: .9rem; }

.not-found { width: min(calc(100% - 40px), 680px); margin: 80px auto; text-align: center; }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-shell, .page-intro-inner, .entry-content { width: min(calc(100% - 32px), var(--content)); }
  .header-inner { min-height: 58px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .primary-nav { position: fixed; inset: 58px 0 auto; z-index: 50; max-height: calc(100vh - 58px); overflow-y: auto; padding: 16px; background: var(--hero-deep); transform: translateY(-120%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .primary-nav ul { display: grid; gap: 6px; }
  .primary-nav a { min-height: 48px; padding-inline: 16px; }
  .page-intro-inner { padding: 44px 0 40px; }
  .content-area { padding: 44px 0 58px; }
  .content-image { margin: 24px 0 38px; border-radius: 14px; }
  .entry-content h2 { margin-top: 1.9em; }
  .form-grid, .footer-top { grid-template-columns: 1fr; }
  .footer-top { gap: 26px; }
  .button-link { width: 100%; }
  .table-scroll { border-radius: 12px; }
  .steps li { padding-left: 62px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .primary-nav { position: fixed; inset: 68px 0 auto; z-index: 50; padding: 18px calc((100vw - min(calc(100vw - 40px), var(--content))) / 2); background: var(--hero-deep); transform: translateY(-120%); visibility: hidden; transition: transform .18s ease, visibility .18s; }
  .primary-nav.is-open { transform: translateY(0); visibility: visible; }
  .primary-nav ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

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

