/*
Theme Name: uk9 বাংলা গাইড
Theme URI: https://uk9.beer/
Author: uk9.beer সম্পাদকীয় দল
Description: uk9-এর জন্য পরিচ্ছন্ন, মোবাইল-প্রথম বাংলা তথ্যভিত্তিক থিম।
Version: 1.0.1
Text Domain: uk9-guide
*/

:root {
  --page: #f4f8f6;
  --surface: #ffffff;
  --hero: #0f7a5a;
  --hero-dark: #0a5c45;
  --accent: #18a879;
  --accent-soft: #7bc9a9;
  --highlight: #f1c75b;
  --ink: #102a22;
  --muted: #60736b;
  --line: #d8e8e0;
  --info: #eaf6f1;
  --warning: #fff5d9;
  --warning-ink: #805514;
  --focus: #064e3b;
  --footer: #102a22;
  --max: 1160px;
  --reading: 780px;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(17, 84, 63, .10);
}

* { 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", "Hind Siliguri", "Nirmala UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: var(--hero-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--highlight); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
p, li { overflow-wrap: break-word; }
h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
h1 { margin: 0 0 20px; font-size: clamp(2.25rem, 5vw, 4.35rem); }
h2 { margin: 0 0 22px; font-size: clamp(1.75rem, 3vw, 2.55rem); }
h3 { margin: 30px 0 10px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin: 0 0 1.15em; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; min-width: 0; }
.reading { width: min(var(--reading), 100%); margin-inline: auto; }
.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 { clip: auto; width: auto; height: auto; margin: 8px; padding: 10px 14px; z-index: 999; background: #fff; color: var(--ink); }

.site-header { background: var(--hero); color: #fff; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; color: #fff; line-height: 1; text-decoration: none; }
.site-logo img { width: auto; height: 42px; }
.site-logo:hover { color: #fff; opacity: .88; }
.nav-list { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.nav-list a:hover, .nav-list .current-menu-item a { background: rgba(255,255,255,.14); color: #fff; }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

.hero { background: linear-gradient(145deg, var(--hero) 0%, var(--hero-dark) 100%); color: #fff; padding: 54px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); align-items: center; gap: 54px; }
.hero h1 { color: #fff; }
.hero-lead { max-width: 660px; font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: rgba(255,255,255,.94); }
.hero-copy > p:last-of-type { margin-bottom: 28px; }
.hero-visual { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 28px; box-shadow: 0 22px 55px rgba(1,37,27,.25); }
.hero-visual img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; background: var(--hero); color: #fff; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.button:hover { color: #fff; background: var(--hero-dark); box-shadow: var(--shadow); transform: translateY(-1px); }
.hero .button { background: #fff; color: var(--hero-dark); }
.hero .button:hover { color: var(--hero-dark); background: #f2fbf7; }

.content-section { padding: 72px 0; scroll-margin-top: 82px; }
.content-section + .content-section { border-top: 1px solid var(--line); }
.content-section.surface { background: var(--surface); }
.prose { width: min(var(--reading), 100%); margin-inline: auto; }
.prose-wide { width: min(980px, 100%); margin-inline: auto; }
.section-image { margin: 34px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.section-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 46px; }
.eyebrow { margin-bottom: 14px; color: var(--hero); font-weight: 800; letter-spacing: .04em; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; color: var(--muted); font-size: .91rem; }
.callout { margin: 28px 0; padding: 22px 24px; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--info); }
.warning { border-left-color: var(--highlight); background: var(--warning); color: var(--warning-ink); }
.link-line { margin-top: 28px; font-weight: 800; }

.table-wrap { max-width: 100%; margin: 30px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 790px; border-collapse: collapse; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--info); color: var(--ink); font-size: .94rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fcfa; }

.steps { margin: 30px 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; margin: 0 0 18px; padding: 20px 20px 20px 72px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 22px rgba(17,84,63,.06); counter-increment: steps; }
.steps li::before { content: counter(steps); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hero); color: #fff; font-weight: 900; }
.steps strong { display: block; margin-bottom: 4px; color: var(--ink); }

.faq-list { display: grid; gap: 14px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(17,84,63,.06); }
.faq-list details[open] { border-left: 5px solid var(--accent); }
.faq-list summary { min-height: 56px; padding: 16px 56px 16px 20px; cursor: pointer; color: var(--ink); font-weight: 800; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 13px; font-size: 1.65rem; color: var(--hero); }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 18px; }

.page-hero { padding: 64px 0 48px; background: linear-gradient(180deg, #e7f4ee 0%, var(--page) 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.15rem, 4.5vw, 3.65rem); }
.page-lead { max-width: 820px; font-size: 1.15rem; color: #29453b; }
.legal-list { margin: 20px 0; padding-left: 22px; }
.legal-list li { margin-bottom: 10px; }

.site-footer { padding: 52px 0 28px; background: var(--footer); color: #dce9e4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 46px; }
.footer-brand { color: #fff; font-size: 1.75rem; font-weight: 900; letter-spacing: -.05em; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: 1rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 5px; }
.site-footer a { color: #f1f8f5; }
.footer-note { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: .94rem; color: #c3d6cf; }
.footer-note p { margin-bottom: 8px; }

.not-found { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 72px 20px; }

@media (max-width: 900px) {
  .hero-grid, .image-split, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 680px; }
  .footer-grid { gap: 28px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: fixed; inset: 58px 0 auto 0; z-index: 99; visibility: hidden; opacity: 0; transform: translateY(-8px); padding: 16px 20px 24px; background: var(--hero-dark); box-shadow: 0 20px 40px rgba(4,44,33,.25); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list { align-items: stretch; flex-direction: column; }
  .nav-list a { min-height: 48px; padding-inline: 14px; }
  .header-inner { min-height: 58px; }
  .site-logo img { height: 36px; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--max)); }
  .hero { padding: 36px 0 48px; }
  .hero-grid { gap: 34px; }
  .content-section { padding: 44px 0; }
  .page-hero { padding: 42px 0 34px; }
  .table-wrap { box-shadow: none; }
  .section-image { margin-top: 26px; }
}

@media (max-width: 390px) {
  .hero .button, .content-section .button { width: 100%; }
  .hero-visual, .section-image, .table-wrap, .faq-list details { border-radius: 14px; }
  .steps li { padding-left: 62px; }
  .steps li::before { left: 14px; }
}

@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;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  pointer-events: none;
}
.site-bottom-cta__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, 100%);
  padding: 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(16,42,34,.94);
  box-shadow: 0 14px 38px rgba(3,34,25,.34);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}
.site-bottom-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 11px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.site-bottom-cta__login {
  border-color: rgba(255,255,255,.62);
  background: var(--footer);
  color: #fff;
}
.site-bottom-cta__register {
  background: var(--highlight);
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(241,199,91,.28);
}
.site-bottom-cta__login:hover {
  border-color: #fff;
  background: #1b4437;
  color: #fff;
  transform: translateY(-2px);
}
.site-bottom-cta__register:hover {
  background: #ffda72;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(241,199,91,.4);
  transform: translateY(-2px);
}
.site-bottom-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.admin-bar .site-bottom-cta { bottom: 32px; }

@media screen and (max-width: 782px) {
  .admin-bar .site-bottom-cta { bottom: 46px; }
}

@media (max-width: 390px) {
  .site-bottom-cta { padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
  .site-bottom-cta__inner { gap: 8px; padding: 7px; border-radius: 16px; }
  .site-bottom-cta__button { min-height: 50px; padding-inline: 10px; }
}
