/* =========================================================================
   COMPONENTS — Doctor Portfolio Template
   Built entirely from the tokens in tokens.css. Load order:
   tokens.css -> base.css -> components.css
   Every class here is documented in docs/design-system.md and
   docs/component-map.md. Keep names generic (location-card, social-card)
   so the same sheet serves any doctor/specialty.
   ========================================================================= */

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--navy-dark); box-shadow: var(--shadow-hover); }
.btn-outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #257f65; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* =========================================================================
   NAVIGATION (sticky header)
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 52, 107, 0.06);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(18, 52, 107, 0.08); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.brand-text { line-height: 1.2; }
.brand-name { color: var(--navy); font-weight: 700; font-size: 1.05rem; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover, .nav-link.active { background: var(--teal-light); color: var(--teal); }

/* 10 nav links (added #awareness) need a touch less breathing room to stay
   on one row down to the 900px point where the mobile menu takes over. */
@media (max-width: 1150px) {
  .nav-links { gap: 2px; }
  .nav-link { padding: 10px 10px; font-size: 0.88rem; }
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  gap: 6px;
}
.lang-toggle span { padding: 2px 8px; border-radius: 999px; }
.lang-toggle span.active { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    max-height: 70vh;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 14px 10px; border-bottom: 1px solid #f0f2f5; border-radius: 0; }
  .nav-toggle { display: flex; }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  padding: 64px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--sky) 0%, var(--mint) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--teal);
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 700; line-height: 1.45;
  max-width: 100%;
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}
.hero-degree {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .08em;
  margin: 0 0 18px;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 540px;
  margin: 0 0 24px;
}
.hero-bio p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
  max-width: 560px;
  margin: 0 0 14px;
  text-align: justify;
  text-align-last: left;
}
.hero-bio p:last-child { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.qual-toggle { display: inline-flex; align-items: center; gap: 8px; }
.qual-caret { display: inline-block; font-size: 0.8em; transition: transform 0.2s ease; }
.qual-toggle[aria-expanded="true"] .qual-caret { transform: rotate(180deg); }

.qual-panel { margin: 0 0 32px; max-width: 560px; }
.qual-panel[hidden] { display: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 340px;
}
.stat {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat strong { display: block; color: var(--navy); font-size: 1.35rem; font-weight: 700; }
.stat span { font-size: 0.75rem; color: var(--slate-light); font-weight: 600; }
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 14px 6px; }
  .stat strong { font-size: 1.15rem; }
}

.hero-media { position: relative; }
.hero-photo-card {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  position: relative;
  height: 100%;
}
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero-photo-card {
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 280px;
    margin: 0 auto;
    border-radius: 50%;
    box-shadow: none;
    overflow: visible;
    background: none;
  }
  .hero-photo-card img { object-fit: contain; background: none; }
}
.hero-float-chip {
  position: absolute;
  left: -20px; bottom: 28px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-hover);
  display: flex; align-items: center; gap: 12px;
  max-width: 260px;
  animation: floaty 4s ease-in-out infinite;
}
@media (max-width: 560px) { .hero-float-chip { left: 12px; bottom: -18px; } }
.hero-float-chip .icon-circle { width: 40px; height: 40px; flex-shrink: 0; }
.hero-float-chip strong { display: block; color: var(--navy); font-size: 0.88rem; }
.hero-float-chip small { color: var(--slate-light); font-size: 0.76rem; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================================
   ICON CIRCLES / CARDS (shared building blocks)
   ========================================================================= */
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* =========================================================================
   QUALIFICATIONS PANEL (hero — expands from the "Additional Qualification" button)
   ========================================================================= */
.qual-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.qual-pill {
  display: inline-block;
  background: var(--teal-light); color: var(--teal);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem; font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: background 0.2s, color 0.2s;
}
.qual-pill:hover { background: var(--navy); color: var(--white); }
.qual-more {
  display: inline-block;
  color: var(--blue); font-weight: 600; font-size: 0.9rem;
  text-decoration: underline;
}
.qual-more:hover { color: var(--navy); }
.about-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #eef1f6;
}
.about-list li:last-child { border-bottom: none; }
.about-list .tick {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; margin-top: 2px;
}

/* =========================================================================
   TIMELINE (education / career history)
   ========================================================================= */
