/* ==========================================================================
   Dr. P. K. Sethy — Gastroenterologist
   Main stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base / resets
   3.  Utilities & shared blocks
   4.  Buttons
   5.  Header / navigation
   6.  Hero
   7.  About
   8.  Services
   9.  Why choose
   10. Specialities
   11. Gallery
   12. Reviews carousel
   13. CTA band
   14. Footer
   15. Back-to-top
   16. Appointment modal & form
   17. Responsive — mobile first overrides / large-screen scaling
   18. Motion & print
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* brand */
  --teal:          #0f7c73;
  --teal-600:      #0c6a62;
  --teal-700:      #095a53;
  --teal-accent:   #17968c;
  --teal-soft:     #e6f4f2;
  --teal-softer:   #f2faf9;

  /* neutrals */
  --navy:          #14293c;
  --navy-soft:     #223c52;
  --body:          #5f7381;
  --body-light:    #7a8b96;
  --line:          #e2eeeb;
  --line-soft:     #edf5f4;
  --white:         #ffffff;
  --mint-bg:       #f4faf9;

  /* type */
  --font-head: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* shadows */
  --sh-sm: 0 2px 10px rgba(20, 41, 60, .05);
  --sh-md: 0 10px 30px rgba(20, 41, 60, .07);
  --sh-lg: 0 18px 50px rgba(20, 41, 60, .10);
  --sh-teal: 0 10px 26px rgba(15, 124, 115, .25);

  /* layout */
  --header-h: 78px;
  --section-y: clamp(52px, 3.4vw + 34px, 92px);
  --gutter: clamp(18px, 2.2vw, 30px);
}


/* ==========================================================================
   2. BASE / RESETS
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(.875rem, .82rem + .16vw, .95rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus-visible { color: var(--teal-700); }

img, svg { max-width: 100%; }
img { height: auto; display: block; border-style: none; }

ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--teal-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* hidden svg sprite */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* generic inline icon */
.ico {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  vertical-align: middle;
  pointer-events: none;
}


/* ==========================================================================
   3. UTILITIES & SHARED BLOCKS
   ========================================================================== */
.container-site {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  /* never narrower than half of Bootstrap's largest row gutter (g-*-5 → 24px)
     so the negative row margins can never cause horizontal overflow */
  padding-inline: max(var(--gutter), 24px);
}

.section { padding-block: var(--section-y); position: relative; }
.section-about      { background: var(--white); }
.section-services   { background: var(--mint-bg); }
.section-specialities { background: var(--white); }
.section-gallery    { background: var(--white); padding-top: 0; }
.section-reviews    { background: var(--mint-bg); }

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

/* eyebrow above hero heading */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: 1rem;
}

/* small teal label above a section title */
.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: .6rem;
}

.section-title {
  font-size: clamp(1.5rem, 1.06rem + 1.5vw, 2.25rem);
  margin-bottom: .75rem;
}

.section-text {
  max-width: 56ch;
  margin-bottom: 1.35rem;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(28px, 3vw, 46px);
}
.section-head .section-title { margin-bottom: .5rem; }

.title-rule {
  display: block;
  width: 54px;
  height: 3px;
  border-radius: var(--r-pill);
  background: var(--teal-accent);
  margin: 14px auto 0;
}
.section-head:not(.text-center) .title-rule { margin-inline: 0; }

/* arrow text link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--teal);
}
.link-arrow .ico { width: 1.15em; height: 1.15em; transition: transform .25s ease; }
.link-arrow:hover .ico { transform: translateX(5px); }

/* teal check lists */
.check-list { display: grid; gap: .9rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--navy-soft);
}
.check-list .ico {
  width: 1.2em;
  height: 1.2em;
  margin-top: .18em;
  color: var(--teal-accent);
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn,
.btn-play-link {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .68rem 1.15rem;
  border: 1px solid transparent;
  line-height: 1.3;
  white-space: nowrap;
}
.btn .ico { width: 1.15em; height: 1.15em; }

.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover, .btn-teal:focus {
  background: var(--teal-600);
  color: var(--white);
  box-shadow: var(--sh-teal);
}

.btn-lg-cta { padding: .85rem 1.5rem; font-size: .875rem; }

.btn-white {
  background: var(--white);
  color: var(--teal);
}
.btn-white:hover, .btn-white:focus {
  background: var(--teal-softer);
  color: var(--teal-700);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy-soft);
  padding: .85rem 1.35rem;
  font-size: .875rem;
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--teal-softer);
  border-color: var(--teal-soft);
  color: var(--teal-700);
}

/* “Know More” play link */
.btn-play-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--navy);
  font-weight: 500;
  font-size: .8125rem;
}
.play-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--teal);
  box-shadow: 0 4px 14px rgba(20, 41, 60, .12);
  transition: transform .25s ease, box-shadow .25s ease;
}
.play-circle .ico { width: .8em; height: .8em; fill: currentColor; }
.btn-play-link:hover { color: var(--teal); }
.btn-play-link:hover .play-circle { transform: scale(1.08); box-shadow: var(--sh-md); }


/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(20, 41, 60, .07); }

.site-header .navbar { min-height: var(--header-h); }

/* brand */
.brand { display: inline-flex; align-items: center; gap: .7rem; padding: 0; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid #d3ebe7;
}
.brand-mark .ico { width: 1.35em; height: 1.35em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--navy);
}
.brand-sub {
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--body-light);
  margin-top: 3px;
}

/* nav links */
.main-nav { gap: .2rem; }
.main-nav .nav-link {
  position: relative;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--navy-soft);
  padding: .5rem .85rem;
  border-radius: var(--r-sm);
  transition: color .2s ease;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .85rem;
  right: .85rem;
  bottom: .1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.is-active { color: var(--teal); }
.main-nav .nav-link:hover::after,
.main-nav .nav-link.is-active::after { transform: scaleX(1); }

/* burger */
.nav-burger {
  width: 44px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  box-shadow: none;
}
.nav-burger:focus { box-shadow: none; }
.nav-burger span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .28s ease, opacity .2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(38px, 3vw + 24px, 74px);
  background:
    linear-gradient(112deg, #ffffff 0%, #fbfefe 38%, #eef8f7 68%, #e3f2f1 100%);
}

/* soft blurred “hospital light” bokeh on the right */
.hero-glow {
  position: absolute;
  inset: -22% -14% -22% 42%;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,0) 72%) 18% 26% / 34% 42% no-repeat,
    radial-gradient(closest-side, rgba(255,255,255,.85), rgba(255,255,255,0) 72%) 72% 18% / 30% 36% no-repeat,
    radial-gradient(closest-side, rgba(151, 205, 214, .55), rgba(151,205,214,0) 70%) 58% 62% / 52% 58% no-repeat,
    radial-gradient(closest-side, rgba(15, 124, 115, .20), rgba(15,124,115,0) 72%) 26% 78% / 46% 46% no-repeat,
    linear-gradient(160deg, #e9f4f6 0%, #dceef0 55%, #cfe6e6 100%);
  filter: blur(26px);
  opacity: .95;
}

/* faint concentric arcs behind the copy */
.hero-arc {
  position: absolute;
  z-index: -1;
  left: -160px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(15, 124, 115, .10);
  box-shadow:
    0 0 0 44px rgba(15, 124, 115, .035),
    0 0 0 45px rgba(15, 124, 115, .07),
    0 0 0 96px rgba(15, 124, 115, .025);
}

.hero-copy { position: relative; z-index: 2; }

.hero-title {
  font-size: clamp(1.95rem, 1.05rem + 3vw, 3.35rem);
  line-height: 1.13;
  margin-bottom: 1.1rem;
}

.hero-lead {
  max-width: 46ch;
  margin-bottom: 1.6rem;
}

.hero-doc { margin-bottom: 1.7rem; }
.hero-doc-name {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}
.hero-doc-meta {
  font-size: .8125rem;
  line-height: 1.85;
  color: var(--body);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.15rem 1.6rem;
  margin-bottom: clamp(26px, 2.4vw, 40px);
}

