/* ==========================================================================
   Sevima — shared design tokens + component styles.
   Layout now uses Bootstrap's container/row/col grid (see index.html) so
   sections share reusable classes instead of one CSS rule per element.
   ========================================================================== */

:root {
  --teal: #008C9A;
  --teal-dark: #00747F;
  --teal-soft: rgba(0, 140, 154, 0.05);
  --navy: #012293;
  --ink: #000000;
  --muted: #666666;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-fa: 'YekanBakh', 'Vazirmatn', sans-serif;
  --font-en: 'Inter', sans-serif;
}

html, body {
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-fa);
  color: var(--ink);
  background: #f8fafd;
  overflow-x: hidden;
}

.site-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Figma's 1440px frame: most sections sit inside the padded 1300px inner
   band, but the gallery grid, CTA banner, product panel and footer panel
   are wider — they bleed to (or past) the container's own 1340px edge. */
@media (min-width: 1200px) {
  .product-menu-section .site-container {
    max-width: 1403px;
  }
}

/* Zeroing the gallery/CTA padding only makes sense once the container has
   actually hit its 1340px cap and is centered with equal outer margins.
   Doing it any earlier (e.g. from 992px) leaves the container at 100%
   width with no padding at all, so the row's own small g-3 negative
   margin bleeds past the viewport edge and gets clipped. The +16px on
   the breakpoint guarantees the outer margin is wide enough to absorb
   that bleed right from the moment this rule engages. */
@media (min-width: 1356px) {
  .gallery-section .site-container,
  .cta-section .site-container {
    padding-inline: 0;
  }
}

/* Same idea for the product panel, which is 1403px wide in Figma: only
   drop the container's gutter once the viewport is wide enough for the
   centering margin to take over (the design's own frame width). */
@media (min-width: 1440px) {
  .product-menu-section .site-container {
    padding-inline: 0;
  }
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- Navbar ---------- */

.site-navbar {
  background: #fff;
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.12);
  padding-block: 14px;
  position: relative;
  z-index: 20;
}

.site-navbar .navbar-brand img {
  height: 50px;
  width: auto;
}

@media (min-width: 1200px) {
  /* The navbar's logo/button need a fixed 50px gap from the screen edge
     at every desktop width — not just when the shared .site-container's
     1340px cap happens to engage (its centering margin only equals 50px
     right at 1440px; below that, with the navbar's own padding zeroed
     via p-0, the logo would otherwise sit flush against the edge). */
  .site-navbar .navbar.site-container {
    max-width: none;
    padding-inline: 50px;
  }
}

.site-nav {
  gap: 34px;
}

@media (min-width: 1200px) {
  /* Desktop: the offcanvas wrapper is inline and must fill the space
     between logo and button so the links stay centred. */
  .site-offcanvas,
  .site-offcanvas .offcanvas-body {
    flex-grow: 1;
  }
}

.site-nav .nav-link {
  font-family: var(--font-fa);
  font-size: 16px;
  color: var(--ink);
  padding: 0.5rem 0;
  transition: color 0.15s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--teal);
  font-weight: 700;
}

@media (min-width: 1200px) {
  /* Keep every menu item on a single line: between 1200px and 1680px the
     font and gaps scale with the viewport (11px→16px, 10px→34px) so the
     links always fit between the logo and the consult button. */
  .site-nav {
    gap: clamp(10px, calc(5vw - 50px), 34px);
  }

  .site-nav .nav-link {
    font-size: clamp(11px, calc(1.0417vw - 1.5px), 16px);
    white-space: nowrap;
  }

  /* The logo and consult button keep their full size; only the menu
     links above shrink to make room. */
  .site-navbar .navbar-brand,
  .site-navbar .btn-consult {
    flex-shrink: 0;
  }

  /* Button side padding eases from 16px (1200px) to 24px (1440px+). */
  .site-navbar .btn-consult {
    padding-inline: clamp(16px, calc(3.3333vw - 24px), 24px);
  }
}

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 22.5px;
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-consult:hover {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 140, 154, 0.35);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
}

.hero-carousel {
  background: var(--navy);
}

.hero-carousel,
.hero-carousel .carousel-item,
.hero-carousel .carousel-item img {
  /* Figma frame is 1440x600 (a 12:5 ratio = 41.667vw at full width).
     Uncapped so the ratio holds at any width — a 600px cap made the box
     proportionally wider than the image past 1440px, so object-fit:
     cover cropped the top/bottom off the picture instead of showing it
     in full. No min-height: on phones the whole slide stays visible
     (just smaller) rather than being cropped. */
  height: 41.667vw;
  object-fit: cover;
}

.hero-carousel .carousel-item img {
  /* Without an explicit width the <img> only ever renders at its
     natural aspect-ratio width (1440px) and sits off-center on wider
     screens instead of filling the viewport. */
  width: 100%;
  display: block;
}

.hero-carousel .carousel-item img {
  /* The heading copy is baked into the right side of this slide image (not
     live text), so on narrow screens keep the crop weighted right instead
     of centered, or the wording gets cut off. */
  object-position: 75% center;
}

@media (min-width: 1200px) {
  .hero-carousel .carousel-item img {
    object-position: center;
  }
}

/* The hero copy ("۵ هدف، یک انتخاب...") is baked into the slide photo
   itself in the source file (not a live Figma text layer), so each slide
   is just an <img> — no text overlay markup needed here. */

/* Figma: the dots sit below the slider on the page background, not over
   the photo — 16px under the image and 54px above the topic cards (22px
   here + the cards section's own 32px top padding). Active pill is the
   leftmost dot in the frame, so the row runs left-to-right. */
.hero-indicators {
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-block: 16px 22px;
}

.hero-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgb(206, 206, 206);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

/* ---------- Topic cards ---------- */

.topic-cards-section {
  padding-block: 32px;
}

/* Figma has 5 fixed 180x180 cards spread across the 1300px inner band
   with ~100px gaps — not equal-width columns filling the row edge to
   edge. Bootstrap's row-cols-xl-5 grid (used below 1200px too) is
   overridden here so desktop matches the frame exactly. */
@media (min-width: 1200px) {
  .topic-cards-section .row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .topic-cards-section .row > .col {
    flex: 0 0 13.846%;
    width: 13.846%;
    max-width: 13.846%;
    padding: 0;
  }
}

.topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--ink);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 140, 154, 0.18);
  color: var(--ink);
}

.topic-card img {
  width: 45%;
  height: auto;
}

.topic-card span {
  font-family: var(--font-fa);
  font-size: 18px;
  text-align: center;
}

/* ---------- Intro ---------- */

.intro-section {
  padding-block: 40px;
}

@media (min-width: 1200px) {
  /* Figma has a fixed 582x322 video on one side and a 102px gap to the
     text column (638 to 740) — not Bootstrap's 5/12-vs-7/12 column
     split with its padding-based gutter. Gutter padding would eat into
     the fixed 582px box, so it's replaced with a plain flex gap here. */
  .intro-section .row {
    --bs-gutter-x: 0px;
    flex-wrap: nowrap;
    gap: 102px;
    /* Start the video level with the title instead of centering it
       against the (taller) text column. */
    align-items: flex-start !important;
  }

  .intro-section .row > .col-xl-5 {
    flex: 0 0 582px;
    max-width: 582px;
    padding: 0;
  }

  .intro-section .row > .col-xl-7 {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: 0;
  }

  .intro-section .intro-media {
    width: 100%;
    aspect-ratio: 582 / 322;
  }
}

.intro-media {
  position: relative;
  border-radius: 11px;
  overflow: hidden;
}

.intro-media img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 140, 154, 0.58) 12%, rgba(255, 255, 255, 0) 100%);
}

.video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(60, 60, 67, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-badge i {
  color: #fff;
  font-size: 25px;
  margin-top: 8px;
}

.video-badge:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: linear-gradient(135deg, var(--teal) 12%, rgba(255, 255, 255, 0) 100%);
}

.intro-title {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 1rem;
}

.intro-title .accent {
  color: var(--teal);
}

.intro-body {
  font-size: 20px;
  line-height: 1.7;
  text-align: justify;
}

.intro-body .lead-in {
  font-weight: 400;
}

.intro-body .lead-in + .highlight {
  display: block;
  margin-top: 0.75rem;
}

.intro-body .highlight {
  font-weight: 600;
}

/* Leftover markup from a browser translate extension pasted into the
   CMS content; it only adds empty height under the text. */
.intro-body #simple-translate {
  display: none;
}

/* ---------- Benefits gallery ---------- */

.gallery-section {
  padding-block: 40px;
}

/* 96px between the intro and the gallery: intro's 40px bottom + 56px here. */
.intro-section + .gallery-section {
  padding-top: 56px;
}

.gallery-heading {
  text-align: center;
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 2rem;
}

.gallery-heading .accent {
  color: var(--teal);
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 434 / 261;
}

@media (min-width: 1356px) {
  /* Same threshold as the gallery/CTA padding removal above — fixed
     434px cards need the container to have actually reached its full
     1340px width, or they overflow a narrower fluid container.
     Figma: the 3-across row is fixed 434x261 per card, and the 2-across
     row below it is also 261 tall (just wider, ~660) — not the same
     434:261 ratio scaled up, which was stretching it to ~398 tall. */
  .gallery-section .row.mb-3 {
    --bs-gutter-x: 0px;
    flex-wrap: nowrap;
    gap: 19px;
  }

  .gallery-section .row.mb-3 > [class*="col-"] {
    flex: 0 0 434px;
    max-width: 434px;
    padding: 0;
  }

  .gallery-card {
    aspect-ratio: auto;
    height: 261px;
  }
}

.gallery-card img.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card .gallery-tint {
  background: linear-gradient(90deg, rgba(0, 140, 154, 0.8) 0%, rgba(255, 255, 255, 0) 100%) left / 100% 100% no-repeat;
}

/* Hover: card lifts, photo slowly zooms, the teal tint spreads further
   across the image and the caption nudges in. Pointer devices only, so
   touch screens don't get a "stuck" hover state after a tap. */
.gallery-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-card img.cover {
  transition: transform 0.6s ease;
}

.gallery-card .gallery-tint {
  transition: background-size 0.45s ease;
}

.gallery-card .gallery-caption {
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 140, 154, 0.28);
  }

  .gallery-card:hover img.cover {
    transform: scale(1.08);
  }

  .gallery-card:hover .gallery-tint {
    background-size: 180% 100%;
  }

  .gallery-card:hover .gallery-caption {
    transform: translateX(8px);
  }
}

.gallery-card .gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: left;
  text-align: center;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 400;
  padding: 1rem 1rem 1rem 15px;
  pointer-events: none;
}

/* ---------- CTA banner ---------- */

.cta-section {
  /* Figma: 120px between the gallery row above and the banner — the
     gallery section's own 40px bottom padding covers part of that, so
     this only needs the remaining 80px on top. */
  padding-top: 80px;
  padding-bottom: 24px;
}

.cta-banner {
  position: relative;
  display: block;
  background: var(--navy);
  border-radius: var(--radius-lg);
  color: #fff;
  text-decoration: none;
  overflow: visible;
  padding: 40px clamp(20px, 6vw, 260px) 40px clamp(20px, 4vw, 60px);
}

.cta-banner h3 {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 24px;
 text-align: right;
}

.cta-banner p {
  font-size: 20px;
  text-align: center;
  margin-bottom: 0;
}

.cta-doctor {
  position: relative;
  margin-top: -80px;
}

@media (max-width: 1199.98px) {
  .cta-doctor {
    margin-top: 0;
  }
}

.cta-doctor img {
  width: 100%;
  max-width: 324px;
  display: block;
  margin: 0 auto;
}

.cta-click-badge {
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1199.98px) {
  .cta-click-badge {
    display: inline-block;
    margin-top: 1rem;
  }
}

@media (min-width: 1200px) {
  /* Figma: this badge isn't attached to the doctor photo at all — it
     sits well to the left of the text block (68px from the banner's
     left edge), i.e. after the text in RTL reading order. */
  .cta-click-badge {
    position: absolute;
    left: 68px;
    top: 73px;
    width: 210px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
  }
}

@media (min-width: 1200px) {
  /* Figma: the doctor photo sits 30px in from the banner's right edge,
     while the heading's right edge sits 293px in from that same edge —
     those two figures put the photo and the text horizontally
     overlapping (the photo floats above the banner via the negative
     margin below, so there's no actual visual collision). A normal
     non-overlapping two-column row can't reproduce that, so the photo
     breaks out of the grid and is positioned directly off the banner. */
  .cta-banner {
    padding-right: 0;
    padding-left: 0;
    height: 211px;
    display: flex;
    align-items: center;
  }

  .cta-banner .row {
    display: block;
    margin: 0;
  }

  .cta-banner .col-xl-4 {
    padding: 0;
  }

  .cta-doctor {
    position: absolute;
    bottom: 0;
    right: 30px;
    margin-top: 0;
  }

  .cta-banner .col-xl-8 {
    width: auto;
    max-width: none;
    padding: 0 293px 0 40px;
  }

  /* Figma's text block is 570px wide. The heading and paragraph now
     share the same right edge (354px from the banner) instead of the
     heading sitting 61px further right than the paragraph below it. */
  .cta-banner h3,
  .cta-banner p {
    width: 570px;
    margin-right: 61px;
    margin-left: auto;
  }

  .cta-banner p {
    text-align: justify;
  }
}

/* ---------- Product menu panel ---------- */

.product-menu-section {
  padding-block: 40px;
}

.product-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
}

