/* =========================================================
   Stethoscope By Rezwan: dark cosmic glass theme
   ---------------------------------------------------------
   1. THEME (colors, glass, fonts)  ← change the look here
   2. Cosmic background
   3. Base, glass, labels & buttons
   4. Header & navigation
   5. Hero
   6. Sections (shared)
   7. Rows (articles, mentors)
   8. Feature cards
   9. Vision & roadmap
   10. Join panel & footer
   ========================================================= */

/* ---------- 1. THEME ---------- */
:root {
  color-scheme: dark;

  /* Space palette: deep navy → cobalt → steel blue */
  --space-0:   #04070F;   /* deepest, page edges */
  --space-1:   #060B18;   /* page base */
  --space-2:   #0A1022;   /* navy */
  --cobalt:    #1B3FA0;   /* rich royal blue */
  --cobalt-2:  #2D5BD8;   /* brighter cobalt */
  --steel:     #6F8FD6;   /* light steel blue */

  --accent:    #2F6BFF;   /* electric blue: icon circles, dots */
  --accent-hi: #9CC0FF;   /* light blue: highlight words in headlines */

  /* Text */
  --ink:       #FFFFFF;                  /* headings */
  --ink-soft:  rgba(255,255,255,.72);    /* body */
  --muted:     rgba(255,255,255,.48);    /* labels, numbers, meta */
  --btn-ink:   #0B1220;                  /* dark text on white pill buttons */

  /* Glass */
  --glass-bg:      rgba(255,255,255,.055);
  --glass-bg-hi:   rgba(255,255,255,.09);
  --glass-border:  rgba(255,255,255,.12);
  --glass-edge:    rgba(255,255,255,.22);  /* top highlight */
  --glass-blur:    18px;
  --rule:          rgba(255,255,255,.10);

  /* Shape */
  --r-xl: 40px;   /* hero + join panels */
  --r-lg: 28px;   /* cards */
  --r-md: 22px;   /* rows */
  --pill: 999px;

  /* Fonts (unchanged from the original site) */
  --font-display: "Inter Tight", "Hind Siliguri", system-ui, sans-serif;
  --font-body:    "Inter", "Hind Siliguri", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-bangla:  "Hind Siliguri", "Inter", sans-serif;

  --max-width: 1120px;
  --gutter: 16px;
}

/* ---------- 2. Cosmic background ---------- */
html { background: var(--space-1); }
.cosmos { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #12286B 0%, transparent 55%),
    linear-gradient(180deg, var(--space-1) 0%, var(--space-2) 45%, var(--space-0) 100%);
}
.cosmos__stars {
  position: absolute; inset: -50%;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(190,215,255,.6), transparent 60%),
    radial-gradient(1px 1px at 60px 210px, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,.4), transparent 60%);
  background-size: 300px 260px;
  opacity: .55;
}
.cosmos__glow {               /* central light bloom */
  position: absolute; left: 50%; top: 18%; width: 1100px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(45,91,216,.38), rgba(27,63,160,.14) 55%, transparent 100%);
  filter: blur(20px);
}
.cosmos__planet {             /* glowing Earth horizon at the bottom */
  position: absolute; left: 50%; bottom: -172vmax; width: 200vmax; height: 200vmax;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #1D3E9C 0%, #0B1A45 18%, var(--space-0) 40%);
  box-shadow: 0 -2px 0 rgba(156,192,255,.35), 0 -30px 120px rgba(47,107,255,.35);
  opacity: .9;
}

/* ---------- 3. Base, glass, labels & buttons ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--space-1);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
.bn { font-family: var(--font-bangla); }
.container {
  max-width: var(--max-width); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
main, .site-footer { position: relative; z-index: 1; }   /* content sits above the fixed background */
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

/* The glass surface used everywhere */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-bg-hi), var(--glass-bg));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-edge);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
          backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -20px rgba(0,0,0,.6);
}
.glass--strong {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(47,107,255,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
}

/* Small monospaced uppercase label, e.g. "01 — ARTICLES & VIDEOS" */
.label {
  margin: 0 0 18px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .24em; color: var(--accent-hi);
}

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.035em; }
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-hi), #FFFFFF 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* White pill + blue circular arrow */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 6px 0 24px;
  background: #FFFFFF; color: var(--btn-ink);
  border-radius: var(--pill);
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(47,107,255,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(47,107,255,.8); }
.btn__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--font-body); font-size: 17px; letter-spacing: 0;
}

