:root {
  --bg: #0a1628;
  --bg2: #0f1f3a;
  --panel: #132040;
  --panel2: #1a2d52;
  --green: #1a7f5a;
  --green2: #0d9b6a;
  --gold: #f0c040;
  --gold2: #e8a820;
  --text: #edf2f7;
  --muted: #a0aec0;
  --border: rgba(26,127,90,.35);
  --glow: 0 0 20px rgba(26,127,90,.22);
  --radius: 18px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand-wrap {
  width: 178px;
  min-width: 178px;
  max-width: 178px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img,
.brand-mark svg {
  width: 42px;
  height: 42px;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
  line-height: 1.05;
}

.brand-text strong {
  display: block;
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: -.02em;
}

.primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 16px);
  overflow: visible;
  flex-wrap: nowrap;
}

.primary-nav a {
  white-space: nowrap;
  flex: 0 1 auto;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  padding: 10px 8px;
  font-size: .88rem;
  font-weight: 600;
  color: #cbd5e1;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(26,127,90,.3), rgba(13,155,106,.18));
  box-shadow: 0 0 14px rgba(26,127,90,.2);
}

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.header-actions:empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  min-height: 42px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 4px 18px rgba(26,127,90,.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(26,127,90,.5);
  color: #fff;
}

.btn-outline {
  min-height: 42px;
  padding: 0 18px;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-size: .9rem;
}

.btn-outline:hover {
  background: rgba(240,192,64,.12);
  color: var(--gold);
}

.btn-lg {
  min-height: 52px;
  padding: 0 32px;
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(19,32,64,.6);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== NAV MORE ===== */
.nav-more {
  position: relative;
  flex: 0 0 auto;
}

.more-toggle {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(19,32,64,.6);
  color: #cbd5e1;
  font-family: var(--font);
  font-weight: 600;
  font-size: .88rem;
}

.more-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  padding: 10px;
  border-radius: 16px;
  z-index: 1200;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}

.more-menu[hidden] { display: none !important; }

.nav-more.is-open .more-menu {
  display: grid;
  gap: 4px;
}

.more-menu a {
  display: block;
  width: 100%;
  max-width: none;
  padding: 11px 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: #cbd5e1;
}

.more-menu a:hover {
  background: rgba(26,127,90,.18);
  color: #fff;
}

/* ===== HERO VARIANTS ===== */
.hero {
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(26,127,90,.2), transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(240,192,64,.08), transparent 50%);
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.hero-full { text-align: center; max-width: 860px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.03em;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 18px 0 28px;
  max-width: 680px;
}

.hero-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--bg2); }
.section-dark { background: linear-gradient(180deg, var(--bg) 0%, var(--panel) 100%); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 700px;
  margin-bottom: 36px;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.card-img {
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card h3, .card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p { color: var(--muted); font-size: .95rem; }

/* ===== PROSE ===== */
.prose { max-width: 820px; }

.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin: 48px 0 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35;
  margin: 32px 0 12px;
  font-weight: 700;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin: 0 0 18px;
  color: #d1d5db;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin: 0 0 18px;
}

.prose li {
  list-style: disc;
  margin-bottom: 8px;
  color: #d1d5db;
  font-size: 1.02rem;
}

.prose ol li { list-style: decimal; }

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 24px 0;
}

/* ===== CONTENT GRID (text + image side by side) ===== */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 40px;
  align-items: start;
}

.content-grid-reverse {
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
}

/* ===== STEPS ===== */
.steps { counter-reset: step; }

.step-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  margin-bottom: 32px;
  align-items: start;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green2));
  font-weight: 900;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,127,90,.35);
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--muted);
  font-size: .98rem;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--panel);
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .2s;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 18px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.8;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ===== TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--panel2);
  font-weight: 700;
  font-size: .95rem;
  color: var(--gold);
}

.data-table td {
  background: var(--panel);
  font-size: .95rem;
  color: #d1d5db;
}

/* ===== WARNING / INFO BOX ===== */
.info-box {
  padding: 24px;
  border-radius: var(--radius);
  margin: 24px 0;
}

.info-box-warning {
  background: rgba(240,192,64,.08);
  border-left: 4px solid var(--gold);
}

.info-box-info {
  background: rgba(26,127,90,.08);
  border-left: 4px solid var(--green);
}

.info-box h4 {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.info-box p {
  color: var(--muted);
  font-size: .98rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(26,127,90,.12), rgba(240,192,64,.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 28px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0;
  font-size: .88rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--green2); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ===== INTERNAL LINKS ===== */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .2s;
}

.related-link:hover {
  background: var(--panel2);
}

.related-link-arrow {
  color: var(--green2);
  font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: .92rem;
  margin: 12px 0;
  max-width: 280px;
}

.footer-col h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-col a {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  padding: 5px 0;
  transition: color .2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

.footer-contact { margin: 8px 0; }
.footer-contact span { margin-right: 20px; }

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: none;
  justify-content: center;
  gap: 12px;
}

.floating-cta.is-visible { display: flex; }

/* ===== 404 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.error-page h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 68px;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .brand-wrap {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    height: 48px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-mark img,
  .brand-mark svg {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    max-width: 96px;
    font-size: 1rem;
  }

  .primary-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: var(--radius);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    z-index: 1100;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav a {
    max-width: none;
    width: 100%;
    padding: 14px 12px;
    text-overflow: initial;
    font-size: .95rem;
  }

  .header-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .header-actions .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: .85rem;
  }

  .nav-toggle { display: inline-flex; }

  .nav-more { display: none !important; }

  .hero { padding: 80px 0 48px; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  .section { padding: 48px 0; }
  .content-grid,
  .content-grid-reverse { grid-template-columns: 1fr; }
  .card-grid-2,
  .card-grid-3,
  .card-grid-4 { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  .floating-cta { padding: 10px 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.3rem; }
  .prose h2 { font-size: 1.3rem; }
  .prose p { font-size: .98rem; }
  .step-item { grid-template-columns: 44px 1fr; gap: 12px; }
  .step-num { width: 40px; height: 40px; font-size: 1rem; }
}