.product-panel h3 {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 32px;
  text-align: right;
}

.product-panel h3 .accent {
  color: var(--teal);
}

.feature-scroll {
  position: relative;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  border-radius: 7px;
}

.feature-item.active {
  background: var(--teal-soft);
}

.feature-item > a {
  display: flex;
  align-items: center;
  /* Figma puts the icon circle at the far right with the label
     right-aligned just to its left, so the circle comes first in the
     markup (RTL flex start = right). */
  justify-content: flex-start;
  gap: 4px;
  height: 64px;
  padding-right: 12px;
  text-decoration: none;
  color: var(--ink);
}

.feature-item .feature-icon {
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

/* The active row's circle is the same teal darkened by a 20% black
   overlay in Figma — darker than the inactive ones, not lighter. */
.feature-item.active .feature-icon {
  background: #005d66;
}

.feature-item .feature-icon img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.feature-item .feature-label {
  font-size: 20px;
  text-align: right;
}

/* Scroll indicator: a 6px grey track with a teal thumb whose height/position
   is kept in sync with .feature-list's real scroll by script.js. */
.feature-scrollbar {
  display: none;
  position: absolute;
  top: 0;
  right: 32px;
  width: 6px;
  height: 399px;
  border-radius: 3px;
  background: rgb(224, 224, 224);
}

.feature-scrollbar-thumb {
  display: block;
  position: absolute;
  top: 0;
  width: 100%;
  height: 195px;
  border-radius: 3px;
  background: var(--teal);
}

.video-nav {
  flex: 0 0 auto;
  width: 47px;
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #00c8b3;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.video-nav:hover {
  transform: scale(1.15);
}

@media (min-width: 1200px) {
  /* Figma panel is 1403x613: the video (644x322, flanked by the two
     47px arrows) sits on the left, and a 429px menu column hugs the
     panel's right edge — the icon circles 64px in from it, the labels
     right-aligned beside them and the scroll track 32px in. */
  .product-panel {
    display: flex;
    /* 399px from the menu to the video itself: the gap plus the 47px
       arrow and its 3px spacing before the video. */
    justify-content: flex-start;
    /* 349px on the 1440 frame, shrinking 1:1 with the viewport below that
       so the video doesn't collapse on 1200-1439px screens. */
    gap: clamp(60px, calc(100vw - 1091px), 349px);
    height: 613px;
    padding: 0 0 0 29px;
  }

  .product-panel-menu {
    flex: 0 0 429px;
    padding-top: 73px;
  }

  .product-panel h3 {
    margin: 0 68px 19px 0;
    line-height: 32px;
  }

  .feature-scroll {
    height: 399px;
    padding: 26px 0 17px;
  }

  .feature-list {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .feature-list::-webkit-scrollbar {
    display: none;
  }

  .feature-scrollbar {
    display: block;
  }

  .feature-item {
    width: 377px;
    margin-right: 52px;
  }

  .feature-item + .feature-item {
    margin-top: 9px;
  }

  /* Centering puts the video's top at 146px — within a pixel of Figma's
     147 at the design width — and keeps it sensibly placed when the
     panel is narrower than 1403 and the video has to shrink. */
  .product-panel-media {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 3px;
    min-width: 0;
  }

  .product-panel .intro-media {
    flex: 0 1 644px;
    max-width: 100%;
    aspect-ratio: 644 / 322;
    min-width: 0;
  }

  .product-panel .video-badge {
    width: 74px;
    height: 74px;
  }

  .product-panel .video-badge i {
    font-size: 33px;
    margin-top: 11px;
  }
}

@media (max-width: 1199.98px) {
  /* Side-by-side arrows would squeeze the video down to a thumbnail on a
     phone, so overlay them on its edges instead (with a light backdrop,
     since the teal glyph alone is hard to see against the photo). */
  .product-panel-media {
    position: relative;
    margin-top: 24px;
  }

  .product-panel-media .intro-media {
    aspect-ratio: 644 / 322;
  }

  .product-panel-media .video-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    font-size: 20px;
  }

  .product-panel-media .video-nav:hover {
    transform: translateY(-50%) scale(1.15);
  }

  .product-panel-media .video-nav:first-child {
    right: 8px;
  }

  .product-panel-media .video-nav:last-child {
    left: 8px;
  }

  .feature-item + .feature-item {
    margin-top: 8px;
  }
}

/* ---------- Awareness + phone form ---------- */

/* Figma (1440 frame): 86px below the product panel, image 580x559 at
   x=50, text column right edge at x=1360 (80px from the frame edge),
   and a 1px black line flush with the image bottom, 66px above the FAQ
   heading (which already has its own 40px top padding). */
.awareness-section {
  padding-block: 46px 26px;
  text-align: right;
}

.awareness-title {
  font-family: var(--font-fa);
  font-weight: 400;
  font-size: 32px;
  line-height: 32px;
  margin-bottom: 14px;
}

.awareness-body {
  font-size: 24px;
  line-height: 40px;
  margin-bottom: 14px;
}

.phone-form {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.phone-input {
  flex: 0 1 440px;
  min-width: 0;
  height: 69px;
  background: #fcfcfc;
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 0 15px;
  font-family: var(--font-fa);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  text-align: right;
}

.phone-input::placeholder {
  color: #d6d6d6;
}

.phone-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 140, 154, 0.2);
}

.btn-request-consult {
  flex: 0 0 189px;
  height: 69px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 20px;
  transition: background-color 0.2s ease;
}

.section-divider {
  border: none;
  border-top: 1px solid #000;
  opacity: 1;
  margin: 24px 0 0;
}

@media (min-width: 1200px) {
  .awareness-section .site-container {
    max-width: 1440px;
    padding-inline: 80px 50px; /* RTL: start (right) 80, end (left) 50 */
  }

  .awareness-section .row {
    --bs-gutter-x: 0px;
    --bs-gutter-y: 0px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 27px;
  }

  .awareness-section .awareness-media {
    flex: 0 1 580px;
    max-width: 580px;
    padding: 0;
  }

  .awareness-section .awareness-media img {
    display: block;
    aspect-ratio: 580 / 559;
    object-fit: cover;
  }

  /* The text block sits 26px above the image's true center in Figma
     (129px from its top vs 182px from its bottom). */
  .awareness-section .awareness-content {
    flex: 0 1 703px;
    width: auto;
    max-width: 703px;
    padding: 0 0 52px;
  }

  /* Line 3 spans x=113..1332, i.e. 28px in from the text edge and 63px
     in from the image edge. */
  .awareness-divider {
    margin: 0 28px 0 63px;
  }
}

@media (max-width: 575.98px) {
  .phone-form {
    gap: 12px;
  }

  .phone-input,
  .btn-request-consult {
    flex: 1 1 100%;
  }

  .awareness-body {
    font-size: 18px;
    line-height: 32px;
  }

  .awareness-title {
    font-size: 26px;
    line-height: 1.4;
  }
}

.btn-request-consult:hover {
  background: var(--teal-dark);
  color: #fff;
}

/* ---------- FAQ ---------- */

.faq-section {
  padding-block: 40px;
}

.faq-heading {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  margin-bottom: 76px;
}

@media (min-width: 1200px) {
  /* Figma's accordion is 1275px wide, narrower than the standard
     1300px inner content band — centered within it. */
  .faq-list {
    max-width: 1275px;
    margin-inline: auto;
  }
}

.faq-item {
  border: 1px solid var(--teal);
  background: #fefefe;
  border-radius: 8px;
  margin-bottom: 14px;
}

.faq-item .faq-question {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Figma: the chevron sits 42px in from the left edge, the question
     text's right edge sits ~27px in from the right edge, and the
     24px top/bottom padding is what makes the item exactly 80px tall
     (24 + 32px line-height + 24). Text comes first in the markup so it
     lands on the right (RTL flex start) with the icon on the left. */
  padding: 24px 27px 24px 42px;
  font-family: var(--font-fa);
  font-size: 20px;
  color: var(--ink);
  cursor: pointer;
}

.faq-item .faq-chevron {
  transition: transform 0.2s ease;
  flex: 0 0 auto;
  font-size: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item .faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(-90deg);
}

.faq-item .faq-answer-body {
  padding: 0 24px 18px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

/* Figma (1440 frame): white panel 62px below the FAQ list, 44px from the
   right edge and 38px from the left, full-bleed like the navbar (no
   container cap). Inside: 63px top / 44px sides / 33px bottom. Right to
   left: brand block (logo, about, contact) 518px wide, a 198px gap, the
   two upright pens (81x223), a 195px gap, then the links + social icons. */
/* 8px + the FAQ section's 40px bottom padding + the last item's 14px
   margin = Figma's 62px gap. */
.site-footer {
  padding-block: 8px 39px;
}

.footer-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  margin-inline: 44px 38px; /* RTL: start (right) 44, end (left) 38 */
  padding: 63px 44px 33px;
}

.footer-main {
  display: flex;
  align-items: flex-start;
}

.footer-brand {
  flex: 0 1 518px;
  min-width: 0;
}

.footer-logo {
  display: block;
  width: 157px;
  height: 53px;
  object-fit: contain;
}

.footer-about {
  margin: 30px 0 31px;
  font-weight: 300;
  font-size: 16px;
  line-height: 32px;
  text-align: justify;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 32px;
}

.footer-contact .label {
  font-weight: 600;
}

.footer-contact a {
  text-decoration: none;
  unicode-bidi: isolate;
}

.footer-pens {
  position: relative;
  flex: 0 0 81px;
  height: 223px;
  margin-top: 65px;
  margin-inline: auto; /* centered between the brand block and the links */
}

/* The pen artwork is a landscape image rotated 90° in Figma. */
.footer-pens img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 223px;
  height: 81px;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* The links column's left edge sits 235px from the screen edge:
   38px panel margin + 44px panel padding + 153px. */
.footer-nav {
  flex: 0 0 auto;
  margin-top: 70px;
  margin-left: 153px;
}

.footer-nav h4 {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 16px;
  line-height: 32px;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  font-weight: 300;
  font-size: 16px;
  line-height: 32px;
  margin-bottom: 4px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--teal);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Instagram/LinkedIn: a 39px light ring with a 29px brand-colored disc
   inside it; the mail icon is a plain 32px gradient disc. */
.social-icon {
  position: relative;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(142deg, #fbfbfc, #dbdde8);
  transition: transform 0.2s ease;
}

.social-icon::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  z-index: 0;
}

.social-icon i {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 1;
}

