/* ============================================================
   Prelination — static landing page
   Mobile-first: base styles target small screens; @media (min-width)
   blocks progressively enhance at 768px and 1024px.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --c-primary: #2277f2;        /* brand blue: links, icons, accents */
  --c-primary-dark: #1b5fd9;   /* hover state */
  --c-navy: #1b2334;           /* dark panels: solutions, steps */
  --c-navy-deep: #16202f;      /* footer background */
  --c-green: #26bd7e;          /* decorative green accents */
  --c-green-dark: #1ea56b;
  --c-green-deep: #0c7a4d;     /* AA-safe green: button bg, green text on light */
  --c-green-soft: #e2f6ec;     /* tinted pill background */
  --c-amber: #f5a623;          /* amber accent (hero chip) */
  --c-ink: #1e2a3a;            /* headings */
  --c-body: #5a6a7c;           /* body text */
  --c-bg-soft: #f4f6fb;        /* light section backgrounds */
  --c-white: #ffffff;

  /* Blue bands (stats, contact) — darker than brand blue so small
     white text stays ≥4.5:1 */
  --grad-blue: linear-gradient(120deg, #1e63e0 0%, #173f9b 100%);

  --font-bangla: "Hind Siliguri", "Anek Bangla", "Noto Sans Bengali",
                 system-ui, sans-serif;

  /* Shared scale: every section heading + section gap draws from here */
  --fs-h2: clamp(1.75rem, 3.4vw, 2.4rem);
  --section-pad: clamp(60px, 8vw, 96px);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px rgba(27, 35, 52, 0.08);
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;                 /* smooth in-page anchor scrolling */
  scroll-padding-top: var(--header-h);     /* anchors stop below sticky header */
}

body {
  margin: 0;
  font-family: var(--font-bangla);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-body);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  color: var(--c-ink);
  line-height: 1.3;
  font-weight: 700;
}

p { margin: 0 0 1em; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Screen-reader-only text */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: hidden until focused, then floats above the header */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--c-navy);
  color: var(--c-white);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8em 1.6em;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  transition: background-color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }

/* One conversion colour across the page: deep green (AA on white text) */
.btn-green { background: #0f8a55; color: var(--c-white); }
.btn-green:hover { background: var(--c-green-deep); }

/* Primary brand blue button (matches "Preli" logo color) */
.btn-blue { background: var(--c-primary); color: var(--c-white); }
.btn-blue:hover { background: var(--c-primary-dark); }

/* Secondary action: quiet outline so it never competes with the primary */
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 2px solid rgba(30, 42, 58, 0.28);
}
.btn-ghost:hover {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}
/* Ghost variant for dark panels */
.btn-ghost--invert {
  color: var(--c-white);
  border-color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-family: var(--font-bangla);
}
.btn-ghost--invert:hover {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-ink);
}

/* ---------- Badges (small labels above headings) ----------
   ONE pill shape everywhere; only the tint varies by context. */
.badge {
  display: inline-block;
  margin: 0 0 1em;
  padding: 0.32em 1.05em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
}
/* light-blue pill (hero slide 2) */
.badge-soft-blue {
  background: #e4edfd;
  color: var(--c-primary-dark);
}
/* on the blue stats band: translucent white pill */
.badge-green {
  background: rgba(255, 255, 255, 0.16);
  color: var(--c-white);
}
/* standard section marker: soft green pill */
.badge-script {
  background: var(--c-green-soft);
  color: var(--c-green-deep);
}
/* section markers sitting on dark panels */
.steps .badge-script,
.solutions-col .badge-script {
  background: rgba(38, 189, 126, 0.14);
  color: #42d693;
}

/* Green wavy underline inside headings */
.squiggle {
  background: url("../assets/line.png") no-repeat center bottom / 100% auto;
  padding-bottom: 0.18em;
}

/* ============================================================
   1. HEADER (sticky)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  box-shadow: 0 1px 0 rgba(27, 35, 52, 0.06);
  transition: box-shadow 0.25s;
}
/* Elevated once the page scrolls (set in js/main.js) */
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(27, 35, 52, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand img { width: 170px; height: auto; }

/* Hamburger (mobile only) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.25s, opacity 0.25s;
}
/* X animation when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav: hidden dropdown panel under the header */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--c-white);
  box-shadow: 0 14px 24px rgba(27, 35, 52, 0.12);
}
.site-nav.is-open { display: flex; }

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-nav ul a {
  display: block;
  padding: 8px 4px;
  color: var(--c-ink);
  font-weight: 500;
}
.site-nav ul a:hover { color: var(--c-primary); }
/* Scrollspy: the section currently on screen (set in js/main.js) */
.site-nav ul a.is-active { color: var(--c-primary-dark); }
.site-nav .btn { text-align: center; }

/* Desktop nav from 992px: inline row, no hamburger.
   (Below 992px the inline links wrap and look cramped,
   so tablets keep the hamburger menu.) */
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 22px;
  }
  .site-nav ul a { white-space: nowrap; }
  .site-nav .btn { white-space: nowrap; }
}

