:root {
  --bg: #061021;
  --ink: #102341;
  --panel: #ffffff;
  --muted: #52627a;
  --line: #d7e4f4;
  --blue-900: #06284d;
  --blue-800: #083b77;
  --blue-600: #0867b8;
  --sky: #8fd7ff;
  --gold: #ffd62e;
  --red: #e42220;
  --soft: #eaf6ff;
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Noto Sans Bengali", "Nirmala UI", "Hind Siliguri", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg) url("/assets/bgd99-bg.jpg") center top / cover fixed no-repeat;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.bgd99-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.32);
}

.top-strip {
  background: linear-gradient(90deg, #99d9ff 0%, #5bb9f0 46%, #1f7bc4 100%);
  border-bottom: 3px solid var(--gold);
}

.brand-row {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand-row img {
  width: 240px;
  height: auto;
}

.quick-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-actions a,
.hero-actions a,
.inline-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--blue-900);
  font-weight: 800;
  line-height: 1.2;
}

.quick-actions .primary,
.hero-actions .primary,
.inline-link {
  color: #fff;
  background: linear-gradient(180deg, #f8362a 0%, #c21412 100%);
  border-color: #ffda36;
  box-shadow: 0 5px 0 rgba(102, 0, 0, 0.26);
}

.quick-actions .secondary,
.hero-actions .secondary {
  color: #fff;
  background: #06284d;
  border-color: #123f73;
}

.nav-band {
  background: var(--blue-900);
  border-bottom: 1px solid rgba(255, 214, 46, 0.45);
}

.main-nav {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
}

.main-nav a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  color: #f2f8ff;
  font-weight: 800;
  border-bottom: 4px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--gold);
}

.hero,
.sub-hero {
  padding: 38px 0 30px;
  background: linear-gradient(180deg, rgba(236, 249, 255, 0.9), rgba(255, 255, 255, 0.97));
}

.hero-grid,
.sub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 30px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #07294e;
  background: var(--gold);
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--red);
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  line-height: 1.03;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.sub-hero h1,
.article-head h1 {
  font-size: clamp(2rem, 4.4vw, 3.7rem);
}

.lead {
  max-width: 720px;
  color: #263b5a;
  font-size: 1.12rem;
  line-height: 1.85;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-media {
  border-radius: var(--radius);
  border: 3px solid #123f73;
  background: #061021;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(11, 42, 84, 0.24);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.trust-item {
  min-height: 86px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
}

.trust-item strong {
  display: block;
  margin-bottom: 6px;
  color: #082e57;
}

.section {
  padding: 34px 0;
  background: #fff;
}

.section.alt {
  background: #edf7ff;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin-bottom: 0;
  color: #0a315c;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.section-title p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.benefit-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #bdd8ef;
  border-radius: var(--radius);
  background: #fff;
}

.benefit-table th {
  color: #fff;
  background: var(--blue-800);
  text-align: left;
}

.benefit-table th,
.benefit-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #d7e7f6;
  vertical-align: top;
  line-height: 1.65;
}

.benefit-table tr:nth-child(even) td {
  background: #f3fbff;
}