.social-icon.instagram::before {
  background: linear-gradient(180deg, #fca759 0%, #e82d56 19%, #a22db4 74%, #643dce 100%);
  box-shadow: 0 6px 8px rgba(162, 45, 180, 0.25);
}

.social-icon.linkedin::before {
  background: linear-gradient(-24deg, #006699, #058ccf);
  box-shadow: 0 6px 8px rgba(0, 102, 153, 0.25);
}

.social-icon.linkedin i {
  font-size: 14px;
}

.social-icon.mail {
  width: 32px;
  height: 32px;
  background: linear-gradient(-135deg, #4cebb4, #2e2e74);
}

.social-icon.mail::before {
  content: none;
}

.social-icon:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-divider {
  border: none;
  border-top: 1px solid #000;
  opacity: 1;
  margin: 47px 0 20px;
}

/* Bottom row sits at the left: Vitane logo | line | small Sevima logo. */
/* Copyright on the right, logo group (Sevima | Vitane) on the left. */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copyright {
  font-weight: 300;
  font-size: 16px;
  line-height: 32px;
  margin: 0;
}

.footer-bottom-logos {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.footer-bottom-divider {
  width: 1px;
  height: 43px;
  background: #000;
  margin-top: 6px;
}

.footer-bottom-logo {
  display: block;
  width: 55px;
  height: 46px;
  object-fit: contain;
}

.footer-bottom-brand {
  display: block;
  width: 87px;
  height: 29px;
  object-fit: contain;
  margin-top: 15px;
}

@media (max-width: 1199.98px) {
  .footer-panel {
    margin-inline: 20px;
    padding: 40px 24px 28px;
  }

  .footer-main {
    flex-wrap: wrap;
    justify-content: space-around;
    row-gap: 32px;
  }

  .footer-brand {
    flex: 1 1 100%;
  }

  .footer-about {
    margin-block: 20px;
  }

  .footer-pens,
  .footer-nav {
    margin: 0;
  }

  .footer-divider {
    margin-block: 32px 20px;
  }
}

@media (max-width: 575.98px) {
  .footer-panel {
    margin-inline: 16px;
    padding-inline: 20px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }

  .footer-copyright {
    font-size: 14px;
  }
}

/* ---------- Disease pages: overview panel ---------- */

/* Figma (diabetes frame, 1440 wide): a 1358px white panel centered with
   41px side margins, 53px below the slider dots (22px dots margin + 31px). */
.disease-section {
  padding-block: 31px 82px;
}

.disease-container {
  max-width: calc(1358px + 40px);
}

@media (min-width: 1440px) {
  .disease-container {
    padding-inline: 0;
    max-width: 1358px;
  }
}

.content-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 36px 35px 38px;
}

/* Intro: 128px tinted badge on the right, title + text beside it. The text
   column stops 30px short of the panel's left edge (x=109 vs 79). */
.disease-intro .col-auto {
  margin-left: 15px; /* RTL: gap between badge and text */
}

.topic-badge {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-xl);
  background: rgba(0, 140, 154, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 17px;
}

.topic-badge img {
  width: 69px;
  height: 69px;
  object-fit: contain;
}

.topic-badge span {
  font-size: 20px;
  line-height: 24px;
  margin-top: -3px;
}

.disease-intro-body {
  padding-left: 30px;
}

.panel-title {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  margin: 0 0 12px;
}

.panel-text {
  font-size: 20px;
  line-height: 38px;
  text-align: justify;
}

.panel-text p {
  margin: 0;
}

@media (min-width: 1200px) {
  /* Figma's text box is 324px tall (it wraps one line more than
     Vazirmatn does, plus a trailing blank line); keep that height so
     everything below lands where the design puts it. */
  .panel-text {
    min-height: 324px;
  }
}

/* Figma: 189px from intro text to the photo cards (no heading here). */
.symptoms-block {
  margin-top: 189px;
}

/* Figma: 115px from the symptom cards to the factor cards (no heading). */
.factors-block {
  margin-top: 115px;
}

/* Figma: 162px from the factor cards to the complication cards (no heading). */
.complications-block {
  margin-top: 162px;
}

/* With a heading, sit 36px below the intro. */
.symptoms-block:has(> .block-title) {
  margin-top: 36px;
}

/* Diabetes: section headings are 24px in Figma. */
.symptoms-block > .block-title {
  font-size: 24px;
  line-height: 29px;
}

/* Diabetes: 24px heading 56px below the factor cards, 14px to the 20px
   lead, 23px to the cards. */
.complications-block:has(> .block-title) {
  margin-top: 56px;
}

/* Diabetes: factor cards come first, right under the intro, and the
   headed symptom block follows them 56px down (like the complications
   heading). Desktop only; smaller screens keep the 48px rhythm. */
@media (min-width: 1200px) {
  .disease-intro + .factors-block {
    margin-top: 36px;
  }

  .factors-block + .symptoms-block:has(> .block-title) {
    margin-top: 56px;
  }
}

.complications-block > .block-title {
  font-size: 24px;
  line-height: 29px;
  margin-bottom: 14px;
}

.complications-block > .block-lead {
  margin-bottom: 23px;
}

.block-title {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 16px;
}

.block-lead {
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 21px;
}

/* Symptoms: four 180px photo cards, 10px apart, 40% teal wash. */
.symptom-row {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

.symptom-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.symptom-card img.cover,
.complication-card img.cover,
.feature-banner img.cover,
.benefits-media img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.symptom-tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 140, 154, 0.4);
  transition: background-color 0.3s ease;
}

.symptom-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column; /* multi-line labels (<br>) stack, centred */
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  padding-bottom: 8px;
}

.symptom-card img.cover {
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .symptom-card:hover img.cover {
    transform: scale(1.06);
  }

  .symptom-card:hover .symptom-tint {
    background-color: rgba(0, 140, 154, 0.6);
  }
}

/* Risk factors: three borderless 168px cards (Figma 420/415/410 wide, 19px
   apart), icon on the right. Icon size comes from its width/height attrs;
   content sits ~6px above centre. */
.factor-row {
  --bs-gutter-x: 19px;
  --bs-gutter-y: 16px;
}

.factor-card {
  height: 168px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 25px 12px 16px;
}

.factor-icon {
  flex: 0 0 auto;
  object-fit: contain;
}

.factor-body {
  max-width: 273px;
}

@media (min-width: 1200px) {
  .diabetes-factors > .col:nth-child(1) { flex: 0 0 33.69%; max-width: 33.69%; }
  .diabetes-factors > .col:nth-child(2) { flex: 0 0 33.31%; max-width: 33.31%; }
  .diabetes-factors > .col:nth-child(3) { flex: 0 0 33%;    max-width: 33%; }

  /* Same layout in all three cards: a 90px icon slot (the widest icon)
     and a fixed 276px text column, so every description wraps to the
     same two-line width and sits at the same height. */
  .diabetes-factors .factor-card { padding: 0 16px 12px; gap: 12px; }
  .diabetes-factors .factor-icon { width: 90px; }
  .diabetes-factors .factor-body { flex: 0 0 276px; max-width: 276px; }
}

.factor-body p {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

/* Complications: 118px solid-teal cards with the photo at 20% opacity;
   2 per row, 25px/27px apart, the fifth centered on its own row. */
.complication-grid {
  padding-inline: 8px 3px; /* RTL: grid spans x=82..1355 inside the panel */
}

.complication-row {
  --bs-gutter-x: 25px;
  --bs-gutter-y: 27px;
}

.complication-card {
  position: relative;
  min-height: 118px;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
}

.complication-card img.cover {
  opacity: 0.2;
  object-position: center 72%;
}

.complication-body {
  position: relative;
  padding: 16px 18px;
  max-width: 390px;
}

.complication-body h3 {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 7px;
}

.complication-body p {
  font-size: 16px;
  line-height: 19px;
  margin: 0;
}

/* Hover: same photo zoom as the other cards; the photo comes through a
   little more over the teal instead of deepening a tint. */
.complication-card img.cover {
  transition: transform 0.5s ease, opacity 0.3s ease;
}

@media (hover: hover) {
  .complication-card:hover img.cover {
    transform: scale(1.06);
    opacity: 0.32;
  }
}

@media (max-width: 1199.98px) {
  .content-panel {
    padding: 28px 20px;
  }

  .disease-intro-body {
    padding-left: 0;
  }

  .symptoms-block,
  .factors-block,
  .complications-block {
    margin-top: 48px;
  }

  .complication-grid {
    padding-inline: 0;
  }

  .complication-body {
    max-width: none;
  }

  .factor-card {
    height: auto;
    padding-block: 12px;
  }

  .factor-body {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .disease-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .disease-intro .col-auto {
    align-self: center;
    margin: 0 0 16px;
  }

  .disease-intro .panel-title {
    font-size: 18px;
    line-height: 1.6;
    text-align: right;
  }

  .consequence-row .factor-body h3 {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  .consequence-row .factor-body p {
    font-size: 14px;
    line-height: 24px;
  }

  .panel-text {
    font-size: 17px;
    line-height: 32px;
  }

  .block-lead {
    font-size: 17px;
    line-height: 28px;
  }
}

/* ---------- Disease pages: feature banner ---------- */

/* Figma: 1285x643 photo banner (centered) with a green-to-teal wash at
   80%; white copy pinned to the bottom (29px up, 32px in from the right,
   58px from the left). */
.feature-banner-container {
  max-width: calc(1285px + 40px);
}

@media (min-width: 1325px) {
  .feature-banner-container {
    padding-inline: 0;
    max-width: 1285px;
  }
}

/* Figma: 24px/43px semibold, 54px below the panel (the
   section above leaves 82px, hence -28px). Its 1298px box is 159px tall
   (3 lines + 30px) and ends on the banner's top edge; it overhangs the
   1285px banner by 7px on the right and 6px on the left. */
.feature-banner-lead {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  line-height: 43px;
  text-align: right;
  margin: -28px -7px 30px -6px;
}

/* One sentence per line, as in Figma. Vazirmatn/Yekan run a little wider
   than Figma's font, so the last line would drop a word at 1298px; the
   frame's side margin absorbs the few extra pixels. */
@media (min-width: 1440px) {
  .feature-banner-lead {
    white-space: nowrap;
  }
}

@media (max-width: 1199.98px) {
  .feature-banner-lead {
    font-size: 17px;
    line-height: 32px;
    margin: 0 0 16px;
  }
}

.feature-banner {
  position: relative;
  min-height: 420px; /* narrow screens: grow with the copy instead */
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 1200px) {
  .feature-banner {
    aspect-ratio: 1285 / 643;
    min-height: 0;
  }
}

.feature-banner img.cover {
  object-position: center 22%;
}

.feature-banner-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #4cebb4 0%, rgba(0, 140, 154, 0.5) 100%);
  opacity: 0.8;
}

.feature-banner-text {
  position: relative;
  color: #fff;
  padding: 0 32px 40px 58px; /* Figma box ends 29px up but is 11px taller than its lines */
  font-size: 24px;
  line-height: 37px;
  text-align: right;
}

.feature-banner-text h2 {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 24px;
  line-height: 37px;
  margin: 0;
}

.feature-banner-text p {
  margin: 0;
  text-align: justify;
}

/* Diabetes: Figma copy is 20px under the 24px bold title. */
@media (min-width: 576px) {
  .banner-diabetes .feature-banner-text p:not(.feature-banner-stat) {
    font-size: 20px;
  }
}

/* Figma: 42px bold headline centred in a box that starts 34px further in
   from the left than the copy below it, 31px above the title. */
.feature-banner-text .feature-banner-stat {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 42px;
  line-height: 37px;
  text-align: start;
  margin: 0 0 31px 34px;
}

@media (max-width: 1199.98px) {
  .feature-banner-text .feature-banner-stat {
    font-size: 30px;
    line-height: 44px;
    margin: 0 0 16px;
  }
}

@media (max-width: 575.98px) {
  .feature-banner-text .feature-banner-stat {
    font-size: 22px;
    line-height: 34px;
    margin-bottom: 12px;
  }

  .feature-banner-text {
    padding: 0 20px 20px;
    font-size: 16px;
    line-height: 30px;
  }

  .feature-banner-text h2 {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 6px;
  }
}

/* ---------- Disease pages: benefits list ---------- */

/* Figma: 381x735 photo on the right (fading to mint at the bottom), then
   a 114px icon column 20px away and the text 8px beyond it, bottom-aligned
   with the photo. 122px below the banner, 103px above "آغازی آگاهانه". */
.benefits-section {
  padding-block: 122px 57px;
}

.benefits-container {
  max-width: calc(1340px + 40px);
}

@media (min-width: 1380px) {
  .benefits-container {
    padding-inline: 0;
    max-width: 1340px;
  }
}

.benefits-media {
  position: relative;
  width: 381px;
  height: 735px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.benefits-media img.cover {
  object-position: 72% center;
}

.benefits-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 133, 102, 0) 0%, #4cebb4 94%);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  padding-right: 20px; /* RTL: gap from the photo */
}

/* Figma: 32px bold title at the top of the text column (14px below the
   photo's top, 647px box centred, 13px in from the photo side); the auto
   bottom margin keeps the items bottom-aligned with the photo. */
.benefits-title {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 32px;
  line-height: 49px;
  text-align: center;
  align-self: flex-start;
  width: 647px;
  max-width: 100%;
  margin: 14px 13px auto 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit-icon {
  flex: 0 0 114px;
  width: 114px;
  height: auto;
  max-height: 106px;
  object-fit: contain;
}

.benefit-body h3 {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 24px;
  line-height: 47px;
  margin: 0 0 12px;
}

.benefit-body p {
  font-size: 16px;
  line-height: 29px;
  margin: 0;
  text-align: right;
}

@media (max-width: 1199.98px) {
  .benefits-section {
    padding-block: 64px 40px;
  }

  .benefits-media {
    width: 100%;
    height: 360px;
    margin-bottom: 32px;
  }

  .benefits-list {
    padding-right: 0;
  }

  .benefits-title {
    width: auto;
    align-self: stretch;
    font-size: 26px;
    line-height: 40px;
    margin: 0;
  }
}

@media (max-width: 575.98px) {
  .benefit-item {
    align-items: flex-start;
  }

  .benefit-icon {
    flex-basis: 64px;
    width: 64px;
  }

  .benefit-body h3 {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 6px;
  }
}

/* ---------- Video modal (how-to-use) ---------- */

/* Figma: the whole page is dimmed with rgba(61,61,61,0.73) and a 1076x527
   video card (same photo + teal tint + play badge as the other video
   boxes) floats on top with a soft drop shadow. */
.modal-backdrop {
  --bs-backdrop-bg: #3d3d3d;
  --bs-backdrop-opacity: 0.73;
}

.video-modal .modal-dialog {
  max-width: calc(1076px + 32px); /* 1076px card + 16px side gutters */
  padding-inline: 16px;
  margin-inline: auto;
}

.video-modal .modal-content {
  background: transparent;
  border: none;
  border-radius: 11px;
  box-shadow: -1px 6px 8px rgba(0, 0, 0, 0.15);
}

.video-modal-media {
  aspect-ratio: 1076 / 527;
}

/* Large play badge: 93px disc, glyph nudged down ~32% of its size so it
   sits optically centered (same rule as the small badge). */
.video-badge-lg {
  width: 93px;
  height: 93px;
}

.video-badge-lg i {
  font-size: 48px;
  margin-top: 15px;
}

@media (max-width: 575.98px) {
  .video-badge-lg {
    width: 64px;
    height: 64px;
  }

  .video-badge-lg i {
    font-size: 32px;
    margin-top: 10px;
  }
}

/* ==========================================================================
   Obesity page (Figma frame "بیماری چاقی", 1440 wide). Numbers in comments
   are Figma px; shared disease-panel classes are reused and only the
   differences are scoped here.
   ========================================================================== */

/* ---------- Obesity: overview panel ---------- */

/* Panel ends 60px above the BMI heading; badge sits 28px from the panel
   top with an 80px icon; title is 6px lower than the badge. */
.disease-obesity {
  padding-bottom: 60px;
}

.disease-obesity .content-panel {
  padding-top: 28px;
  padding-bottom: 36px;
}

.disease-obesity .topic-badge {
  padding-top: 6px;
}

.disease-obesity .topic-badge img {
  width: 80px;
  height: 80px;
}

.disease-obesity .topic-badge span {
  margin-top: 0;
}

.disease-obesity .panel-title {
  margin: 6px 0 16px;
}

.disease-obesity .panel-text {
  line-height: 35px;
  text-align: justify;
}

@media (min-width: 1200px) {
  /* Each Figma paragraph box is 113px tall (3 lines + slack). */
  .disease-obesity .panel-text {
    min-height: 0;
  }

  .disease-obesity .panel-text p {
    min-height: 113px;
  }
}

/* Photo cards: 54px below the intro, heading 5px above a 16px lead,
   eight 313x180 cards 11px apart with 25px between the rows. */
.conditions-block {
  margin-top: 54px;
}

.conditions-block .block-title {
  margin-bottom: 5px;
}

.disease-obesity .conditions-block .block-title {
  margin-bottom: 13px;
}

.conditions-block .block-lead {
  font-size: 16px;
  line-height: 38px;
  margin-bottom: 21px;
}

.conditions-block .symptom-row {
  --bs-gutter-x: 11px;
  --bs-gutter-y: 25px;
}

.cover-low {
  object-position: center 91%;
}

/* Outlined icon cards: 74px below the photos, heading 32px above them,
   rows 42px apart with the last two centred. */
.consequences-block {
  margin-top: 74px;
}

.consequences-block .block-title {
  margin-bottom: 32px;
}

.consequence-row {
  --bs-gutter-y: 42px;
}

.factor-card-outlined {
  background: #fefefe;
  border: 1px solid rgba(0, 140, 154, 0.5);
  border-radius: 8px;
  padding-right: 18px;
  padding-left: 16px;
  gap: 10px;
}

.factor-body h3 {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 10px;
}

@media (min-width: 1200px) {
  .factor-card-outlined {
    padding-bottom: 0;
  }

  /* Figma widths 420/415/410 + 415/410, each card's own icon inset,
     icon-to-text gap and text width. */
  .consequence-row > .col:nth-child(1) { flex: 0 0 33.69%; max-width: 33.69%; }
  .consequence-row > .col:nth-child(2),
  .consequence-row > .col:nth-child(4) { flex: 0 0 33.31%; max-width: 33.31%; }
  .consequence-row > .col:nth-child(3),
  .consequence-row > .col:nth-child(5) { flex: 0 0 33%; max-width: 33%; }

  .consequence-row > .col:nth-child(1) .factor-card { padding-right: 19px; gap: 10px; }
  .consequence-row > .col:nth-child(2) .factor-card { padding-right: 17px; gap: 13px; }
  .consequence-row > .col:nth-child(3) .factor-card { padding-right: 18px; gap: 7px; }
  .consequence-row > .col:nth-child(4) .factor-card { padding-right: 12px; gap: 13px; }
  .consequence-row > .col:nth-child(5) .factor-card { padding-right: 24px; gap: 18px; }

  .consequence-row > .col:nth-child(1) .factor-body { max-width: 305px; }
  .consequence-row > .col:nth-child(2) .factor-body { max-width: 286px; }
  .consequence-row > .col:nth-child(3) .factor-body { max-width: 273px; }
  .consequence-row > .col:nth-child(4) .factor-body { max-width: 298px; }
  .consequence-row > .col:nth-child(5) .factor-body { max-width: 277px; }
}

/* Text + tinted photo: 50px below the cards; 632px justified text 11px in
   from the right, 544x308 photo 6px past the panel padding on the left. */
.media-text-block {
  margin-top: 50px;
}

.media-text-body {
  font-size: 24px;
  line-height: 34px;
  text-align: justify;
}

.media-text-body p {
  margin: 0;
}

.media-text-body strong {
  font-weight: 600;
}

/* Obesity: bold stat line, 10px above the copy (Figma). */
.media-text-body .media-text-lead {
  font-weight: 700;
  margin-bottom: 10px;
}

/* Obesity: match the page's other body copy (.panel-text). */
.disease-obesity .media-text-body {
  font-size: 20px;
  line-height: 35px;
}

@media (max-width: 1199.98px) {
  .disease-obesity .media-text-body {
    font-size: 17px;
    line-height: 32px;
  }
}

.media-text-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 544 / 308;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.media-text-photo img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.media-text-tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 140, 154, 0.24);
}

/* Criteria: 56px below; 681px text column (5px in from the right), 543x362
   photo on the left; text starts 18px below the photo's top. */
.criteria-block {
  margin-top: 56px;
}

.criteria-body .block-title {
  margin-bottom: 36px;
}

.criteria-heading {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 19px;
}

.criteria-heading-first {
  margin-bottom: 12px;
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin: 0 0 17px;
}

.criteria-list li {
  position: relative;
  font-size: 20px;
  line-height: 24px;
  padding-right: 19px;
}

.criteria-list li + li {
  margin-top: 12px;
}

.criteria-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
}

