:root {
  --ink: #1b1740;
  --indigo: #1d0f63;
  --indigo-2: #2c1a86;
  --gold: #fbb515;
  --gold-2: #e5a200;
  --text: #2d2a45;
  --muted: #5f5c78;
  --line: #e4e2ef;
  --tint: #f5f4fb;
  --white: #fff;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo-2); }
h1, h2, h3 { margin: 0 0 12px; color: var(--ink); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
figure { margin: 0; }

.wrap { width: min(1140px, 100%); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.tint { background: var(--tint); }
.head { max-width: 680px; margin-bottom: 32px; }
.center { text-align: center; margin: 28px 0 0; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-weight: 600; letter-spacing: .02em; }
.eyebrow.dark { color: var(--indigo-2); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 48px; height: 48px; border-radius: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.25; }
.brand b { font-size: 1.1rem; }
.brand small { color: var(--muted); font-size: .76rem; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .96rem; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--indigo-2); }
.nav-cta { min-height: 42px; padding: 4px 16px; font-size: .95rem; }
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.menu-btn span { height: 2px; background: var(--ink); }

/* Hero */
.hero { padding: 64px 0; background: linear-gradient(135deg, var(--indigo), var(--indigo-2)); color: var(--white); }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero h1 { color: var(--white); }
.lead { color: #e2dff5; font-size: 1.12rem; }
.hero-img img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(10, 5, 50, .4); }

/* Facts */
.facts { border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-in > div { padding: 24px 16px; text-align: center; border-left: 1px solid var(--line); }
.facts-in > div:first-child { border-left: 0; }
.facts b { display: block; color: var(--indigo-2); font-size: 1.4rem; line-height: 1.3; }
.facts span { color: var(--muted); font-size: .94rem; }

/* Layout pieces */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.photo img { width: 100%; border-radius: var(--radius); }
.ticks { margin: 10px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding: 4px 0 4px 26px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--indigo-2);
  border-bottom: 2.5px solid var(--indigo-2);
  transform: rotate(-45deg);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card p { margin: 0; color: var(--muted); }
.tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 0 10px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
}

/* Cadet */
.cadet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.dates { margin: 0; }
.dates div { padding: 8px 0; border-top: 1px solid var(--line); }
.dates div:first-child { border-top: 0; padding-top: 0; }
.dates dt { color: var(--ink); font-weight: 600; }
.dates dd { margin: 0; color: var(--muted); }
.marks { width: 100%; border-collapse: collapse; }
.marks th, .marks td { padding: 9px 0; border-top: 1px solid var(--line); }
.marks tr:first-child th, .marks tr:first-child td { border-top: 0; }
.marks th { font-weight: 500; text-align: left; }
.marks td { color: var(--indigo-2); font-weight: 700; text-align: right; }
.note { margin: 20px 0 0; color: var(--muted); font-size: .95rem; }

/* LMS */
.lms { padding: 64px 0; background: var(--indigo); color: #e2dff5; }
.lms h2 { color: var(--white); }
.lms-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; }

/* Bookshop promo (ecom.saspc.com.bd) */
.nav-shop { position: relative; }
.nav-shop::after { content: "নতুন"; position: absolute; top: -10px; right: -18px; padding: 0 5px; border-radius: 6px; background: var(--gold); color: var(--ink); font-size: .62rem; font-weight: 700; line-height: 1.5; }
.shop-promo { padding: 64px 0; background: var(--tint); }
.promo {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 44px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--indigo) 0%, var(--indigo-2) 60%, #4b2fb8 100%);
  color: #e2dff5;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(29, 15, 99, .25);
}
.promo::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(251, 181, 21, .16); }
.promo::after { content: ""; position: absolute; left: 38%; bottom: -120px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.promo-text { position: relative; z-index: 1; }
.promo-tag { display: inline-block; margin-bottom: 12px; padding: 2px 12px; border-radius: 20px; background: var(--gold); color: var(--ink); font-size: .85rem; font-weight: 700; }
.promo h2 { color: var(--white); }
.promo-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 24px; padding: 0; list-style: none; }
.promo-points li { position: relative; padding-left: 22px; color: var(--white); font-weight: 500; }
.promo-points li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 6px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }
.btn-big { gap: 10px; min-height: 56px; padding: 10px 28px; font-size: 1.1rem; box-shadow: 0 10px 24px rgba(251, 181, 21, .35); }
.btn-big svg { transition: transform .15s ease; }
.btn-big:hover svg { transform: translateX(4px); }
.promo-books { position: relative; z-index: 1; height: 260px; }
.book {
  position: absolute;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 140px;
  height: 196px;
  padding: 14px 12px;
  border-radius: 4px 10px 10px 4px;
  border-left: 9px solid rgba(0, 0, 0, .22);
  text-align: center;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
}
.book small { font-size: .62rem; letter-spacing: .18em; font-weight: 700; opacity: .75; }
.book b { font-size: 1rem; line-height: 1.35; }
.book.b1 { left: 4%; transform: rotate(-8deg); background: linear-gradient(160deg, #fff, #ece9fb); color: var(--ink); }
.book.b2 { left: 32%; z-index: 2; height: 214px; background: linear-gradient(160deg, var(--gold), #f39c12); color: var(--ink); }
.book.b3 { left: 60%; transform: rotate(7deg); background: linear-gradient(160deg, #1b1740, #3b2a8f); color: var(--white); border-left-color: rgba(255, 255, 255, .15); }
.promo-badge { position: absolute; right: 0; top: 0; z-index: 3; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--white); color: var(--indigo-2); font-weight: 700; font-size: .85rem; line-height: 1.3; text-align: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); transform: rotate(10deg); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gallery figcaption { padding-top: 8px; color: var(--muted); font-size: .94rem; }
.link { font-weight: 600; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; text-align: right; }

/* Footer */
.footer { padding: 28px 0; background: var(--ink); color: #cfcbe6; font-size: .95rem; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer p { margin: 0; }
.footer b { color: var(--white); }

@media (max-width: 1020px) {
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; }
  .nav-shop::after { position: static; margin-left: 8px; }
  .promo { grid-template-columns: 1fr 1fr; padding: 32px; }
  .cards, .cards.four, .cadet-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero, .lms { padding: 44px 0; }
  .hero-in, .split, .lms-in, .contact { grid-template-columns: 1fr; gap: 26px; }
  .facts-in { grid-template-columns: repeat(2, 1fr); }
  .facts-in > div { padding: 18px 10px; border-left: 0; }
  .facts-in > div:nth-child(even) { border-left: 1px solid var(--line); }
  .facts-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards, .cards.four, .cadet-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .footer-in { flex-direction: column; align-items: flex-start; }
  .shop-promo { padding: 40px 0; }
  .promo { grid-template-columns: 1fr; gap: 10px; padding: 28px 20px; border-radius: 18px; }
  .promo-books { order: -1; height: 190px; width: min(320px, 100%); margin: 0 auto; }
  .book { width: 104px; height: 146px; padding: 10px 8px; }
  .book.b2 { height: 160px; }
  .book b { font-size: .82rem; }
  .promo-badge { width: 72px; height: 72px; font-size: .72rem; }
  .btn-big { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
