/*
Theme Name: 6l777 বাংলা গাইড
Theme URI: https://6l777.beer/
Author: 6l777 বাংলা গাইড
Description: 6l777 বিষয়ক স্বাধীন বাংলা তথ্যসাইটের জন্য মোবাইল-প্রথম সম্পাদনামূলক থিম।
Version: 1.0.2
Text Domain: sixl777-guide
*/

:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --hero: #0f7a5a;
  --hero-deep: #0a5c45;
  --accent: #18a879;
  --accent-soft: #7bc9a9;
  --gold: #f1c75b;
  --text: #102a22;
  --muted: #60736b;
  --border: #d8e8e0;
  --info: #eaf6f1;
  --warn: #fff5d9;
  --warn-text: #7b5414;
  --focus: #064e3b;
  --max: 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;
  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.72;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: var(--hero-deep); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
img { display: block; max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); 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 { width: auto; height: auto; clip: auto; margin: 10px; padding: 10px 14px; z-index: 9999; background: #fff; }

.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; flex: 0 0 auto; align-items: center; color: #fff; text-decoration: none; }
.site-logo img { width: auto; height: 40px; }
.primary-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 13px; border-radius: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .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,.55); border-radius: 12px; background: transparent; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }

.hero { background: linear-gradient(135deg, var(--hero) 0%, var(--hero-deep) 100%); color: #fff; padding: 48px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 55fr) minmax(320px, 45fr); gap: 54px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: #c9f2e2; font-weight: 800; letter-spacing: .03em; }
h1, h2, h3 { color: var(--text); line-height: 1.22; text-wrap: balance; }
.hero h1 { margin: 0 0 18px; color: #fff; font-size: clamp(2.25rem, 5vw, 4.35rem); letter-spacing: -.045em; }
.hero .lead { margin: 0 0 16px; color: #e9fff7; font-size: clamp(1.05rem, 1.7vw, 1.24rem); }
.hero .intro { color: #d9f5ea; }
.hero-media { overflow: hidden; border: 6px solid rgba(255,255,255,.18); border-radius: 26px; box-shadow: 0 22px 60px rgba(0,0,0,.20); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 64% center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; border-radius: 12px; background: var(--hero); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 22px rgba(15,122,90,.18); }
.button:hover { background: var(--hero-deep); color: #fff; transform: translateY(-1px); }
.hero .button { background: #fff; color: var(--hero-deep); }
.hero .button:hover { background: #eaf6f1; color: var(--hero-deep); }

main { min-height: 55vh; }
.content-section { padding: 72px 0; }
.content-section + .content-section { border-top: 1px solid var(--border); }
.content-section.alt { background: var(--surface); }
.section-heading { margin: 0 0 24px; font-size: clamp(1.7rem, 3vw, 2.55rem); letter-spacing: -.025em; }
.reading h2 { margin: 0 0 20px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.reading h3 { margin: 34px 0 8px; font-size: 1.35rem; }
.reading p { margin: 0 0 1.15em; }
.reading ul, .reading ol { padding-left: 1.35em; }
.reading li + li { margin-top: .55em; }
.article-header { padding: 64px 0 44px; background: linear-gradient(180deg, #eaf6f1, var(--bg)); }
.article-header h1 { margin: 0 0 18px; font-size: clamp(2.1rem, 4.5vw, 3.65rem); letter-spacing: -.04em; }
.article-header .lead { margin: 0; color: #36564a; font-size: 1.12rem; }
.review-date { margin-top: 20px; color: var(--muted); font-size: .92rem; }
.section-image { margin: 30px auto 10px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
.section-image img { width: 100%; }
.section-image figcaption { padding: 10px 16px; color: var(--muted); font-size: .9rem; }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--info); }
.notice.warning { border-left-color: var(--gold); background: var(--warn); color: var(--warn-text); }
.cta-row { margin-top: 30px; }

.table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(17,84,63,.06); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--info); color: var(--hero-deep); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.steps { margin: 30px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; min-height: 64px; margin: 0 0 20px; padding: 4px 0 4px 72px; counter-increment: step; }
.steps li::before { content: counter(step, bengali); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--hero); color: #fff; font-weight: 900; }
.steps strong { display: block; font-size: 1.08rem; color: var(--hero-deep); }

.contact-form { margin-top: 24px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 800; }
input[type="text"], input[type="email"], select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #b9d4c7; border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
textarea { min-height: 160px; resize: vertical; }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { width: 20px; height: 20px; margin-top: 4px; flex: 0 0 auto; }
button[type="submit"] { border: 0; cursor: pointer; font: inherit; }
.form-status { padding: 15px 18px; border-radius: 12px; background: var(--info); }
.form-status.error { background: #fbeaea; color: #8a3030; }

.editorial-note { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .92rem; }
.responsibility-note { padding: 22px; border-radius: 16px; background: var(--warn); color: var(--warn-text); }
.site-footer { padding: 54px 0 28px; background: #102a22; color: #dcebe5; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.footer-brand { margin: 0 0 12px; color: #fff; font-size: 1.6rem; font-weight: 900; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: #e6f5ef; text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-small { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: #b9cec6; font-size: .9rem; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { min-height: 58px; }
  .site-logo img { height: 36px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: fixed; z-index: 1000; inset: 58px 0 auto 0; max-height: calc(100vh - 58px); overflow: auto; padding: 14px 16px 24px; background: var(--hero-deep); transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .2s ease, opacity .2s ease, visibility .2s; }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .primary-nav ul { display: block; }
  .primary-nav a { min-height: 48px; padding-inline: 14px; }
  .hero { padding: 34px 0 46px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-media img { aspect-ratio: 4 / 3; object-position: 68% center; }
  .content-section { padding: 44px 0; }
  .article-header { padding: 44px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.22rem; }
  .button { width: 100%; }
  .footer-nav ul { grid-template-columns: 1fr; }
  .contact-form { padding: 20px 16px; }
  .steps li { padding-left: 62px; }
}

@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;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 8px;
  background: rgba(9, 13, 24, .94);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .48), 0 4px 12px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-bottom-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease;
}

.site-bottom-cta__login {
  color: #fff !important;
  background: #20283a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.site-bottom-cta__login:hover {
  color: #fff !important;
  background: #2d3850;
  transform: translateY(-2px);
}

.site-bottom-cta__register {
  color: #07130c !important;
  background: linear-gradient(135deg, #46f28c 0%, #14c968 100%);
  box-shadow: 0 8px 22px rgba(20, 201, 104, .42), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.site-bottom-cta__register:hover {
  color: #07130c !important;
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.08);
  box-shadow: 0 12px 30px rgba(20, 201, 104, .56), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.site-bottom-cta__button:active {
  transform: translateY(0) scale(.97);
}

.site-bottom-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .site-bottom-cta {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100% - 20px);
    gap: 7px;
    padding: 7px;
  }

  .site-bottom-cta__button {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    padding: 0 12px;
    font-size: 15px;
  }

  .site-bottom-cta__register {
    flex-grow: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-bottom-cta__button {
    transition: none;
  }
}