.criteria-note {
  font-size: 20px;
  line-height: 24px;
  margin: 0;
}

.criteria-note strong {
  font-weight: 600;
}

.criteria-photo {
  display: block;
  width: 100%;
  aspect-ratio: 543 / 362;
  object-fit: cover;
  border-radius: 15px;
}

@media (min-width: 1200px) {
  .media-text-block .row,
  .criteria-block .row {
    --bs-gutter-x: 0px;
    --bs-gutter-y: 0px;
    flex-wrap: nowrap;
  }

  .media-text-body {
    width: 632px;
    margin-right: 11px;
    margin-bottom: 14px; /* text centre sits 7px above the photo centre */
  }

  .media-text-photo {
    width: 544px;
    margin-left: -6px;
  }

  .criteria-body {
    width: 681px;
    margin-right: 5px;
    padding-top: 18px;
  }

  .criteria-photo {
    width: 543px;
    max-width: none;
    margin-left: -5px;
  }
}

@media (min-width: 1200px) {
  /* Figma's text box wraps to 5 lines (174px); keep that box so the text
     starts where the design puts it. */
  .media-text-body {
    min-height: 174px;
  }
}

@media (max-width: 1199.98px) {
  .conditions-block,
  .consequences-block,
  .media-text-block,
  .criteria-block {
    margin-top: 48px;
  }

  .consequences-block .block-title {
    margin-bottom: 20px;
  }

  .consequence-row {
    --bs-gutter-y: 16px;
  }
}

@media (max-width: 575.98px) {
  .conditions-block .block-lead {
    line-height: 28px;
  }

  .media-text-body {
    font-size: 19px;
    line-height: 32px;
  }

  .criteria-list li,
  .criteria-note {
    font-size: 17px;
    line-height: 30px;
  }

  .criteria-list li::before {
    top: 9px;
  }
}

/* ---------- Obesity: BMI calculator ---------- */

/* Figma: heading 32px (4px in from the right), then a 568x592 report card
   on the right and a 757x588 wizard card (8px lower) 25px to its left.
   159px down to the banner. */
.bmi-section {
  padding-bottom: 159px;
}

.bmi-heading {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 32px;
  line-height: 37px;
  margin: 0 4px 16px 0;
}

.bmi-row {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.bmi-report {
  flex: 0 0 568px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 28px 19px;
  text-align: center;
}

/* 501x68 dashed title box, 28px in from the right edge. */
.bmi-report-title {
  align-self: flex-start;
  width: 501px;
  max-width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--teal);
  border-radius: var(--radius-lg);
  font-size: 24px;
  line-height: 32px;
}

/* 293px dial; label/sub/value/badge tops are Figma offsets in the circle. */
.bmi-dial {
  position: relative;
  flex: 0 0 auto;
  width: 293px;
  height: 293px;
  margin-top: 23px;
  border-radius: 50%;
  background: rgba(0, 140, 154, 0.16);
  border: 1px solid var(--teal);
}

.bmi-dial > span {
  position: absolute;
  right: 0;
  left: 0;
  text-align: center;
  font-weight: 600;
}

.bmi-dial-label {
  top: 37px;
  font-size: 24px;
  line-height: 32px;
}

.bmi-dial-sub {
  top: 74px;
  font-size: 20px;
  line-height: 32px;
}

.bmi-dial-value {
  top: 137px;
  font-size: 80px;
  line-height: 32px;
  color: rgb(0, 96, 106);
}

.bmi-dial .bmi-dial-badge {
  top: 203px;
  right: 50%;
  left: auto;
  transform: translateX(50%);
  min-width: 136px;
  height: 40px;
  padding-inline: 16px;
  border-radius: 20px;
  background: #ff8800;
  color: #fff;
  font-size: 24px;
  line-height: 40px;
  white-space: nowrap;
}

.bmi-dial-badge.is-under { background: #0288d1; }
.bmi-dial-badge.is-normal { background: var(--teal); }
.bmi-dial-badge.is-obese { background: #e53935; }

.bmi-report-message {
  width: 501px;
  max-width: 100%;
  margin: 11px 0 0;
  font-size: 20px;
  line-height: 32px;
}

/* Step 4 (result): bold verdict 59px under the dial, text 11px below. */
.bmi-report-result {
  margin-top: 59px;
  font-size: 20px;
  line-height: 32px;
}

.bmi-report-result p {
  margin: 0;
}

.bmi-result-title {
  font-weight: 700;
}

.bmi-result-text {
  margin-top: 11px !important;
}

.bmi-cta {
  width: 475px;
  max-width: 100%;
  min-height: 83px;
  margin-top: 11px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--teal);
  color: #fff;
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  transition: background-color 0.2s ease;
}

.bmi-report.has-result .bmi-cta {
  margin-top: 40px;
}

.bmi-cta:hover,
.bmi-next:hover {
  background: var(--teal-dark);
}

/* Wizard: 671px content column (49px from the right, 37px from the left);
   the disclaimer's icon hangs 18px from the right edge. */
.bmi-wizard {
  flex: 0 0 757px;
  min-height: 588px;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0 49px 23px 37px;
  text-align: right;
}

.bmi-step-title {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  line-height: 34px;
  margin: 0;
}

.bmi-step-1 { padding-top: 113px; }
.bmi-step-2 { padding-top: 58px; }
.bmi-step-3 { padding-top: 46px; }

.bmi-step-1 .bmi-step-title {
  margin-bottom: 47px;
}

.bmi-step-2 .bmi-step-title {
  margin-right: 9px;
}

.bmi-inputs {
  display: flex;
  gap: 13px;
}

.bmi-input {
  flex: 1 1 0;
  min-width: 0;
  height: 72px;
  padding: 0 17px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #fefefe;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}

.bmi-input::-webkit-outer-spin-button,
.bmi-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bmi-input::placeholder {
  color: #b0b0b0;
}

.bmi-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 140, 154, 0.2);
}

.bmi-input.is-invalid {
  border-color: #e53935;
}

.bmi-error {
  margin: 10px 0 -10px;
  color: #e53935;
  font-size: 14px;
  line-height: 20px;
}

.bmi-next {
  display: block;
  width: 100%;
  height: 74px;
  margin-top: 61px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  transition: background-color 0.2s ease;
}

.bmi-step-2 .bmi-next { margin-top: 61px; }
.bmi-step-3 .bmi-next { margin-top: 35px; }

/* Checkboxes: 35px teal-outlined squares, label 5px (step 3: 6px) away. */
.bmi-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 20px;
  line-height: 34px;
  cursor: pointer;
}

.bmi-check input {
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #fefefe center / 22px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.bmi-check input:checked {
  background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}

.bmi-check input:focus-visible {
  outline: 3px solid rgba(0, 140, 154, 0.35);
  outline-offset: 2px;
}

.bmi-check-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 23px;
  row-gap: 12px;
  margin-top: 55px;
  padding-right: 15px;
}

.bmi-check-row-2 {
  column-gap: 35px;
  margin-top: 54px;
  padding-right: 22px;
}

.bmi-check-row-3 {
  justify-content: center;
  margin-top: 39px;
  padding-right: 0;
}

/* Step 3: one caution per 78px row (long ones wrap inside the row). */
.bmi-check-list {
  margin-top: 43px;
}

.bmi-check-list .bmi-check {
  align-items: flex-start;
  gap: 6px;
  font-size: 18px;
}

.bmi-check-list > .bmi-check {
  display: flex;
  min-height: 78px;
}

.bmi-check-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 35px;
}

.bmi-disclaimer {
  display: flex;
  align-items: flex-start;
  margin: auto -31px 0 -14px;
  padding-top: 19px;
  font-size: 16px;
  line-height: 29px;
}

.bmi-disclaimer i {
  flex: 0 0 31px;
  margin-top: 12px;
  font-size: 23px;
  line-height: 31px;
  color: #222;
  text-align: center;
}

@media (min-width: 1200px) {
  /* Figma's disclaimer box is 76px tall; keep it so it starts at y=489. */
  .bmi-disclaimer span {
    min-height: 76px;
  }
}

.bmi-step[hidden] {
  display: none;
}

.bmi-step {
  animation: bmi-step-in 0.3s ease;
}

@keyframes bmi-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .bmi-report {
    flex: 0 0 42%;
  }

  .bmi-wizard {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 1199.98px) {
  .bmi-section {
    padding-bottom: 72px;
  }

  .bmi-heading {
    font-size: 26px;
    line-height: 36px;
    margin-right: 0;
  }

  .bmi-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .bmi-wizard {
    order: -1;
    flex: 0 0 auto;
    min-height: 0;
    margin-top: 0;
    padding: 0 20px 20px;
  }

  .bmi-report {
    flex: 0 0 auto;
    padding: 20px;
  }

  .bmi-report-title {
    align-self: stretch;
    width: auto;
  }

  .bmi-step-1,
  .bmi-step-2,
  .bmi-step-3 {
    padding-top: 28px;
  }

  .bmi-step-1 .bmi-step-title {
    margin-bottom: 24px;
  }

  .bmi-step-2 .bmi-step-title {
    margin-right: 0;
  }

  .bmi-next,
  .bmi-step-2 .bmi-next,
  .bmi-step-3 .bmi-next {
    margin-top: 28px;
  }

  .bmi-check-row,
  .bmi-check-row-2,
  .bmi-check-row-3 {
    justify-content: flex-start;
    padding-right: 0;
    margin-top: 16px;
  }

  .bmi-check-row {
    margin-top: 24px;
  }

  .bmi-check-list {
    margin-top: 24px;
  }

  .bmi-check-list > .bmi-check {
    min-height: 0;
    margin-bottom: 16px;
  }

  .bmi-disclaimer {
    margin: auto 0 0;
  }

  .bmi-disclaimer i {
    margin-top: 0;
  }
}