/* stats card */
.stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 1.1rem .5rem;
  max-width: 620px;
}
.stat {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-inline: clamp(.6rem, 1.2vw, 1.1rem);
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6%;
  bottom: 6%;
  width: 1px;
  background: var(--line);
}
.stat-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--teal-softer);
  color: var(--teal);
  flex: 0 0 auto;
}
.stat-ico .ico { width: 1.2em; height: 1.2em; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-num {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
.stat-num--sm { font-size: .84rem; }
.stat-label {
  font-size: .69rem;
  color: var(--body-light);
  line-height: 1.4;
  margin-top: 2px;
}

/* hero figure & banner image */
.hero-figure-col {
  position: relative;
  z-index: 2;
}

.hero-figure-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}

/* Ambient glow backdrop */
.hero-figure-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(100%, 480px);
  height: min(100%, 480px);
  background: radial-gradient(circle, rgba(15, 124, 115, 0.16) 0%, rgba(23, 150, 140, 0.05) 55%, rgba(255, 255, 255, 0) 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* Decorative backdrop circle ring */
.hero-figure-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%);
  width: min(88%, 430px);
  height: min(88%, 430px);
  border-radius: 50%;
  border: 1.5px dashed rgba(15, 124, 115, 0.22);
  background: radial-gradient(circle, rgba(244, 250, 249, 0.75) 0%, rgba(255, 255, 255, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
  animation: heroPulseRing 20s infinite linear;
}

@keyframes heroPulseRing {
  0% { transform: translate(-50%, -46%) rotate(0deg); }
  100% { transform: translate(-50%, -46%) rotate(360deg); }
}

.hero-figure {
  margin: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
  margin-inline: auto;
  filter: drop-shadow(0 28px 45px rgba(20, 41, 60, 0.16));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.hero-figure-wrapper:hover .hero-img {
  transform: translateY(-6px) scale(1.015);
  filter: drop-shadow(0 34px 55px rgba(15, 124, 115, 0.22));
}

/* Floating Glassmorphism Badges */
.hero-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 124, 115, 0.16);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 30px rgba(20, 41, 60, 0.10);
  z-index: 3;
  text-align: left;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-floating-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 124, 115, 0.18);
}

.hero-floating-badge--top {
  top: 12%;
  right: -2%;
  animation: floatBadge 6s ease-in-out infinite;
}

.hero-floating-badge--bottom {
  bottom: 8%;
  left: -2%;
  animation: floatBadge 7s ease-in-out infinite 1s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  flex-shrink: 0;
}

.badge-icon--teal {
  background: var(--teal);
  color: var(--white);
}

.badge-icon .ico {
  width: 1.35em;
  height: 1.35em;
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-content strong {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.badge-content span {
  font-size: 0.72rem;
  color: var(--body-light);
  line-height: 1.3;
}


/* ==========================================================================
   7. ABOUT
   ========================================================================== */
.credentials-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 2vw, 2.1rem);
  box-shadow: var(--sh-sm);
}


/* ==========================================================================
   8. SERVICES
   ========================================================================== */
.service-card {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.1rem, 1.4vw, 1.5rem) clamp(.85rem, 1.1vw, 1.15rem) clamp(1.35rem, 1.5vw, 1.6rem);
  text-align: center;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: #cfe8e4;
  box-shadow: var(--sh-md);
}
.service-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto .85rem;
  color: var(--teal-accent);
}
.service-ico .ico { width: 2.1em; height: 2.1em; }
.service-name {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}
.service-desc {
  font-size: .72rem;
  line-height: 1.7;
  color: var(--body-light);
  margin: 0;
}


/* ==========================================================================
   9. WHY CHOOSE
   ========================================================================== */
.why-panel {
  margin-top: clamp(34px, 3vw, 58px);
  background: #eff8f7;
  border: 1px solid #dcefec;
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 3vw, 2.9rem) clamp(1rem, 2.4vw, 2.2rem);
}
.why-row {
  --why-divider: none;
}
.why-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid #dcefec;
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 2vw, 1.85rem) clamp(1rem, 1.3vw, 1.35rem);
  box-shadow: 0 4px 14px rgba(20, 41, 60, 0.04);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow .35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color .35s ease,
              background-color .35s ease;
  z-index: 1;
}

/* top accent indicator bar that expands on hover */
.why-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-accent), var(--teal));
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  transition: opacity .35s ease, transform .35s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: var(--r-md) var(--r-md) 0 0;
  pointer-events: none;
}

/* subtle decorative ambient glow behind icon on hover */
.why-item::after {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 150, 140, 0.12) 0%, rgba(23, 150, 140, 0) 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}

/* hover and focus elevation */
.why-panel .why-item:hover,
.why-panel .why-item:focus-visible,
.why-item:hover,
.why-item:focus-visible {
  transform: translateY(-6px);
  border-color: #bce4de;
  box-shadow: 0 16px 32px rgba(15, 124, 115, 0.12), 0 4px 12px rgba(20, 41, 60, 0.05);
  outline: none;
}

.why-panel .why-item:hover::before,
.why-panel .why-item:focus-visible::before,
.why-item:hover::before,
.why-item:focus-visible::before {
  opacity: 1;
  transform: scaleX(1);
}

.why-panel .why-item:hover::after,
.why-panel .why-item:focus-visible::after,
.why-item:hover::after,
.why-item:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) scale(1.15);
}

/* Ensure reveal animations don't lock hover transition once visible */
.why-item.is-visible {
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow .35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color .35s ease,
              background-color .35s ease;
}

/* Icon badge & pop animation */
.why-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.05rem;
  color: var(--teal);
  background: var(--teal-softer);
  border: 1px solid #dcefec;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color .3s ease,
              color .3s ease,
              border-color .3s ease,
              box-shadow .3s ease;
}
.why-ico .ico {
  width: 1.65em;
  height: 1.65em;
  transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.why-panel .why-item:hover .why-ico,
.why-panel .why-item:focus-visible .why-ico,
.why-item:hover .why-ico,
.why-item:focus-visible .why-ico {
  background: linear-gradient(135deg, var(--teal-accent), var(--teal));
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(15, 124, 115, 0.28);
}

.why-panel .why-item:hover .why-ico .ico,
.why-panel .why-item:focus-visible .why-ico .ico,
.why-item:hover .why-ico .ico,
.why-item:focus-visible .why-ico .ico {
  transform: scale(1.08);
}

.why-name {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
  position: relative;
  z-index: 2;
  transition: color .25s ease;
}

.why-panel .why-item:hover .why-name,
.why-panel .why-item:focus-visible .why-name,
.why-item:hover .why-name,
.why-item:focus-visible .why-name {
  color: var(--teal-700);
}

.why-desc {
  font-size: .72rem;
  line-height: 1.75;
  color: var(--body-light);
  margin: 0;
  position: relative;
  z-index: 2;
  transition: color .25s ease;
}

.why-panel .why-item:hover .why-desc,
.why-panel .why-item:focus-visible .why-desc,
.why-item:hover .why-desc,
.why-item:focus-visible .why-desc {
  color: var(--body);
}

/* Specialities Figure Enhancements */
.spec-figure-wrapper {
  position: relative;
  display: block;
}

.spec-figure {
  margin: 0;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(20, 41, 60, 0.12);
  border: 1px solid rgba(15, 124, 115, 0.14);
}

.spec-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spec-figure:hover img {
  transform: scale(1.03);
}

.spec-figure-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.15rem;
  background: rgba(15, 124, 115, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 24px rgba(20, 41, 60, 0.22);
}

.spec-figure-badge .ico {
  width: 1.25em;
  height: 1.25em;
}


/* ==========================================================================
   10. SPECIALITIES
   ========================================================================== */
.spec-figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--teal-softer);
}
.spec-figure img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 420px;
  object-fit: cover;
  object-position: center 30%;
}
.check-list--plain li { color: var(--navy-soft); }


/* ==========================================================================
   11. GALLERY
   ========================================================================== */
.gallery-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  background: var(--teal-softer);
}
.gallery-tile img {
  width: 100%;
  aspect-ratio: 21 / 13;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 90, 83, .38), rgba(9, 90, 83, 0) 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery-tile:hover img { transform: scale(1.07); }
.gallery-tile:hover::after { opacity: 1; }


/* ==========================================================================
   12. REVIEWS CAROUSEL
   ========================================================================== */
.reviews-carousel { position: relative; }

.reviews-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 6px;
  margin-inline: -2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.review-card {
  height: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.25rem, 1.8vw, 1.75rem);
  box-shadow: var(--sh-sm);
}
.quote-mark {
  width: 1.75em;
  height: 1.75em;
  color: var(--teal-accent);
  opacity: .85;
  fill: currentColor;
  margin-bottom: .7rem;
}
.review-card blockquote {
  margin: 0 0 1rem;
  font-size: .8125rem;
  line-height: 1.85;
  color: var(--body);
}
.review-card figcaption {
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(18px, 2vw, 26px);
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c3d9d5;
  cursor: pointer;
  transition: background-color .25s ease, width .25s ease;
}
.carousel-dots button.is-active { background: var(--teal); width: 22px; border-radius: var(--r-pill); }


/* ==========================================================================
   13. CTA BAND
   ========================================================================== */
.cta-section { background: var(--mint-bg); padding-bottom: clamp(44px, 3.4vw, 74px); }