.text-link {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink); text-decoration: none;
  padding: 14px 22px; border-radius: var(--pill);
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .15s ease;
}
.text-link:hover { background: var(--glass-bg-hi); }

/* Circular glass icon button */
.circle-btn {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.06);
  transition: background .2s ease, transform .2s ease;
}
.circle-btn .icon { width: 20px; height: 20px; stroke: var(--ink); }

/* Line icons */
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.num { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- 4. Header & navigation ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--space-1); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 8px 0 22px; border-radius: var(--pill);
  max-width: calc(var(--max-width) - 2 * var(--gutter));
  transition: background .2s ease;
}
.site-header.scrolled .nav { background: rgba(10,16,34,.72); }
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--ink); text-decoration: none; letter-spacing: -.03em;
}
.logo span { color: var(--muted); }
/* Logo icon: icon + name on desktop, icon only on phones */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .logo-text { color: var(--ink); }
.logo-icon { width: auto; height: 30px; flex: none; }
@media (max-width: 760px) { .logo-text { display: none; } .logo-icon { height: 34px; } }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Hamburger in a white circle (like the app menu button) */
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: #FFFFFF; cursor: pointer; place-items: center;
}
.menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after {
  display: block; width: 16px; height: 1.5px; background: var(--btn-ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn__lines { position: relative; }
.menu-btn__lines::before, .menu-btn__lines::after { content: ""; position: absolute; left: 0; }
.menu-btn__lines::before { top: -5px; }
.menu-btn__lines::after  { top: 5px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__lines::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav { height: 60px; padding: 0 7px 0 18px; }
  .menu-btn { display: grid; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 20px 20px; border-radius: var(--r-lg);
    background: rgba(10,16,34,.9); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .nav-links .btn { margin-top: 16px; justify-content: space-between; width: 100%; }
}

/* ---------- 5. Hero ---------- */
.hero { padding: 20px 0 40px; }
.hero-panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 36px 20px 32px;
  background:
    radial-gradient(60% 50% at 30% 55%, rgba(156,192,255,.25), transparent 70%),
    linear-gradient(180deg, #0B1636 0%, var(--cobalt) 55%, var(--steel) 120%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 40px 80px -30px rgba(27,63,160,.6);
}
.hero-panel::after {          /* subtle film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }

/* Photo + name */
.hero-person { text-align: center; }
.portrait-wrap { position: relative; width: min(240px, 62vw); margin: 0 auto; }
@media (min-width: 860px) { .portrait-wrap { width: clamp(240px, 28vw, 340px); } }
.portrait-wrap .blob {               /* glowing blue sphere behind the photo */
  position: absolute; left: 4%; right: 4%; bottom: 0;
  aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.35), transparent 45%),
    radial-gradient(circle at 50% 50%, #3D6FE8 0%, #1B3FA0 60%, #0B1A45 100%);
  box-shadow: 0 0 60px rgba(47,107,255,.55), inset 0 -20px 40px rgba(4,7,15,.45);
}
.portrait-wrap .ring {               /* thin radar rings */
  position: absolute; left: -4%; right: -4%; bottom: -6%;
  aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}
.portrait-wrap img {
  position: relative; width: 100%; height: auto;
  filter: drop-shadow(0 20px 30px rgba(4,7,15,.35));
  /* head pops out above the circle, body is cut along the circle */
  -webkit-mask: linear-gradient(#000,#000) top / 100% 66% no-repeat,
                radial-gradient(circle closest-side, #000 99%, transparent 100%) bottom / 92% 69% no-repeat;
          mask: linear-gradient(#000,#000) top / 100% 66% no-repeat,
                radial-gradient(circle closest-side, #000 99%, transparent 100%) bottom / 92% 69% no-repeat;
}
.person-card {
  display: inline-block; margin: 30px auto 0; padding: 12px 26px 14px;
  border-radius: var(--r-md);
}
.person-name {
  margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700;
  letter-spacing: -.03em; color: var(--ink); line-height: 1.2;
}
.person-tagline { margin: 2px 0 0; color: var(--ink-soft); font-size: 17px; }

/* Brand text */
.hero-brand { text-align: center; }
.hero-brand .label { display: none; }
.brand-title {
  margin: 0; font-size: clamp(44px, 8vw, 92px); line-height: .92; font-weight: 700;
  letter-spacing: -.045em;
}
.brand-title em { display: block; font-size: .75em; margin-top: .06em; }
@media (max-width: 859px) { .brand-title { display: none; } }
.motto {
  margin: 22px 0 0; font-size: clamp(30px, 5vw, 44px); font-weight: 700;
  line-height: 1.2; color: var(--ink);
}
@media (max-width: 859px) { .motto { margin-top: 4px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }

@media (min-width: 860px) {
  .hero { padding: 28px 0 56px; }
  .hero-panel { padding: clamp(48px, 6vw, 72px) clamp(32px, 5vw, 64px) clamp(44px, 5vw, 64px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 4vw, 56px); }
  .brand-title { font-size: clamp(48px, 6.6vw, 92px); }
  .hero-brand { text-align: left; }
  .hero-brand .label { display: block; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- 6. Sections (shared) ---------- */
.section { padding: 64px 0; }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  margin: 0 0 10px; font-size: clamp(36px, 6vw, 60px); line-height: .98; font-weight: 700;
}
.section-head p { margin: 0; font-weight: 300; }
.disclaimer { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- 7. Rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  padding: 18px 14px 18px 20px; border-radius: var(--r-md);
  transition: transform .2s ease, background .2s ease;
}
.row:hover { transform: translateY(-2px); }
.row:hover .circle-btn { background: var(--accent); border-color: transparent; transform: rotate(45deg); }
.row-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; line-height: 1.25;
}
a.row-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.row-title.bn { font-family: var(--font-bangla); letter-spacing: 0; }
.chip {
  display: inline-block; padding: 2px 9px; border-radius: var(--pill);
  background: rgba(255,255,255,.1); color: var(--ink);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
}

/* ---------- 8. Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature { padding: 22px 22px 26px; border-radius: var(--r-lg); transition: transform .2s ease; }
.feature:hover { transform: translateY(-3px); }
.feature-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.icon-badge {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 8px rgba(47,107,255,.12), 0 10px 30px -6px rgba(47,107,255,.7);
}
.icon-badge .icon { width: 22px; height: 22px; }
.feature h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.feature p { margin: 8px 0 0; font-size: 15px; font-weight: 300; max-width: 30ch; }
@media (min-width: 700px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature { padding: 28px 28px 32px; }
}

/* ---------- 9. Vision & roadmap ---------- */
.vision { padding: 36px 22px; border-radius: var(--r-xl); }
@media (min-width: 860px) { .vision { padding: 64px; } }
.vision-quote { margin: 0; max-width: 16ch; font-size: clamp(36px, 6.5vw, 64px); line-height: .98; font-weight: 700; }

.step {
  display: grid; grid-template-columns: 14px 60px 1fr; gap: 14px; align-items: center;
  padding: 16px 20px; border-radius: var(--pill);
  background: rgba(255,255,255,.05); border: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .step { grid-template-columns: 14px 1fr; grid-template-rows: auto auto; border-radius: var(--r-md); padding: 20px; align-items: start; }
  .step .num { grid-column: 2; }
}

/* ---------- 10. Join panel & footer ---------- */
.join { padding: 24px 0 72px; }
.join-panel {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 22px; border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 50% 120%, rgba(156,192,255,.55), transparent 60%),
    linear-gradient(180deg, #0B1636 0%, var(--cobalt) 70%, var(--cobalt-2) 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 40px 80px -30px rgba(27,63,160,.7);
}
.join-panel::before {        /* concentric radar rings */
  content: ""; position: absolute; left: 50%; bottom: -260px; width: 620px; height: 620px;
  transform: translateX(-50%); border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 91px rgba(255,255,255,.08);
}
.join-panel > * { position: relative; }
.join h2 { margin: 0 0 18px; font-size: clamp(34px, 6vw, 60px); line-height: 1; font-weight: 700; }
.join p { margin: 0 auto 30px; max-width: 44ch; font-weight: 300; color: rgba(255,255,255,.8); }
@media (min-width: 860px) { .join-panel { padding: 96px 64px; } }

.site-footer { padding: 32px 0 48px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--rule); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-grid strong { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  display: inline-block; padding: 8px 16px; border-radius: var(--pill);
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  color: var(--ink-soft); text-decoration: none; font-size: 14px;
}
.footer-links a:hover { color: var(--ink); background: var(--glass-bg-hi); }
.small-print { margin-top: 18px; font-size: 13px; }

/* ---------- 11. Phone scale (≤600px): calmer type, more air ---------- */
@media (max-width: 600px) {
  :root { --gutter: 20px; --r-xl: 28px; --r-lg: 22px; --r-md: 18px; }
  body { font-size: 15px; line-height: 1.65; }
  .label { font-size: 10.5px; letter-spacing: .18em; margin-bottom: 14px; }
  .num { font-size: 11px; }

  /* Header */
  .site-header { padding-top: 10px; }
  .nav { height: 54px; padding: 0 6px 0 16px; }
  .logo-icon { height: 28px; }
  .menu-btn { width: 40px; height: 40px; }
  .nav-links a:not(.btn) { font-size: 15px; padding: 12px 0; }

  /* Buttons */
  .btn { min-height: 44px; padding: 0 5px 0 18px; gap: 10px; font-size: 11.5px; letter-spacing: .12em; }
  .btn__arrow { width: 34px; height: 34px; font-size: 15px; }
  .text-link { font-size: 11.5px; letter-spacing: .12em; padding: 12px 18px; }

  /* Hero */
  .hero { padding: 16px 0 24px; }
  .hero-panel { padding: 36px 22px 36px; }
  .hero-grid { gap: 28px; }
  .portrait-wrap { width: min(190px, 50vw); }
  .person-card { margin-top: 26px; padding: 10px 20px 12px; }
  .person-name { font-size: 19px; }
  .person-tagline { font-size: 14.5px; margin-top: 2px; }
  .motto { font-size: 24px; line-height: 1.3; }
  .hero-actions { gap: 12px; }

  /* Sections */
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 28px; line-height: 1.12; margin-bottom: 10px; }
  .section-head p { font-size: 15px; }
  .disclaimer { font-size: 13px; margin-top: 16px; }

  /* Rows */
  .rows { gap: 12px; }
  .row { grid-template-columns: 26px 1fr auto; gap: 12px; padding: 18px 14px 18px 16px; }
  .row-title { font-size: 16px; line-height: 1.4; }
  .circle-btn { width: 36px; height: 36px; }
  .circle-btn .icon { width: 17px; height: 17px; }

  /* Feature cards */
  .feature-grid { gap: 12px; }
  .feature { padding: 20px 20px 22px; }
  .feature-top { margin-bottom: 18px; }
  .icon-badge { width: 42px; height: 42px; box-shadow: 0 0 0 6px rgba(47,107,255,.12), 0 8px 24px -6px rgba(47,107,255,.6); }
  .icon-badge .icon { width: 19px; height: 19px; }
  .feature h3 { font-size: 17.5px; line-height: 1.25; }
  .feature p { font-size: 14px; margin-top: 6px; }

  /* Vision */
  .vision { padding: 32px 22px; }
  .vision-quote { font-size: 28px; line-height: 1.12; }
  .step { grid-template-columns: 10px 48px 1fr; gap: 12px; padding: 14px 18px; }

  /* Join + footer */
  .join { padding: 16px 0 56px; }
  .join-panel { padding: 48px 22px; }
  .join h2 { font-size: 28px; line-height: 1.12; margin-bottom: 14px; }
  .join p { font-size: 15px; margin-bottom: 26px; }
  .site-footer { font-size: 14px; padding: 28px 0 40px; }
  .footer-links a { font-size: 13px; padding: 7px 14px; }
  .small-print { font-size: 12px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Space between motto and buttons (intro text removed) */
.motto + .hero-actions { margin-top: 32px; }
@media (max-width: 600px) { .motto + .hero-actions { margin-top: 24px; } }

/* Bangla section headings */
.section-head h2.bn { letter-spacing: 0; line-height: 1.3; }

/* =====================================================
   13. GUIDED BY REZWAN: profile card (links to #about)
   ===================================================== */
.profile-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  padding: 20px 24px 20px 20px; border-radius: var(--r-lg);
  color: inherit; text-decoration: none; transition: transform .2s ease;
}
.profile-card:hover { transform: translateY(-3px); }
.profile-card:hover .circle-btn { background: var(--accent); border-color: transparent; transform: rotate(45deg); }
.profile-photo {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.35), transparent 45%),
    radial-gradient(circle at 50% 50%, #3D6FE8 0%, #1B3FA0 60%, #0B1A45 100%);
  box-shadow: 0 0 0 6px rgba(47,107,255,.12), 0 10px 30px -8px rgba(47,107,255,.7);
}
.profile-photo img { width: 100%; height: 125%; object-fit: cover; object-position: 50% 0; display: block; }
.profile-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.profile-tag { font-size: 15px; color: var(--accent-hi); }
.profile-line { font-size: 15px; font-weight: 300; color: var(--ink-soft); max-width: 52ch; margin-top: 4px; }
@media (max-width: 600px) {
  .profile-card { gap: 14px; padding: 16px 14px 16px 16px; }
  .profile-photo { width: 68px; height: 68px; }
  .profile-name { font-size: 17.5px; }
  .profile-tag { font-size: 13.5px; }
  .profile-line { font-size: 13.5px; }
}

/* =====================================================
   14. STORY VIDEO (section 04, 16:9)
   ===================================================== */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; margin-top: 28px;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--glass-border); background: rgba(4,10,30,.55);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; color: var(--ink); text-align: center; padding: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(47,107,255,.35), transparent 65%);
}
.video-soon__play {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 6px;
  background: var(--accent); box-shadow: 0 0 0 10px rgba(47,107,255,.15), 0 10px 30px -6px rgba(47,107,255,.7);
  transition: transform .2s ease;
}
.video-soon__play .icon { fill: #fff; stroke: #fff; width: 24px; height: 24px; margin-left: 3px; }
.video-soon:hover .video-soon__play { transform: scale(1.08); }
.video-soon__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.video-soon__sub { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) {
  .video-frame { margin-top: 20px; }
  .video-soon__play { width: 50px; height: 50px; }
  .video-soon__title { font-size: 17px; }
  .video-soon__sub { font-size: 12.5px; }
}

/* Desktop hero: text block centred in the panel (same space above and below); more air above the buttons */
@media (min-width: 860px) {
  .hero-brand { align-self: center; margin: 0; transform: translateY(-4px); } /* equal space above title and below buttons */
  .brand-title { margin-bottom: 36px; }                 /* title -> motto gap (unchanged) */
  .motto { margin-top: 0; }
  .motto + .hero-actions { margin-top: 72px; }          /* motto -> buttons: extra breathing space */
}

/* Phone: no back arrows anywhere. Inner pages show the logo icon top left (same as home, links to index.html) */
.logo-back { display: none; }
@media (max-width: 760px) {
  .back-link { display: none !important; }   /* "← All articles" / "← All courses" hidden on phone */
}

/* Hero buttons (Courses / Clinical stories): text 20% larger than the base buttons */
.hero-actions .btn, .hero-actions .text-link { font-size: 15.6px; }   /* desktop: 13px -> 15.6px */
@media (max-width: 600px) {
  .hero-actions .btn, .hero-actions .text-link { font-size: 13.8px; } /* phone: 11.5px -> 13.8px */
}

/* "Join free" removed from the top menu (phone + desktop); last phone-menu link has no rule under it */
@media (max-width: 760px) {
  .nav-links li:last-child a { border-bottom: 0; }
}
/* Desktop: with no button at the end, give the links the same space on the right as the logo has on the left */
@media (min-width: 761px) { .nav { padding-right: 22px; } }

/* Phone/tablet hero (2026-11-26): name card sits beside the photo; "Stethoscope by Rezwan" title goes below the photo */
@media (max-width: 859px) {
  .hero-grid { gap: 22px; grid-template-columns: minmax(0, 1fr); } /* clear the photo's outer ring; never wider than the panel */
  .hero-brand { padding-left: .045em; }                         /* balance the title's tight letter-spacing so it sits truly centred */
  .hero-person { display: flex; align-items: center; justify-content: center; text-align: left; }
  .portrait-wrap { width: min(160px, 38vw); margin: 0; flex: none; }
  .person-card { position: relative; z-index: 2; margin: 0 0 0 -4px; padding: 12px 14px 13px; flex: none; }
  .person-name { font-size: 18px; white-space: nowrap; }
  .person-tagline { font-size: 14px; line-height: 1.45; margin-top: 4px; }
  .person-tagline span { display: block; white-space: nowrap; }  /* two lines: পেশায় ছাত্র / নেশায় শিক্ষক */
  .brand-title { display: block; font-size: clamp(40px, 11.5vw, 60px); }
  .motto { margin-top: 20px; }
}

/* Hero photo (2026-11-26): cut-out photo stands IN FRONT of a soft glowing circle (not clipped in a frame).
   The circle sits behind head + shoulders; the lower part of the photo fades out into the panel. */
.portrait-wrap .blob { left: 8%; right: 8%; top: 10%; bottom: auto; filter: blur(.5px); }
.portrait-wrap .ring { left: 0; right: 0; top: 4%; bottom: auto; }
/* circle + rings live BEHIND him: they fade away before they reach his shoulders, so no line ever crosses the photo */
.portrait-wrap .blob, .portrait-wrap .ring { z-index: 0; }
.portrait-wrap img { z-index: 1; }
.portrait-wrap .ring { -webkit-mask: linear-gradient(to bottom, #000 40%, transparent 58%); mask: linear-gradient(to bottom, #000 40%, transparent 58%); }
.portrait-wrap .blob { -webkit-mask: linear-gradient(to bottom, #000 62%, transparent 92%); mask: linear-gradient(to bottom, #000 62%, transparent 92%); }
.portrait-wrap img {
  filter: drop-shadow(0 18px 28px rgba(4,7,15,.35));
  /* soft oval fade: full photo at the top, coat melts away at the bottom and at both sides */
  /* body stays solid (so nothing behind shows through); only the very bottom and the outer side edges fade */
  -webkit-mask: linear-gradient(to bottom, #000 69%, rgba(0,0,0,.5) 83%, transparent 97%),
                linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%),
                radial-gradient(ellipse 70% 80% at 50% 30%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
          mask: linear-gradient(to bottom, #000 69%, rgba(0,0,0,.5) 83%, transparent 97%),
                linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%),
                radial-gradient(ellipse 70% 80% at 50% 30%, #000 72%, transparent 100%);
          mask-composite: intersect, intersect;
}
/* soft whitish-blue haze where the photo fades out, so it melts into the panel */
.portrait-wrap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; z-index: 2;
  pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220,232,255,.128), transparent);
}
@media (min-width: 860px) { .person-card { margin-top: -28px; position: relative; z-index: 2; } }

/* Desktop: hero "Courses" button text another 20% larger (15.6px -> 18.7px) */
@media (min-width: 860px) { .hero-actions .btn { font-size: 18.7px; } }

/* Home article boxes: titles 20% larger (desktop 20 -> 24px, phone 16 -> 19.2px), number + arrow stay centred */
#articles .row-title { font-size: 24px; line-height: 1.3; }
#articles .row { padding-top: 20px; padding-bottom: 20px; }
@media (max-width: 600px) {
  #articles .row-title { font-size: 19.2px; line-height: 1.35; }
  #articles .row { padding-top: 18px; padding-bottom: 18px; }
}
/* Desktop only: home article titles another 20% larger (24 -> 28.8px) */
@media (min-width: 860px) { #articles .row-title { font-size: 28.8px; line-height: 1.25; } }

/* Desktop: "Connect and learn" = 3 compact boxes in one row, no 01/02/03,
   round button 40% bigger (52 -> 73px), titles +20% (22 -> 26.4px), sublines +20% (15 -> 18px) */
@media (min-width: 860px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
  .feature { padding: 28px 28px 30px; display: flex; flex-direction: column; }
  .feature-top { justify-content: flex-start; margin-bottom: 26px; }
  .feature-top .num { display: none; }
  .feature .icon-badge { width: 73px; height: 73px; box-shadow: 0 0 0 11px rgba(47,107,255,.12), 0 14px 40px -8px rgba(47,107,255,.7); }
  .feature .icon-badge .icon { width: 31px; height: 31px; }
  .feature h3 { font-size: 26.4px; line-height: 1.2; }
  .feature p { font-size: 18px; margin-top: 10px; max-width: none; }
}

/* Phone + tablet: same Connect-and-learn changes, boxes stay stacked */
@media (max-width: 859px) {
  .feature-top { justify-content: flex-start; }
  .feature-top .num { display: none; }
  .feature .icon-badge { width: 73px; height: 73px; box-shadow: 0 0 0 11px rgba(47,107,255,.12), 0 14px 40px -8px rgba(47,107,255,.7); }
  .feature .icon-badge .icon { width: 31px; height: 31px; }
  .feature h3 { font-size: 26.4px; line-height: 1.2; }
  .feature p { font-size: 18px; margin-top: 10px; }
}
@media (max-width: 600px) {   /* phone: button 42 -> 59px, title 17.5 -> 21px, subline 14 -> 16.8px */
  .feature-top { margin-bottom: 22px; }
  .feature .icon-badge { width: 59px; height: 59px; box-shadow: 0 0 0 8px rgba(47,107,255,.12), 0 10px 30px -6px rgba(47,107,255,.6); }
  .feature .icon-badge .icon { width: 26px; height: 26px; }
  .feature h3 { font-size: 21px; line-height: 1.25; }
  .feature p { font-size: 16.8px; margin-top: 8px; }
}

/* Connect and learn: the whole box is clickable (opens the same link as its round icon) */
.feature { position: relative; }
.feature a.icon-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.feature:has(a.icon-badge) { cursor: pointer; }

/* Brand-colour icons ("icon 2", 2026-11-26): official Telegram / YouTube / Facebook colours.
   To go back to the white line icons, see backups/icon-1/README.md ("icon 1"). */
.icon--brand { stroke: none; }
.feature .icon-badge--telegram { background: #229ED9; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 12px 28px -10px rgba(34,158,217,.3); } /* toned-down glow */
.feature .icon-badge--youtube  { background: #fff;    box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 12px 28px -10px rgba(255,0,0,.22); } /* toned-down glow */
.feature .icon-badge--facebook { background: #0866FF; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 12px 28px -10px rgba(8,102,255,.3); } /* toned-down glow */
.feature .icon-badge--youtube .icon { width: 64%; height: 64%; }
.feature .icon-badge--telegram .icon, .feature .icon-badge--facebook .icon { width: 52%; height: 52%; }
@media (max-width: 600px) {
  .feature .icon-badge--telegram { box-shadow: 0 0 0 7px rgba(255,255,255,.06), 0 8px 22px -8px rgba(34,158,217,.28); }
  .feature .icon-badge--youtube  { box-shadow: 0 0 0 7px rgba(255,255,255,.06), 0 8px 22px -8px rgba(255,0,0,.2); }
  .feature .icon-badge--facebook { box-shadow: 0 0 0 7px rgba(255,255,255,.06), 0 8px 22px -8px rgba(8,102,255,.28); }
}

/* ---------- Approach (2026-11-26): "বই বলে কী, রোগী দেখায় কেন" ----------
   Uses the old Join panel background. Desktop: 3 boxes on an arc that follows the glow
   (left low, middle high, right low) joined by a thin glowing line. Phone: stacked zig-zag. */
.approach { padding: 8px 0 24px; }
.approach-panel { padding: 56px 20px 52px; }
.approach h2 { margin: 0 0 14px; font-family: var(--font-bangla); font-size: clamp(30px, 5vw, 54px); line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.approach-arc { position: relative; display: grid; gap: 16px; margin: 36px 0 34px; }
.approach-card {
  position: relative; z-index: 1; text-align: left; padding: 20px 22px 22px; border-radius: var(--r-md);
  background: rgba(10,20,52,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.approach-card h3 { margin: 8px 0 4px; font-family: var(--font-bangla); font-size: 24px; line-height: 1.3; font-weight: 700; }
.approach-card p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.78); }
.approach-line { display: none; }

/* Phone/tablet: zig-zag stack with a faint glowing spine behind */
@media (max-width: 859px) {
  .approach-arc::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px;
    background: linear-gradient(transparent, rgba(156,192,255,.55), transparent); }
  .approach-card { width: 86%; }
  .approach-card:nth-of-type(odd)  { justify-self: start; }   /* 1st and 3rd card lean left */
  .approach-card:nth-of-type(even) { justify-self: end; }     /* 2nd card leans right */
}
@media (max-width: 600px) {
  .approach-panel { padding: 44px 18px 40px; }
  .approach h2 { font-size: 27px; }
  .approach-card h3 { font-size: 21px; }
  .approach-card p { font-size: 15px; }
}

/* Desktop: the arc */
@media (min-width: 860px) {
  .approach-panel { padding: 88px 56px 80px; }
  .approach-arc { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; margin: 56px auto 48px; max-width: 1040px; }
  .approach-card:nth-of-type(1), .approach-card:nth-of-type(3) { margin-top: 96px; }   /* left + right sit lower */
  .approach-line { display: block; position: absolute; inset: 0 0 auto 0; height: 220px; width: 100%; z-index: 0; overflow: visible; }
  .approach-line path { fill: none; stroke: rgba(170,205,255,.75); stroke-width: 1.5; vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 6px rgba(120,170,255,.9)); stroke-linecap: round; }
  .approach-card h3 { font-size: 28px; }
  .approach-card p { font-size: 17px; }
}

/* Fade / rise-in when the boxes scroll into view (only when JS runs; respects reduced motion) */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 140ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; transition: none; } }

/* Approach (2026-11-26 update): English headline with "Stethoscope" highlighted; card labels ~40% bigger */
.approach h2.approach-title { font-family: var(--font-display); letter-spacing: -.035em; line-height: 1.08; font-size: clamp(30px, 5.4vw, 58px); }
@media (max-width: 600px) { .approach h2.approach-title { font-size: 31px; }}
@media (min-width: 860px) { .approach-arc { margin-top: 64px; } }

/* Approach boxes (all 3): text +20% on phone/tablet, +40% on desktop */
.approach-card h3 { font-size: 28.8px; }   /* tablet: 24 -> 28.8 */
.approach-card p  { font-size: 19.2px; }   /* tablet: 16 -> 19.2 */
@media (max-width: 600px) {
  .approach-card h3 { font-size: 25.2px; } /* phone: 21 -> 25.2 */
  .approach-card p  { font-size: 18px; }   /* phone: 15 -> 18 */
}
@media (min-width: 860px) {
  .approach-card h3 { font-size: 39.2px; line-height: 1.2; } /* desktop: 28 -> 39.2 */
  .approach-card p  { font-size: 23.8px; }                  /* desktop: 17 -> 23.8 */
}
.approach-en { font-size: 1.1em; }   /* box 1: "Textbook oriented" 10% bigger than the Bangla word next to it */
/* Approach "Explore" button: text 30% bigger (desktop 13 -> 16.9px, phone 11.5 -> 15px) */
.approach-btn { font-size: 16.9px; }
@media (max-width: 600px) { .approach-btn { font-size: 15px; } }

/* Home Articles: real stories, each row = number, small cover, title, arrow */
#articles .row--story { grid-template-columns: 30px 84px 1fr auto; gap: 18px; }
.row-thumb { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; display: block;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); }
.all-stories {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--glass-border);
  background: var(--glass-bg); color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600;
  transition: background .2s ease;
}
.all-stories:hover { background: var(--accent); border-color: transparent; }
@media (max-width: 600px) {
  #articles .row--story { grid-template-columns: 26px 60px 1fr auto; gap: 12px; }
  .row-thumb { width: 60px; height: 60px; border-radius: 12px; }
  .all-stories { font-size: 15px; }
}

/* ---------- "?" round question button (home + courses), opens WhatsApp ---------- */
.ask-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(155deg, #FFFFFF 0%, #EAF1FF 55%, #C9DAFB 100%);
  color: var(--btn-ink, #0B1A45); text-decoration: none;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 16px 36px -12px rgba(0,0,0,.65), 0 0 0 4px rgba(255,255,255,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ask-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -12px rgba(0,0,0,.75), 0 0 0 6px rgba(255,255,255,.12); }
.ask-btn span { font: 700 28px/1 var(--font-display); }
@media (max-width: 759px) {
  .ask-btn { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .ask-btn span { font-size: 25px; }
}

/* "Explore" (Our approach) jumps to Connect and learn: stop just below the floating menu bar */
#courses { scroll-margin-top: 40px; }
@media (min-width: 760px) { #courses { scroll-margin-top: 56px; } }

/* ---------- "Log in" button (top right, all pages). Like the hero Courses button,
   white pill, text only ---------- */
.nav > .logo { order: 0; }
.nav > .nav-links { order: 1; }
.nav > .login-btn { order: 2; }
.nav > .menu-btn, .nav > .nav-right { order: 3; }
.login-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 42px; padding: 0 20px; border-radius: var(--pill);
  background: #FFFFFF; color: var(--btn-ink);
  border: 1px solid rgba(255,255,255,.9);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(47,107,255,.8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(47,107,255,.95); }
@media (min-width: 761px) {
  .nav > .nav-links { margin-left: auto; }
  .nav > .login-btn { margin-left: 26px; }
}
@media (max-width: 760px) {
  .nav > .login-btn { margin-left: auto; margin-right: 8px; min-height: 38px; padding: 0 15px; font-size: 10.5px; letter-spacing: .12em; }
  }
/* Log in: glass box (instead of white), text 10% larger (11.5px -> 12.65px; phone 10.5px -> 11.55px) */
.login-btn {
  background: rgba(255,255,255,.10); color: var(--ink);
  border: 1px solid var(--glass-border, rgba(255,255,255,.22));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 22px -12px rgba(0,0,0,.6);
  font-size: 12.65px;
}
.login-btn:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 26px -12px rgba(0,0,0,.7); }
@media (max-width: 760px) {
  .nav > .login-btn { font-size: 11.55px; }
  /* Phone ☰ menu button: no white circle, white lines on the glass bar */
  .menu-btn { background: transparent; }
  .menu-btn__lines, .menu-btn__lines::before, .menu-btn__lines::after { background: var(--ink); }
  .menu-btn[aria-expanded="true"] .menu-btn__lines { background: transparent; }
}

/* Phone: bigger finger-tap areas (at least 44x44px) without changing how anything looks.
   An invisible layer around each small link/button catches taps that land just outside it. */
@media (max-width: 760px) {
  .logo, .nav > .login-btn, .menu-btn, .footer-links a { position: relative; }
  .logo::after, .nav > .login-btn::after, .menu-btn::after, .footer-links a::after {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%; min-width: 44px; min-height: 44px;
  }
}