.category-grid,
.news-grid,
.article-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.category-card,
.news-card,
.article-tile {
  min-width: 0;
  border: 1px solid #c4d9ed;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(8, 49, 92, 0.1);
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.category-card div,
.news-card,
.article-tile {
  padding: 18px;
}

.category-card span,
.news-card span,
.article-tile span {
  color: var(--red);
  font-weight: 900;
  font-size: 0.92rem;
}

.category-card h3,
.news-card h3,
.article-tile h3 {
  margin: 7px 0 9px;
  color: #082f59;
  font-size: 1.25rem;
  line-height: 1.35;
}

.category-card p,
.news-card p,
.article-tile p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.read-more {
  color: var(--blue-600);
  font-weight: 900;
}

.safety-band {
  color: #fff;
  background: linear-gradient(90deg, #06284d 0%, #0b4a87 62%, #0f6bb1 100%);
}

.safety-band .section-title h2,
.safety-band .section-title p {
  color: #fff;
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  line-height: 1.6;
}

.sub-hero {
  border-bottom: 1px solid #d7e7f6;
}

.sub-hero-card {
  padding: 18px;
  border: 1px solid #c4d9ed;
  border-radius: var(--radius);
  background: #fff;
}

.sub-hero-card img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.guide-panel,
.side-panel {
  border: 1px solid #c4d9ed;
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
}

.guide-panel h2,
.side-panel h2 {
  color: #082f59;
}

.guide-panel p,
.side-panel p,
.guide-panel li,
.side-panel li {
  color: #3d506c;
  line-height: 1.78;
}

.guide-panel ul,
.side-panel ul {
  padding-left: 22px;
}

.article-head {
  padding: 34px 0 24px;
  background: linear-gradient(180deg, #eff9ff, #fff);
  border-bottom: 1px solid #d7e7f6;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #52627a;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.article-body {
  padding: 24px;
  border: 1px solid #c4d9ed;
  border-radius: var(--radius);
  background: #fff;
}

.article-body img.article-image {
  width: 100%;
  margin-bottom: 22px;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body h2 {
  margin: 26px 0 10px;
  color: #082f59;
  font-size: 1.45rem;
}

.article-body p,
.article-body li,
.article-body td,
.article-body th {
  color: #3d506c;
  line-height: 1.82;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.check-table {
  width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  border: 1px solid #c4d9ed;
}

.check-table th {
  color: #fff;
  background: var(--blue-800);
}

.check-table th,
.check-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #d7e7f6;
  text-align: left;
}

.notice {
  margin: 22px 0;
  padding: 16px;
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  color: #203752;
  background: #fff8d5;
  line-height: 1.75;
}

.faq-item {
  padding: 16px 0;
  border-top: 1px solid #d7e7f6;
}

.faq-item h3 {
  margin-bottom: 8px;
  color: #082f59;
  font-size: 1.08rem;
}

.pager,
.article-next {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pager a,
.pager span,
.article-next a {
  padding: 10px 13px;
  border: 1px solid #c4d9ed;
  border-radius: var(--radius);
  background: #fff;
  color: #082f59;
  font-weight: 800;
}

.site-footer {
  color: #dfeeff;
  background: #052241;
  border-top: 4px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 30px 0;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer p,
.site-footer a {
  color: #d3e7ff;
  line-height: 1.75;
}

.site-footer a {
  display: block;
  margin: 7px 0;
}

.copyright {
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #bcd4ee;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .brand-row,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-actions {
    justify-content: flex-start;
  }

  .hero-grid,
  .sub-hero-grid,
  .content-layout,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .news-grid,
  .article-card-grid,
  .safety-list,
  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bgd99-shell {
    width: min(100% - 22px, 1180px);
  }

  .brand-row img {
    width: min(100%, 220px);
  }

  .quick-actions,
  .hero-actions {
    width: 100%;
  }

  .quick-actions a,
  .hero-actions a {
    width: 100%;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
    flex-wrap: initial;
  }

  .main-nav a {
    min-height: 46px;
    white-space: normal;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.95rem;
  }

  .hero,
  .sub-hero,
  .section,
  .article-head {
    padding: 26px 0;
  }

  h1 {
    font-size: clamp(1.8rem, 8.8vw, 2.18rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .category-grid,
  .news-grid,
  .article-card-grid,
  .safety-list,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .benefit-table,
  .benefit-table tbody,
  .benefit-table tr,
  .benefit-table td,
  .benefit-table th {
    display: block;
    width: 100%;
  }

  .benefit-table thead {
    display: none;
  }

  .benefit-table td:first-child {
    font-weight: 900;
    color: #082f59;
    background: #eaf6ff;
  }

  .article-body,
  .guide-panel,
  .side-panel {
    padding: 18px;
  }
}