.cta-band {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  background: linear-gradient(100deg, var(--teal-700) 0%, var(--teal) 48%, #14867c 100%);
  border-radius: var(--r-md);
  padding: clamp(1.35rem, 2.2vw, 1.9rem) clamp(1.25rem, 2.6vw, 2.4rem);
  box-shadow: 0 16px 40px rgba(9, 90, 83, .22);
  color: rgba(255, 255, 255, .88);
}
.cta-ico {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--teal);
}
.cta-ico .ico { width: 1.5em; height: 1.5em; }
.cta-copy { flex: 1 1 auto; min-width: 0; }
.cta-title {
  font-family: var(--font-body);
  font-size: clamp(.95rem, .8rem + .5vw, 1.15rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: .3rem;
}
.cta-text { font-size: .8125rem; margin: 0; color: rgba(255, 255, 255, .82); }


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(38px, 3vw, 62px);
}
.footer-top { padding-bottom: clamp(24px, 2.4vw, 40px); }

.brand--footer { margin-bottom: 1.1rem; }

.footer-about {
  font-size: .78rem;
  line-height: 1.85;
  color: var(--body-light);
  max-width: 34ch;
  margin-bottom: 1.15rem;
}

.social-list { display: flex; gap: .55rem; }
.social-list a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal-softer);
  border: 1px solid var(--line);
  color: var(--teal);
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.social-list .ico { width: 1em; height: 1em; }
.social-list a:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}

.footer-links { display: grid; gap: .55rem; }
.footer-links a {
  font-size: .78rem;
  color: var(--body-light);
}
.footer-links a:hover { color: var(--teal); padding-left: 3px; }
.footer-links a { transition: color .2s ease, padding-left .2s ease; }

.contact-list { display: grid; gap: .9rem; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .78rem;
  line-height: 1.75;
  color: var(--body-light);
}
.contact-list .ico { width: 1.1em; height: 1.1em; margin-top: .3em; color: var(--teal-accent); }
.contact-list a { color: var(--body-light); }
.contact-list a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem 1rem;
  font-size: .72rem;
  color: var(--body-light);
}
.footer-credit { display: inline-flex; align-items: center; gap: .35rem; }
.footer-credit .heart { width: .95em; height: .95em; color: #e2606a; fill: currentColor; }


/* ==========================================================================
   15. BACK-TO-TOP
   ========================================================================== */
.to-top {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 1030;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--sh-teal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .22s ease;
}
.to-top .ico { width: 1.1em; height: 1.1em; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-700); color: var(--white); }


/* ==========================================================================
   16. APPOINTMENT MODAL & FORM (LANDSCAPE DESIGN)
   ========================================================================== */
.appt-modal-dialog {
  max-width: 1060px;
  margin: 1.75rem auto;
}

.appt-modal {
  border: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(20, 41, 60, 0.28);
  display: flex;
  flex-direction: row;
  background: var(--white);
  position: relative;
}

/* Floating close button in top right */
.appt-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 25;
  background-color: var(--teal-soft);
  opacity: .85;
  border-radius: 50%;
  padding: .65rem;
  transition: transform .25s ease, background-color .25s ease, opacity .25s ease;
}
.appt-modal-close:hover {
  opacity: 1;
  transform: rotate(90deg) scale(1.06);
  background-color: var(--teal-softer);
}

/* Left 50%: Creative Visual & Trust Section */
.appt-modal-media {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: clamp(2rem, 3.2vw, 3rem) clamp(1.8rem, 2.5vw, 2.5rem);
}

.appt-media-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: saturate(1.15);
  transform: scale(1.03);
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}
.appt-modal:hover .appt-media-bg {
  transform: scale(1.08);
}

.appt-media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(15, 124, 115, 0.93) 0%,
    rgba(20, 41, 60, 0.94) 52%,
    rgba(14, 27, 39, 0.98) 100%
  );
}

.appt-media-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 226, 190, 0.3) 0%, rgba(15, 124, 115, 0) 70%);
  pointer-events: none;
}

.appt-media-body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 1.4rem;
}

.appt-media-top {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.appt-media-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #c9f0eb;
  backdrop-filter: blur(8px);
}
.appt-media-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee2be;
  box-shadow: 0 0 10px #3ee2be;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(.95); opacity: .75; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(.95); opacity: .75; }
}

.appt-media-badge-sub {
  font-size: .72rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

.appt-media-pre {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #79ded2;
  font-weight: 600;
  display: block;
  margin-bottom: .4rem;
}
.appt-media-headline {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.25;
  color: var(--white);
  margin-bottom: .75rem;
}
.appt-media-subtext {
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 0;
}

.appt-media-trust {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.appt-trust-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  backdrop-filter: blur(6px);
  transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}
.appt-trust-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateX(4px);
}
.appt-trust-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(23, 150, 140, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6fe2d3;
  flex-shrink: 0;
}
.appt-trust-ico .ico {
  width: 1.25em;
  height: 1.25em;
}
.appt-trust-info strong {
  display: block;
  font-size: .8125rem;
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
}
.appt-trust-info small {
  display: block;
  font-size: .7rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
  margin-top: .15rem;
}

.appt-media-footer {
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.appt-helpline {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.appt-help-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #17968c;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(23, 150, 140, 0.45);
}
.appt-help-ico .ico {
  width: 1.2em;
  height: 1.2em;
}
.appt-helpline span {
  display: block;
  font-size: .68rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.appt-helpline a {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: #79ded2;
  text-decoration: none;
  transition: color .2s ease;
}
.appt-helpline a:hover {
  color: var(--white);
}

/* Right 50%: Form Section */
.appt-modal-form-side {
  flex: 0 0 50%;
  max-width: 50%;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: calc(90vh - 2rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cfe8e4 transparent;
}
.appt-modal-form-side::-webkit-scrollbar {
  width: 6px;
}
.appt-modal-form-side::-webkit-scrollbar-thumb {
  background: #cfe8e4;
  border-radius: 10px;
}

.appt-modal-form-header {
  padding: clamp(1.6rem, 2.4vw, 2.2rem) clamp(1.4rem, 2.2vw, 2rem) 1rem;
  padding-right: 3.8rem;
  border-bottom: 1px solid var(--line-soft);
}
.appt-modal-form-header .modal-title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--navy);
  margin-bottom: .35rem;
  font-weight: 600;
}
.appt-header-sub {
  font-size: .75rem;
  line-height: 1.55;
  color: var(--body);
}

.appt-modal-body {
  padding: clamp(1.2rem, 2vw, 1.8rem) clamp(1.4rem, 2.2vw, 2rem) clamp(1.6rem, 2.4vw, 2.2rem);
}

/* Form Controls & Validation */
.appt-form .form-label,
.appt-modal .wpforms-container .wpforms-field-label {
  font-family: var(--font-body) !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  color: var(--navy-soft) !important;
  margin-bottom: .35rem !important;
  display: block;
}
.appt-form .req,
.appt-modal .wpforms-required-label {
  color: #d3574f !important;
  font-weight: bold;
}

.appt-form .form-control,
.appt-form .form-select,
.appt-modal .wpforms-container input[type="text"],
.appt-modal .wpforms-container input[type="email"],
.appt-modal .wpforms-container input[type="tel"],
.appt-modal .wpforms-container input[type="number"],
.appt-modal .wpforms-container select,
.appt-modal .wpforms-container textarea {
  font-family: var(--font-body) !important;
  font-size: .8125rem !important;
  color: var(--navy) !important;
  padding: .62rem .85rem !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-sm) !important;
  background-color: #fbfdfd !important;
  box-shadow: none !important;
  width: 100% !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease !important;
  box-sizing: border-box !important;
}
.appt-form .form-control::placeholder,
.appt-modal .wpforms-container input::placeholder,
.appt-modal .wpforms-container textarea::placeholder {
  color: #a9b8c0 !important;
}
.appt-form .form-control:focus,
.appt-form .form-select:focus,
.appt-modal .wpforms-container input[type="text"]:focus,
.appt-modal .wpforms-container input[type="email"]:focus,
.appt-modal .wpforms-container input[type="tel"]:focus,
.appt-modal .wpforms-container input[type="number"]:focus,
.appt-modal .wpforms-container select:focus,
.appt-modal .wpforms-container textarea:focus {
  background-color: var(--white) !important;
  border-color: var(--teal-accent) !important;
  box-shadow: 0 0 0 3px rgba(23, 150, 140, .14) !important;
  outline: none !important;
}

.appt-form textarea.form-control,
.appt-modal .wpforms-container textarea {
  resize: vertical !important;
  min-height: 80px !important;
}

.appt-form .form-check-label {
  font-size: .75rem;
  color: var(--body);
}
.appt-form .form-check-input:checked {
  background-color: var(--teal);
  border-color: var(--teal);
}
.appt-form .form-check-input:focus {
  border-color: var(--teal-accent);
  box-shadow: 0 0 0 3px rgba(23, 150, 140, .14);
}