@media (max-width: 575.98px) {
  .bmi-inputs {
    flex-direction: column;
  }

  .bmi-check-row .bmi-check {
    font-size: 18px;
  }

  .bmi-step-title,
  .bmi-report-title,
  .bmi-next,
  .bmi-cta {
    font-size: 20px;
  }

  .bmi-dial {
    width: 260px;
    height: 260px;
  }

  .bmi-dial-label { top: 28px; }
  .bmi-dial-sub { top: 62px; }
  .bmi-dial-value { top: 120px; font-size: 64px; }
  .bmi-dial .bmi-dial-badge { top: 180px; }

  .bmi-report-message,
  .bmi-report-result {
    font-size: 18px;
    line-height: 30px;
  }
}

/* ---------- Obesity: banner + awareness ---------- */

/* Banner 1285x628, copy 54px from the left / 53px from the right and 68px
   up; 134px + the awareness section's 46px = 180px down to the photo. */
.banner-obesity {
  padding-bottom: 134px;
}

.banner-obesity .feature-banner img.cover {
  object-position: center bottom;
}

@media (min-width: 1200px) {
  .banner-obesity .feature-banner {
    aspect-ratio: 1285 / 628;
  }

  .banner-obesity .feature-banner-text {
    padding: 0 53px 68px 54px;
  }

  .banner-obesity .feature-banner-stat {
    margin: 0 6px 24px 0;
  }

  /* Title and body are 34px/33px apart here (2-line body). */
  .awareness-obesity .awareness-title {
    margin-bottom: 34px;
  }

  .awareness-obesity .awareness-body {
    margin-bottom: 33px;
  }
}

@media (max-width: 1199.98px) {
  .banner-obesity {
    padding-bottom: 40px;
  }
}

/* ==========================================================================
   Compact disease layout (Figma frames "بیماری قلبی عروقی" and "بیماری کبدی":
   same panel/banner geometry). Reuses the obesity panel blocks; only this
   layout's spacing and sizes are scoped here.
   ========================================================================== */

/* Panel: badge 28px from the top (icon 80px, 10px down, 6px right of
   centre; 14px label), title 10px lower than the badge, one 2-line
   paragraph; 47px below the last photo. */
.disease-compact .content-panel {
  padding-top: 28px;
  padding-bottom: 47px;
}

.disease-compact .topic-badge {
  padding-top: 10px;
}

.disease-compact .topic-badge img {
  width: 80px;
  height: 80px;
  margin-left: 12px;
}

.disease-compact .topic-badge span {
  margin-top: 0;
  font-size: 14px;
  line-height: 17px;
}

.disease-compact .panel-title {
  margin: 10px 0 12px;
}

/* Liver frame: 86px icon 8px down and 2px right of centre; label stays at
   90px from the badge top. */
.disease-liver .topic-badge {
  padding-top: 8px;
}

.disease-liver .topic-badge img {
  width: 86px;
  height: 86px;
  margin-left: 4px;
}

.disease-liver .topic-badge span {
  margin-top: -4px;
}

/* ---------- Liver page (Figma frame "بیماری کبدی") ----------
   Panel x=41..1399, content x=79..1362 (37px right padding), 51px below
   the photo at the bottom; 98px down to the banner. */
.disease-liver {
  padding-bottom: 98px;
}

.disease-liver .content-panel {
  padding-right: 37px;
  padding-bottom: 51px;
}

@media (min-width: 1200px) {
  .disease-section.disease-liver .panel-text {
    min-height: 189px; /* Figma: 5 lines at 38px */
  }
}

/* Risk factors: heading 68px below the intro text and 25px above four
   313x180 photo cards (10.33px apart), a full-width 1283x180 card 23px
   below, then a one-line note 10px under it. */
.liver-risk-block {
  margin-top: 68px;
}

.liver-risk-block .block-title {
  margin-bottom: 25px;
}

.liver-risk-block .symptom-row {
  --bs-gutter-x: 10.33px;
  --bs-gutter-y: 23px;
}

.disease-liver .symptom-label {
  padding-bottom: 0;
}

.liver-cover-diabetes {
  object-position: center 80%;
}

.liver-cover-wide {
  object-position: center 45%;
}

.liver-note {
  font-size: 20px;
  line-height: 38px;
  margin: 10px 0 0;
}

@media (min-width: 1200px) {
  .liver-note {
    min-height: 46px; /* Figma's text box */
  }
}

/* 20px headings with 20px/33px right-aligned copy under them. */
.disease-liver .liver-symptoms-block .block-title,
.disease-liver .liver-progress-block .block-title {
  font-size: 20px;
  line-height: 24px;
}

.liver-copy {
  font-size: 20px;
  line-height: 33px;
  text-align: right;
}

.liver-copy p {
  margin: 0;
}

/* Symptoms: 70px below the note; copy 14px under the heading; outlined
   168px cards 32px below the copy: 420/415/410 in the first row, 415/410
   in the second (19px gaps), each with its own icon inset and gap. */
.liver-symptoms-block {
  margin-top: 70px;
}

.liver-symptoms-block .block-title {
  margin-bottom: 14px;
}

.liver-symptoms-block .liver-copy p + p {
  margin-top: 4px;
}

.liver-symptom-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 32px;
}

.liver-symptom-card {
  flex: 1 1 100%;
}

.liver-symptom-card .factor-body {
  max-width: none;
}

.liver-symptom-card .factor-body h3 {
  margin: 0;
}

/* The Figma line breaks only fit the desktop card widths. */
@media (max-width: 1199.98px) {
  .liver-symptom-card .factor-body h3 br {
    display: none;
  }
}

@media (min-width: 576px) {
  .liver-symptom-card {
    flex-basis: calc(50% - 10px);
  }
}

@media (min-width: 1200px) {
  .liver-symptom-card {
    flex: 0 0 auto;
  }

  .liver-symptom-card:nth-child(1) { width: 420px; padding-right: 104px; }
  .liver-symptom-card:nth-child(2) { width: 415px; padding-right: 24px; gap: 21px; }
  .liver-symptom-card:nth-child(3) { width: 410px; padding-right: 20px; gap: 39px; }
  .liver-symptom-card:nth-child(4) { width: 415px; padding-right: 25px; padding-left: 4px; gap: 17px; margin-right: 224px; }
  .liver-symptom-card:nth-child(4) h3 { white-space: nowrap; }
  .liver-symptom-card:nth-child(5) { width: 410px; padding-right: 38px; gap: 23px; }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .liver-symptom-card:nth-child(n) {
    width: calc((100% - 38px) / 3);
  }

  .liver-symptom-card:nth-child(1) {
    padding-right: 40px;
  }

  .liver-symptom-card:nth-child(4) {
    margin-right: calc((100% - 38px) / 6);
  }

  .liver-symptom-card:nth-child(4) h3 {
    white-space: normal;
  }
}

/* Progression: 106px below the symptom cards; copy 10px under the heading
   (both a few px in from the right, as in Figma); four 298x181 cards with
   a red wash, 25px apart with an arrow in each gap; copy again 45px below. */
.liver-progress-block {
  margin-top: 106px;
}

.liver-progress-block .block-title {
  margin: 0 3px 10px 0;
}

.liver-progress-block > .liver-copy {
  margin: 0 4px 0 -5px;
}

.stage-row.liver-stage-row {
  grid-template-columns: repeat(3, minmax(0, 298px) 25px) minmax(0, 298px);
  margin: 44px 2px 0 0;
}

.liver-stage-row .stage-card {
  height: 181px;
}

.liver-stage-row .stage-body {
  padding: 72px 12px 0;
}

.liver-progress-block > .liver-copy-after {
  margin: 45px 0 0;
}

.liver-copy-after .liver-copy-gap {
  margin-top: 33px;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .stage-row.liver-stage-row {
    grid-template-columns: repeat(3, minmax(0, 1fr) 25px) minmax(0, 1fr);
  }
}

@media (max-width: 1199.98px) {
  .stage-row.liver-stage-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 0;
  }

  .stage-row.liver-stage-row .stage-card:last-child {
    grid-column: auto;
  }

  .liver-stage-row .stage-body {
    padding-top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .liver-risk-block,
  .liver-symptoms-block,
  .liver-progress-block {
    margin-top: 48px;
  }

  .liver-progress-block .block-title,
  .liver-progress-block > .liver-copy {
    margin-inline: 0;
  }
}

@media (max-width: 575.98px) {
  .stage-row.liver-stage-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .liver-copy,
  .liver-note {
    font-size: 17px;
    line-height: 30px;
  }
}

/* Treatment note: photo 111px below the copy; text 2px past the content's
   right edge, photo 6px inside its left edge. */
.disease-section.disease-liver .media-text-block {
  margin-top: 111px;
}

@media (min-width: 1200px) {
  .disease-liver .media-text-body {
    margin-right: -2px;
    font-size: 20px;
    line-height: 33px;
  }

  .disease-liver .media-text-photo {
    margin-left: 6px;
  }
}

@media (max-width: 1199.98px) {
  .disease-section.disease-liver .media-text-block {
    margin-top: 48px;
  }
}

/* Banner: 1285x765 photo with the usual green-to-teal wash; 24px/37px
   right-aligned copy (40px bold title) 30px in from the right, 12px from
   the left and 28px up from the bottom; "·" bullets 27px in. 137px + the
   awareness section's 46px = 183px down to its photo. */
/* Figma: 1285x765 banner holding a 24px bold title, a blank line and two
   24px/37px paragraphs, 21px from the sides and 79px from the bottom.
   The ESSENCE study sits below it: a 24px semibold heading 98px down,
   then a 1285px light teal box 24px under it; the awareness photo is
   84px below the box. */
.banner-liver {
  padding-bottom: 38px; /* + the awareness section's 46px = 84px */
}

.banner-liver .feature-banner img.cover {
  object-position: center center;
}

.banner-liver .feature-banner-text {
  width: 100%;
  padding: 40px 21px 79px;
  font-size: 24px;
  line-height: 37px;
}

.banner-liver .feature-banner-text h2 {
  font-size: 24px;
  line-height: 37px;
  margin: 0 0 37px;
}

.liver-study {
  margin-top: 98px;
  text-align: right;
}

.liver-study h3 {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  line-height: 37px;
  margin: 0 0 24px;
}

.liver-study-box {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 181, 199, 0.25), rgba(0, 91, 100, 0.25));
  padding: 22px 28px 19px 44px;
  font-size: 24px;
  line-height: 66px;
}

.liver-study-box p {
  margin: 0;
}

.liver-study-box .liver-banner-list li {
  font-weight: 600;
  padding-right: 12px; /* Figma: "· " sits right against the text */
}

.liver-study-box .liver-banner-list li::before {
  top: 31px;
}

@media (max-width: 1199.98px) {
  .liver-study {
    margin-top: 56px;
  }

  .liver-study h3 {
    font-size: 19px;
    line-height: 30px;
    margin-bottom: 16px;
  }

  .liver-study-box {
    font-size: 17px;
    line-height: 32px;
    padding: 16px 20px;
  }

  .liver-study-box .liver-banner-list li::before {
    top: 14px;
  }
}

.banner-liver .feature-banner-text p {
  text-align: right;
}

.liver-banner-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.liver-banner-list li {
  position: relative;
  padding-right: 27px;
}

