:root {
  --yellow: #f2f94a;
  --yellow-2: #fff467;
  --blue: #1175f4;
  --blue-2: #25b9ff;
  --red: #f01818;
  --purple: #6557ea;
  --purple-2: #7d6dff;
  --ink: #344052;
  --heading: #2f3a49;
  --muted: #687589;
  --line: #dce6f3;
  --soft: #f3f8ff;
  --white: #ffffff;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: "Noto Sans Bengali", "Nirmala UI", "Hind Siliguri", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(1050px, calc(100% - 48px)); margin: 0 auto; }
.site-wrap { min-height: 100vh; background: #fff; }

.topbar {
  background: rgba(242, 249, 74, .95);
  border-bottom: 1px solid rgba(43, 69, 144, .14);
}
.topbar-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand img { width: 230px; height: auto; }
.brand span {
  color: var(--red);
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}
.top-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.btn,
.top-actions a,
.inline-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 10px 22px rgba(40, 47, 146, .12);
}
.btn.primary,
.top-actions .primary,
.inline-btn {
  color: #fff;
  background: linear-gradient(180deg, var(--purple-2), var(--purple));
  border-color: rgba(255,255,255,.45);
}
.btn.ghost,
.top-actions .ghost {
  color: #fff;
  background: linear-gradient(180deg, #4f86ff, #1f5fe4);
  border-color: rgba(255,255,255,.45);
}

.nav-band {
  background: rgba(242, 249, 74, .95);
  border-bottom: 1px solid rgba(43, 69, 144, .16);
}
.main-nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 14px;
  color: var(--red);
  font-weight: 1000;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.main-nav a.active,
.main-nav a:hover { color: #0b60dd; border-bottom-color: #0b60dd; }

.hero {
  padding: 52px 0 46px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.65), transparent 30%),
    linear-gradient(90deg, #1285ff 0%, #36bbff 52%, #88e4ff 100%);
  border-bottom: 1px solid #dce6f3;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(380px, 1fr);
  gap: 42px;
  align-items: center;
}
.hero-grid > *,
.sub-grid > *,
.intro-grid > *,
.layout > *,
.article-layout > * { min-width: 0; }
h1 {
  margin-bottom: 22px;
  color: #ffffff;
  font-size: 4.05rem;
  line-height: 1.04;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(20, 68, 170, .34);
  overflow-wrap: break-word;
}
h1 span { color: #fff24f; }
.lead {
  max-width: 720px;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.82;
  font-weight: 720;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-media,
.sub-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b6fea;
  border: 4px solid #ffffff;
  box-shadow: 0 24px 56px rgba(12, 74, 178, .26);
}
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.category-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 0 30px;
}
.rail-item {
  min-height: 88px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid #cfe0f5;
  background: linear-gradient(180deg, #ffffff, #edf6ff);
  box-shadow: 0 10px 20px rgba(24, 76, 150, .08);
}
.rail-item span { color: var(--red); font-weight: 1000; }
.rail-item strong { display: block; margin-top: 8px; color: #24384f; font-size: 1rem; line-height: 1.35; }

.section { padding: 48px 0; background: #fff; }
.section.dark { background: #f4f8ff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head h2 { margin-bottom: 0; color: var(--heading); font-size: 2.25rem; line-height: 1.2; }
.section-head p { max-width: 560px; margin-bottom: 0; color: var(--muted); line-height: 1.72; font-weight: 650; }

.intro-grid,
.layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: 24px;
}
.intro-copy,
.guide-panel,
.feature-list,
.article-body,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(41, 86, 148, .08);
}
.intro-copy,
.guide-panel { padding: 28px; }
.intro-copy h2,
.guide-panel h2,
.side-panel h2,
.article-body h2 { color: var(--heading); }
.intro-copy p,
.guide-panel p,
.article-body p,
.article-body li,
.side-panel p,
.side-panel li { color: #4d5b70; line-height: 1.84; font-weight: 560; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: var(--line); }
.feature-item { padding: 22px; background: #ffffff; }
.feature-item span { color: var(--red); font-weight: 1000; }
.feature-item h3 { margin: 8px 0 8px; color: #183d86; font-size: 1.16rem; }
.feature-item p { margin: 0; color: var(--muted); line-height: 1.7; }

.card-grid,
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card,
.article-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 28px rgba(41, 86, 148, .09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover,
.article-card:hover { transform: translateY(-3px); border-color: #9dc6ff; box-shadow: 0 20px 38px rgba(17,117,244,.14); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0f72ef; }
.card div,
.article-card { padding: 18px; }
.card span,
.article-card span { color: var(--red); font-weight: 1000; }
.card h3,
.article-card h3 { margin: 8px 0 10px; color: #24384f; font-size: 1.18rem; line-height: 1.4; }
.card p,
.article-card p { margin-bottom: 12px; color: var(--muted); line-height: 1.68; }
.read-more { color: #0b68ee; font-weight: 1000; }
.side-panel .read-more { display: block; margin: 8px 0; }

.safety-band {
  background: linear-gradient(90deg, #fff56b, #eefc5b);
  border-top: 1px solid rgba(43, 69, 144, .14);
}
.safety-band .section-head h2,
.safety-band .section-head p { color: #263347; }
.safety-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.safety-list li {
  min-height: 104px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(43, 69, 144, .16);
  color: #3e4b5e;
  font-weight: 750;
  line-height: 1.55;
}

.sub-hero,
.article-head {
  padding: 48px 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.55), transparent 30%),
    linear-gradient(90deg, #0f73f4 0%, #31bbff 100%);
  border-bottom: 1px solid var(--line);
}
.sub-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, .75fr);
  gap: 32px;
  align-items: center;
}
.sub-hero h1,
.article-head h1 { color: #fff; font-size: 3.1rem; }
.sub-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.article-body { padding: 28px; }
.article-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: 22px; }
.article-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.article-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #0d55c7;
  font-weight: 900;
}
.article-body h2 { margin: 30px 0 12px; font-size: 1.65rem; }
.article-body ul { padding-left: 22px; }
.check-table { width: 100%; border-collapse: collapse; margin: 20px 0; overflow: hidden; border-radius: var(--radius); }
.check-table th,
.check-table td { border: 1px solid var(--line); padding: 13px 14px; text-align: left; vertical-align: top; color: #4d5b70; line-height: 1.55; }
.check-table th { background: #e8f2ff; color: #24384f; }
.notice { margin: 22px 0; padding: 16px; border-radius: var(--radius); background: #fff8c9; border: 1px solid #f0dc63; color: #39434f; line-height: 1.72; font-weight: 750; }
.faq-item { padding: 16px 0; border-top: 1px solid var(--line); }
.faq-item h3 { margin-bottom: 8px; color: #183d86; }
.side-panel { padding: 22px; }
.pager { margin-top: 22px; color: var(--muted); }
.article-next { margin-top: 20px; color: #0b68ee; font-weight: 800; }

.footer { padding: 36px 0 18px; border-top: 1px solid #0b4ca2; background: #073c86; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 22px; }
.footer h2,
.footer h3 { color: #ffffff; }
.footer p,
.footer a { color: #dcecff; line-height: 1.75; }
.footer a { display: block; margin: 7px 0; }
.copyright { margin-top: 24px; color: #c9dcff; font-size: .94rem; }

@media (max-width: 980px) {
  .shell { width: min(100% - 32px, 900px); }
  .hero-grid,
  .intro-grid,
  .layout,
  .sub-grid,
  .article-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .category-rail,
  .card-grid,
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safety-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1,
  .sub-hero h1,
  .article-head h1 { font-size: 3rem; }
  .hero-media { max-width: 640px; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 24px, 560px); }
  .topbar-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .brand { align-items: flex-start; flex-direction: column; gap: 6px; }
  .brand img { width: 188px; }
  .top-actions { width: 100%; justify-content: stretch; gap: 8px; flex-direction: column; }
  .top-actions a { flex: 1 1 auto; width: 100%; min-width: 0; max-width: 100%; white-space: normal; text-align: center; }
  .btn,
  .inline-btn { flex: 1 1 auto; padding: 10px 8px; min-height: 42px; font-size: .86rem; text-align: center; white-space: normal; overflow-wrap: anywhere; }
  .hero-actions { gap: 10px; flex-direction: column; }
  .hero-actions .btn { flex: 1 1 auto; width: 100%; min-width: 0; max-width: 100%; }
  .main-nav { justify-content: center; overflow-x: visible; flex-wrap: wrap; gap: 0 4px; padding: 4px 0; }
  .main-nav a { flex: 0 0 calc(50% - 4px); min-height: 34px; padding: 7px 4px; font-size: .8rem; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .hero,
  .sub-hero,
  .article-head { padding: 32px 0; }
  h1,
  .sub-hero h1,
  .article-head h1 { width: calc(100% - 24px); max-width: 330px; font-size: 1.44rem; line-height: 1.2; overflow-wrap: anywhere; word-break: break-all; line-break: anywhere; }
  .lead { width: calc(100% - 24px); max-width: 330px; font-size: .82rem; line-height: 1.62; overflow-wrap: anywhere; word-break: break-all; line-break: anywhere; }
  .category-rail,
  .card-grid,
  .article-grid,
  .feature-list,
  .safety-list { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-head h2 { font-size: 1.8rem; }
  .article-body { padding: 18px; }
  .check-table th,
  .check-table td { padding: 10px; font-size: .94rem; }
}