/* WPForms 2-column Grid & CTA styling */
.appt-modal .wpforms-container {
  margin: 0 !important;
  padding: 0 !important;
}
.appt-modal .wpforms-container .wpforms-field-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem 1rem;
}
.appt-modal .wpforms-container .wpforms-field {
  padding: 0 !important;
  margin: 0 !important;
}
.appt-modal .wpforms-container .wpforms-field-textarea,
.appt-modal .wpforms-container .wpforms-field-checkbox {
  grid-column: span 2;
}
.appt-modal .wpforms-container ul[id*="wpforms"] {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.appt-modal .wpforms-container .wpforms-field-label-inline {
  font-family: var(--font-body) !important;
  font-size: .75rem !important;
  color: var(--body) !important;
  font-weight: 400 !important;
  cursor: pointer;
}
.appt-modal .wpforms-container .wpforms-submit-container {
  padding-top: .85rem;
  margin: 0 !important;
}
.appt-modal .wpforms-container button.wpforms-submit,
.appt-form .btn-teal {
  background: var(--teal) !important;
  color: var(--white) !important;
  border: 1px solid var(--teal) !important;
  border-radius: var(--r-sm) !important;
  font-family: var(--font-body) !important;
  font-size: .85rem !important;
  font-weight: 600 !important;
  padding: .7rem 1.65rem !important;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 124, 115, 0.25) !important;
  transition: all .25s ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.appt-modal .wpforms-container button.wpforms-submit:hover,
.appt-form .btn-teal:hover {
  background: var(--teal-600) !important;
  border-color: var(--teal-600) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(15, 124, 115, 0.35) !important;
}

/* jQuery-validation states */
.appt-form .form-control.is-invalid,
.appt-form .form-select.is-invalid,
.appt-form .form-check-input.is-invalid {
  border-color: #dc7a72;
  background-image: none;
}
.appt-form .form-control.is-invalid:focus,
.appt-form .form-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 122, 114, .16);
}
.appt-form .form-control.is-valid,
.appt-form .form-select.is-valid {
  border-color: #9ed2c9;
  background-image: none;
}
.appt-form .invalid-feedback {
  display: block;
  font-size: .69rem;
  margin-top: .3rem;
  color: #c0554d;
}
#apptSuccess {
  border: 0;
  border-radius: var(--r-sm);
  background: var(--teal-soft);
  color: var(--teal-700);
  font-size: .8125rem;
  padding: .85rem 1.1rem;
  margin-bottom: 1rem;
}

/* Responsive adjustment for Tablets & Mobile (< 992px) */
@media (max-width: 991.98px) {
  .appt-modal {
    flex-direction: column;
  }
  .appt-modal-media,
  .appt-modal-form-side {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .appt-modal-media {
    padding: 1.75rem 1.5rem;
  }
  .appt-media-trust {
    display: none;
  }
  .appt-modal-form-side {
    max-height: none;
  }
  .appt-modal .wpforms-container .wpforms-field-container {
    grid-template-columns: 1fr;
  }
  .appt-modal .wpforms-container .wpforms-field-textarea,
  .appt-modal .wpforms-container .wpforms-field-checkbox {
    grid-column: span 1;
  }
}


/* ==========================================================================
   17. RESPONSIVE
   --------------------------------------------------------------------------
   Base rules above are mobile-first. Overrides below scale the layout up
   through: large phones → tablets → small laptops → laptops/MacBooks →
   desktops → large & ultra-wide desktops.
   ========================================================================== */

/* ---------- ≥ 400px : large phones -------------------------------------- */
@media (min-width: 400px) {
  .review-slide { flex-basis: 100%; }
}

/* ---------- ≤ 575px : small phones -------------------------------------- */
@media (max-width: 575.98px) {
  :root { --header-h: 66px; }

  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand-name { font-size: 1.02rem; }
  .brand-sub { font-size: .5rem; letter-spacing: .16em; }

  .hero { padding-block: 30px 34px; }
  .hero-actions { gap: .9rem 1.1rem; }
  .hero-actions .btn { width: 100%; }
  .btn-play-link { width: 100%; }

  /* stats become a vertical list on the narrowest screens */
  .stats-card {
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: .9rem .95rem;
  }
  .stat { padding: .45rem 0; }
  .stat + .stat::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .why-panel { padding-inline: 1.05rem; }
  .cta-band { text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- ≤ 767px : phones & small tablets ---------------------------- */
@media (max-width: 767.98px) {
  .cta-band { flex-direction: column; align-items: center; text-align: center; }
  .cta-band .btn { width: 100%; max-width: 320px; }
  .hero-arc { display: none; }
  .section-gallery { padding-top: 0; }
}

/* ---------- ≥ 576px : the CTA button stays inline ----------------------- */
@media (min-width: 576px) {
  .review-slide { flex-basis: calc((100% - clamp(14px, 1.6vw, 26px)) / 2); }
}

/* ---------- ≥ 768px : tablets ------------------------------------------- */
@media (min-width: 768px) {
  .hero-figure-col { order: 2; }
  .spec-figure img { min-height: 300px; }
}

/* ---------- ≤ 991px : below desktop nav --------------------------------- */
@media (max-width: 991.98px) {
  /* collapsed navigation panel */
  #mainNav {
    margin-top: .35rem;
    padding: .5rem 0 1rem;
    border-top: 1px solid var(--line-soft);
  }
  .main-nav { gap: 0; margin: 0 !important; width: 100%; }
  .main-nav .nav-link {
    padding: .7rem .25rem;
    border-radius: 0;
    border-bottom: 1px dashed var(--line-soft);
  }
  .main-nav .nav-link::after { display: none; }
  .main-nav .nav-item:last-child .nav-link { border-bottom: 0; }
  .header-cta { padding-top: .75rem; }
  .header-cta .btn { width: 100%; }
}

/* ---------- ≥ 992px : small laptops — full desktop navigation ----------- */
@media (min-width: 992px) {
  #mainNav { border-top: 0; margin-top: 0; padding: 0; }
  .header-cta { padding-top: 0; }

  .review-slide { flex-basis: calc((100% - 2 * clamp(14px, 1.6vw, 26px)) / 3); }

  .hero-copy { padding-right: clamp(0px, 1.5vw, 24px); }


}

/* ---------- 992px – 1199px : keep 4 “why” columns readable -------------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .why-desc, .service-desc { font-size: .69rem; }
  .stats-card { max-width: none; }
}

/* ---------- ≥ 1200px : laptops / MacBook 13"–14" ------------------------ */
@media (min-width: 1200px) {
  /* gallery: five equal tiles in one row, exactly as in the design */
  .gallery-row > .col-xl { flex: 1 0 0%; width: auto; }

  .hero { padding-block: clamp(46px, 3vw, 70px); }
  .hero-img { max-height: 560px; }
}

/* ---------- ≥ 1400px : desktops / MacBook 16" --------------------------- */
@media (min-width: 1400px) {
  .container-site { max-width: 1240px; }
  .hero-img { max-height: 620px; }
  .service-desc, .why-desc { font-size: .75rem; }
}

/* ---------- ≥ 1600px : large desktops ----------------------------------- */
@media (min-width: 1600px) {
  :root { --header-h: 84px; }
  .container-site { max-width: 1340px; }
  body { font-size: .95rem; }
  .hero-img { max-height: 660px; }
  .main-nav .nav-link { font-size: .85rem; padding-inline: 1rem; }
}

/* ---------- ≥ 1920px : full-HD & ultra-wide ----------------------------- */
@media (min-width: 1920px) {
  .container-site { max-width: 1460px; }
  .hero { padding-block: 90px; }
  .hero-img { max-height: 720px; }
  .stats-card { max-width: 680px; }
}

/* ---------- ≥ 2400px : 4K / 5K displays --------------------------------- */
@media (min-width: 2400px) {
  html { font-size: 18px; }
  .container-site { max-width: 1600px; }
  .hero-img { max-height: 820px; }
}

/* ---------- short landscape phones -------------------------------------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding-block: 26px; }
  .hero-img { max-height: 340px; }
}


/* ==========================================================================
   18. MOTION & PRINT
   ========================================================================== */
/* scroll reveal (progressively enhanced by js/main.js) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reviews-track { scroll-behavior: auto; }
}

@media print {
  .site-header, .to-top, .cta-section, .hero-glow, .hero-arc,
  .carousel-dots, .nav-burger { display: none !important; }
  body { color: #000; }
  .section { padding-block: 18px; }
  .reviews-track { overflow: visible; flex-wrap: wrap; }
  .review-slide { flex-basis: 48%; }
}

/* ==========================================================================
   Dr. P. K. Sethy — About Me page styles
   Loaded after css/style.css (which owns the design tokens, header, footer,
   buttons, CTA band and modal used here as well).
   --------------------------------------------------------------------------
   1. Section rhythm
   2. Page banner & breadcrumb
   3. Profile block (portrait, degrees, quick facts)
   4. Stats strip
   5. Education / training cards
   6. Career timeline
   7. Memberships
   8. Research panel, quote card, consulting card
   9. Approach cards
   10. Responsive overrides
   ========================================================================== */


/* ==========================================================================
   1. SECTION RHYTHM
   ========================================================================== */
.section-profile     { background: var(--white); padding-bottom: clamp(30px, 2.4vw, 46px); }
.ab-stats-section    { background: var(--white); padding-bottom: var(--section-y); }
.section-education   { background: var(--mint-bg); }
.section-journey     { background: var(--white); }
.section-memberships { background: var(--mint-bg); }
.section-research    { background: var(--white); }
.section-approach    { background: var(--mint-bg); padding-bottom: clamp(34px, 2.6vw, 52px); }


/* ==========================================================================
   2. PAGE BANNER & BREADCRUMB
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(34px, 3vw + 18px, 68px);
  background: linear-gradient(112deg, #ffffff 0%, #f7fdfc 34%, #edf7f6 72%, #e2f1f0 100%);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero-glow {
  position: absolute;
  z-index: -1;
  right: -8%;
  top: -60%;
  width: 46%;
  height: 220%;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%) 30% 30% / 60% 50% no-repeat,
    radial-gradient(closest-side, rgba(15, 124, 115, .16), rgba(15, 124, 115, 0) 72%) 62% 58% / 78% 70% no-repeat;
  filter: blur(22px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: .72rem;
  font-weight: 500;
  color: var(--body-light);
}
.crumbs li { display: inline-flex; align-items: center; gap: .45rem; }
.crumbs li + li::before { content: "/"; color: #bfd3d0; }
.crumbs a { color: var(--teal); }
.crumbs [aria-current="page"] { color: var(--navy); }

.page-hero-title {
  font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.85rem);
  margin-bottom: .7rem;
}
.page-hero-lead { max-width: 62ch; margin: 0; }


/* ==========================================================================
   3. PROFILE BLOCK
   ========================================================================== */
.ab-portrait {
  position: relative;
  margin: 0 0 1.5rem;
  padding: clamp(1rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.75rem) 3.4rem;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 70% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(155deg, #e9f6f4 0%, #dcefec 55%, #cfe7e3 100%);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  text-align: center;
}
.ab-portrait > img {
  width: auto;
  max-width: 100%;
  max-height: 460px;
  margin-inline: auto;
  filter: drop-shadow(0 18px 28px rgba(20, 41, 60, .16));
}
.ab-portrait-plate {
  position: absolute;
  left: 50%;
  bottom: clamp(.9rem, 1.6vw, 1.35rem);
  transform: translateX(-50%);
  width: min(88%, 340px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: .7rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.ab-plate-name {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.ab-plate-role {
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-accent);
}
.ab-portrait-badge {
  position: absolute;
  top: clamp(.85rem, 1.6vw, 1.4rem);
  right: clamp(.85rem, 1.6vw, 1.4rem);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 1px;
  text-align: center;
  background: linear-gradient(140deg, var(--teal) 0%, #14867c 100%);
  color: #fff;
  box-shadow: var(--sh-teal);
}
.ab-portrait-badge strong {
  font-family: var(--font-head);
  font-size: 1.32rem;
  line-height: 1;
  color: #fff;
}
.ab-portrait-badge span {
  font-size: .56rem;
  line-height: 1.25;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

.ab-degrees {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--teal-accent);
  margin-bottom: 1.1rem;
}

.ab-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem 1.5rem;
  margin: 1.6rem 0;
}
.ab-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: .85rem;
  border-left: 2px solid var(--teal-soft);
}
.ab-fact-label {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--body-light);
}
.ab-fact-value {
  font-size: .8125rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}

.ab-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
}


/* ==========================================================================
   4. STATS STRIP
   ========================================================================== */
.ab-stats {
  display: grid;
  grid-template-columns: 1fr;
  background: #eff8f7;
  border: 1px solid #dcefec;
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 2vw, 1.8rem) clamp(.75rem, 1.6vw, 1.4rem);
}
.ab-stat {
  position: relative;
  text-align: center;
  padding: .85rem clamp(.5rem, 1.2vw, 1.2rem);
}
.ab-stat-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto .6rem;
  border-radius: 11px;
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
}
.ab-stat-ico .ico { width: 1.25em; height: 1.25em; }
.ab-stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1rem + 1vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.ab-stat-label {
  display: block;
  font-size: .72rem;
  color: var(--body-light);
  margin-top: .25rem;
}