/* ============================================================
   2. SLIDER ENGINE (shared) — every [data-slider] is an
   independent carousel. Slides are grid-stacked in one cell so
   the section auto-sizes to the tallest slide and crossfades.
   ============================================================ */
.pslider { position: relative; overflow: hidden; }

.pslides { display: grid; }
.pslide {
  grid-area: 1 / 1;              /* stack every slide in the same cell */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
}
.pslide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Prev / next arrows (engine wires the clicks) */
.pslider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(27, 35, 52, 0.14);
  backdrop-filter: blur(4px);
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pslider-nav:hover {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 12px 26px rgba(34, 119, 242, 0.32);
}
.pslider-nav svg { width: 20px; height: 20px; }
.pslider-prev { left: 10px; }
.pslider-next { right: 10px; }

/* Dot indicators (engine builds the buttons) */
.pslider-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  gap: 9px;
}
.pslider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 35, 52, 0.22);
  cursor: pointer;
  transition: width 0.25s, background-color 0.25s;
}
.pslider-dot.is-current {
  width: 26px;
  background: var(--c-primary);
}

@media (min-width: 768px) {
  .pslider-nav { width: 50px; height: 50px; }
  .pslider-nav svg { width: 23px; height: 23px; }
  .pslider-prev { left: 18px; }
  .pslider-next { right: 18px; }
}

/* Autoplay pause/resume toggle (WCAG 2.2.2) — engine adds it when
   a slider auto-advances. Sits at the bottom-right corner. */
.pslider-pause {
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 8;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--c-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(27, 35, 52, 0.14);
  transition: background-color 0.2s, color 0.2s;
}
.pslider-pause:hover { background: var(--c-navy); color: var(--c-white); }
.pslider-pause svg { width: 14px; height: 14px; }

/* Premium CTA size (used across both sliders) */
.btn--lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: 0 12px 24px -10px rgba(27, 35, 52, 0.5);
}
.btn-green.btn--lg  { background: linear-gradient(135deg, #12a565, #0c7a4d); }
.btn-green.btn--lg:hover { background: linear-gradient(135deg, #0f9a5c, #0a6b43); }
.btn-ghost.btn--lg { box-shadow: none; }
.btn--lg:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -12px rgba(27, 35, 52, 0.55); }
.btn-ghost.btn--lg:hover { box-shadow: 0 14px 26px -14px rgba(27, 35, 52, 0.4); }
.btn--lg .arw { transition: transform 0.22s; }
.btn--lg:hover .arw { transform: translateX(4px); }

/* Highlighted phrase inside slider headlines */
.hl { color: var(--c-primary); }
.hl--green { color: var(--c-green); }

/* Entrance: active slide's content rises + fades in (staggered) */
.pslide .s1-copy > *,
.pslide .s2-copy > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.pslide.is-active .s1-copy > *,
.pslide.is-active .s2-copy > * {
  opacity: 1;
  transform: none;
}
.pslide .s1-copy > *:nth-child(1),
.pslide .s2-copy > *:nth-child(1) { transition-delay: 0.05s; }
.pslide .s1-copy > *:nth-child(2),
.pslide .s2-copy > *:nth-child(2) { transition-delay: 0.13s; }
.pslide .s1-copy > *:nth-child(3),
.pslide .s2-copy > *:nth-child(3) { transition-delay: 0.21s; }
.pslide .s1-copy > *:nth-child(4),
.pslide .s2-copy > *:nth-child(4) { transition-delay: 0.29s; }
.pslide .s1-copy > *:nth-child(5),
.pslide .s2-copy > *:nth-child(5) { transition-delay: 0.37s; }

/* Headlines skip the block rise — their words pop individually below */
.pslide .s1-copy > h1,
.pslide .s2-copy > h2 { opacity: 1; transform: none; transition: none; }

/* Word-pop: js/main.js wraps each headline WORD in a .hw span (never
   single letters — splitting Bengali graphemes breaks conjunct
   rendering). Words rise in with a small overshoot, staggered by
   --wi, and re-run every time their slide becomes active. */
.hw { display: inline-block; }
.pslide .hw {
  opacity: 0;
  transform: translateY(0.55em);
}
.pslide.is-active .hw {
  animation: wordPop 0.55s cubic-bezier(0.22, 0.9, 0.3, 1.35) both;
  animation-delay: calc(var(--wi, 0) * 70ms + 120ms);
}
@keyframes wordPop {
  from { opacity: 0; transform: translateY(0.55em) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   2a. HERO CAROUSEL — one shared area, two full hero slides.
   Both slides are grid-stacked (see .pslide) so they are always
   the SAME height and occupy the SAME viewport region; switching
   never shifts the page. Each slide centres its content and owns
   its own decorations, which crossfade with it.
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: url("../assets/bg-shape-03.png") no-repeat center bottom / cover, linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
}
.hero-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 40px 60px;
}
.hero-slide > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Slide 1: image left · copy right   |   Slide 2: copy left · collage right */
.hero-split,
.hero-collage {
  display: grid;
  gap: 32px;
  align-items: center;
}

/* ---------- Slide 1 — copy ---------- */
.s1-copy { max-width: 560px; }

.s1-eyebrow {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
}
.s1-eyebrow-top { color: var(--c-ink); font-size: 1.05rem; }
.s1-eyebrow-main {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--c-primary);
  font-size: 1.25rem;
}
.s1-eyebrow-main svg { width: 17px; height: 17px; }

/* No negative tracking: Bengali conjuncts collide when tightened */
.hero-slide--split h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.16;
  margin-bottom: 0.45em;
}
.hs-desc {
  max-width: 44ch;
  margin-bottom: 22px;
  font-size: 1.12rem;
  color: var(--c-body);
}

.s1-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-bottom: 28px;
}
.s1-ticks li {
  position: relative;
  padding-left: 28px;
  color: var(--c-ink);
  font-weight: 600;
}
.s1-ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--c-green);
}