#experience { scroll-margin-top: 88px; }
#chambers { scroll-margin-top: 88px; }
.timeline { position: relative; max-width: 940px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--teal), var(--blue));
}
@media (min-width: 769px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
}
.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 40px;
}
@media (min-width: 769px) {
  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 48px;
  }
  .timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 48px;
  }
}
.timeline-dot {
  position: absolute; left: 12px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--teal);
}
@media (min-width: 769px) {
  .timeline-item .timeline-dot { left: auto; right: -9px; top: 4px; }
  .timeline-item:nth-child(even) .timeline-dot { left: -9px; right: auto; }
}
.timeline-item .card { padding: 22px 24px; }
.timeline-item .badge-year {
  display: inline-block; color: var(--teal); font-weight: 700; font-size: 0.8rem;
  background: var(--teal-light); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.timeline-item h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.1rem; }
.timeline-item p {
  margin: 0;
  font-size: 0.94rem;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

/* =========================================================================
   GRID LAYOUTS (values / services / why-choose)
   ========================================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 901px) { .chambers-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

.value-card, .why-card { text-align: left; }
.value-card h3, .why-card h3 { color: var(--navy); font-size: 1.05rem; margin: 16px 0 8px; }
.value-card p, .why-card p { font-size: 0.92rem; margin: 0; color: var(--slate-light); }

.service-pill {
  background: var(--white);
  border-radius: 14px;
  padding: 20px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-pill:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-pill .icon-circle { width: 44px; height: 44px; font-size: 1.1rem; }
.service-pill span { font-weight: 600; color: var(--navy); font-size: 0.95rem; }

.services-subhead {
  color: var(--navy);
  font-size: 1.15rem;
  margin: 44px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
}

body.lang-bn .faq-section-wrap { display: none; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--teal);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--slate);
  font-size: 0.92rem;
  margin: 12px 0 0;
  text-align: justify;
  text-justify: inter-word;
}

/* =========================================================================
   LOCATION CARD (chambers / clinics / branches)
   ========================================================================= */
.location-card { display: flex; flex-direction: column; gap: 16px; }
.location-card .location-badge {
  align-self: flex-start;
  background: var(--navy); color: var(--white);
  font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.location-card h3 { color: var(--navy); font-size: 1.2rem; margin: 4px 0 0; }
.location-card .place-name { color: var(--teal); font-weight: 700; font-size: 0.95rem; }
.location-info-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.location-info-row .ico { color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.location-card .btn { margin-top: auto; }

/* Small centered disclaimer under a section's grid */
.section-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--slate-light);
}

/* =========================================================================
   GALLERY (static captioned cards)
   ========================================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
}
.gallery-item .gallery-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.gallery-item .gallery-media--portrait { aspect-ratio: 5 / 7; }
.gallery-item .gallery-media--top img { object-position: top; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .cap { padding: 14px 16px; font-size: 0.88rem; font-weight: 600; color: var(--navy); text-align: justify; }

/* =========================================================================
   TESTIMONIALS / CASE STUDIES
   ========================================================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .testimonial-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.testimonial-media { position: relative; background: var(--sky); aspect-ratio: 4 / 3; overflow: hidden; }
.testimonial-media--square { aspect-ratio: 1 / 1; }
.testimonial-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.testimonial-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.testimonial-body .eyebrow { margin-top: 0; margin-bottom: 12px; }
.testimonial-text {
  font-size: 0.95rem; margin: 0 0 10px; text-align: justify; text-justify: inter-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
}
.testimonial-text.expanded { -webkit-line-clamp: unset; overflow: visible; }
.testimonial-quote {
  font-style: italic;
  font-size: 0.92rem;
}
.read-more-btn {
  display: none; align-self: flex-start; margin: 0 0 16px; padding: 0; border: none; background: none;
  color: var(--blue); font-weight: 600; font-size: 0.9rem; cursor: pointer; text-decoration: underline;
}
.read-more-btn:hover { color: var(--navy); }
.testimonial-body .btn { margin-top: auto; align-self: flex-start; }

/* Generic "follow us" banner (Facebook / YouTube / etc.) */
.social-card {
  margin-top: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy), #1c4e9c);
  color: var(--white); border-radius: var(--card-radius); padding: 32px 34px;
}
.social-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.social-card p { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.social-card .btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.social-card .btn-outline:hover { background: var(--white); color: var(--navy); }

/* =========================================================================
   SHARED PLAY-BADGE OVERLAY — used by .lecture-card and .fb-video-card
   (both #lectures and the Facebook video cards in #testimonials, #videos,
   #awareness). Card-specific hover scaling lives with each card class.
   ========================================================================= */
.play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-badge .circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}