/* ==========================================================================
   5. EDUCATION / TRAINING CARDS
   ========================================================================== */
.ab-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2vw, 2rem);
  box-shadow: var(--sh-sm);
}
.ab-card-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.ab-card-ico {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--teal-softer);
  color: var(--teal);
  border: 1px solid var(--line);
}
.ab-card-ico .ico { width: 1.35em; height: 1.35em; }
.ab-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0;
}

.ab-degree-list { display: grid; gap: 1rem; }
.ab-degree-list li { display: flex; align-items: flex-start; gap: .9rem; }
.ab-degree-year {
  flex: 0 0 auto;
  min-width: 62px;
  text-align: center;
  padding: .28rem .5rem;
  border-radius: var(--r-pill);
  background: var(--teal-soft);
  color: var(--teal-700);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.5;
}
.ab-degree-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ab-degree-body strong {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
}
.ab-degree-body em {
  font-style: normal;
  font-size: .72rem;
  color: var(--body-light);
}


/* ==========================================================================
   6. CAREER TIMELINE
   ========================================================================== */
.ab-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ab-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal-accent) 0%, var(--teal-soft) 55%, var(--line) 100%);
}
.ab-tl-item {
  position: relative;
  padding-left: 44px;
  padding-bottom: clamp(16px, 1.6vw, 24px);
}
.ab-tl-item:last-child { padding-bottom: 0; }
.ab-tl-dot {
  position: absolute;
  left: 4px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--teal-accent);
  box-shadow: 0 0 0 4px rgba(23, 150, 140, .10);
}
.ab-tl-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1rem, 1.6vw, 1.4rem);
  box-shadow: var(--sh-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ab-tl-card:hover {
  transform: translateY(-3px);
  border-color: #cfe8e4;
  box-shadow: var(--sh-md);
}
.ab-tl-year {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-accent);
  margin-bottom: .35rem;
}
.ab-tl-title {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .4rem;
}
.ab-tl-card p {
  font-size: .78rem;
  line-height: 1.8;
  color: var(--body-light);
  margin: 0;
}


/* ==========================================================================
   7. MEMBERSHIPS
   ========================================================================== */
.ab-member {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.05rem, 1.5vw, 1.45rem);
  box-shadow: var(--sh-sm);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.ab-member:hover {
  transform: translateY(-4px);
  border-color: #cfe8e4;
  box-shadow: var(--sh-md);
}
.ab-member-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: .8rem;
  border-radius: 11px;
  background: var(--teal-softer);
  color: var(--teal-accent);
  border: 1px solid var(--line-soft);
}
.ab-member-ico .ico { width: 1.3em; height: 1.3em; }
.ab-member-name {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: .3rem;
}
.ab-member-role {
  font-size: .72rem;
  color: var(--teal-accent);
  margin: 0;
}


/* ==========================================================================
   8. RESEARCH PANEL, QUOTE CARD, CONSULTING CARD
   ========================================================================== */
.ab-research-panel {
  background: var(--mint-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2vw, 1.8rem);
}
.ab-research-list li em { font-style: italic; color: var(--body-light); }

.ab-quote {
  margin: 0 0 1.25rem;
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--teal-700) 0%, var(--teal) 55%, #14867c 100%);
  box-shadow: 0 14px 34px rgba(9, 90, 83, .20);
  color: rgba(255, 255, 255, .9);
}
.ab-quote-mark {
  width: 1.9em;
  height: 1.9em;
  fill: currentColor;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .6rem;
}
.ab-quote blockquote {
  margin: 0 0 1.1rem;
  font-size: .8125rem;
  line-height: 1.9;
}
.ab-quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.ab-quote-name {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}
.ab-quote-role {
  font-size: .68rem;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
}

.ab-clinic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 2vw, 1.6rem);
  box-shadow: var(--sh-sm);
}
.ab-clinic-title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--navy);
  padding-bottom: .85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.ab-clinic-title .ico { width: 1.25em; height: 1.25em; color: var(--teal); }


/* ==========================================================================
   9. APPROACH CARDS
   ========================================================================== */
.ab-approach {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--sh-sm);
  transition: transform .28s ease, box-shadow .28s ease;
}
.ab-approach:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.ab-approach-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: .9rem;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal);
}
.ab-approach-ico .ico { width: 1.5em; height: 1.5em; }
.ab-approach-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: .5rem;
}
.ab-approach p {
  font-size: .78rem;
  line-height: 1.85;
  color: var(--body-light);
  margin: 0;
}