.s1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Slide 1 — figure + floating cards ---------- */
.s1-figure {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}
.s1-blob {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 3%;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #e9f1ff 0%, #eef0f6 60%, #edeff5 100%);
  z-index: 0;
}
.s1-dotgrid {
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 78px;
  height: 70px;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Ccircle cx='2' cy='2' r='1.7' fill='%232b3a55'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.s1-photo {
  position: relative;
  z-index: 2;
  display: block;
  width: 84%;
  margin-inline: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 24px 34px rgba(27, 35, 52, 0.18));
}

.s1-card {
  position: absolute;
  z-index: 3;
  background: var(--c-white);
  border-radius: 16px;
  box-shadow: 0 16px 34px -10px rgba(27, 35, 52, 0.22);
  opacity: 0;                         /* fades in when slide activates */
  transition: opacity 0.6s ease 0.15s;
  animation: floaty 6s ease-in-out infinite;
}
.pslide.is-active .s1-card { opacity: 1; }

/* Stacked (mobile) layout: keep the card beside the shoulder so it
   never covers the face; ≥1024px it floats to the top-right corner */
.s1-card--report {
  top: 28%;
  right: -4%;
  width: 46%;
  max-width: 172px;
  padding: 9px;
  animation-delay: -2s;
}
.s1-card--report img { border-radius: 10px; }

.s1-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 17px 11px 11px;
  border-radius: 16px;
}
.s1-chip--left   { top: 42%; left: -8%;  animation-delay: -1s; }
.s1-chip--bottom { bottom: 1%; left: 26%; animation-delay: -3.5s; }

