:root {
  --bg: #080807;
  --surface: #11100d;
  --surface-2: #1d1a15;
  --ink: #fffaf0;
  --muted: #c8c1b1;
  --soft: #8f8776;
  --gold: #f2b72f;
  --gold-deep: #bd8516;
  --green: #69d092;
  --line: rgba(242, 183, 47, 0.24);
  --line-soft: rgba(255, 250, 240, 0.12);
  --max: 1120px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--gold);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.screen-reader-text,
.skip-link {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.skip-link:focus {
  clip: auto;
  background: var(--gold);
  color: #130f08;
  height: auto;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  top: 1rem;
  width: auto;
  z-index: 1000;
}

.site-header {
  background: rgba(8, 8, 7, 0.94);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner,
.site-footer__inner,
.site-main {
  margin-inline: auto;
  max-width: var(--max);
  width: min(var(--max), calc(100% - 32px));
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 22px;
  min-height: 72px;
  justify-content: space-between;
}

.site-brand {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
}

.custom-logo-link,
.site-logo-link,
.site-title-link {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0;
  max-width: 190px;
  text-decoration: none;
}

.custom-logo,
.site-logo-img {
  display: block;
  height: 52px;
  max-width: 190px;
  object-fit: contain;
  width: auto;
}

.footer-brand .custom-logo-link,
.footer-brand .site-logo-link {
  max-width: 170px;
}

.footer-brand .custom-logo,
.footer-brand .site-logo-img {
  height: 44px;
  max-width: 170px;
}

.primary-nav {
  align-items: center;
  display: flex;
}

.menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.91rem;
  font-weight: 700;
  padding: 0.42rem 0.62rem;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.menu a:focus,
.menu a:hover {
  background: rgba(242, 183, 47, 0.12);
  color: var(--ink);
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.menu-toggle__bar {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 3px 0;
  width: 20px;
}

.hero-shell {
  display: grid;
  gap: 32px;
  padding: 58px 0 30px;
  text-align: center;
}

.hero-shell__copy {
  margin: 0 auto;
  max-width: 850px;
}

.hero-kicker,
.page-kicker {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.2rem);
  margin: 0;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin: 2.6rem 0 1rem;
}

h3 {
  font-size: 1.22rem;
  margin: 1.8rem 0 0.6rem;
}

.hero-intro,
.page-intro {
  color: var(--muted);
  font-size: 1.11rem;
  margin: 1.1rem auto 0;
  max-width: 760px;
}

.primary-action {
  background: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(242, 183, 47, 0.18);
  color: #161005;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  margin-top: 1.6rem;
  min-width: 188px;
  padding: 0.82rem 1.25rem;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.primary-action:focus,
.primary-action:hover {
  background: #ffd05d;
  transform: translateY(-1px);
}

.hero-note {
  color: var(--soft);
  font-size: 0.94rem;
  margin: 1rem auto 0;
  max-width: 760px;
}

.hero-shell__media {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
}

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

.front-article,
.content-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin: 0 0 44px;
  padding: clamp(22px, 4vw, 48px);
}

.inner-page {
  padding-top: 42px;
}

.page-header {
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 30px;
  padding-bottom: 24px;
}

.page-header h1 {
  font-size: clamp(2rem, 4.8vw, 3.6rem);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p {
  color: #eee7d7;
}

.entry-content ul,
.entry-content ol {
  color: #eee7d7;
  padding-left: 1.3rem;
}

.entry-content li + li {
  margin-top: 0.35rem;
}

.entry-content .wp-block-image {
  margin: 2rem 0;
}

.entry-content .wp-block-image img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
}

.entry-content figcaption {
  color: var(--soft);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: left;
}

.wp-block-group,
.wp-block-table {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin: 1.6rem 0;
  padding: 1.2rem;
}

.wp-block-group.is-style-cv999-note {
  border-color: var(--line);
}

.entry-content .cv999-card-grid {
  background: transparent;
  border: 0;
  margin: 1.8rem 0;
  padding: 0;
}

.entry-content .cv999-card-grid > .wp-block-group__inner-container {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.entry-content .cv999-card-grid > .wp-block-group,
.entry-content .cv999-topic-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100%;
  padding: 1.1rem;
}

.entry-content .cv999-topic-card h3 {
  font-size: 1.08rem;
  margin-top: 0;
}

.entry-content .cv999-topic-card p {
  margin-bottom: 0;
}

.entry-content .cv999-card-action {
  margin-top: auto;
  padding-top: 0.95rem;
}

.entry-content .cv999-card-cta {
  align-items: center;
  background: var(--gold);
  border-radius: 8px;
  color: #171005;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0.56rem 0.82rem;
  text-decoration: none;
}

.entry-content .cv999-card-cta:focus,
.entry-content .cv999-card-cta:hover {
  background: #ffd05d;
}

.entry-content .cv999-checklist {
  background: rgba(105, 208, 146, 0.08);
  border-color: rgba(105, 208, 146, 0.28);
}

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

table {
  border-collapse: collapse;
  width: 100%;
}

td,
th {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.72rem;
  text-align: left;
  vertical-align: top;
}

.wp-block-yoast-faq-block {
  display: grid;
  gap: 12px;
  margin-top: 1.5rem;
}

.schema-faq-section {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem;
}

.schema-faq-question {
  color: var(--ink);
  display: block;
  font-size: 1.04rem;
  margin-bottom: 0.45rem;
}

.schema-faq-answer {
  color: var(--muted);
}

.post-list {
  display: grid;
  gap: 16px;
}

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

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

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

.search-field {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--ink);
  min-height: 44px;
  padding: 0 0.8rem;
}

.search-form button {
  background: var(--gold);
  border: 0;
  border-radius: 6px;
  color: #171005;
  cursor: pointer;
  font-weight: 800;
  padding: 0 1rem;
}

.site-footer {
  background: #050504;
  border-top: 1px solid var(--line-soft);
  margin-top: 44px;
  padding: 34px 0;
}

.site-footer__inner {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-brand p,
.footer-contact {
  color: var(--muted);
  font-size: 0.94rem;
  font-style: normal;
}

.footer-contact {
  display: grid;
  gap: 0.42rem;
}

.footer-contact strong {
  color: var(--ink);
}

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

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

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

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

  .custom-logo-link,
  .site-logo-link {
    max-width: 150px;
  }

  .custom-logo,
  .site-logo-img {
    height: 42px;
    max-width: 150px;
  }

  .menu-toggle {
    display: grid;
  }

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

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

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

  .primary-menu a {
    justify-content: center;
    min-height: 42px;
  }

  .hero-shell {
    padding-top: 36px;
  }

  .hero-shell__media img {
    aspect-ratio: 4 / 3;
  }

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

  .search-field,
  .search-form button {
    width: 100%;
  }

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

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