.liver-banner-list li::before {
  content: "";
  position: absolute;
  right: 1px;
  top: 20px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.banner-liver .banner-arrow {
  left: 14.4%;
}

.banner-liver .banner-arrow svg {
  display: block;
}

@media (min-width: 1200px) {
  .banner-liver .feature-banner {
    aspect-ratio: auto;
    min-height: 765px;
  }
}

@media (max-width: 1199.98px) {
  .banner-liver {
    padding-bottom: 40px;
  }

  .banner-liver .feature-banner-text {
    padding: 28px 24px 48px;
    font-size: 18px;
    line-height: 30px;
  }

  .banner-liver .feature-banner-text h2 {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 16px;
  }

  .liver-banner-list li::before {
    top: 14px;
  }
}

@media (max-width: 575.98px) {
  .banner-liver .feature-banner-text {
    padding: 20px 20px 44px;
    font-size: 16px;
    line-height: 28px;
  }

  .banner-liver .feature-banner-text h2 {
    font-size: 16px;
    line-height: 28px;
  }

  .banner-liver .banner-arrow svg {
    width: 16px;
    height: 20px;
  }
}

@media (min-width: 1200px) {
  .disease-compact .panel-text {
    min-height: 77px;
  }
}

/* Section headings are 24px here. Photo cards 64px below the intro with
   23px under the heading and between rows; icon cards 37px below with 22px
   under the heading and 19px between rows; photo block 122px below. */
.disease-compact .block-title {
  font-size: 24px;
  line-height: 29px;
}

.disease-compact .conditions-block {
  margin-top: 64px;
}

.disease-compact .conditions-block .block-title {
  margin-bottom: 23px;
}

.disease-compact .conditions-block .symptom-row {
  --bs-gutter-y: 23px;
}

.disease-compact .consequences-block {
  margin-top: 37px;
}

.disease-compact .consequences-block .block-title {
  margin-bottom: 22px;
}

.disease-compact .consequence-row {
  --bs-gutter-y: 19px;
}

.disease-compact .media-text-block {
  margin-top: 122px;
}

/* ---------- Heart page (Figma frame "بیماری قلبی عروقی") ---------- */

.disease-heart .conditions-block .block-title,
.disease-heart .conditions-block .block-lead,
.disease-heart .conditions-block .block-subheading {
  text-align: right;
}

.disease-heart .conditions-block .block-lead {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 4px;
}

.disease-heart .conditions-block .block-subheading {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  line-height: 29px;
  margin: 21px 0 16px;
}

.disease-heart .conditions-block .heart-risk-body {
  text-align: center;
}

.disease-heart .consequences-block .block-lead {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 23px;
}

/* Risk-factor cards: a full-width featured photo card followed by four
   quarter-width photo cards, all 235px tall with title + description
   overlaid on a teal wash. */
.heart-risk-row {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 20px;
}

.heart-risk-row-cards {
  margin-top: -12px;
}

.heart-symptom-row-wide {
  margin-top: 6px;
}

.heart-risk-card {
  position: relative;
  height: 235px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-risk-card img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heart-risk-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 116, 127, 0.15) 0%, rgba(0, 89, 97, 0.78) 100%);
}

.heart-risk-body {
  position: relative;
  color: #fff;
  padding: 16px 18px;
}

.heart-risk-body h3 {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 6px;
}

.heart-risk-body p {
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.heart-risk-featured {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.heart-risk-featured .heart-risk-body {
  max-width: 780px;
  padding: 16px 24px;
}

.heart-risk-featured .heart-risk-body h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.heart-risk-featured .heart-risk-body p {
  font-size: 15px;
  line-height: 22px;
}

/* Symptom cards: rose wash variant, 144px tall + one full-width card. */
.heart-symptom-row {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 10px;
}

.heart-symptom-card {
  position: relative;
  height: 144px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-symptom-card img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Figma: #E82D56 at 40%. */
.heart-symptom-tint {
  position: absolute;
  inset: 0;
  background: rgba(232, 45, 86, 0.4);
}

.heart-symptom-label {
  position: relative;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  padding: 0 12px;
}

/* Hover: same as the other disease pages' cards (photo zoom + deeper wash).
   The risk tint is a gradient, so it deepens via an overlay fade. */
.heart-risk-card img.cover,
.heart-symptom-card img.cover {
  transition: transform 0.5s ease;
}

.heart-symptom-tint {
  transition: background-color 0.3s ease;
}

.heart-risk-tint::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 89, 97, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .heart-risk-card:hover img.cover,
  .heart-symptom-card:hover img.cover {
    transform: scale(1.06);
  }

  .heart-risk-card:hover .heart-risk-tint::after {
    opacity: 1;
  }

  .heart-symptom-card:hover .heart-symptom-tint {
    background-color: rgba(232, 45, 86, 0.6);
  }
}

/* Treatment note: 20px/40px copy, bold "(...)" and "اما کاهش خطر". */
.disease-heart .media-text-body {
  font-size: 20px;
  line-height: 40px;
}

.disease-heart .media-text-body b {
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .disease-heart .media-text-body {
    font-size: 17px;
    line-height: 32px;
  }
}

/* Studies: 24px semibold heading flush right, then a light teal gradient
   box (#00B5C7 -> #005B64 at 25%, 8px corners) with the copy 26px from
   the right; results are bold. */
.heart-study {
  margin-top: 75px;
  text-align: right;
}

.heart-study + .heart-study {
  margin-top: 33px;
}

.heart-study h3 {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  line-height: 37px;
  margin: 0 0 17px;
}

.heart-study + .heart-study h3 {
  margin-bottom: 24px;
}

.heart-study-box {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 181, 199, 0.25), rgba(0, 91, 100, 0.25));
  padding: 19px 26px 11px 44px;
  font-size: 24px;
}

.heart-study-box.study-diabetes {
  line-height: 58px;
}

.heart-study-box.study-obesity {
  line-height: 66px;
  padding-top: 22px;
  padding-bottom: 34px;
}

.heart-study-box p {
  margin: 0;
}

.heart-study-box .study-result {
  font-weight: 700;
}

.heart-quote {
  font-weight: 600;
  font-size: 24px;
  line-height: 37px;
  text-align: right;
  margin: 57px 0 0;
}

/* Figma's quote box overhangs the banner (x=45..1369); only once the frame's
   side margins exist to absorb it. */
@media (min-width: 1440px) {
  .heart-quote {
    margin: 57px -4px 0 -35px;
  }
}

.banner-heart + .awareness-section {
  padding-top: 26px;
}

@media (max-width: 1199.98px) {
  .heart-study {
    margin-top: 56px;
  }

  .heart-study h3,
  .heart-quote {
    font-size: 19px;
    line-height: 30px;
  }

  .heart-study-box,
  .heart-study-box.study-diabetes,
  .heart-study-box.study-obesity {
    font-size: 17px;
    line-height: 32px;
    padding: 16px 20px;
  }

  .heart-quote {
    margin: 32px 0 0;
  }
}

/* Cardio-protection banner: the image already carries its own tint from
   the Figma export. */
.banner-heart .feature-banner-tint {
  display: none;
}

.banner-heart .feature-banner img.cover {
  object-position: center 30%;
}

/* Figma: 1285x683 banner holding only the 42px bold title (centred in a
   box starting 251px in from the left) and the 24px/37px intro, 31px from
   the right, 52px from the left and 120px from the bottom. */
.banner-heart .feature-banner-text {
  width: 100%;
  padding: 40px 32px;
  text-align: right;
}

.banner-heart .feature-banner-text h2 {
  font-size: 30px;
  line-height: 38px;
  text-align: center;
  margin-bottom: 16px;
}

.banner-heart .banner-intro {
  font-size: 16px;
  line-height: 26px;
  text-align: right;
  margin: 0;
}

@media (min-width: 1200px) {
  .banner-heart .feature-banner {
    aspect-ratio: auto;
    min-height: 683px;
  }

  .banner-heart .feature-banner-text {
    padding: 0 31px 120px 52px;
  }

  .banner-heart .feature-banner-text h2 {
    font-size: 42px;
    line-height: 37px;
    margin: 0 0 36px 251px;
  }

  .banner-heart .banner-intro {
    font-size: 24px;
    line-height: 37px;
  }
}

@media (max-width: 1199.98px) {
  .heart-risk-featured .heart-risk-body h3 {
    font-size: 20px;
  }

  .banner-heart .feature-banner-text {
    padding: 28px 20px;
  }

  .banner-heart .feature-banner-text h2 {
    font-size: 22px;
    line-height: 30px;
  }
}

/* Banner: 1285x261 strip with only the 42px headline, 57px/56px from the
   sides and sitting 9px above centre. */
.banner-strip {
  padding-bottom: 134px;
}

.banner-strip .feature-banner {
  align-items: center;
  min-height: 200px;
}

.banner-strip .feature-banner img.cover {
  object-position: center bottom;
}

.banner-strip .feature-banner-stat {
  margin: 0;
}

@media (min-width: 1200px) {
  .banner-strip .feature-banner {
    aspect-ratio: 1285 / 261;
  }

  .banner-strip .feature-banner-text {
    width: 100%;
    padding: 0 56px 18px 57px;
  }
}

@media (max-width: 1199.98px) {
  .disease-compact .conditions-block,
  .disease-compact .consequences-block,
  .disease-compact .media-text-block {
    margin-top: 48px;
  }

  .banner-strip {
    padding-bottom: 40px;
  }

  .banner-strip .feature-banner-text {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Kidney page (Figma frame "بیماری کلیوی"). Panel is 780px down (5px lower
   than the other disease pages), 23px top padding, 35px right, 58px bottom.
   ========================================================================== */

.disease-kidney {
  padding-block: 36px 63px;
}

.disease-kidney .content-panel {
  padding: 23px 35px 58px 38px;
}

/* Badge: 97px icon flush with the top, 16px label 92px down. */
.disease-kidney .topic-badge {
  padding-top: 0;
}

.disease-kidney .topic-badge img {
  width: 97px;
  height: 97px;
}

.disease-kidney .topic-badge span {
  margin-top: -5px;
  font-size: 16px;
  line-height: 19px;
}

.disease-kidney .panel-title {
  margin: 10px 0 12px;
}

.disease-kidney .disease-intro-body {
  padding-left: 77px;
}

.disease-kidney .panel-text {
  text-align: right;
}

.disease-kidney .panel-text strong {
  font-weight: 600;
}

@media (min-width: 1200px) {
  .disease-kidney .panel-text {
    min-height: 189px;
  }
}

/* Section headings are 24px in this frame. */
.disease-kidney .block-title {
  font-size: 24px;
  line-height: 29px;
}

/* Stages: 77px below the intro; bold heading and 20px lead 8px in from the
   right; five 237x144 cards 20px apart with a 40% red wash. */
.stages-block {
  margin-top: 76px; /* intro text renders 190px vs Figma's 189px box */
  padding-right: 8px;
}

.stages-block .block-title {
  font-weight: 700;
  margin: 0 -1px 2px 0;
}

.stages-block .block-lead {
  line-height: 38px;
  margin-bottom: 23px;
}

/* Figma: the cards span x=75..1340 (16px in from the heading's right edge)
   with a 15px black arrow centred in each 20px gap, pointing to the next
   stage. */
.stage-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 237px) 20px) minmax(0, 237px);
  align-items: center;
}

@media (min-width: 1400px) {
  .stage-row {
    grid-template-columns: repeat(4, 237px 20px) 237px;
    margin-right: 16px;
  }
}

.stage-arrow {
  display: flex;
  justify-content: center;
}

.stage-arrow svg {
  display: block;
}

.stage-card {
  position: relative;
  height: 144px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
}

.stage-card img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-left {
  object-position: 0% 50%;
}

.stage-tint {
  position: absolute;
  inset: 0;
  background: rgba(232, 45, 86, 0.4);
}

.stage-body {
  position: relative;
  padding: 57px 12px 0;
  text-align: center;
}

.stage-body h3 {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  margin: 0;
  white-space: nowrap;
}

.stage-body p {
  width: 192px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 12px;
  line-height: 16px;
  text-align: right;
}

/* Warning signs: 75px below the stages; lead 10px under the heading and
   30px above the cards; cards 15.33px/26px apart and 13px wider than the
   panel padding on the left; the wide card's label sits right, 43px in. */
.warning-block {
  margin-top: 70px;
}

.warning-block .block-title {
  margin-bottom: 10px;
}

.disease-kidney .block-lead {
  font-size: 16px;
  line-height: 19px;
}

.warning-block .block-lead {
  margin-bottom: 30px;
}

.stages-block .block-lead {
  font-size: 20px;
  line-height: 38px;
  margin-bottom: 27px; /* cards sit 81px below the heading's glyphs, as in Figma */
}

.warning-block .symptom-row {
  --bs-gutter-x: 15.33px;
  --bs-gutter-y: 26px;
}

.symptom-label-loose {
  line-height: 36px;
}

.symptom-card-wide img.cover {
  object-position: center 26%;
}

.symptom-card-wide .symptom-label {
  align-items: flex-start;
  padding: 0 43px 21px 0;
}

/* Why care matters: 78px below; lead 5px under the heading, 31px above two
   637x168 outlined cards 12px apart with icon + title centred. */
.care-block {
  margin-top: 78px;
}

.care-block .block-title {
  margin-bottom: 5px;
}

.care-block .block-lead {
  margin-bottom: 31px;
}

.care-row {
  --bs-gutter-x: 12px;
}

.care-row .factor-card {
  justify-content: center;
  gap: 14px;
  padding-inline: 16px;
}

.care-row .factor-body {
  max-width: none;
}

.care-row .factor-body h3 {
  margin: 0;
}

@media (min-width: 1200px) {
  .care-row .factor-card {
    padding-bottom: 12px;
  }
}