.s1-chip-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.s1-chip-ic svg { width: 20px; height: 20px; }
.s1-chip--blue   .s1-chip-ic { background: #e4edfd; color: var(--c-primary); }
.s1-chip--amber  .s1-chip-ic { background: #fdefd6; color: var(--c-amber); }
.s1-chip--green  .s1-chip-ic { background: #dcf5e9; color: var(--c-green-dark); }
.s1-chip--violet .s1-chip-ic { background: #ece7fb; color: #6d54d6; }

.s1-chip-tx { display: flex; flex-direction: column; line-height: 1.2; }
.s1-chip-tx b { color: var(--c-ink); font-size: 0.9rem; font-weight: 700; }
.s1-chip-tx i { color: #5f6c7d; font-size: 0.72rem; font-style: normal; }

@keyframes floaty {
  50% { transform: translateY(-11px); }
}

/* ---------- Slide 1 — decorations ---------- */
.hs-rings {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    rgba(27, 35, 52, 0.05) 0 1.5px, transparent 1.5px 70px);
  -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 74%);
  mask-image: radial-gradient(circle at center, #000 55%, transparent 74%);
  z-index: 0;
  pointer-events: none;
}
.hs-plus {
  position: absolute;
  right: 26px;
  bottom: 78px;
  width: 108px;
  height: 66px;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Cpath d='M11 5v12M5 11h12' stroke='%2326bd7e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.85;
  pointer-events: none;
}
/* ---------- Slide 2 — copy ---------- */
.s2-copy { max-width: 540px; }
.hero-slide--collage h2 {
  font-size: clamp(2rem, 5.2vw, 3.2rem);
  line-height: 1.2;
}
.s2-sub { font-size: 1.1rem; margin-bottom: 38px; }
.s2-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Slide 2 — collage stage ---------- */
.s2-stage {
  position: relative;
  max-width: 540px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
.s2-stage img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  background: transparent;
}
.pslide.is-active .s2-stage img {
  animation: popIn 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.s2-stage img:nth-child(2) { animation-delay: 0.06s; }
.s2-stage img:nth-child(3) { animation-delay: 0.12s; }
.s2-stage img:nth-child(4) { animation-delay: 0.18s; }
.s2-stage img:nth-child(5) { animation-delay: 0.24s; }
.s2-stage img:nth-child(6) { animation-delay: 0.30s; }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.86); }
  to   { opacity: 1; transform: scale(1); }
}

/* Shapes mirror each photo's own composition (pill portrait, rounded
   rects, teal circles) so nobody's face gets cut at any width */
.c-m1  { left: 0;    top: 19%; width: 31%; height: 58%;             border-radius: 99px; }
.c-m4  { left: 34%;  top: 0;   width: 32%; aspect-ratio: 1;         border-radius: 14px; }
.c-m2  { left: 34%;  top: 34%; width: 32%; aspect-ratio: 170 / 154; border-radius: 14px; }
.c-wm1 { right: 0;   top: 15%; width: 31%; aspect-ratio: 1;         border-radius: 50%; }
.c-wm2 { right: 0;   top: 49%; width: 32%; aspect-ratio: 171 / 158; border-radius: 14px; }
.c-m3  { left: 35%;  top: 66%; width: 28%; aspect-ratio: 1;         border-radius: 50%; }

/* ---------- Slide 2 — decorations ---------- */
.hs-circle {
  position: absolute;
  top: -120px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: #eef0f4;
  z-index: 0;
  pointer-events: none;
}
.hs-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-group { display: flex; flex: none; }
.marquee-letter {
  font-weight: 700; /* heaviest weight actually loaded — avoids faux-bold */
  font-size: clamp(110px, 20vw, 320px);
  line-height: 0.72;
  color: #e6e9ef;
  pointer-events: auto;
  transition: transform 0.35s, color 0.35s;
}
.marquee-letter:hover { transform: translateY(-14px); color: #cfe0fc; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive: tablet gains height, desktop goes 2-col ---------- */
@media (min-width: 768px) {
  .hero-slide { min-height: 540px; padding-block: 44px 60px; }
}
@media (min-width: 1024px) {
  /* Fill the first screen (capped so huge monitors don't stretch it) */
  .hero-slide {
    min-height: min(calc(100vh - var(--header-h)), 780px);
    padding-block: 48px 56px;
  }

  .hero-split {
    grid-template-columns: 43% 1fr;
    gap: 84px;
  }
  /* DOM order is copy-then-figure (mobile shows copy first); on desktop
     we place the figure LEFT / copy RIGHT. The explicit grid-row keeps
     sparse auto-placement from bumping the figure onto a second row. */
  .hero-split .s1-figure { grid-column: 1; grid-row: 1; max-width: 560px; }
  .hero-split .s1-copy   { grid-column: 2; grid-row: 1; }

  /* With the larger figure, float the cards further out so each one
     gets clear air around it (they hug the photo on smaller screens) */
  .s1-card--report { top: 2%; right: -9%; width: 52%; max-width: 205px; }
  .s1-chip--left   { top: 44%; left: -12%; }
  .s1-chip--bottom { bottom: -2%; left: 30%; }

  .hero-collage { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Below the 2-column breakpoint the hero stacks, so edge-centred arrows
   would land on the content. Hide them and let dots + swipe + autoplay
   drive the carousel (standard premium mobile pattern). */
@media (max-width: 1023px) {
  .pslider-nav { display: none; }
}
@media (max-width: 767px) {
  .hs-plus { display: none; }   /* declutter the stacked figure */
}
@media (max-width: 520px) {
  .s1-actions, .s2-actions { flex-direction: column; align-items: stretch; }
  .s1-actions .btn, .s2-actions .btn { justify-content: center; }
}

/* ============================================================
   3. BLUE STATS BAND
   ============================================================ */
.stats {
  background: var(--grad-blue);
  color: var(--c-white);
  padding-block: 56px;
}
.stats h2 {
  color: var(--c-white);
  font-size: var(--fs-h2);
  margin: 0;
}
/* squiggle recolored for dark-blue background */
.squiggle-light { filter: brightness(1.4); }

.stats-inner {
  display: grid;
  gap: 40px;
}

.stats-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  opacity: 0.95;
}
.stat-number {
  display: block;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
}
.stat-unit { font-size: 0.55em; font-weight: 700; }

/* Narrow screens: one stat per row, number + label on a shared baseline */
@media (max-width: 560px) {
  .stats-figures { grid-template-columns: 1fr; gap: 16px; }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat-label { margin-top: 0; }
}
@media (min-width: 1024px) {
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* ============================================================
   4. EXAM CATEGORIES
   ============================================================ */
.exams {
  padding-block: var(--section-pad);
  /* faint checkered texture in the original — kept subtle with a gradient */
  background:
    url("../assets/bg-shape-1.png") no-repeat center right / contain,
    linear-gradient(180deg, #fafbfd 0%, var(--c-white) 30%);
}

.exams-head {
  display: grid;
  gap: 24px;
  margin-bottom: 44px;
}
.exams h2 { font-size: var(--fs-h2); }
.exams-lede {
  color: var(--c-green-deep);
  font-weight: 500;
  margin: 0;
}
.exams-desc { margin: 0; }

.exam-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.exam-card {
  display: block;
  background: var(--c-navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.exam-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(27, 35, 52, 0.16);
}
/* Uniform card height regardless of source image proportions */
.exam-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.exam-card-title {
  display: block;
  padding: 14px 18px 16px;
  color: var(--c-white);
  font-weight: 700;
  font-size: 1.1rem;
}

@media (min-width: 600px) {
  .exam-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .exams-head { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .exam-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   4b. NOTICE BOARD — aggregated official notices, filtered by
   source. Cards are static HTML (SEO / no-JS); .notice-tab filters
   toggle .is-hidden in js/main.js.
   ============================================================ */
.notices {
  padding-block: var(--section-pad);
  background: var(--c-bg-soft);
}
.notices-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.notices h2 { font-size: var(--fs-h2); }
.notices-sub { margin: 0; max-width: 62ch; }
.notices-updated {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-body);
}
@media (min-width: 900px) {
  .notices-head { grid-template-columns: 1fr auto; align-items: end; }
  .notices-updated { text-align: right; }
}

/* Filter tabs — pill buttons; the active one fills brand blue */
.notice-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.notice-tab {
  padding: 0.5em 1.15em;
  border: 1px solid #d8e0ec;
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-bangla);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.notice-tab:hover { border-color: var(--c-primary); color: var(--c-primary); }
.notice-tab.is-current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

/* Fixed-height ticker viewport — compresses the list to ~4 visible
   cards; JS clones + auto-scrolls it. Edges fade only while ticking. */
.notice-viewport {
  max-height: 330px;
  overflow-y: auto;
  padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e6 transparent;
}
.notice-viewport.is-ticking {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.notice-viewport::-webkit-scrollbar { width: 8px; }
.notice-viewport::-webkit-scrollbar-thumb { background: #cbd5e6; border-radius: 8px; }
.notice[data-clone] { pointer-events: none; }

/* Notice list + rows */
.notice-list { display: grid; gap: 12px; }
.notice {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 16px;
  padding: 16px 20px;
  background: var(--c-white);
  border: 1px solid #e8edf4;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(27, 35, 52, 0.04);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.notice:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: #d3ddec;
}
.notice.is-hidden { display: none; }

/* Source badge — tints mirror the hero chip palette */
.notice-src {
  flex: none;
  padding: 0.28em 0.85em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.notice-src--bcs   { background: #e4edfd; color: var(--c-primary-dark); }
.notice-src--ntrca { background: var(--c-green-soft); color: var(--c-green-deep); }
.notice-src--bank  { background: #fdefd6; color: #a86200; }
.notice-src--govt  { background: #ece7fb; color: #5b43c0; }

/* Notice link + external-link icon */
.notice-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--c-ink);
  font-weight: 600;
  line-height: 1.5;
}
.notice-link:hover { color: var(--c-primary); }
.notice-link:hover .notice-ext { opacity: 1; }
.notice-link em { color: var(--c-body); font-style: normal; font-weight: 500; }
.notice-ext {
  flex: none;
  width: 15px;
  height: 15px;
  opacity: 0.5;
  transform: translateY(2px);
  transition: opacity 0.18s;
}
.notice-date {
  flex: none;
  font-size: 0.85rem;
  color: var(--c-body);
  white-space: nowrap;
}

/* Empty state (shown by JS when a filter yields nothing) */
.notice-empty {
  margin: 20px 0 0;
  padding: 24px;
  text-align: center;
  color: var(--c-body);
  background: var(--c-white);
  border: 1px dashed #d3ddec;
  border-radius: var(--radius);
}

/* Conversion nudge under the list */
.notices-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #eef4ff, #e9f7f0);
  border-radius: var(--radius);
}
.notices-cta p { margin: 0; font-weight: 600; color: var(--c-ink); }

/* Disclaimer + official-board links */
.notices-foot { margin-top: 24px; }
.notices-disclaimer {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--c-body);
}
.notices-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.9rem;
}
.notices-sources span { font-weight: 600; color: var(--c-ink); }
.notices-sources a { font-weight: 600; text-decoration: underline; }

/* Small screens: badge + link on row 1, date drops below full-width */
@media (max-width: 640px) {
  .notice { grid-template-columns: auto 1fr; row-gap: 8px; }
  .notice-date { grid-column: 1 / -1; padding-left: 2px; }
}

/* ============================================================
   5. CALLOUT BANNER
   ============================================================ */
.callout-wrap { padding-block: 8px 0; }

.callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(27, 35, 52, 0.1);
}
.callout h2 { font-size: 1.35rem; margin-bottom: 0.15em; }
.callout p { margin: 0; }
.callout-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e3f7ee;
  color: var(--c-green);
}
.callout-icon svg { width: 30px; height: 30px; }

@media (min-width: 768px) {
  .callout {
    flex-direction: row;
    align-items: center;
    padding: 32px 40px;
  }
  .callout-text { flex: 1; }
}

/* ============================================================
   6. ABOUT
   ============================================================ */
.about { padding-block: var(--section-pad); }

.about-inner {
  display: grid;
  gap: 48px;
}
.about h2 { font-size: var(--fs-h2); }

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 28px 0 20px;
}
.about-feature h3 { font-size: 1.15rem; margin-bottom: 0.2em; }
.about-feature p { margin: 0; }
.about-feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px dashed var(--c-primary);
  color: var(--c-primary);
}
.about-feature-icon svg { width: 26px; height: 26px; }

/* Checkmark bullets */
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 10px;
  color: var(--c-ink);
  font-weight: 600;
}
.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

.about-media {
  display: grid;
  gap: 24px;
}
.about-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}
.about-flow {
  width: 100%;
  max-width: 480px;
  justify-self: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--c-white);
}

@media (min-width: 1024px) {
  .about-inner {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
  }
}

/* ============================================================
   7. PROBLEMS vs SOLUTIONS
   ============================================================ */
.problems {
  padding-block: var(--section-pad);
  background: var(--c-bg-soft);
}
.problems-inner {
  display: grid;
  gap: 32px;
}
/* Column heads, one step below the section-heading scale */
.problems h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }

/* Left column: light problem card */
.problem-card {
  background: #eef1f7;
  border-radius: var(--radius-lg);
  padding: 28px;
}
.problem-card h3 {
  font-size: 1.15rem;
  margin-top: 1.2em;
}
.problem-card h3:first-child { margin-top: 0; }
.problem-card p:last-child { margin-bottom: 0; }

/* Right column: dark solutions panel */
.solutions-col {
  background: var(--c-navy);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  color: #c6cfdd;
}
.solutions-col h2 { color: var(--c-white); }
.solutions-lede { opacity: 0.9; }

/* Left-aligned with check markers — mirrors the problems column so the
   two lists read as question/answer pairs */
.solution-list { margin-top: 28px; }
.solution-list div { margin-bottom: 26px; }
.solution-list div:last-child { margin-bottom: 0; }
.solution-list dt {
  position: relative;
  padding-left: 32px;
  color: var(--c-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.solution-list dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--c-green);
}
.solution-list dd { margin: 0; padding-left: 32px; }

@media (min-width: 1024px) {
  .problems-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ============================================================
   8. DARK "3 STEPS"
   ============================================================ */
.steps {
  margin: 0 auto;
  padding-block: var(--section-pad);
  background: 
    url("../assets/bg-02.jpg") no-repeat center center / cover,
    var(--c-navy);
  text-align: left;
}
/* rounded dark panel inset from the page edges, like the original */
@media (min-width: 768px) {
  .steps {
    max-width: calc(var(--container) + 40px);
    border-radius: var(--radius-lg);
    margin-block: 8px 0;
  }
}

.steps .badge-script { display: table; margin-inline: auto; }
.steps h2 {
  color: var(--c-white);
  text-align: center;
  font-size: var(--fs-h2);
  margin-bottom: 1.8em;
}

.step-list {
  display: grid;
  gap: 40px;
  counter-reset: step;
}
/* This IS a real sequence, so number it visibly (Bengali digits) */
.step-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  background-image: linear-gradient(180deg, rgba(27, 35, 52, 0.75) 0%, rgba(22, 32, 47, 0.85) 100%), url("../assets/bg-shape-03.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.step-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  border-color: rgba(38, 189, 126, 0.3);
}
.step-list li::before {
  counter-increment: step;
  content: "ধাপ " counter(step, bengali);
  display: inline-block;
  margin-bottom: 14px;
  padding: 2px 12px;
  border-radius: 999px;
  background: rgba(38, 189, 126, 0.14);
  color: #42d693;
  font-size: 0.85rem;
  font-weight: 600;
}
.step-list h3 { color: var(--c-white); font-size: 1.3rem; }
.step-list p { color: #c6cfdd; margin: 0; max-width: 34ch; }

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: var(--c-green);
}
.step-icon svg { width: 48px; height: 48px; }

@media (min-width: 768px) {
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ============================================================
   9. FEATURES GRID
   ============================================================ */
.features {
  padding-block: var(--section-pad);
  background: 
    url("../assets/bg-04.jpg") no-repeat center center / cover,
    var(--c-bg-soft);
  text-align: center;
}
.features h2 { font-size: var(--fs-h2); }
.features-lede {
  max-width: 760px;
  margin: 0 auto 52px;
}

.feature-grid {
  display: grid;
  gap: 20px;
  text-align: left;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--c-white);
  border: 1px solid #e8edf4;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 0.25em; }
.feature p { margin: 0; }
.feature-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e8f0fe;
  color: var(--c-primary);
}
.feature-icon svg { width: 26px; height: 26px; }

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   10. PRICING (external embed)
   ============================================================ */
.pricing {
  padding-block: var(--section-pad) calc(var(--section-pad) * 0.6);
  text-align: center;
}
.pricing h2 { font-size: var(--fs-h2); }
.pricing-lede {
  max-width: 640px;
  margin: 0 auto;
}
.pricing-fallback {
  margin: 14px 0 0;
  font-size: 0.92rem;
}
.pricing-fallback a { text-decoration: underline; }
/* External pricing embed (preligram.com/plans). Height is set at runtime by
   preligram's postMessage handshake (js/main.js). 720px is only the pre-message
   placeholder so the section never collapses before the first height arrives. */
.pricing-embed {
  position: relative;
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
}
.pricing-frame {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
}

/* ============================================================
   10b. FINAL CTA — dark closing panel before the footer
   ============================================================ */
.cta-final { padding-block: 0 var(--section-pad); }

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 76px) clamp(24px, 5vw, 64px);
  background: linear-gradient(140deg, #202c44 0%, var(--c-navy-deep) 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  color: #c6cfdd;
}
/* soft green glow, echoes the hero's accent */
.cta-panel::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(38, 189, 126, 0.16), transparent 70%);
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 {
  color: var(--c-white);
  font-size: var(--fs-h2);
}
.cta-panel p {
  max-width: 56ch;
  margin: 0 auto;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.cta-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  margin-top: 32px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #9fb0c7;
}
.cta-trust li {
  position: relative;
  padding-left: 24px;
}
.cta-trust li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #42d693;
  font-weight: 700;
}
@media (max-width: 520px) {
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; text-align: center; }
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-navy-deep);
  color: #b9c3d3;
  padding-block: 0 32px;
}

