:root {
  --bg: #08090b;
  --bg-soft: #101318;
  --surface: #151922;
  --surface-2: #1b202b;
  --text: #f8fafc;
  --muted: #c7d0dc;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f3c74d;
  --gold-2: #c99622;
  --teal: #4dd0c8;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(77, 208, 200, 0.12), transparent 32rem),
    linear-gradient(180deg, #08090b 0%, #0e1117 44%, #08090b 100%);
  color: var(--text);
  font-family: "Noto Sans Bengali", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
  height: 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 {
  top: 12px;
  left: 12px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--gold);
  color: #101010;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(var(--content), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 110px;
  max-width: min(180px, 42vw);
  min-height: 44px;
  font-weight: 800;
  text-decoration: none;
}

.site-brand img,
.site-brand .custom-logo {
  width: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
}

.site-brand__text {
  color: var(--gold);
  font-size: 1.35rem;
}

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

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.primary-nav__list,
.footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
  background: rgba(243, 199, 77, 0.12);
  color: var(--text);
}

.site-main {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1.14fr);
  gap: 34px;
  align-items: center;
  padding: 64px 0 38px;
}

.hero-panel__copy {
  position: relative;
  z-index: 1;
}

.hero-panel__eyebrow,
.page-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
}

.hero-panel h1,
.page-hero h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-panel__subtitle {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-panel__subtitle p,
.hero-panel__risk p,
.site-footer p {
  margin: 0;
}

.primary-action,
.wp-block-button__link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), #ffd972);
  color: #111;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(243, 199, 77, 0.22);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover,
.primary-action:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  transform: translateY(-1px);
  box-shadow: 0 16px 44px rgba(243, 199, 77, 0.28);
}

.hero-panel__risk {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--danger);
  color: #ffd7d7;
  font-size: 0.95rem;
}

.hero-panel__visual {
  margin: 0;
  border: 1px solid rgba(243, 199, 77, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(243, 199, 77, 0.13), rgba(77, 208, 200, 0.06));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel__visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.longform-entry,
.page-entry {
  max-width: 900px;
  margin: 0 auto 72px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 17, 23, 0.78);
}

.longform-entry > *:first-child,
.page-entry > *:first-child {
  margin-top: 0;
}

.longform-entry h2,
.page-entry h2 {
  margin: 42px 0 14px;
  color: var(--text);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.longform-entry h3,
.page-entry h3 {
  margin: 28px 0 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.longform-entry p,
.page-entry p,
.longform-entry li,
.page-entry li {
  color: var(--muted);
}

.longform-entry strong,
.page-entry strong {
  color: var(--text);
}

.longform-entry a,
.page-entry a {
  color: #ffe08a;
}

.wp-block-group,
.wp-block-columns {
  margin: 28px 0;
}

.wp-block-group.has-background {
  border-radius: var(--radius);
  padding: 24px;
}

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

.wp-block-image img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--surface);
}

.wp-block-image figcaption {
  margin-top: 10px;
  color: #aeb8c5;
  font-size: 0.92rem;
  text-align: center;
}

.wp-block-table {
  overflow-x: auto;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
  padding: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.wp-block-table th {
  color: var(--text);
  background: rgba(243, 199, 77, 0.09);
}

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

.schema-faq-section {
  padding: 18px;
  border: 1px solid rgba(243, 199, 77, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.schema-faq-question {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.05rem;
}

.schema-faq-answer p {
  margin-bottom: 0;
}

.page-hero {
  padding: 56px 0 28px;
}

.post-list {
  display: grid;
  gap: 18px;
  margin-bottom: 64px;
}

.post-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #07080a;
}

.site-footer__inner {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.site-footer__brand strong {
  display: block;
  color: var(--gold);
  font-size: 1.25rem;
}

.site-footer__note,
.site-footer__responsible,
.site-footer__contact {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__note {
  margin-top: 12px;
}

.site-footer__contact {
  display: grid;
  gap: 10px;
}

.site-footer__contact span {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-nav a {
  color: #ffe08a;
  font-weight: 700;
}

.site-footer__responsible {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.search-form {
  display: flex;
  gap: 10px;
  margin: 0 0 24px;
}

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

.search-submit {
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: #111;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 64px;
  }

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

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #0d1015;
    box-shadow: var(--shadow);
  }

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

  .primary-nav__list {
    display: grid;
    gap: 4px;
    justify-content: stretch;
  }

  .primary-nav a {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .hero-panel__copy {
    text-align: center;
  }

  .hero-panel__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-panel__risk {
    text-align: left;
  }

  .longform-entry,
  .page-entry {
    padding: 24px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

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

  .site-main,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 24px, var(--content));
  }

  .site-brand {
    max-width: 132px;
    min-height: 40px;
  }

  .site-brand img,
  .site-brand .custom-logo {
    max-height: 38px;
  }

  .hero-panel h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .longform-entry,
  .page-entry {
    padding: 18px;
  }

  .wp-block-table th,
  .wp-block-table td {
    padding: 10px;
  }
}