@media (min-width: 1200px) {
  .warning-block .symptom-row {
    margin-left: calc(-13px - 0.5 * var(--bs-gutter-x));
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .stage-row {
    grid-template-columns: repeat(4, minmax(0, 1fr) 18px) minmax(0, 1fr);
  }

  .stage-arrow svg {
    width: 12px;
    height: 12px;
  }

  .stage-body h3 {
    white-space: normal;
  }

  .stage-body {
    padding-top: 40px;
  }
}

@media (max-width: 1199.98px) {
  .disease-kidney .content-panel {
    padding: 28px 20px;
  }

  .disease-kidney .disease-intro-body {
    padding-left: 0;
  }

  .stages-block,
  .warning-block,
  .care-block {
    margin-top: 48px;
  }

  .stages-block {
    padding-right: 0;
  }

  .stage-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .stage-arrow {
    display: none;
  }

  .stage-row .stage-card:last-child {
    grid-column: 1 / -1;
  }

  .stage-body {
    padding: 36px 16px 0;
  }

  .care-row {
    --bs-gutter-y: 12px;
  }
}

@media (max-width: 575.98px) {
  .stage-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .stages-block .block-lead {
    font-size: 17px;
    line-height: 28px;
  }

  .symptom-card-wide .symptom-label {
    align-items: center;
    padding: 0 16px 8px;
  }

  .care-row .factor-card {
    justify-content: flex-start;
  }
}

/* Banner: 1285x815, headline 42px, 20px/45px body and 24px bold stats (15px
   in from the right); copy 31px from the right and 108px up. 59px + the
   awareness section's 46px = 105px down to the photo. */
/* Figma: 1285x731 banner with only the title and intro. Below it, a
   24px/42px semibold lead 61px down, then a light teal box (3 bold
   24px/55px lines, 22px from the right, 33px from the top); the awareness
   photo is 84px below the box. */
.banner-kidney {
  padding-bottom: 38px; /* + the awareness section's 46px = 84px */
}

.kidney-study {
  position: relative;
  margin-top: 61px;
  text-align: right;
}

.kidney-study-lead {
  font-weight: 600;
  font-size: 24px;
  line-height: 42px;
  margin: 0 0 14px;
  padding: 0 10px 0 5px; /* text box is x=75..1355 vs the 70..1355 box */
}

.kidney-study-box {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 181, 199, 0.25), rgba(0, 91, 100, 0.25));
  padding: 33px 22px 38px 9px;
  font-weight: 700;
  font-size: 24px;
  line-height: 55px;
}

.kidney-study-box p {
  margin: 0;
}

@media (min-width: 1340px) {
  .kidney-study {
    left: -8px; /* same 7.5px left shift as the banner */
  }
}

@media (max-width: 1199.98px) {
  .kidney-study {
    margin-top: 56px;
  }

  .kidney-study-lead {
    font-size: 19px;
    line-height: 32px;
    padding: 0;
  }

  .kidney-study-box {
    font-size: 17px;
    line-height: 32px;
    padding: 16px 20px;
  }
}

/* Stage cards (Figma note): heading and description share one column,
   right-aligned, with the description justified. 210px fits the longest
   heading ("مرحله ۳ (دفع شدید پروتئین)") inside the 237px card. */
.disease-kidney .stage-body h3,
.disease-kidney .stage-body p {
  width: 210px;
  max-width: 100%;
  margin-inline: auto;
}

.disease-kidney .stage-body h3 {
  text-align: right;
}

.disease-kidney .stage-body p {
  text-align: justify;
}

/* Hover: same photo zoom + deeper wash as the other cards. */
.disease-kidney .stage-card img.cover,
.disease-liver .stage-card img.cover {
  transition: transform 0.5s ease;
}

.disease-kidney .stage-tint,
.disease-liver .stage-tint {
  transition: background-color 0.3s ease;
}

@media (hover: hover) {
  .disease-kidney .stage-card:hover img.cover,
  .disease-liver .stage-card:hover img.cover {
    transform: scale(1.06);
  }

  .disease-kidney .stage-card:hover .stage-tint,
  .disease-liver .stage-card:hover .stage-tint {
    background-color: rgba(232, 45, 86, 0.6);
  }
}

.banner-kidney .feature-banner img.cover {
  object-position: center 18%;
}

.banner-kidney .feature-banner-text {
  font-size: 20px;
  line-height: 45px;
}

/* Figma: 56px teal circle with a 5px white outside stroke, 188px in from the
   banner's left edge, centred on its bottom edge; white down chevron inside. */
.feature-banner-frame {
  position: relative;
}

.banner-arrow {
  position: absolute;
  left: 14.63%;
  bottom: -33px;
  z-index: 2;
  width: 66px;
  height: 66px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--brand-teal, #008C9A);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.banner-arrow:hover,
.banner-arrow:focus-visible {
  background: #00747F;
  color: #fff;
}

.banner-arrow .bi {
  display: flex;
  line-height: 1;
  transform: translate(0.3px, 0.6px); /* optical centring of the chevron glyph */
}

.banner-arrow .bi::before {
  font-weight: 700 !important;
  -webkit-text-stroke: 1px currentColor;
  vertical-align: 0;
}

@media (max-width: 575.98px) {
  .banner-arrow {
    width: 48px;
    height: 48px;
    bottom: -24px;
    border-width: 4px;
    font-size: 18px;
  }
}

.banner-stats {
  list-style: none;
  padding: 0;
  margin: 11px 0 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 45px;
}

/* Figma: the body copy is a 1254px box flush with the banner's left edge,
   ragged (not justified); the stats are a bulleted list 15px in from the
   right with the text 37px in. The arrow is a thin down-arrow whose circle
   (with its 5px outside stroke) starts 183px from the banner's left edge. */
.banner-kidney .feature-banner-text p {
  text-align: right;
}

.banner-kidney .banner-stats {
  list-style: disc;
  margin-right: -16px;
  padding-right: 37px;
}

.banner-kidney .banner-arrow {
  left: 14.24%;
}

.banner-kidney .banner-arrow svg {
  display: block;
  overflow: visible;
  transform: translateY(-2px); /* Figma: arrow centred 2px above the circle's centre */
}

@media (max-width: 575.98px) {
  .banner-kidney .banner-arrow svg {
    width: 16px;
    height: 23px;
  }
}

@media (min-width: 1200px) {
  .banner-kidney .feature-banner {
    aspect-ratio: 1285 / 731;
  }

  /* Copy sits lower in the photo; still clears the arrow circle. */
  .banner-kidney .feature-banner-text {
    padding: 0 31px 60px 0;
  }
}

/* Figma places the banner at x=70 on the 1440 frame, 7.5px left of centre. */
@media (min-width: 1340px) {
  .banner-kidney .feature-banner-frame {
    left: -8px;
  }

  .banner-kidney .feature-banner-stat {
    margin: 0 0 24px;
  }
}

@media (max-width: 1199.98px) {
  .banner-kidney {
    padding-bottom: 40px;
  }
}

@media (max-width: 575.98px) {
  .banner-kidney .feature-banner-text {
    font-size: 16px;
    line-height: 30px;
  }

  .banner-stats {
    font-size: 18px;
    line-height: 32px;
  }
}

/* ==========================================================================
   How-to-get page (Figma frame "نحوه دریافت دارو"). A 1262x889 white panel
   67px down, radius 32. Text column is 800px wide, 53px from the panel's
   right edge; the media column (379px) sits 30px from its left edge with
   the rotated pens above the partner-logo artwork.
   ========================================================================== */

.get-section {
  padding-block: 67px 68px;
}

.get-container {
  max-width: calc(1262px + 40px);
}

@media (min-width: 1302px) {
  .get-container {
    padding-inline: 0;
    max-width: 1262px;
  }
}

.get-panel {
  background: #fff;
  border-radius: 32px;
  padding: 28px 20px;
}

.get-title {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.4;
  color: var(--teal);
  margin: 0 0 12px;
}

.get-text p {
  font-size: 24px;
  line-height: 47px;
  text-align: justify;
  margin: 0;
}

.get-form {
  margin-top: 53px;
}

.get-form-row {
  display: flex;
  gap: 19px;
}

.get-form-row + .get-form-row {
  margin-top: 18px;
  gap: 24px;
}

.get-form .field-name  { flex: 0 1 307px; }
.get-form .field-city  { flex: 0 1 327px; }
.get-form .field-phone { flex: 0 1 440px; }
.get-form .btn-request-consult { flex: 0 0 189px; }

.get-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The pen artwork is a landscape image rotated 90° in Figma (186x516). */
.get-pens {
  --pen-w: 186px;
  --pen-h: 516px;
  position: relative;
  width: var(--pen-w);
  height: var(--pen-h);
  margin-left: -84px; /* Figma: pens sit 42px left of the logo art's centre */
}

.get-pens img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--pen-h);
  height: var(--pen-w);
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.get-partners {
  width: 379px;
  max-width: 100%;
  aspect-ratio: 379 / 212;
  object-fit: cover;
  margin-top: 30px;
}

@media (min-width: 1200px) {
  .get-panel {
    min-height: 889px;
    padding: 0 53px 29px 30px;
  }

  .get-content {
    flex: 0 1 800px;
    padding-top: 160px;
  }

  .get-form {
    width: 653px;
    max-width: 100%;
    margin-top: 66px; /* Figma's text box is 16px taller than its 4 lines */
  }

  .get-media {
    order: 2;
    flex: 0 0 379px;
    margin-inline-start: auto; /* RTL: pushes the column to the left edge */
    padding-top: 102px;
  }
}

@media (max-width: 1199.98px) {
  .get-section {
    padding-block: 32px 40px;
  }

  .get-title {
    font-size: 28px;
  }

  .get-text p {
    font-size: 20px;
    line-height: 38px;
  }

  .get-form {
    margin-top: 32px;
  }

  .get-media {
    margin-top: 40px;
  }

  .get-pens {
    --pen-w: 120px;
    --pen-h: 333px;
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .get-title {
    font-size: 22px;
  }

  .get-text p {
    font-size: 16px;
    line-height: 30px;
  }

  .get-form-row,
  .get-form-row + .get-form-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .get-form-row + .get-form-row {
    margin-top: 12px;
  }

  .get-form .phone-input,
  .get-form .btn-request-consult {
    flex: 1 1 100%;
  }

  .get-pens {
    --pen-w: 90px;
    --pen-h: 250px;
  }
}

/* ==========================================================================
   Pharmacies page (Figma frame "داروخانه ها"). Same 1262px panel band as the
   how-to-get page: a 898px lookup panel (search box + results table), then a
   189px "out of stock" panel 33px below it, 94px above the footer.
   ========================================================================== */

.pharmacy-section {
  padding-block: 67px 86px; /* footer adds its own 10px */
}

.pharmacy-panel {
  background: #fff;
  border-radius: 32px;
  padding: 28px 20px;
}

.pharmacy-panel + .pharmacy-panel {
  margin-top: 33px;
}

.live-pill {
  display: inline-block;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--teal);
  border-radius: 79px;
  background: #fcfcfc;
  color: var(--teal);
  font-weight: 600;
  font-size: 16px;
  line-height: 48px;
}

.pharmacy-title {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  line-height: 36px;
  margin: 26px 0 0;
}

.pharmacy-map img {
  display: block;
  width: 183px;
  height: auto;
  max-width: 100%;
}

.pharmacy-subtitle {
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  margin: 0;
}

/* Search box: teal-outlined card holding two selects and the submit button. */
.pharmacy-search {
  margin-top: 31px;
  background: #fcfcfc;
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 15px 35px 34px 22px; /* 1px border included in Figma's box */
}

.pharmacy-search-row {
  display: flex;
  gap: 30px;
  margin-top: 25px;
}

.pharmacy-search-row .field-province { flex: 0 1 388px; margin-left: 7px; }
.pharmacy-search-row .field-town     { flex: 0 1 274px; }
.pharmacy-search-row .btn-pharmacy-search { flex: 0 1 369px; margin-right: auto; }

.field-input {
  width: 100%;
  height: 50px;
  background: #fcfcfc;
  border: 1px solid #bebebe;
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-align: right;
}

.field-input::placeholder {
  color: #d0d0d0;
}

.field-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 140, 154, 0.2);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 40px;
  cursor: pointer;
}

/* Placeholder option still selected: show it in the placeholder grey. */
.select-wrap select:invalid {
  color: #d0d0d0;
}

.select-wrap select option {
  color: var(--ink);
}

.select-wrap .bi {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #33363f;
  font-size: 14px;
  pointer-events: none;
  -webkit-text-stroke: 0.5px currentColor;
}

.btn-pharmacy-search {
  height: 50px;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.btn-pharmacy-search:hover {
  background: var(--teal-dark);
}

/* Green action button used in the table rows and the notify form. */
.btn-pharmacy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 262px;
  max-width: 100%;
  height: 50px;
  background: #048662;
  border: 1px solid #4cebb4;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.btn-pharmacy:hover {
  background: #036b4e;
  color: #fff;
}

/* Results table */
.pharmacy-results-title {
  margin-top: 45px;
  padding-right: 24px;
}

.pharmacy-table-wrap {
  margin-top: 27px;
}

.pharmacy-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-weight: 600;
}

.pharmacy-table th {
  height: 66px;
  background: rgba(0, 140, 154, 0.17);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.pharmacy-table td {
  height: 72px;
  font-size: 16px;
  vertical-align: middle;
}

.pharmacy-table tbody tr:first-child td {
  height: 74px;
  padding-top: 2px;
}

.pharmacy-table th,
.pharmacy-table td {
  padding: 0;
  text-align: right;
}

.pharmacy-table .col-name    { width: 216px; padding-right: 28px; }
.pharmacy-table .col-address { width: 318px; }
.pharmacy-table .col-dose    { width: 201px; }
.pharmacy-table .col-status  { width: 146px; }
.pharmacy-table .col-action  { width: 276px; padding-left: 14px; }
.pharmacy-table th.col-action { text-align: center; }

.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 20px;
}

.stock-status::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #048662;
}

/* Out-of-stock notify panel */
.pharmacy-notify-row {
  display: flex;
  gap: 25px;
  margin-top: 42px;
}

.pharmacy-notify-row .field-fullname,
.pharmacy-notify-row .field-tel { flex: 0 1 398px; }
.pharmacy-notify-row .btn-pharmacy-submit { flex: 0 1 343px; width: auto; }

@media (min-width: 1200px) {
  .pharmacy-panel {
    padding: 45px 46px 42px 59px;
  }

  .pharmacy-map {
    margin: 1px 0 0 14px;
  }

  .pharmacy-notify {
    padding: 21px 33px 44px 40px;
  }
}