/* =========================================================================
   MEDICAL EDUCATION LECTURES — full-bleed thumbnail with a bottom gradient
   scrim and the title overlaid on the image itself (not a separate white
   panel below), so every card reads consistently regardless of how dim,
   letterboxed, or low-res its underlying YouTube thumbnail is. 3-up grid on
   desktop, native scroll-snap swipe rail on mobile — no JS width/offset
   math needed (that's the class of bug that had to be fixed in #comments).
   ========================================================================= */
#lectures { scroll-margin-top: 88px; }
.lecture-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .lecture-rail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .lecture-rail {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
  }
  .lecture-rail > .lecture-card { flex: 0 0 82%; scroll-snap-align: center; }
}

.lecture-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--sky);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lecture-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.lecture-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.lecture-card:hover img { transform: scale(1.05); }
.lecture-card:hover .play-badge .circle { transform: scale(1.1); }

.lecture-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 20, 38, 0.9) 0%, rgba(8, 20, 38, 0.5) 40%, rgba(8, 20, 38, 0) 68%);
  pointer-events: none;
}
.lecture-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 16px 18px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* =========================================================================
   FACEBOOK VIDEO CARDS — shared component for #testimonials (before/after
   clips), #videos (patient review/gratitude clips) and #awareness (health
   awareness clips). Reuses .lecture-scrim and .play-badge on purpose so all
   overlay-title video cards on the site read as one system.
   Card is a real <a> to the Facebook reel — js/main.js's
   initFbVideoLightbox() intercepts the click to open an in-page player, but
   the href always works standalone (no JS, JS error, or JS-disabled browser
   still reaches the video on Facebook in a new tab).
   Reel thumbnails are self-hosted (assets/images/fb-videos/) — Facebook's
   own og:image URLs carry a signed, short-lived expiry and cannot be
   hotlinked. Source reels are a mix of portrait (9:16) and landscape (16:9);
   two stacked <img>s (blurred cover + sharp contain) letterbox the minority
   orientation instead of cropping it.
   ========================================================================= */
.fb-video-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .fb-video-rail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .fb-video-rail {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px;
  }
  .fb-video-rail > .fb-video-card { flex: 0 0 78%; scroll-snap-align: center; }
}

.fb-video-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--sky);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fb-video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.fb-video-card:hover .fb-video-img { transform: scale(1.04); }
.fb-video-card:hover .play-badge .circle { transform: scale(1.1); }

.fb-video-blur {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.12);
}
.fb-video-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.fb-video-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  margin: 0;
  padding: 16px 18px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

#awareness { scroll-margin-top: 88px; }

/* =========================================================================
   FACEBOOK VIDEO LIGHTBOX — single shared player. js/main.js creates the
   iframe on open and empties .fb-lightbox__player on close, so at most one
   Facebook embed ever exists on the page regardless of card count.
   ========================================================================= */
.fb-lightbox {
  position: fixed; inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 20, 38, 0.82);
}
.fb-lightbox[hidden] { display: none; }
.fb-lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-height: 100%;
}
.fb-lightbox__player {
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy-dark);
  box-shadow: var(--shadow-hover);
  line-height: 0;
}
.fb-lightbox__player iframe { display: block; border: 0; }
.fb-lightbox__caption {
  color: var(--white);
  font-size: 0.92rem;
  text-align: center;
  max-width: 420px;
  margin: 0;
}
.fb-lightbox__close {
  position: absolute;
  top: -18px; right: -18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}
.fb-lightbox__close:hover { transform: scale(1.08); }
.fb-lightbox__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--facebook);
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.fb-lightbox__link:hover { transform: translateY(-2px); }
@media (max-width: 480px) {
  .fb-lightbox__close { top: -14px; right: 0; }
}

/* =========================================================================
   PATIENT COMMENT CAROUSEL (pure CSS + js/main.js's initCommentCarousel())
   ========================================================================= */
.comment-carousel { position: relative; padding: 0 46px; }
.comment-viewport { overflow: hidden; width: 100%; }
.comment-track { display: flex; gap: 28px; transition: transform 0.4s ease; }