/* Blue contact band — pulled up so it overlaps the footer edge */
.contact-band {
  transform: translateY(-40px);
  display: grid;
  gap: 24px;
  padding: 30px 32px;
  background: var(--grad-blue);
  border-radius: var(--radius-lg);
  color: var(--c-white);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-primary);
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-label {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}
.contact-value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.contact-value a { color: var(--c-white); }
.contact-value a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .contact-band { grid-template-columns: repeat(3, 1fr); }
}

/* Link columns */
.footer-cols {
  display: grid;
  gap: 40px;
  padding-block: 16px 48px;
}
.footer-nav h3 {
  color: var(--c-white);
  font-size: 1.15rem;
  margin-bottom: 1em;
}
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { color: #b9c3d3; }
.footer-nav a:hover { color: var(--c-white); }

/* Button that reads as a footer link (opens the how-to popup) */
.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: #b9c3d3;
  font: inherit;
  cursor: pointer;
}
.linklike:hover { color: var(--c-white); }

/* Video thumbnail with play button */
.footer-video {
  position: relative;
  display: block;
  max-width: 340px;
  border-radius: 10px;
  overflow: hidden;
}
.footer-video img { width: 100%; object-fit: cover; aspect-ratio: 16 / 8; }
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
}
.play-btn svg { width: 24px; height: 24px; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-white);
}
.footer-social a:hover { background: var(--c-primary); }
.footer-social svg { width: 17px; height: 17px; }

