@font-face {
  font-family: "Li Ador Noirrit";
  src: local("Li Ador Noirrit"),
       local("Li Ador Noirrit Regular"),
       url("https://cdn.jsdelivr.net/gh/maateen/bangla-web-fonts@master/fonts/li-ador-noirrit/Li-Ador-Noirrit.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/maateen/bangla-web-fonts@master/fonts/li-ador-noirrit/Li-Ador-Noirrit.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #101828;
  --muted: #667085;
  --paper: #f7f8fa;
  --gold: #d6a84f;
  --gold2: #f4dfad;
  --green: #176b57;
  --line: #e7e9ee;
  --dark: #0c1715;
  --r: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: Inter, "Li Ador Noirrit", "Hind Siliguri", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Page Synchronized Load Control */
body.site-loading {
  opacity: 0;
  pointer-events: none;
}
body.site-loaded {
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, 92%); margin: auto; }
section { padding: 50px 0; }
h1, h2, h3 { margin: 0; }
h2 { font-size: clamp(26px, 5vw, 42px); letter-spacing: -1.2px; line-height: 1.1; }
.muted { color: var(--muted); }
.hide-sm { display: none; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.navin { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: clamp(20px, 5vw, 24px); font-weight: 800; letter-spacing: -1px;
}
.brand span { color: var(--gold); }
.brand-logo { height: 36px; width: auto; object-fit: contain; }
.navlinks {
  position: fixed; inset: 64px 0 auto 0;
  background: #fff; border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 10px 5%; font-weight: 600;
  box-shadow: 0 16px 28px rgba(0,0,0,0.06);
}
.navlinks a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.menu .navlinks { display: flex; }
.burger {
  border: 0; background: none; width: 42px; height: 42px;
  display: grid; gap: 5px; place-content: center; cursor: pointer;
}
.burger i { display: block; width: 22px; height: 2px; background: var(--ink); }

/* Buttons & Badges */
.btn {
  display: inline-block; border: 0; border-radius: 12px;
  padding: 12px 20px; font-weight: 700; font-size: 14px;
  cursor: pointer; text-align: center; font-family: inherit;
  transition: transform .15s ease, background-color .15s ease;
}
.primary { background: var(--ink); color: #fff; }
.gold { background: var(--gold); color: #161616; }
.outline { background: #fff; border: 1px solid var(--line); }
.full { display: block; width: 100%; }
.btn:active { transform: scale(.98); }
.eyebrow {
  display: inline-block; background: #fff; border: 1px solid #eadfc7;
  padding: 6px 12px; border-radius: 99px; font-size: 11px;
  font-weight: 800; color: #755b28; letter-spacing: .6px;
}
.gold-e { background: transparent; border-color: rgba(214, 168, 79, .4); color: var(--gold2); }

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f7f1e4, #fff 52%, #eef5f2);
  padding: 30px 0 0;
  overflow: hidden;
}

/* Dynamic Twinkling Background Canvas & Non-Breaking Formulas */
.chem-stars-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.chem-random-node {
  position: absolute;
  font-family: "Courier New", Courier, monospace, sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 2.2vw, 16px);
  color: #176b57;
  display: inline-block !important;
  width: max-content !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  text-rendering: optimizeLegibility;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}
.chem-random-node.active {
  opacity: 0.32;
  transform: translate(-50%, -50%) scale(1.05);
  text-shadow: 0 0 10px rgba(23, 107, 87, 0.45);
}
.chem-random-node.gold-tone {
  color: var(--gold);
}

.hero-grid { position: relative; z-index: 2; display: grid; gap: 14px; align-items: end; }
h1 { font-size: clamp(38px, 11vw, 78px); line-height: 1.02; letter-spacing: -2px; margin: 14px 0; }
h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(15px, 3.5vw, 17px); color: #59636f; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.herostats { display: flex; gap: 20px; padding-bottom: 8px; }
.herostats b { display: block; font-size: 26px; letter-spacing: -1px; }
.herostats small { color: var(--muted); }

.hero-photo {
  position: relative; min-height: 310px;
  display: flex; justify-content: center; align-items: flex-end;
}
.ring {
  position: absolute; bottom: 0; width: min(84%, 430px);
  aspect-ratio: 1; border-radius: 50%; background: var(--dark);
  box-shadow: 0 25px 70px rgba(12, 23, 21, .2);
  animation: ringPulse 6s ease-in-out infinite alternate;
}
.ring:after {
  content: ""; position: absolute; inset: -14px;
  border: 1px solid rgba(214, 168, 79, .55); border-radius: 50%;
  animation: ringSpin 14s linear infinite;
}
.hero-photo img {
  position: relative; max-height: 440px; width: auto; object-fit: contain;
  animation: floatHero 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
  will-change: transform;
}
.badge {
  position: absolute; left: 2%; bottom: 12px; background: #fff;
  padding: 8px 12px; border-radius: 12px; font-size: 10px; font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12); z-index: 2;
}

@keyframes floatHero {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-10px) scale(1.015); }
}
@keyframes ringPulse {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.03); box-shadow: 0 30px 80px rgba(214, 168, 79, .25); }
}
@keyframes ringSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Map Section */
.mapsec { background: #fff; }
.map-grid { display: grid; gap: 24px; align-items: center; }
.mapcopy h2 { margin: 12px 0; }
.bigcount { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.bigcount b { font-size: clamp(44px, 9vw, 56px); letter-spacing: -3px; color: var(--green); }
.bigcount span { color: var(--muted); font-size: 13px; }

.mapbox {
  position: relative;
  background: #f4f7f5;
  border-radius: 22px;
  padding: 10px;
  overflow: hidden;
}
#bdmap svg {
  width: 100%;
  height: auto;
  max-height: 72vh;
  display: block;
}

/* District Map Shapes */
.dist {
  fill: #dfe9e4;
  stroke: #ffffff;
  stroke-width: 0.8;
  transition: fill 0.35s ease, stroke 0.35s ease, stroke-width 0.35s ease, filter 0.35s ease;
  cursor: pointer;
}
.dist:hover {
  fill: #c7ded3;
}

.dist.branch-dist.on-initial {
  fill: #b8ded0;
  stroke: rgba(23, 107, 87, 0.45);
  stroke-width: 1.1;
}

.dist.border-active-green {
  fill: #a9d9c7 !important;
  stroke: #176b57 !important;
  stroke-width: 2.8 !important;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(23, 107, 87, 0.85));
}

