/*
Theme Name: 77fb Cinematic Guide
Theme URI: https://77fb.beer/
Author: 77fb.beer editorial team
Description: A Bengali editorial information theme using the locked dark cinematic image-story preset.
Version: 1.0.1
Text Domain: seventy-seven-fb
*/

:root {
  --bg: #0b0c0d;
  --bg-soft: #141618;
  --surface: #1b1d20;
  --surface-2: #20231f;
  --gold: #f2c94c;
  --gold-deep: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --border: #303236;
  --warning: #e1a64b;
  --focus: #ffe28a;
  --content: 1240px;
  --reading: 820px;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 80% 5%, rgba(242, 201, 76, .08), transparent 30rem),
    linear-gradient(180deg, #0b0c0d 0%, #101214 50%, #0b0c0d 100%);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: #ffe486; }
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;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 16px;
  background: var(--gold);
  color: #111;
}
.site-shell { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.reading-shell { width: min(var(--reading), calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(11, 12, 13, .9);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-logo { display: inline-flex; flex: 0 0 auto; align-items: center; line-height: 0; text-decoration: none; }
.site-logo-image { width: auto; height: 32px; }
.primary-menu, .footer-links { list-style: none; padding: 0; margin: 0; }
.primary-menu { display: flex; align-items: center; gap: 8px; }
.primary-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a {
  background: var(--surface);
  color: var(--text);
}
.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
}
.menu-toggle-lines::before { transform: translateY(-7px); }
.menu-toggle-lines::after { transform: translateY(5px); }

.site-main { min-height: 60vh; }
.hero { padding: 80px 0 88px; }
.hero-copy { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.eyebrow { color: var(--gold); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--text); line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(40px, 6vw, 76px); }
h2 { margin-bottom: 22px; font-size: clamp(32px, 4vw, 44px); }
h3 { margin-bottom: 14px; font-size: clamp(23px, 3vw, 30px); }
p, ul, ol, table { margin-top: 0; margin-bottom: 24px; }
.hero-deck { max-width: 760px; margin-inline: auto; color: #deded9; font-size: clamp(20px, 2.4vw, 25px); }
.hero-intro { max-width: 790px; margin-inline: auto; color: var(--muted); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #17150d;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #ffe06b; color: #17150d; }
.hero-media, .section-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-header { padding: 84px 0 58px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #141618, #0b0c0d); }
.article-header h1 { max-width: 980px; font-size: clamp(38px, 5vw, 64px); }
.article-header .lede { max-width: 800px; color: var(--muted); font-size: 21px; }
.article-body { padding: 36px 0 96px; }
.content-section { padding-top: 76px; scroll-margin-top: 96px; }
.content-section > :last-child { margin-bottom: 0; }
.content-section h2::before {
  display: block;
  width: 52px;
  height: 3px;
  margin-bottom: 22px;
  border-radius: 2px;
  background: var(--gold);
  content: "";
}
.product-chapter { padding: 30px 0; border-top: 1px solid var(--border); }
.product-chapter:first-of-type { border-top: 0; }
.section-media { width: min(var(--content), calc(100% - 48px)); margin: 44px auto 0; }
.section-media img { width: 100%; }
.reading-shell .section-media {
  position: relative;
  left: 50%;
  width: min(1100px, calc(100vw - 48px));
  margin-left: 0;
  transform: translateX(-50%);
}
.notice, .step-list li, .related-links a {
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.notice { padding: 22px 24px; border-left: 4px solid var(--warning); border-radius: 10px; color: #e6e6df; }
.step-list { list-style: none; padding: 0; counter-reset: steps; }
.step-list li { position: relative; min-height: 76px; margin-bottom: 14px; padding: 18px 20px 18px 72px; border-radius: 12px; }
.step-list li::before {
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  counter-increment: steps;
  content: counter(steps);
}
.table-wrap { overflow-x: auto; margin: 32px 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #232528; color: var(--gold); }
tr:last-child td { border-bottom: 0; }
.related-links { display: flex; gap: 14px; margin-top: 36px; }
.related-links a { flex: 1; min-height: 62px; padding: 15px 18px; border-radius: 12px; color: var(--text); font-weight: 700; text-decoration: none; }
.related-links a:hover { border-color: var(--gold); }
.review-date { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }

.correction-form { margin-top: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--text); font-weight: 700; }
input, textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #111315;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.form-status { padding: 14px 18px; border: 1px solid var(--gold); border-radius: 10px; background: var(--surface-2); }
.form-help { color: var(--muted); font-size: 15px; }

.site-footer { padding: 64px 0 28px; border-top: 1px solid rgba(242, 201, 76, .35); background: #08090a; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .85fr .8fr; gap: 56px; }
.footer-title { margin-bottom: 18px; font-size: 26px; }
.footer-copy, .footer-note { color: var(--muted); }
.footer-links li { margin-bottom: 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.footer-contact { color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: #8f918e; font-size: 14px; }
.error-page { padding: 120px 0; text-align: center; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-shell, .reading-shell, .section-media { width: min(100% - 32px, var(--content)); }
  .reading-shell .section-media { width: calc(100vw - 32px); }
  .site-header, .header-inner { min-height: 60px; }
  .site-logo-image { height: 28px; }
  .header-inner { flex-wrap: wrap; }
  .js .menu-toggle { display: block; }
  .primary-navigation {
    width: 100%;
    padding-bottom: 12px;
  }
  .js .primary-navigation {
    position: absolute;
    top: 60px;
    right: 16px;
    left: 16px;
    width: auto;
    display: none;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #111315;
    box-shadow: var(--shadow);
  }
  .js .primary-navigation.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu li, .primary-menu a { width: 100%; }
  .primary-menu a { padding-inline: 16px; }
  .hero { padding: 56px 0; }
  .hero-copy { margin-bottom: 32px; }
  .hero-media { border-radius: 12px; }
  .hero-media img { aspect-ratio: 4 / 5; object-position: 70% center; }
  .article-header { padding: 56px 0 40px; }
  .article-header .lede { font-size: 18px; }
  .article-body { padding-bottom: 64px; }
  .content-section { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .related-links { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !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;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(9, 13, 24, .94);
  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;
  }
}