@media (min-width: 900px) {
  .footer-cols {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #b9c3d3; }
.footer-bottom-links a:hover { color: var(--c-white); }

/* ============================================================
   12. "কীভাবে পরীক্ষা দেবেন?" HOW-TO-EXAM POPUP
   ============================================================ */
/* Overlay */
#pq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: pqFadeIn 0.22s ease both;
}
#pq-overlay.pq-hidden { display: none !important; }
@keyframes pqFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Modal box */
#pq-box {
  position: relative;
  background: #e7eef9; /* brand-tinted, matches the page's soft blues */
  border-radius: 22px;
  width: 100%;
  max-width: 1080px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  animation: pqSlideUp 0.26s cubic-bezier(0.22, 0.68, 0, 1.2) both;
  scrollbar-width: thin;
  scrollbar-color: var(--c-navy) #e7eef9;
}
@keyframes pqSlideUp {
  from { transform: translateY(32px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
#pq-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--c-navy);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: background 0.18s, transform 0.18s;
}
#pq-close:hover { background: #c62828; transform: scale(1.08); }

/* Inner wrap */
.pq-wrap {
  font-family: var(--font-bangla);
  padding: 6px 20px 24px;
}

/* Header */
.pq-header { text-align: center; margin-bottom: 4px; }
.pq-logo { max-width: 140px; height: auto; margin: 0 auto 6px; display: block; }
.pq-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0 0 6px;
}
.pq-header p { font-size: 14px; color: var(--c-body); margin: 0; }

/* Grid */
.pq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 16px;
  max-width: 1020px;
  margin: 16px auto 0;
}
@media (max-width: 700px) {
  .pq-grid { grid-template-columns: 1fr; gap: 22px; }
  .pq-wrap { padding: 10px 16px 36px; }
}
@media (min-width: 701px) and (max-width: 920px) {
  .pq-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Card */
.pq-card { position: relative; display: flex; flex-direction: column; }
.pq-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: -22px;
  position: relative;
  z-index: 2;
}
.pq-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #e7eef9;
}
.pq-icon-circle svg { width: 22px; height: 22px; }
.pq-body { background: #fff; border-radius: 18px; padding: 30px 16px 12px; flex: 1; }
.pq-list { list-style: none; margin: 0; padding: 0; }
.pq-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.pq-list li:last-child { margin-bottom: 0; }
.pq-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.pq-list li span { font-size: 13px; line-height: 1.55; color: #222; font-weight: 400; }
.pq-list li span strong { font-weight: 700; }

/* Banner */
.pq-banner { border-radius: 0 0 16px 16px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; }
.pq-num {
  font-size: 36px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1;
  min-width: 44px;
  font-family: var(--font-bangla);
}
.pq-btxt .pq-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 3px; }
.pq-btxt .pq-sub { font-size: 12px; color: rgba(255, 255, 255, 0.9); line-height: 1.4; }

/* Card colours */
.pq-c1 .pq-icon-circle { background: #1976d2; } .pq-c1 .pq-dot { background: #1976d2; } .pq-c1 .pq-banner { background: #1565c0; }
.pq-c2 .pq-icon-circle { background: #7b1fa2; } .pq-c2 .pq-dot { background: #7b1fa2; } .pq-c2 .pq-banner { background: #6a1b9a; }
.pq-c3 .pq-icon-circle { background: #e64a19; } .pq-c3 .pq-dot { background: #e64a19; } .pq-c3 .pq-banner { background: #bf360c; }
.pq-c4 .pq-icon-circle { background: #388e3c; } .pq-c4 .pq-dot { background: #388e3c; } .pq-c4 .pq-banner { background: #2e7d32; }
.pq-c5 .pq-icon-circle { background: #c2185b; } .pq-c5 .pq-dot { background: #c2185b; } .pq-c5 .pq-banner { background: #880e4f; }
.pq-c6 .pq-icon-circle { background: #d81b60; } .pq-c6 .pq-dot { background: #d81b60; } .pq-c6 .pq-banner { background: #ad1457; }

/* Warning note */
.pq-note {
  max-width: 1020px;
  margin: 20px auto 0;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pq-note-icon { font-size: 22px; flex-shrink: 0; }
.pq-note p { font-size: 13px; color: #333; line-height: 1.6; margin: 0; }
.pq-note p strong { color: #bf360c; font-weight: 700; }

/* Floating trigger button */
#pq-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99998;
  background: var(--c-navy);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-family: var(--font-bangla);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 22px rgba(26, 35, 126, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
#pq-trigger:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(26, 35, 126, 0.6); }
#pq-trigger svg { flex-shrink: 0; }
/* Very small screens: icon-only pill */
@media (max-width: 400px) {
  #pq-trigger span { display: none; }
  #pq-trigger { border-radius: 50%; width: 50px; height: 50px; padding: 0; justify-content: center; bottom: 18px; right: 18px; }
}

/* ---------- Scroll reveal ----------
   js/main.js adds .reveal to selected blocks, then .is-in as they
   enter the viewport. Without JS the class never lands, so content
   is always visible. --reveal-delay staggers grid items. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 0.7, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .exam-card, .feature, .nav-toggle-bar, .marquee-letter,
  .notice, .notice-tab { transition: none; }
  .marquee-track, .s1-card { animation: none; }
  .pslide.is-active .s2-stage img { animation: none; }
  /* Entrance transforms off so nothing is left mid-animation */
  .pslide .s1-copy > *,
  .pslide .s2-copy > * { transition: none; transform: none; opacity: 1; }
  /* Headline word-pop off (JS also skips the wrapping) */
  .pslide .hw { opacity: 1; transform: none; animation: none; }
  /* Scroll reveal off (JS also skips it, this is the belt) */
  .reveal { transition: none; transform: none; opacity: 1; }
  /* slider auto-advance is also disabled in js/main.js */
  #pq-overlay, #pq-box { animation: none; }
}

/* ---------- Layered Decorative Shapes ---------- */
.hero, .exams, .about, .steps, .features {
  position: relative;
  overflow: hidden;
}

.hero > .container,
.exams > .container,
.about > .container,
.steps > .container,
.features > .container {
  position: relative;
  z-index: 5;
}

.lay-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  display: none; /* hidden on mobile / small screens by default */
}

@media (min-width: 1024px) {
  .lay-shape {
    display: block;
  }
  
  /* Exams layered shapes */
  .lay-shape-exams {
    right: 2%;
    bottom: 8%;
    width: 75px;
    opacity: 0.8;
  }
  
  /* About layered shapes */
  .lay-shape-about-1 {
    right: 12%;
    top: 8%;
    width: 100px;
    opacity: 0.85;
  }
  
  .lay-shape-about-2 {
    right: 4%;
    top: 40%;
    width: 70px;
    opacity: 0.8;
  }
  
  .lay-shape-about-3 {
    left: -4%;
    bottom: -5%;
    width: 520px;
    opacity: 0.9;
  }
}

/* ---------- Payment Gateway ---------- */
.payment-gateway {
  margin-block: 40px;
  text-align: center;
}
.payment-gateway img {
  max-width: 720px;
  width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  background: var(--c-white);
  padding: 16px;
  border: 1px solid #e8edf4;
}
