:root {
  --bg: #08090b;
  --bg-soft: #101318;
  --surface: #151a20;
  --surface-strong: #1c2229;
  --text: #f7f7ef;
  --muted: #c7c3b2;
  --line: rgba(236, 184, 65, 0.22);
  --gold: #f4c247;
  --gold-strong: #ffd86b;
  --green: #2dd4bf;
  --danger: #ff8a5c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0;
}

a {
  color: var(--gold-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

a:hover,
a:focus-visible {
  color: #fff4bd;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.narrow-shell {
  width: min(860px, calc(100% - 36px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 9, 11, 0.92);
  border-bottom: 1px solid rgba(244, 194, 71, 0.14);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand-mark {
  display: flex;
  align-items: center;
  min-width: 148px;
}

.custom-logo-link,
.site-logo-text {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  font-size: 1.18rem;
  text-decoration: none;
}

.custom-logo {
  width: auto;
  max-width: 170px;
  max-height: 52px;
}

.primary-navigation ul,
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-navigation a,
.footer-nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--gold-strong);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.hero-section {
  padding: 62px 0 36px;
  border-bottom: 1px solid rgba(244, 194, 71, 0.12);
  background:
    linear-gradient(180deg, rgba(244, 194, 71, 0.08), rgba(8, 9, 11, 0) 44%),
    radial-gradient(circle at 50% 0%, rgba(45, 212, 191, 0.1), rgba(8, 9, 11, 0) 38%);
}

.hero-content {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 22px;
}

.hero-kicker {
  margin: 0;
  color: var(--gold-strong);
  font-weight: 750;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.22;
  margin: 0 0 16px;
  letter-spacing: 0;
}

h1 {
  max-width: 870px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin-top: 48px;
}

h3 {
  font-size: 1.18rem;
  margin-top: 28px;
}

.hero-summary {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold));
  color: #151100;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(244, 194, 71, 0.18);
}

.primary-cta:hover,
.primary-cta:focus-visible {
  color: #151100;
  transform: translateY(-1px);
}

.hero-visual {
  width: min(980px, 100%);
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-section,
.listing-section {
  padding: 42px 0 70px;
}

.article-shell {
  width: min(940px, calc(100% - 36px));
}

.article-shell > *:first-child {
  margin-top: 0;
}

.article-shell p,
.article-shell li {
  color: #e9e4d4;
}

.article-shell p {
  margin: 0 0 20px;
}

.article-shell ul,
.article-shell ol {
  padding-left: 1.35em;
}

.article-shell .wp-block-group {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(244, 194, 71, 0.06), rgba(255, 255, 255, 0.03));
}

.article-shell .wp-block-group h2,
.article-shell .wp-block-group h3 {
  margin-top: 0;
}

.article-shell .wp-block-image {
  margin: 34px 0;
}

.article-shell .wp-block-image img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-shell figcaption {
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
  font-size: 0.94rem;
}

.article-shell table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-shell th,
.article-shell td {
  border: 1px solid rgba(244, 194, 71, 0.16);
  padding: 14px 16px;
  vertical-align: top;
}

.article-shell th {
  color: var(--gold-strong);
  background: rgba(244, 194, 71, 0.08);
}

.article-shell .wp-block-yoast-faq-block {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.article-shell .schema-faq-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.article-shell .schema-faq-question {
  display: block;
  color: var(--gold-strong);
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.page-hero {
  padding: 58px 0 34px;
  background: linear-gradient(180deg, rgba(244, 194, 71, 0.08), rgba(8, 9, 11, 0));
  border-bottom: 1px solid rgba(244, 194, 71, 0.12);
}

.page-hero p {
  color: var(--muted);
  margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.post-card a {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.post-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.post-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 42px 0;
  background: #050607;
  border-top: 1px solid rgba(244, 194, 71, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(220px, 0.9fr);
  gap: 28px;
}

.footer-brand p,
.footer-contact p {
  color: var(--muted);
  margin: 12px 0 0;
}

.footer-risk {
  color: #f5d896 !important;
}

.footer-nav ul {
  align-items: flex-start;
  flex-direction: column;
}

.search-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-form button {
  min-height: 46px;
  padding: 10px 16px;
  color: #171100;
  font-weight: 750;
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.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 {
  left: 18px;
  top: 18px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--gold);
  color: #111;
  z-index: 100;
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: 66px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 16px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation ul {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-section {
    padding-top: 38px;
  }

  .article-shell .wp-block-group {
    padding: 18px;
  }

  .post-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-shell,
  .article-shell,
  .narrow-shell {
    width: min(100% - 28px, 1120px);
  }

  .primary-cta {
    width: 100%;
  }

  .search-form {
    flex-direction: column;
  }
}

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