@media (max-width: 1199.98px) {
  .pharmacy-section {
    padding-block: 32px 40px;
  }

  .pharmacy-map {
    margin-bottom: 20px;
  }

  .pharmacy-map img {
    width: 130px;
    margin-inline: auto;
  }

  .pharmacy-search {
    padding: 16px 20px 24px;
  }

  .pharmacy-search-row,
  .pharmacy-notify-row {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
  }

  .pharmacy-search-row > *,
  .pharmacy-notify-row > * {
    flex: 1 1 100% !important;
    margin: 0 !important;
  }

  .pharmacy-results-title {
    margin-top: 32px;
    padding-right: 0;
  }

  .pharmacy-table-wrap {
    margin-top: 16px;
  }
}

/* Below desktop: each result row becomes a card, labels from data-label. */
@media (max-width: 1199.98px) {
  .pharmacy-table {
    min-width: 0;
  }

  .pharmacy-table thead {
    display: none;
  }

  .pharmacy-table,
  .pharmacy-table tbody,
  .pharmacy-table tr,
  .pharmacy-table td {
    display: block;
    width: 100% !important;
  }

  .pharmacy-table tr {
    border: 1px solid rgba(0, 140, 154, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
  }

  .pharmacy-table tr + tr {
    margin-top: 12px;
  }

  .pharmacy-table td,
  .pharmacy-table tbody tr:first-child td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 6px 0;
  }

  .pharmacy-table .col-name,
  .pharmacy-table .col-action {
    padding-inline: 0;
  }

  .pharmacy-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--teal);
    font-size: 14px;
  }

  .pharmacy-table td.col-address {
    text-align: left;
  }

  .pharmacy-table td.col-action,
  .pharmacy-table tbody tr:first-child td.col-action {
    padding-top: 10px;
  }

  .pharmacy-table td.col-action::before {
    display: none;
  }

  .pharmacy-table .btn-pharmacy {
    width: 100%;
    font-size: 16px;
  }

  .stock-status {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .pharmacy-title,
  .pharmacy-subtitle {
    font-size: 18px;
    line-height: 30px;
  }

  .pharmacy-title {
    margin-top: 16px;
  }

  .pharmacy-notify .pharmacy-subtitle {
    font-size: 18px;
  }
}

/* ==========================================================================
   Magazine page ("مجله سویما") — new page, no Figma frame to match; styled
   to sit consistently with the rest of the site (colors, radii, card look).
   ========================================================================== */

.magazine-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.magazine-eyebrow {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.magazine-hero-title {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.3;
  margin: 0 0 14px;
}

.magazine-hero-lead {
  font-size: 17px;
  line-height: 30px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
}

.magazine-filter-section {
  padding-bottom: 32px;
}

.magazine-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.magazine-filter-btn {
  border: 1px solid #dfe3ea;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font-fa);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.magazine-filter-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.magazine-filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.magazine-featured-section {
  padding-bottom: 40px;
}

.magazine-featured {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 34, 90, 0.08);
  text-decoration: none;
  color: inherit;
}

.magazine-featured-media {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.magazine-featured-media img.cover,
.magazine-card-media img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.magazine-featured-body {
  padding: 28px 28px 32px;
}

.magazine-featured-body h2 {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 24px;
  line-height: 34px;
  margin: 14px 0 10px;
  color: var(--ink);
}

.magazine-featured-body p {
  font-size: 16px;
  line-height: 27px;
  color: var(--muted);
  margin: 0 0 16px;
}

.magazine-tag {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 13px;
  border-radius: 999px;
  padding: 5px 14px;
}

.magazine-card-media .magazine-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.magazine-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.magazine-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.magazine-grid-section {
  padding-bottom: 20px;
}

.magazine-grid {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.magazine-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 34, 90, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.magazine-card-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.magazine-card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.magazine-card-body h3 {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 18px;
  line-height: 27px;
  margin: 0 0 8px;
  color: var(--ink);
}

.magazine-card-body p {
  font-size: 15px;
  line-height: 24px;
  color: var(--muted);
  margin: 0 0 14px;
  flex: 1;
}

@media (hover: hover) {
  .magazine-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 34, 90, 0.13);
  }

  .magazine-card:hover .magazine-card-media img.cover,
  .magazine-featured:hover .magazine-featured-media img.cover {
    transform: scale(1.05);
  }
}

.magazine-loadmore-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 60px;
}

.magazine-loadmore {
  border: 1px solid var(--teal);
  background: #fff;
  color: var(--teal);
  border-radius: 999px;
  padding: 12px 34px;
  font-family: var(--font-fa);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.magazine-loadmore:hover {
  background: var(--teal);
  color: #fff;
}

@media (min-width: 1200px) {
  .magazine-featured {
    flex-direction: row-reverse;
  }

  .magazine-featured-media {
    flex: 0 0 46%;
    height: auto;
  }

  .magazine-featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
  }
}

@media (max-width: 575.98px) {
  .magazine-hero-title {
    font-size: 28px;
  }

  .magazine-hero-lead {
    font-size: 15px;
    line-height: 26px;
  }
}

/* ---------- Magazine article page ---------- */

.article-container {
  max-width: 900px;
}

.article-header-section {
  padding-top: 40px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 20px;
}

.article-back:hover {
  color: var(--teal);
}

.article-title {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.4;
  margin: 16px 0 14px;
}

.article-header-meta {
  margin-bottom: 28px;
}

.article-cover {
  position: relative;
  height: 360px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 44px;
}

.article-cover img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body-section {
  padding-bottom: 8px;
}

.article-body {
  font-size: 17px;
  line-height: 32px;
  color: var(--ink);
}

.article-lead {
  font-size: 19px;
  line-height: 34px;
  color: var(--muted);
  margin-bottom: 28px;
}

.article-body h2 {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.5;
  margin: 40px 0 16px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-list {
  margin: 0 0 24px;
  padding-right: 22px;
}

.article-list li {
  margin-bottom: 10px;
}

.article-quote {
  margin: 32px 0;
  padding: 22px 26px;
  border-right: 4px solid var(--teal);
  background: var(--teal-soft);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 32px;
  color: var(--teal-dark);
}

.article-share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin: 40px 0 8px;
  padding-top: 24px;
  border-top: 1px solid #e7eaf0;
  font-size: 15px;
  color: var(--muted);
}

.article-related-section {
  padding-top: 24px;
}

.article-related-title {
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 24px;
}

@media (max-width: 575.98px) {
  .article-title {
    font-size: 24px;
  }

  .article-cover {
    height: 220px;
  }

  .article-body {
    font-size: 16px;
    line-height: 29px;
  }

  .article-lead {
    font-size: 17px;
    line-height: 30px;
  }
}

/* ==========================================================================
   Tablet & phone refinements (portrait and landscape). Everything here is
   scoped below 1200px — the desktop layout (Figma-exact) is untouched.
   ========================================================================== */

@media (max-width: 1199.98px) {
  /* Navbar: logo on the right, consult button + hamburger together on the
     left, all in one row; the menu slides in from the right as a side panel. */
  .site-navbar .navbar {
    flex-wrap: wrap;
    gap: 0 12px;
  }

  .site-navbar .navbar-brand {
    margin-left: auto;
  }

  /* The header's z-index makes a stacking context that would trap the panel
     under Bootstrap's body-level backdrop — drop it while the menu is open. */
  .site-navbar:has(.site-offcanvas.show, .site-offcanvas.showing, .site-offcanvas.hiding) {
    z-index: auto;
  }

  .site-offcanvas {
    --bs-offcanvas-width: min(320px, 85vw);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
  }

  .site-offcanvas .offcanvas-header {
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 3px solid var(--teal);
  }

  .site-offcanvas .offcanvas-header .navbar-brand {
    margin: 0;
  }

  .site-offcanvas .offcanvas-header .navbar-brand img {
    height: 40px;
  }

  .offcanvas-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 140, 154, 0.1);
    color: var(--teal);
    font-size: 18px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .offcanvas-close:hover {
    background: var(--teal);
    color: #fff;
    transform: rotate(90deg);
  }

  .site-offcanvas .offcanvas-body {
    padding: 8px 20px 24px;
  }

  .site-nav {
    gap: 0;
    width: 100%;
    text-align: right !important;
  }

  .site-nav .nav-item {
    border-bottom: 1px solid #e6eef0;
  }

  .site-nav .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease, padding 0.15s ease;
  }

  .site-nav .nav-link::after {
    font-family: "bootstrap-icons";
    content: "\f284"; /* bi-chevron-left */
    font-size: 12px;
    color: #9aa9ad;
    transition: color 0.15s ease, transform 0.15s ease;
  }

  .site-nav .nav-link:hover,
  .site-nav .nav-link.active {
    background: rgba(0, 140, 154, 0.07);
    padding-right: 18px;
  }

  .site-nav .nav-link.active {
    box-shadow: inset -3px 0 0 var(--teal);
  }

  .site-nav .nav-link:hover::after,
  .site-nav .nav-link.active::after {
    color: var(--teal);
    transform: translateX(-3px);
  }

  /* Topic cards: centre an incomplete last row instead of hugging the right. */
  .topic-cards-section .row {
    justify-content: center;
  }

  /* Big section photos shouldn't fill a whole tablet/landscape screen. */
  .awareness-section .awareness-media img {
    display: block;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }

  .cta-section {
    padding-top: 40px;
  }

  .faq-heading {
    margin-bottom: 40px;
  }

  /* Photo banners grow with their copy here, so give the copy room at the
     top too (the kidney banner's headline was touching the edge). */
  .feature-banner-text {
    padding-top: 28px;
  }
}

/* Tablets: keep the intro video from filling the whole screen width. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .intro-section .intro-media {
    max-width: 720px;
    margin-inline: auto;
  }
}

/* Tablets & landscape phones: use the width instead of stacking everything. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  /* Pharmacies: province + city side by side, button below; results as a
     two-column card grid. */
  .pharmacy-search-row > .select-wrap {
    flex: 1 1 calc(50% - 6px) !important;
  }

  .pharmacy-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pharmacy-table tr + tr {
    margin-top: 0;
  }

  .pharmacy-table td.col-address {
    text-align: left;
  }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  /* How-to-get: pens and partner artwork next to each other. */
  .get-media {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
  }

  .get-partners {
    width: 340px;
    margin-top: 0;
  }
}

/* Short landscape screens: the auto-opening video popup must fit the height. */
@media (max-height: 500px) and (orientation: landscape) {
  .video-modal .modal-dialog {
    max-width: calc(78vh * 1076 / 527 + 32px);
    margin-block: 16px;
  }

  .video-badge-lg {
    width: 64px;
    height: 64px;
  }
}

/* Tablets and landscape phones: 5 topic cards fit on one row. */
@media (min-width: 768px) and (max-width: 1199.98px) {
  .topic-cards-section .row > .col {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .topic-card {
    padding: 12px;
    gap: 10px;
  }

  .topic-card span {
    font-size: 15px;
  }
}

/* Landscape phones: short screens, keep photos and heroes compact. */
@media (max-width: 1199.98px) and (max-height: 500px) and (orientation: landscape) {
  .awareness-section .awareness-media img {
    max-width: 320px;
  }
}

@media (max-width: 575.98px) {
  .site-navbar {
    padding-block: 10px;
  }

  .site-navbar .navbar {
    padding-inline: 16px;
    gap: 0 8px;
  }

  .site-navbar .navbar-brand img {
    height: 40px;
  }

  .site-navbar .btn-consult {
    font-size: 12px;
    padding: 9px 14px;
  }

  .site-navbar .navbar-toggler {
    padding: 4px 8px;
  }

  .intro-title,
  .gallery-heading,
  .product-panel h3,
  .faq-heading {
    font-size: 24px;
    line-height: 1.5;
  }

  .intro-body {
    font-size: 17px;
  }

  .cta-banner h3 {
    font-size: 20px;
  }

  .cta-banner p {
    font-size: 16px;
  }

  .awareness-section .awareness-media img {
    max-width: 300px;
  }

  .faq-heading {
    margin-bottom: 28px;
  }

  /* BMI inputs stack vertically on phones; flex-basis 0 was collapsing
     them to ~34px instead of their 72px height. */
  .bmi-input {
    flex: 0 0 auto;
  }

  /* Kidney stage cards are full width here — readable copy size. */
  .stage-body h3 {
    font-size: 17px;
    line-height: 24px;
  }

  .stage-body p {
    width: 240px;
    font-size: 14px;
    line-height: 20px;
  }
}

/* Small laptops (1200–1439px): the obesity page's fixed 681px criteria text
   + 543px photo are wider than the panel, pushing the photo off-screen.
   Let the text flex and give the photo a proportional column instead. */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .media-text-body,
  .criteria-body {
    flex: 1 1 0;
    width: auto;
  }

  .media-text-block .col-xl-auto:last-child,
  .criteria-block .col-xl-auto:last-child {
    flex: 0 0 42%;
  }

  /* Keep the text off the photo: the gutter is 0 at this width. */
  .media-text-block .row,
  .criteria-block .row {
    column-gap: 40px;
  }

  .disease-liver .media-text-body {
    margin-right: 0;
  }

  .media-text-photo {
    width: 100%;
    margin-left: 0;
  }

  .criteria-photo {
    width: 100%;
    margin-left: 0;
  }
}

/* ---------- Responsive canvas scale note ---------- */
/* Sections above use Bootstrap's own responsive grid (col-*, row-cols-*),
   so no manual JS scaling is needed anymore. */