.comment-card {
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 0; /* let a long comment shrink to fit instead of forcing the row wide */
  margin: 0; /* it's a <figure> — reset the UA default 1em 40px margin, which was
                adding an extra 40px+40px per card on top of the track's own 28px
                gap and made the clipping bug worse than the JS math alone explained */
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 1000px) { .comment-card { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 700px) { .comment-card { flex-basis: 100%; } }
.comment-card--active { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.comment-text { font-size: 0.98rem; line-height: 1.6; color: var(--slate); flex: 1; overflow-wrap: anywhere; }
.comment-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-light); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.comment-name { font-weight: 600; color: var(--navy); font-size: 0.92rem; }

.comment-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-soft); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--navy); z-index: 2;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.comment-arrow:hover { background: var(--teal-light); color: var(--teal); box-shadow: var(--shadow-hover); }
.comment-arrow--prev { left: -6px; }
.comment-arrow--next { right: -6px; }
@media (max-width: 700px) {
  .comment-carousel { padding: 0 34px; }
  .comment-arrow { width: 38px; height: 38px; font-size: 1.1rem; }
  .comment-arrow--prev { left: -2px; }
  .comment-arrow--next { right: -2px; }
  /* Cards vary in height (30 comments, very different lengths) — stretching every
     card to match the single longest one leaves a lot of dead space on mobile. */
  .comment-track { align-items: flex-start; }
  .comment-card { padding: 22px 20px; }
}

.comment-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.comment-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--slate-light); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s ease, width 0.2s ease;
}
.comment-dot--active { background: var(--teal); width: 22px; border-radius: 999px; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { margin-bottom: 20px; }
.contact-col { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.contact-col .contact-card { margin-bottom: 0; }
.contact-card h3 { color: var(--navy); margin: 0 0 10px; font-size: 1.05rem; }
.contact-card .contact-sub { margin: 0 0 10px; font-size: 0.9rem; }
.contact-card .contact-sub:last-child { margin-bottom: 0; }
.contact-card .row { display: flex; gap: 10px; font-size: 0.92rem; margin-bottom: 8px; align-items: flex-start; }
.contact-card .row .ico { color: var(--teal); margin-top: 2px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Facebook page links (contact section) */
.page-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 560px) { .page-links { grid-template-columns: 1fr; } }
.page-link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--white);
  border-radius: var(--card-radius);
  border: 2px solid var(--facebook-light);
  border-left: 5px solid var(--facebook);
  box-shadow: var(--shadow-soft);
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.page-link-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-hover);
  background: var(--facebook-light);
  border-color: var(--facebook);
}
.page-link-name { font-weight: 700; color: var(--navy); font-size: 1rem; }

/* Real Facebook "f" logo — used in place of the 📘 emoji wherever we link out to Facebook */
.icon-circle--fb { background: var(--facebook); color: var(--white); }
.fb-logo-svg { width: 26px; height: 26px; display: block; fill: var(--white); flex-shrink: 0; }
.btn .fb-logo-svg { width: 18px; height: 18px; fill: var(--facebook); }
.btn-outline .fb-logo-svg { fill: currentColor; }

.map-wrap { display: flex; flex-direction: column; gap: 20px; }
.map-item {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--white);
  padding: 16px;
}
.map-item h3 { color: var(--navy); margin: 0 0 10px; font-size: 1.05rem; }
.map-item iframe {
  width: 100%; height: 200px; border: 0;
  border-radius: var(--card-radius);
  display: block; margin-bottom: 10px;
}

/* =========================================================================
   FOOTER + BACK TO TOP
   ========================================================================= */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 28px;
  text-align: center;
  font-size: 0.88rem;
}
.site-footer .brand-name { color: var(--white); }
.site-footer .footer-brand { font-size: 1.1rem; font-weight: 700; }
.footer-tagline { margin: 6px 0 0; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 18px 0; }
.footer-links a:hover { color: var(--white); }
.footer-fine { margin-top: 18px; color: rgba(255,255,255,0.45); font-size: 0.8rem; }

.appt-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  height: 52px; border-radius: 999px; padding: 0 16px;
  background: var(--navy); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; white-space: nowrap; text-decoration: none;
  box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.appt-fab.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.appt-fab-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.appt-fab-label {
  display: inline-block; max-width: 0; opacity: 0; margin-left: 0;
  overflow: hidden; font-size: 0.95rem; font-weight: 600;
  transition: max-width 0.4s ease, opacity 0.3s ease, margin-left 0.4s ease;
}
.appt-fab.expanded .appt-fab-label,
.appt-fab:hover .appt-fab-label,
.appt-fab:focus-visible .appt-fab-label { max-width: 200px; opacity: 1; margin-left: 10px; }
@media (max-width: 480px) {
  .appt-fab.expanded .appt-fab-label,
  .appt-fab:hover .appt-fab-label,
  .appt-fab:focus-visible .appt-fab-label { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .appt-fab, .appt-fab-label { transition: none; }
}