/* ==========================================================================
   10. RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---------- ≤ 575px : small phones -------------------------------------- */
@media (max-width: 575.98px) {
  .ab-portrait { padding-bottom: 3rem; }
  .ab-portrait > img { max-height: 330px; }
  .ab-portrait-badge { width: 68px; height: 68px; }
  .ab-portrait-badge strong { font-size: 1.1rem; }
  .ab-actions .btn { width: 100%; }
  .ab-degree-list li { flex-direction: column; gap: .3rem; }
  .ab-degree-year { min-width: 0; align-self: flex-start; padding-inline: .7rem; }
}

/* ---------- ≥ 576px : two quick facts / two stats per row --------------- */
@media (min-width: 576px) {
  .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-stat:nth-child(n+3)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: #d6ebe7;
  }
  .ab-stat:nth-child(even)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: #d6ebe7;
  }
}

/* ---------- ≥ 992px : four stats in a row + alternating timeline -------- */
@media (min-width: 992px) {
  .ab-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab-stat:nth-child(n+3)::before { content: none; }
  .ab-stat:nth-child(even)::after { content: none; }
  .ab-stat + .ab-stat::after {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: #d6ebe7;
  }

  /* centre rail, cards alternating left / right */
  .ab-timeline::before { left: 50%; transform: translateX(-50%); }
  .ab-tl-item {
    width: 50%;
    padding-left: 0;
    padding-right: 44px;
    padding-bottom: clamp(18px, 1.8vw, 28px);
    text-align: right;
  }
  .ab-tl-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 44px;
    text-align: left;
  }
  .ab-tl-item:nth-last-child(-n+2) { padding-bottom: 0; }
  .ab-tl-dot { left: auto; right: -8px; }
  .ab-tl-item:nth-child(even) .ab-tl-dot { left: -8px; right: auto; }

  .ab-portrait { margin-bottom: 0; }
}

/* ---------- ≥ 1200px : larger portrait ---------------------------------- */
@media (min-width: 1200px) {
  .ab-portrait > img { max-height: 500px; }
}

/* ---------- ≥ 1600px : research list in two columns --------------------- */
@media (min-width: 1600px) {
  .ab-research-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.6rem; }
}

/* ---------- print -------------------------------------------------------- */
@media print {
  .page-hero-glow, .ab-portrait-badge { display: none !important; }
  .ab-quote { background: none; color: #000; box-shadow: none; border: 1px solid #999; }
  .ab-quote-name, .ab-quote-role, .ab-quote blockquote { color: #000; }
  .ab-timeline::before { background: #999; }
}

/* ==========================================================================
   Dr. P. K. Sethy — FAQ page styles
   Loaded after css/style.css (design tokens, header, footer, buttons, CTA
   band, modal) and css/about.css (page banner + breadcrumb).
   --------------------------------------------------------------------------
   1. Section rhythm
   2. Toolbar (count + expand all)
   3. Accordion
   4. Answer lists & test groups
   5. Side panel (help card + read next)
   6. Responsive overrides
   ========================================================================== */


/* ==========================================================================
   1. SECTION RHYTHM
   ========================================================================== */
.page-faq .section-faq { background: var(--white); }
.page-faq [id] { scroll-margin-top: calc(var(--header-h) + 18px); }


/* ==========================================================================
   2. TOOLBAR
   ========================================================================== */
.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.faq-count {
  font-size: .78rem;
  color: var(--body-light);
}
.faq-count strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  margin-right: .15rem;
}

.faq-toggle-all {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--teal-softer);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.faq-toggle-all .ico { width: 1.05em; height: 1.05em; }
.faq-toggle-all:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}


/* ==========================================================================
   3. ACCORDION
   ========================================================================== */
.faq-accordion { --bs-accordion-border-color: transparent; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md) !important;
  background: var(--white);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item + .faq-item { margin-top: clamp(10px, 1.2vw, 14px); }
/* deep-linked questions land clear of the sticky header */
.faq-item { scroll-margin-top: calc(var(--header-h) + 20px); }
.faq-item:has(.accordion-button:not(.collapsed)) {
  border-color: #cfe8e4;
  box-shadow: var(--sh-md);
}

.faq-accordion .accordion-header { margin: 0; }

.faq-accordion .accordion-button {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: clamp(.95rem, 1.6vw, 1.25rem) clamp(1rem, 1.8vw, 1.5rem);
  background: var(--white);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-body);
  text-align: left;
  transition: background-color .22s ease, color .22s ease;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--teal-softer);
  color: var(--navy);
  box-shadow: none;
}
.faq-accordion .accordion-button:focus {
  box-shadow: none;
  outline: 2px solid var(--teal-accent);
  outline-offset: -2px;
}
.faq-accordion .accordion-button:hover { background: var(--teal-softer); }

/* leading index chip */
.faq-num {
  flex: 0 0 auto;
  min-width: 30px;
  padding: .1rem 0;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--teal-accent);
  transition: color .22s ease;
}
.faq-accordion .accordion-button:not(.collapsed) .faq-num { color: var(--teal); }

.faq-q {
  flex: 1 1 auto;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--navy);
  padding-right: .5rem;
}

/* chevron (replaces Bootstrap's default icon) */
.faq-accordion .accordion-button::after {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-top: .1rem;
  margin-left: auto;
  border-radius: 50%;
  background-color: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7c73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .3s ease, background-color .22s ease;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
  background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  transform: rotate(-180deg);
}

.faq-accordion .accordion-body {
  padding: clamp(.35rem, 1vw, .6rem) clamp(1rem, 1.8vw, 1.5rem) clamp(1.1rem, 1.8vw, 1.5rem);
  /* line the answer up with the question text, past the number chip */
  padding-left: calc(clamp(1rem, 1.8vw, 1.5rem) + 30px + .9rem);
  font-size: .8125rem;
  line-height: 1.85;
  color: var(--body);
}


/* ==========================================================================
   4. ANSWER LISTS & TEST GROUPS
   ========================================================================== */
.faq-list {
  display: grid;
  gap: .55rem;
  margin: .35rem 0 0;
  padding: 0;
  list-style: none;
}
.faq-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .8125rem;
  line-height: 1.6;
  color: var(--navy-soft);
}
.faq-list .ico {
  width: 1.05em;
  height: 1.05em;
  margin-top: .28em;
  color: var(--teal-accent);
}
.faq-list--tight { gap: .45rem; }
.faq-list--tight li { font-size: .78rem; }

.faq-testgroup {
  height: 100%;
  background: var(--mint-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(.95rem, 1.5vw, 1.25rem);
}
.faq-testgroup-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--teal-700);
  padding-bottom: .7rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.faq-testgroup-title .ico { width: 1.25em; height: 1.25em; color: var(--teal); }


/* ==========================================================================
   5. SIDE PANEL
   ========================================================================== */
.faq-aside { display: grid; gap: clamp(14px, 1.6vw, 20px); }

.faq-help {
  background: linear-gradient(155deg, #f3faf9 0%, #e9f6f4 55%, #ddf0ec 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--sh-sm);
}
.faq-help-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: .9rem;
  border-radius: 13px;
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
}
.faq-help-ico .ico { width: 1.5em; height: 1.5em; }
.faq-help-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: .45rem;
}
.faq-help-text {
  font-size: .78rem;
  line-height: 1.8;
  color: var(--body);
  margin-bottom: 1.1rem;
}
.faq-help-contact {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--line);
}
.faq-help-contact li { font-size: .75rem; }

.faq-links {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
  box-shadow: var(--sh-sm);
}
.faq-links-title {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--body-light);
  margin-bottom: .85rem;
}
.faq-links ul { display: grid; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.faq-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .6rem .1rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px dashed var(--line-soft);
  transition: color .2s ease, padding-left .2s ease;
}
.faq-links li:last-child a { border-bottom: 0; }
.faq-links a .ico { width: 1.1em; height: 1.1em; color: var(--teal-accent); transition: transform .25s ease; }
.faq-links a:hover { color: var(--teal); padding-left: .35rem; }
.faq-links a:hover .ico { transform: translateX(4px); }


/* ==========================================================================
   6. RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---------- ≤ 575px : small phones -------------------------------------- */
@media (max-width: 575.98px) {
  .faq-accordion .accordion-button { gap: .6rem; padding-inline: .9rem; }
  .faq-num { min-width: 24px; font-size: .85rem; }
  .faq-q { font-size: .82rem; }
  .faq-accordion .accordion-button::after { width: 22px; height: 22px; background-size: 12px 12px; }
  /* on the narrowest screens let the answer use the full width */
  .faq-accordion .accordion-body { padding-left: .9rem; padding-right: .9rem; }
  .faq-toolbar { justify-content: flex-start; }
}

