:root {
  --bg: #f5f8f4;
  --surface: #ffffff;
  --ink: #102025;
  --muted: #526366;
  --line: #dbe7df;
  --brand: #0f8f6e;
  --brand-dark: #08644f;
  --brand-soft: #dff7ed;
  --accent: #f2b84b;
  --alert: #b84b4b;
  --footer: #171728;
  --shadow: 0 18px 45px rgba(16, 32, 37, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover,
a:focus {
  color: #0a4f44;
}

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

.skip-link:focus {
  z-index: 50;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
}

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.brand-mark,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark__text,
.footer-logo span {
  overflow-wrap: anywhere;
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo img,
.brand-mark__img,
.footer-logo img,
.site-footer .custom-logo {
  width: auto;
  max-width: 148px;
  max-height: 46px;
  object-fit: contain;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 154px;
}

.primary-nav {
  margin-left: auto;
}

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

.menu a {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.menu a:hover,
.menu a:focus,
.current-menu-item > a {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero-section {
  background:
    linear-gradient(135deg, rgba(10, 147, 112, 0.96), rgba(5, 86, 78, 0.98)),
    #0c7d65;
  color: #fff;
}

.hero-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 40px;
  align-items: center;
  min-height: 640px;
  padding: 58px 0 44px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
}

.hero-copy .eyebrow {
  color: #dff7ed;
}

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

.hero-copy h1 {
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  max-width: 760px;
}

.hero-summary {
  max-width: 650px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #172017;
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(24, 32, 23, 0.24);
}

.primary-cta:hover,
.primary-cta:focus {
  color: #111;
  background: #ffd166;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-content-wrap {
  padding: 42px 0 64px;
}

.front-content {
  background: linear-gradient(180deg, #f9fbf8, var(--bg));
}

.content-shell {
  max-width: 980px;
}

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

.content-shell p,
.content-shell li {
  color: #26383c;
}

.content-shell h2 {
  margin-top: 40px;
  padding-top: 8px;
  font-size: clamp(26px, 3vw, 36px);
}

.content-shell h3 {
  margin-top: 24px;
  font-size: clamp(21px, 2vw, 25px);
}

.content-shell ul,
.content-shell ol {
  padding-left: 1.35rem;
}

.wp-block-group,
.wp-block-columns,
.wp-block-table,
.toc-panel,
.note-panel {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(16, 32, 37, 0.07);
}

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

.wp-block-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.wp-element-caption,
figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

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

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

.wp-block-table th {
  background: var(--brand-soft);
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.faq-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.page-hero {
  background: linear-gradient(135deg, #e8f7f0, #f7fbff);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 34px;
}

.page-hero .eyebrow {
  color: var(--brand-dark);
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 54px);
  max-width: 800px;
}

.archive-list {
  display: grid;
  gap: 18px;
  padding: 42px 0 64px;
}

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

.archive-card h2 {
  margin-top: 0;
  font-size: 24px;
}

.search-form {
  display: flex;
  max-width: 620px;
  gap: 10px;
  margin-top: 18px;
}

.search-field {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.search-form button {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.text-link {
  font-weight: 800;
}

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

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 0.8fr) minmax(260px, 1fr);
  gap: 30px;
  align-items: start;
}

.site-footer a,
.site-footer p,
.site-footer li {
  color: #eef3f5;
}

.site-footer p {
  margin: 12px 0 0;
  color: #c9d5db;
}

.footer-logo img {
  max-width: 134px;
  max-height: 42px;
}

.footer-menu {
  display: grid;
  gap: 6px;
}

.footer-menu a {
  padding: 6px 0;
  color: #eef3f5;
}

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

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

  .primary-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 16px;
    left: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .primary-menu {
    display: grid;
    gap: 2px;
  }

  .primary-menu a {
    white-space: normal;
  }

  .hero-section__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 0 30px;
  }

  .hero-visual {
    max-width: 560px;
  }

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

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

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

  .custom-logo,
  .custom-logo-link img,
  .brand-mark__img {
    max-width: 120px;
    max-height: 38px;
  }

  .brand-mark__text {
    font-size: 15px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

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

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

  .wp-block-group,
  .wp-block-columns,
  .wp-block-table,
  .toc-panel,
  .note-panel {
    padding: 16px;
  }
}