.dot {
  fill: #b9c6c0;
  pointer-events: none;
}
.branch-dot {
  fill: #176b57;
  stroke: #ffffff;
  stroke-width: 1.2;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.pulse {
  fill: rgba(23, 107, 87, 0.35);
  transform-box: fill-box;
  transform-origin: center;
  animation: p 2.4s infinite ease-out;
  pointer-events: none;
}
@keyframes p {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(3.2); opacity: 0; }
}

.dotg.current-hub-green .branch-dot {
  fill: #125746;
  stroke: #ffffff;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(23, 107, 87, 0.95));
}
.dotg.current-hub-green .pulse {
  fill: rgba(23, 107, 87, 0.65);
}

.journey-track-bg {
  fill: none;
  stroke: rgba(23, 107, 87, 0.2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
}
.journey-track-active {
  fill: none;
  stroke: #176b57;
  stroke-width: 2.6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.05s linear;
}

.traveler-group {
  pointer-events: none;
  will-change: transform;
}
.traveler-beacon {
  fill: rgba(23, 107, 87, 0.35);
  animation: travelerGlow 1.2s infinite ease-out;
  transform-box: fill-box;
  transform-origin: center;
}
.traveler-core {
  fill: #ffffff;
  stroke: #176b57;
  stroke-width: 2.4;
  filter: drop-shadow(0 0 8px rgba(23, 107, 87, 1));
}
@keyframes travelerGlow {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Experience */
.dark { background: var(--dark); color: #fff; }
.dark h2 { margin-top: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.stats div { background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 18px; }
.stats b { display: block; font-size: clamp(28px, 6vw, 34px); color: var(--gold); letter-spacing: -1px; }
.stats small { color: #aebbb7; }

/* Course Header & Carousel */
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.head-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.carousel-nav { display: flex; gap: 8px; }
.c-nav-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-content: center;
  font-size: 16px; font-weight: 700; transition: background .15s;
}
.c-nav-btn:hover { background: #eef1f4; }

.courses-carousel-wrap { position: relative; width: 100%; }
.courses-carousel {
  display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.courses-carousel::-webkit-scrollbar { height: 6px; }
.courses-carousel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }

.course {
  flex: 0 0 min(300px, 80vw);
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.ctop {
  min-height: 110px; padding: 16px 18px; background: #16211f; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ctop.goldbg { background: #e7d19c; color: #1a1a1a; }
.ctop.greenbg { background: var(--green); }
.ctop h3 { font-size: 19px; line-height: 1.15; margin: 0; }
.batch-pill {
  align-self: flex-start; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px; padding: 4px 8px;
  border-radius: 99px; background: rgba(255, 255, 255, .22); margin-bottom: 8px;
}
.goldbg .batch-pill { background: rgba(0, 0, 0, .08); }
.cbody { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.price { font-size: 22px; font-weight: 800; }
.meta { color: var(--muted); font-size: 13px; margin: 6px 0 14px; flex: 1; }

/* Standalone Courses Page Styling */
.courses-hero {
  background: linear-gradient(135deg, #f7f1e4, #fff 60%, #eef5f2);
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 10px;
}
.back-link:hover { text-decoration: underline; }

.all-courses-sec {
  padding: 40px 0 80px;
}
.batch-filter-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.filter-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.batch-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.batch-filters button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all .15s ease;
}
.batch-filters button:hover {
  border-color: var(--ink);
}
.batch-filters button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.courses-full-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Teacher Section */
.teacher { background: #f5efe2; }
.teacher-grid { display: grid; gap: 24px; align-items: center; }
.tphoto {
  background: linear-gradient(145deg, #17221f, #31423d);
  border-radius: 24px; height: 350px; display: flex;
  align-items: flex-end; justify-content: center; overflow: hidden;
  position: relative;
}
.tphoto img {
  height: 92%; width: auto; object-fit: contain;
  transition: transform .4s ease;
  animation: floatTeacher 6s ease-in-out infinite alternate;
}
.tphoto:hover img { transform: scale(1.05); }
@keyframes floatTeacher {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}
.teacher h2 { margin: 12px 0 8px; font-size: clamp(30px, 7vw, 48px); }
.tlead { font-weight: 700; color: var(--green); }
.tcopy { font-size: clamp(15px, 3.4vw, 17px); color: #5f625f; max-width: 620px; }
.points { display: grid; gap: 10px; margin-top: 20px; }
.points div { background: #fff; border: 1px solid #e4dfd4; border-radius: 14px; padding: 14px; }
.points b { display: block; }
.points span { font-size: 12px; color: #777; }

/* Ask, CTA & Footer */
.ask { background: #0c1715; color: #fff; padding: 40px 0; }
.askin { display: grid; gap: 16px; }
.ask p { color: #b7c3bf; margin: 8px 0 0; }
.cta { background: #e9dfc7; border-radius: 24px; padding: 26px; display: grid; gap: 16px; }
.cta p { margin: 6px 0 0; color: #625b4e; }
footer { background: #0c1715; color: #c9d2cf; padding: 40px 0 20px; }
.foot { display: grid; gap: 20px; }
.foot b { color: #fff; font-size: 22px; display: inline-flex; align-items: center; gap: 8px; }
.foot p { max-width: 420px; }

.social-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.soc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.soc-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}
.soc-btn.youtube:hover { background: #ff0000; border-color: #ff0000; color: #fff; }
.soc-btn.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.soc-btn.whatsapp:hover { background: #25d366; border-color: #25d366; color: #fff; }
.soc-btn.telegram:hover { background: #229ed9; border-color: #229ed9; color: #fff; }

.copy { margin-top: 26px; color: #81908c; }
.copy a { text-decoration: underline; }

@media(max-width: 420px) {
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; }
  .herostats { justify-content: space-between; }
  .stats { grid-template-columns: 1fr; }
  .c-nav-btn { display: none; }
}

@media(min-width: 760px) {
  section { padding: 80px 0; }
  .hide-sm { display: inline-block; }
  .burger { display: none; }
  .navlinks {
    position: static; display: flex; flex-direction: row; border: 0;
    padding: 0; gap: 26px; font-size: 14px; background: none;
    box-shadow: none;
  }
  .navlinks a { border: 0; padding: 0; }
  .hero { padding-top: 60px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero-photo { min-height: 520px; }
  .hero-photo img { max-height: 560px; }
  .map-grid { grid-template-columns: 1.2fr .8fr; gap: 50px; }
  .teacher-grid { grid-template-columns: .8fr 1.2fr; gap: 60px; }
  .tphoto { height: 480px; }
  .points { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .course { flex: 0 0 340px; }
  .courses-full-grid { grid-template-columns: repeat(3, 1fr); }
  .askin, .cta { grid-template-columns: 1fr auto; align-items: center; }
  .foot { grid-template-columns: 1fr auto; }
}