/* ---------- ≥ 576px : symptom list in two columns ----------------------- */
@media (min-width: 576px) {
  .faq-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.4rem; }
}

/* ---------- ≥ 992px : sticky side panel --------------------------------- */
@media (min-width: 992px) {
  .faq-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}

/* ---------- reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .faq-accordion .accordion-button::after,
  .faq-links a .ico { transition: none; }
}

/* ---------- print -------------------------------------------------------- */
@media print {
  .faq-toolbar, .faq-aside { display: none !important; }
  /* every answer open on paper */
  .faq-accordion .accordion-collapse { display: block !important; height: auto !important; }
  .faq-accordion .accordion-button::after { display: none; }
  .faq-item { break-inside: avoid; box-shadow: none; }
}

/* ==========================================================================
   Dr. P. K. Sethy — Gallery page styles
   Loaded after css/style.css (design tokens, header, footer, buttons, CTA
   band, modal) and css/about.css (page banner + breadcrumb).
   --------------------------------------------------------------------------
   1. Section rhythm
   2. Filter bar
   3. Photo grid & tiles
   4. Load more
   5. Lightbox
   6. Responsive overrides
   ========================================================================== */


/* ==========================================================================
   1. SECTION RHYTHM
   ========================================================================== */
.page-gallery .section-gl { background: var(--white); }
.page-gallery [id] { scroll-margin-top: calc(var(--header-h) + 18px); }


/* ==========================================================================
   2. FILTER BAR
   ========================================================================== */
.gl-filterbar {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 12px rgba(20, 41, 60, .04);
}
.gl-filters {
  display: flex;
  gap: .5rem;
  padding-block: .85rem;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gl-filters::-webkit-scrollbar { display: none; }
.gl-filters li { flex: 0 0 auto; }

.gl-filter {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--teal-softer);
  color: var(--navy-soft);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.gl-filter .ico { width: 1.1em; height: 1.1em; color: var(--teal-accent); transition: color .22s ease; }
.gl-filter-count {
  font-size: .68rem;
  font-weight: 600;
  color: var(--body-light);
  transition: color .22s ease;
}
.gl-filter:hover {
  border-color: #cfe8e4;
  background: var(--teal-soft);
  transform: translateY(-2px);
}
.gl-filter.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.gl-filter.is-active .ico,
.gl-filter.is-active .gl-filter-count { color: rgba(255, 255, 255, .82); }


/* ==========================================================================
   3. PHOTO GRID & TILES
   ========================================================================== */
.gl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
}

.gl-item[hidden] { display: none !important; }

.gl-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--teal-softer);
  box-shadow: var(--sh-sm);
  cursor: zoom-in;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gl-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.gl-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 90, 83, .55), rgba(9, 90, 83, .06) 55%, rgba(9, 90, 83, 0));
  opacity: 0;
  transition: opacity .35s ease;
}
.gl-zoom {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  color: var(--teal);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}
.gl-zoom .ico { width: 1.2em; height: 1.2em; }

.gl-tile:hover,
.gl-tile:focus-visible { transform: translateY(-4px); box-shadow: var(--sh-md); }
.gl-tile:hover img,
.gl-tile:focus-visible img { transform: scale(1.08); }
.gl-tile:hover::after,
.gl-tile:focus-visible::after { opacity: 1; }
.gl-tile:hover .gl-zoom,
.gl-tile:focus-visible .gl-zoom { opacity: 1; transform: scale(1); }

/* shown when a filter matches nothing */
.gl-empty {
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem) 1rem;
  color: var(--body-light);
  font-size: .8125rem;
}


/* ==========================================================================
   4. LOAD MORE
   ========================================================================== */
.gl-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  margin-top: clamp(24px, 3vw, 40px);
}
.gl-more-count {
  font-size: .72rem;
  color: var(--body-light);
}


/* ==========================================================================
   5. LIGHTBOX
   ========================================================================== */
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  background: rgba(8, 26, 24, .93);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s ease;
}
.lb.is-open { display: block; }
.lb.is-visible { opacity: 1; }

.lb-stage {
  position: absolute;
  inset: clamp(58px, 8vh, 84px) clamp(12px, 6vw, 92px) clamp(64px, 9vh, 92px);
  /* flex (not grid) so the image's max-height:100% resolves against this
     definite height — a grid row would size to the image and never clamp it */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--r-sm);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  background: rgba(255, 255, 255, .04);
  opacity: 0;
  transform: scale(.97);
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}
.lb-img.is-ready { opacity: 1; transform: none; }

/* spinner while the full-size file loads */
.lb-spinner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  animation: lb-spin .8s linear infinite;
  opacity: 0;
  transition: opacity .2s ease;
}
.lb.is-loading .lb-spinner { opacity: 1; }
@keyframes lb-spin { to { transform: rotate(360deg); } }

/* top bar */
.lb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(.8rem, 2vw, 1.25rem) clamp(.9rem, 3vw, 1.9rem);
  color: rgba(255, 255, 255, .82);
}
.lb-counter {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
}
.lb-counter strong { color: #fff; font-weight: 600; }

.lb-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}
.lb-btn .ico { width: 1.15em; height: 1.15em; }
.lb-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  transform: scale(1.06);
}
.lb-btn:disabled { opacity: .32; cursor: default; transform: none; }
.lb-btn:disabled:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }

/* prev / next */
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }

/* caption */
.lb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(.85rem, 2vw, 1.4rem) clamp(.9rem, 3vw, 1.9rem);
  text-align: center;
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  line-height: 1.6;
  /* scrim keeps the caption legible if a tall image reaches down to it */
  background: linear-gradient(to top, rgba(8, 26, 24, .92) 0%, rgba(8, 26, 24, .72) 55%, rgba(8, 26, 24, 0) 100%);
  pointer-events: none;
}
.lb-caption-title {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .15rem;
}

/* stop the page behind from scrolling */
body.lb-open { overflow: hidden; }


/* ==========================================================================
   6. RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---------- ≤ 575px : small phones -------------------------------------- */
@media (max-width: 575.98px) {
  .gl-filters { padding-block: .7rem; }
  .gl-filter { font-size: .72rem; padding: .45rem .85rem; }
  .gl-zoom { width: 34px; height: 34px; }
  .lb-btn { width: 38px; height: 38px; }
  /* room at the bottom for the caption and the prev/next row beneath it */
  .lb-stage { inset: 52px 8px 138px; }
  .lb-nav { top: auto; bottom: 12px; transform: none; }
  .lb-nav:hover { transform: scale(1.06); }
  .lb-prev { left: 28%; }
  .lb-next { right: 28%; }
  .lb-caption { bottom: 62px; }
}

/* ---------- ≥ 576px : three across ------------------------------------- */
@media (min-width: 576px) {
  .gl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- ≥ 992px : four across -------------------------------------- */
@media (min-width: 992px) {
  .gl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- ≥ 1600px : five across on big desktops --------------------- */
@media (min-width: 1600px) {
  .gl-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .gl-tile, .gl-tile img, .gl-zoom, .lb, .lb-img { transition: none; }
  .lb-spinner { animation: none; }
}

/* ---------- print -------------------------------------------------------- */
@media print {
  .gl-filterbar, .gl-more, .lb { display: none !important; }
  .gl-grid { grid-template-columns: repeat(3, 1fr); }
  .gl-item[hidden] { display: block !important; }
}

/* ==========================================================================
   Dr. P. K. Sethy — Specialities page styles
   Loaded after css/style.css (design tokens, header, footer, buttons, CTA
   band, modal) and css/about.css (page banner + breadcrumb).
   --------------------------------------------------------------------------
   1. Section rhythm & anchor offsets
   2. Jump chip bar
   3. "At a glance" cards
   4. Speciality detail rows
   5. Conditions tag cloud
   6. Assurance panel
   7. Responsive overrides
   ========================================================================== */


/* ==========================================================================
   1. SECTION RHYTHM & ANCHOR OFFSETS
   ========================================================================== */
.page-specialities .section-sp-glance     { background: var(--mint-bg); }
.page-specialities .section-sp-conditions { background: var(--white); }
.page-specialities .section-sp-assure     { background: var(--mint-bg); padding-bottom: clamp(34px, 2.6vw, 52px); }

/* keep anchored sections clear of the sticky header */
.page-specialities [id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.sp-detail {
  padding-block: clamp(40px, 3vw + 22px, 78px);
  background: var(--white);
}
.sp-detail--alt { background: var(--mint-bg); }


/* ==========================================================================
   2. JUMP CHIP BAR
   ========================================================================== */
.sp-chipbar {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 12px rgba(20, 41, 60, .04);
}
.sp-chips {
  display: flex;
  gap: .5rem;
  padding-block: .85rem;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sp-chips::-webkit-scrollbar { display: none; }
.sp-chips li { flex: 0 0 auto; }
.sp-chips a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--teal-softer);
  color: var(--navy-soft);
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.sp-chips .ico { width: 1.1em; height: 1.1em; color: var(--teal-accent); transition: color .22s ease; }
.sp-chips a:hover,
.sp-chips a:focus-visible {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}
.sp-chips a:hover .ico,
.sp-chips a:focus-visible .ico { color: #fff; }


/* ==========================================================================
   3. "AT A GLANCE" CARDS
   ========================================================================== */
.sp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.2rem, 1.8vw, 1.65rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  color: inherit;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.sp-card:hover,
.sp-card:focus-visible {
  transform: translateY(-5px);
  border-color: #cfe8e4;
  box-shadow: var(--sh-md);
  color: inherit;
}
.sp-card-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: .95rem;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal);
  transition: background-color .28s ease, color .28s ease;
}
.sp-card-ico .ico { width: 1.6em; height: 1.6em; }
.sp-card:hover .sp-card-ico { background: var(--teal); color: #fff; }
.sp-card-title {
  font-family: var(--font-head);
  font-size: 1.14rem;
  margin-bottom: .45rem;
}
.sp-card-text {
  font-size: .78rem;
  line-height: 1.8;
  color: var(--body-light);
  margin: 0 0 1rem;
}
.sp-card-more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  font-size: .75rem;
  font-weight: 500;
  color: var(--teal);
}
.sp-card-more .ico { width: 1.15em; height: 1.15em; transition: transform .25s ease; }
.sp-card:hover .sp-card-more .ico { transform: translateX(5px); }


/* ==========================================================================
   4. SPECIALITY DETAIL ROWS
   ========================================================================== */
.sp-figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--teal-softer);
  box-shadow: var(--sh-md);
}
.sp-figure img {
  width: 100%;
  aspect-ratio: 21 / 13;
  object-fit: cover;
  object-position: center 32%;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.sp-figure:hover img { transform: scale(1.05); }
.sp-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(9, 90, 83, 0) 45%, rgba(9, 90, 83, .28) 100%);
  pointer-events: none;
}
.sp-figure-num {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  min-width: 76px;
  padding: .5rem 1.1rem .55rem;
  border-top-right-radius: var(--r-lg);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(4px);
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--teal);
  text-align: center;
}

