:root {
  --bdlf-bg: #fff8f2;
  --bdlf-surface: #ffffff;
  --bdlf-ink: #111113;
  --bdlf-muted: #5a4d45;
  --bdlf-line: #eaded5;
  --bdlf-red: #c91f2c;
  --bdlf-orange: #f47b20;
  --bdlf-gold: #f6c14b;
  --bdlf-teal: #0f8b8d;
  --bdlf-charcoal: #17110f;
  --bdlf-shadow: 0 18px 44px rgba(70, 34, 16, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bdlf-bg);
  color: var(--bdlf-ink);
  font-family: "Roboto", "Noto Sans Bengali", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.skip-link:focus {
  clip: auto;
  background: var(--bdlf-charcoal);
  color: #fff;
  height: auto;
  left: 1rem;
  padding: 0.7rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 1000;
}

.site-header {
  background: rgba(255, 248, 242, 0.92);
  border-bottom: 1px solid var(--bdlf-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.site-header__inner,
.hero__inner,
.content-shell,
.archive-grid,
.site-footer__inner {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 22px;
  padding-right: 22px;
}

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

.site-branding img {
  max-height: 52px;
  width: auto;
}

.site-branding__fallback {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.site-branding__fallback img {
  height: 42px;
  width: 42px;
}

.primary-nav__list,
.footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  border-radius: 6px;
  color: var(--bdlf-charcoal);
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 9px 10px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: #ffe2cf;
  color: #8f151c;
  outline: 2px solid transparent;
}

.hero {
  background:
    linear-gradient(135deg, rgba(201, 31, 44, 0.09), rgba(244, 123, 32, 0.14)),
    var(--bdlf-bg);
  padding: 34px 0 26px;
}

.hero__inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
}

.hero__copy {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: var(--bdlf-shadow);
  padding: clamp(24px, 4vw, 46px);
}

.hero__eyebrow,
.page-hero p {
  color: var(--bdlf-red);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.hero h1,
.page-hero h1,
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: Georgia, "Noto Serif Bengali", serif;
  letter-spacing: 0;
  line-height: 1.22;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  margin: 0 0 18px;
  max-width: 720px;
}

.hero__intro {
  color: var(--bdlf-muted);
  font-size: 1.1rem;
  margin: 0 0 22px;
}

.hero__button {
  align-items: center;
  background: linear-gradient(135deg, var(--bdlf-red), var(--bdlf-orange));
  border: 0;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero__button:hover,
.hero__button:focus-visible {
  box-shadow: 0 12px 22px rgba(201, 31, 44, 0.24);
  outline: 3px solid rgba(246, 193, 75, 0.72);
  transform: translateY(-1px);
}

.hero__risk {
  border-left: 4px solid var(--bdlf-gold);
  color: var(--bdlf-muted);
  font-size: 0.94rem;
  margin: 18px 0 0;
  padding-left: 12px;
}

.hero__media {
  margin: 0;
  position: relative;
}

.hero__media::before {
  background: var(--bdlf-charcoal);
  border-radius: 8px;
  content: "";
  inset: 18px -10px -12px 18px;
  opacity: 0.12;
  position: absolute;
}

.hero__media img {
  aspect-ratio: 16 / 10;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--bdlf-shadow);
  object-fit: cover;
  position: relative;
  width: 100%;
}

.content-shell {
  padding-bottom: 54px;
  padding-top: 38px;
}

.content-shell--home {
  padding-top: 28px;
}

.entry-content-wrap {
  background: var(--bdlf-surface);
  border: 1px solid var(--bdlf-line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(60, 32, 18, 0.07);
  overflow: hidden;
}

.entry-content {
  margin: 0 auto;
  max-width: 930px;
  padding: clamp(24px, 4vw, 52px);
}

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

.entry-content p,
.entry-content li {
  color: #2f2925;
  font-size: 1.04rem;
}

.entry-content h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.entry-content h2 {
  border-left: 5px solid var(--bdlf-red);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  margin-top: 2.4rem;
  padding-left: 14px;
}

.entry-content h3 {
  color: #892018;
  font-size: 1.22rem;
  margin-top: 1.6rem;
}

.entry-content a {
  color: #a61520;
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.entry-content .wp-block-image img {
  border: 1px solid var(--bdlf-line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(54, 33, 20, 0.1);
}

.entry-content .bdlf-visual-cta {
  background: #f2faf5;
  border: 1px solid #b9dec5;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  margin: 2.2rem 0;
  padding: 18px;
}

.entry-content .bdlf-visual-cta .wp-block-image,
.entry-content .bdlf-visual-card .wp-block-image {
  margin: 0;
}

.entry-content .bdlf-visual-cta img,
.entry-content .bdlf-visual-card img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}

.entry-content .bdlf-visual-cta .wp-block-buttons {
  margin: 0;
}

.entry-content .bdlf-visual-cta .wp-block-button__link,
.entry-content .bdlf-home-entry-link .wp-block-button__link {
  background: #08734f;
  border: 1px solid #07553c;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(8, 115, 79, 0.16);
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
}

.entry-content .bdlf-visual-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2.2rem 0;
}

.entry-content .bdlf-visual-card {
  background: #fffdf8;
  border: 1px solid var(--bdlf-line);
  border-radius: 8px;
  padding: 12px;
}

.entry-content figcaption {
  color: var(--bdlf-muted);
  font-size: 0.92rem;
  margin-top: 0.55rem;
  text-align: center;
}

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

.entry-content th,
.entry-content td {
  border: 1px solid var(--bdlf-line);
  padding: 12px;
  vertical-align: top;
}

.entry-content th {
  background: #fff0e4;
  color: #79141b;
}

.bdlf-toc,
.entry-content .wp-block-group.is-style-bdlf-note,
.entry-content .wp-block-group.bdlf-note {
  background: #fff4e6;
  border: 1px solid #f5c99d;
  border-radius: 8px;
  padding: 18px 20px;
}

.bdlf-toc ul {
  columns: 2;
  gap: 28px;
  margin-bottom: 0;
}

.bdlf-highlight-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.bdlf-highlight-grid > .wp-block-group {
  background: #fff9f2;
  border: 1px solid var(--bdlf-line);
  border-radius: 8px;
  padding: 18px;
}

.bdlf-highlight-grid h3 {
  margin-top: 0;
}

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

.schema-faq-section {
  background: #fffaf6;
  border: 1px solid var(--bdlf-line);
  border-radius: 8px;
  padding: 18px;
}

.schema-faq-question {
  color: #8f151c;
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

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

.page-hero {
  background: linear-gradient(135deg, #fff1e5, #fff8f2);
  border-bottom: 1px solid var(--bdlf-line);
  padding: 44px 0 32px;
}

.page-hero__inner {
  margin: 0 auto;
  max-width: 980px;
  padding: 0 22px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  margin: 0;
}

.archive-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 54px;
  padding-top: 38px;
}

.content-card {
  background: #fff;
  border: 1px solid var(--bdlf-line);
  border-radius: 8px;
  overflow: hidden;
}

.content-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.content-card figure {
  margin: 0;
}

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

.content-card div {
  padding: 18px;
}

.content-card h2 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.search-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.search-field {
  border: 1px solid var(--bdlf-line);
  border-radius: 6px;
  min-height: 44px;
  padding: 8px 12px;
}

.search-form button {
  background: var(--bdlf-charcoal);
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 14px;
}

.site-footer {
  background: var(--bdlf-charcoal);
  color: #fff8f2;
  padding: 42px 0;
}

.site-footer__inner {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}

.site-footer p {
  color: #e9d7ca;
  margin: 0.4rem 0 0;
}

.site-footer__brand {
  display: flex;
  gap: 14px;
}

.site-footer__brand img {
  background: #fff;
  border-radius: 8px;
  height: 54px;
  padding: 6px;
  width: 54px;
}

.site-footer h2 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.footer-nav__list {
  display: grid;
  gap: 8px;
}

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

@media (max-width: 920px) {
  .site-header__inner,
  .hero__inner,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    align-items: flex-start;
    display: grid;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .primary-nav__list {
    gap: 2px;
  }

  .primary-nav a {
    font-size: 0.9rem;
    padding: 8px;
  }

  .hero__inner,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .bdlf-highlight-grid {
    grid-template-columns: 1fr;
  }

  .entry-content .bdlf-visual-grid {
    grid-template-columns: 1fr;
  }

  .bdlf-toc ul {
    columns: 1;
  }

  .site-footer__inner {
    display: grid;
  }
}

@media (max-width: 560px) {
  .site-header__inner,
  .hero__inner,
  .content-shell,
  .archive-grid,
  .site-footer__inner,
  .page-hero__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero__copy,
  .entry-content {
    padding: 20px;
  }

  .entry-content p,
  .entry-content li {
    font-size: 1rem;
  }

  .search-form {
    display: grid;
  }
}