.sp-lead {
  font-size: .875rem;
  font-weight: 500;
  color: var(--teal-accent);
  margin-bottom: .95rem;
  padding-left: .85rem;
  border-left: 3px solid var(--teal-soft);
}

.sp-detail .check-list { margin-top: 1.25rem; }

/* per-speciality "Book Consultant" call to action */
.sp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.35rem;
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px dashed var(--line);
}
.sp-cta-btn { padding: .8rem 1.45rem; font-size: .875rem; }

.sp-cta-call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--body-light);
  transition: color .22s ease;
}
.sp-cta-call .ico { width: 1.05em; height: 1.05em; color: var(--teal-accent); }
.sp-cta-call:hover { color: var(--teal); }


/* ==========================================================================
   5. CONDITIONS TAG CLOUD
   ========================================================================== */
.sp-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-tags li {
  padding: .55rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--teal-softer);
  color: var(--navy-soft);
  font-size: .75rem;
  font-weight: 500;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.sp-tags li:hover {
  background: var(--teal-soft);
  border-color: #cfe8e4;
  color: var(--teal-700);
  transform: translateY(-2px);
}


/* ==========================================================================
   6. ASSURANCE PANEL
   ========================================================================== */
.sp-assure {
  background: #eff8f7;
  border: 1px solid #dcefec;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.8rem) clamp(1.1rem, 2.4vw, 2.4rem);
}
.sp-assure-item { padding-right: clamp(0px, 1vw, 1rem); }
.sp-assure-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: .8rem;
  border-radius: 12px;
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
}
.sp-assure-ico .ico { width: 1.35em; height: 1.35em; }
.sp-assure-title {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .45rem;
}
.sp-assure-item p {
  font-size: .75rem;
  line-height: 1.8;
  color: var(--body-light);
  margin: 0;
}


/* ==========================================================================
   7. RESPONSIVE OVERRIDES
   ========================================================================== */

/* ---------- ≤ 575px : small phones -------------------------------------- */
@media (max-width: 575.98px) {
  .sp-chips { padding-block: .7rem; }
  .sp-chips a { font-size: .72rem; padding: .45rem .8rem; }
  .sp-figure-num { min-width: 62px; font-size: 1.25rem; }
  .sp-cta { gap: .7rem; }
  .sp-cta .btn { width: 100%; }
  .sp-cta-call { width: 100%; justify-content: center; }
  .sp-tags { justify-content: flex-start; }
  .sp-tags li { font-size: .72rem; padding: .5rem .85rem; }
}

/* ---------- ≥ 768px : slightly taller detail images --------------------- */
@media (min-width: 768px) {
  .sp-figure img { aspect-ratio: 16 / 10; }
}

/* ---------- ≥ 992px : side-by-side detail rows -------------------------- */
@media (min-width: 992px) {
  .sp-figure img { aspect-ratio: 21 / 14; }
  .sp-figure-num { min-width: 84px; font-size: 1.7rem; }

  /* breathing room between the image and the copy on each row */
  .sp-detail .col-lg-6.order-lg-1 { padding-right: clamp(0px, 1.5vw, 22px); }
  .sp-detail .col-lg-6:not(.order-lg-1):not(.order-lg-2) + .col-lg-6 { padding-left: clamp(0px, 1.5vw, 22px); }
}

/* ---------- ≥ 1400px : roomier cards ------------------------------------ */
@media (min-width: 1400px) {
  .sp-card-text, .sp-assure-item p { font-size: .8125rem; }
}

/* ---------- print -------------------------------------------------------- */
@media print {
  .sp-chipbar { display: none !important; }
  .sp-detail, .sp-detail--alt { padding-block: 16px; background: none; }
  .sp-figure::after { display: none; }
  .sp-card { break-inside: avoid; }
}

/* ==========================================================================
   BLOG LISTING & SIDEBAR STYLES (page_blog.php)
   ========================================================================== */
.blog-card-custom {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 35px;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}

.blog-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(41, 174, 172, 0.18);
}

.blog-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: #f4f7f9;
}

.blog-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card-custom:hover .blog-card-img-wrapper img {
    transform: scale(1.06);
}

.blog-card-category-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: linear-gradient(135deg, #29AEAC, #1F8381);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(41, 174, 172, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.blog-card-readtime {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
}

.blog-card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 14px;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.blog-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta li i {
    color: #29AEAC;
}

.blog-card-meta .post_share {
    margin-left: auto;
}

.blog-card-meta .post_share .social {
    display: inline-flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-card-meta .post_share .social a {
    color: #94a3b8;
    transition: color 0.2s;
}

.blog-card-meta .post_share .social a:hover {
    color: #29AEAC;
}

.blog-card-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: #1e293b;
    transition: color 0.2s ease;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #29AEAC;
}

.blog-card-excerpt {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
    flex-grow: 1;
}

.blog-card-footer {
    margin-top: auto;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #29AEAC;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-read-more:hover {
    background: #1F8381;
    box-shadow: 0 6px 18px rgba(41, 174, 172, 0.3);
    transform: translateX(3px);
}

/* Custom Dynamic Pagination Styling */
.custom-blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.custom-blog-pagination ul.page-numbers {
    display: inline-flex;
    padding-left: 0;
    list-style: none;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.custom-blog-pagination .page-numbers li a,
.custom-blog-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.custom-blog-pagination .page-numbers li span.current {
    background: #29AEAC;
    color: #ffffff;
    border-color: #29AEAC;
    box-shadow: 0 4px 14px rgba(41, 174, 172, 0.4);
}

.custom-blog-pagination .page-numbers li a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #29AEAC;
    transform: translateY(-2px);
}

/* Sidebar Widgets Enhancement */
.sidebar_widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.widget_title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.widget_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: #29AEAC;
    border-radius: 2px;
}

.search-form-wrap .input-group {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.search-form-wrap input[type="text"] {
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    flex-grow: 1;
    outline: none;
}

.search-form-wrap button {
    background: #29AEAC;
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form-wrap button:hover {
    background: #1F8381;
}

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

.category_widgets li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.category_widgets li:last-child {
    border-bottom: none;
}

.category_widgets li a {
    color: #475569;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    text-decoration: none;
}

.category_widgets li a:hover {
    color: #29AEAC;
}

.cat-count-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.recent-post-item {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.recent-post-item:last-child {
    margin-bottom: 0;
}

.recent-post-thumb {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 4px;
}

.recent-post-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.recent-post-title a:hover {
    color: #29AEAC;
}

.recent-post-date {
    font-size: 12px;
    color: #94a3b8;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tags-cloud a:hover {
    background: #29AEAC;
    color: #ffffff;
    transform: translateY(-2px);
}


