/* ==========================================================================
   Liver Transplant India — frontend theme
   Bootstrap 5 handles the grid and components; this file is the brand layer.
   ========================================================================== */

:root {
  --red:        #dd0000;
  --red-dark:   #b70000;
  --navy:       #01162c;
  --ink:        #2e2e2e;
  --body:       #4a4a4a;
  --cream:      #f9f8f4;
  --line:       #e4e2dc;
  --white:      #fff;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans:    "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell:   1760px;
  --radius:  4px;
}

/* --------------------------------------------------------------- Base */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; }

.container-xxl { max-width: var(--shell); padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--red); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Display headings — condensed, tight, with the red highlight span. */
.h-display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: .2px;
  color: var(--ink);
  margin: 0 0 1rem;
}
.h-display .hl { color: var(--red); }
.h-display .hl-light { color: rgba(255, 255, 255, .55); }

.kicker {
  font-size: 1.05rem;
  color: #3aa0d8;
  margin: 0 0 .35rem;
}

.section { padding: 64px 0; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.65rem); text-transform: uppercase; }

.rich p { margin: 0 0 1rem; }
.rich ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.rich li { margin-bottom: .45rem; }
.rich strong { color: var(--ink); }
.rich-invert, .rich-invert p { color: rgba(255, 255, 255, .88); }
.rich-invert strong { color: #fff; }

/* -------------------------------------------------------------- Buttons */

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--red);
  --bs-btn-border-color: var(--red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--red-dark);
  --bs-btn-hover-border-color: var(--red-dark);
  --bs-btn-active-bg: var(--red-dark);
  --bs-btn-active-border-color: var(--red-dark);
  --bs-btn-border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  padding: .6rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.btn-brand.btn-sm { padding: .3rem .85rem; font-size: .85rem; }

.btn-appointment {
  border-radius: 40px;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .4px;
  padding: .55rem 1.5rem;
}

.link-more { font-weight: 600; }

/* --------------------------------------------------------------- Topbar */

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  padding: 8px 0;
}
.topbar-nav ul {
  list-style: none; display: flex; gap: 1.35rem; margin: 0; padding: 0;
}
.topbar-nav a { color: var(--ink); }
.topbar-nav a:hover, .topbar-nav a.active { color: var(--red); }

.topbar-search {
  background: none; border: 0; color: var(--red); font-size: 1.1rem; padding: 0 .25rem;
}

.social-row { list-style: none; display: flex; gap: .4rem; margin: 0; padding: 0; }
.social-row .soc {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: .85rem;
}
.soc-facebook  { background: #1877f2; }
.soc-twitter   { background: #1da1f2; }
.soc-linkedin  { background: #0a66c2; }
.soc-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.soc-youtube   { background: #f00; }
.social-row .soc:hover { filter: brightness(1.12); color: #fff; }

/* --------------------------------------------------------------- Header */

.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 22px rgba(0, 0, 0, .1); }

.site-header .navbar { padding: .5rem 0; }
.navbar-brand img { width: 290px; height: auto; }
@media (max-width: 575.98px) {
  /* Keep the logo and the toggler on one line on a phone. */
  .navbar-brand img { width: 195px; }
}

.site-header .nav-link {
  color: var(--ink);
  font-size: .95rem;
  padding: .55rem .7rem;
  white-space: nowrap;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--red); }

.site-header .dropdown-toggle::after {
  border: 0;
  content: "\f067";                /* fa-plus */
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .62rem;
  line-height: 1;
  vertical-align: baseline;
  margin-left: .4rem;
}
.site-header .dropdown-menu {
  border: 0; border-top: 3px solid var(--red);
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .13);
  padding: .4rem 0;
  min-width: 260px;
}
.site-header .dropdown-item { padding: .5rem 1.1rem; font-size: .92rem; color: var(--ink); }
.site-header .dropdown-item:hover,
.site-header .dropdown-item.active { background: var(--cream); color: var(--red); }

.header-search { border-top: 1px solid var(--line); padding: 14px 0; background: var(--cream); }
.header-search form { display: flex; gap: .5rem; }
.header-search input {
  flex: 1; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .6rem .9rem; font: inherit;
}

@media (min-width: 992px) {
  /* Open dropdowns on hover — the live site behaves this way. */
  .site-header .nav-item.dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

/* ----------------------------------------------------------------- Hero */

.hero { position: relative; background: #eef3f6; overflow: hidden; }
.hero-track { position: relative; }
.hero-slide { display: none; }
.hero-slide.is-active { display: block; }
.hero-img { width: 100%; height: auto; display: block; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .72); color: var(--red);
  font-size: 1.15rem; display: grid; place-items: center; z-index: 3;
}
.hero-arrow:hover { background: #fff; }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }

.hero-dots {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: flex; gap: .45rem; justify-content: center;
}
.hero-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .6);
}
.hero-dots button[aria-selected="true"] { background: var(--red); width: 26px; border-radius: 6px; }

/* ---------------------------------------------------------------- About */

.section-about { background: var(--cream); }
.section-about .h-display { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }

.endorsement {
  background: #fff; border: 1px solid var(--line);
  padding: 14px 18px; margin: 1.5rem 0; max-width: 400px;
}
.endorsement img { display: block; margin: 0 auto; }

.about-collage { position: relative; min-height: 420px; }
.about-collage figure { margin: 0; }
.collage-a {
  width: 58%; position: relative; z-index: 1; margin-top: 60px;
}
.collage-b {
  position: absolute; right: 0; top: 0; width: 56%; z-index: 2;
  border: 6px solid var(--cream);
}
.about-collage img { display: block; width: 100%; height: auto; object-fit: cover; }

@media (max-width: 991.98px) {
  .about-collage { min-height: 0; display: flex; gap: 12px; }
  .collage-a, .collage-b { position: static; width: 50%; margin: 0; }
}

/* ------------------------------------------------------------ Award band */

.award-band { background: #d8dfe2 center/cover no-repeat; }
.award-overlay { background: rgba(250, 250, 248, .55); padding: 60px 0 0; }

.award-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
  margin: 0 0 2rem;
}
.award-heading .hl { color: var(--red); }

.award-card {
  background: rgba(255, 255, 255, .92);
  border-radius: 14px 14px 0 0;
  padding: 34px 40px;
  margin: 0;
}
.award-img { max-width: 190px; }
.award-text p { margin: 0; font-weight: 700; color: var(--ink); font-size: .95rem; }
.award-text p:first-child { margin-bottom: .2rem; }

.consult-strip {
  background: var(--navy);
  margin: 0;
  padding: 24px 24px 32px;
  text-align: center;
}
.consult-heading {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  margin: 0 0 1rem;
}
.consult-heading .hl { color: var(--red); }

/* --------------------------------------------------------------- Press */

.section-press { background: var(--cream); }
.press-wrap { background: #fff; padding: 26px; }
.press-card {
  border: 1px solid var(--line);
  padding: 20px 22px;
  height: 100%;
}
.press-title {
  font-family: var(--display);
  font-size: 1.12rem;
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 .6rem;
}
.press-title a { color: var(--red); }
.press-title a:hover { color: var(--red-dark); text-decoration: underline; }
.press-excerpt { margin: 0 0 .5rem; font-size: .95rem; }
.press-date { margin: 0; font-size: .85rem; font-style: italic; color: #8a8a8a; }

/* -------------------------------------------------------------- Mission */

.mission { background: var(--navy); }
.mission-media, .mission-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mission-media { min-height: 100%; }
.mission-body { padding: 48px clamp(20px, 4vw, 56px); }
.mission-kicker {
  color: #fff; font-weight: 700; font-size: 1.02rem; margin: 0 0 1rem; line-height: 1.45;
}
.mission-body .h-display { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.mission-body .h-display .hl { color: var(--red); }

/* ----------------------------------------------------------- Stats band */

.stats-band { background: #e6e6dd center/cover no-repeat; }
.stats-overlay { background: rgba(244, 244, 238, .55); padding: 68px 0 54px; }
.stats-heading {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.8vw, 3rem);
  line-height: 1.12;
  color: var(--ink);
  max-width: 1100px;
  margin: 0 auto 1.6rem;
}
.stats-heading .hl { color: var(--red); }
.stats-cta { display: flex; gap: 1.2rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.stats-sub { margin: 0; color: var(--ink); font-size: 1.02rem; }

/* ------------------------------------------------------- Long-form copy */

.section-copy { padding-block: 56px; }
.copy-heading { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: 2rem; }
.copy-heading:first-child { margin-top: 0; }
.copy-sub { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

/* -------------------------------------------------------------- Videos */

.section-videos { background: var(--cream); }

.video-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin: 1.6rem 0 1.8rem;
}
.video-tab {
  border: 0; background: var(--red); color: #fff;
  font-weight: 600; font-size: .92rem;
  padding: .6rem 1.1rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.video-tab.is-active { background: #111; }
.video-tab:hover { background: var(--red-dark); }
.video-tab.is-active:hover { background: #111; }

.video-panel { display: none; }
.video-panel.is-active { display: block; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 991.98px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .video-grid { grid-template-columns: 1fr; } }

.video-card { margin: 0; }
.video-play {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer;
  aspect-ratio: 16 / 9; overflow: hidden;
}
.video-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-icon {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem;
  transition: transform .18s ease;
}
.video-play:hover .play-icon { transform: scale(1.09); }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-title { font-size: .95rem; margin: .6rem 0 0; }

/* -------------------------------------------- Patients / take-help split */

.split-patients {
  background: #e9eef1 center/cover no-repeat;
  height: 100%;
}
.split-inner {
  background: linear-gradient(90deg, rgba(238,243,246,.94) 0%, rgba(238,243,246,.72) 100%);
  padding: clamp(28px, 4vw, 56px);
  height: 100%;
}
.split-patients .h-display { font-size: clamp(1.4rem, 2.6vw, 2rem); }

.patient-groups {
  list-style: none; display: flex; gap: clamp(1.5rem, 5vw, 3.5rem);
  margin: 2rem 0; padding: 0;
}
.patient-groups a {
  display: grid; justify-items: center; gap: .5rem;
  color: var(--ink); font-weight: 700;
}
.patient-groups i { font-size: 2.1rem; color: var(--red); }
.patient-groups a:hover { color: var(--red); }

.split-subheading { font-size: 1.15rem; margin: 0 0 .6rem; }

.split-help {
  background: var(--red);
  padding: clamp(28px, 3.5vw, 56px) clamp(20px, 3vw, 48px);
  height: 100%;
}
.help-heading {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  color: #fff; text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin: 0 0 1.4rem;
}

/* Three circles: one above, two below, joined by a thin connector — the
   "orbit" arrangement the original uses. */
.help-orbit {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 52px 24px;
  position: relative;
  max-width: 760px; margin-inline: auto;
}
.help-orbit li { position: relative; }
.help-orbit li:first-child {
  grid-column: 1 / -1; justify-self: center; width: min(58%, 320px);
}
.help-orbit li:first-child::after {
  /* The bracket that drops from the top circle to the two below. */
  content: ""; position: absolute; left: 50%; bottom: -34px;
  width: 78%; height: 26px; transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, .85);
  border-top: 0; border-radius: 0 0 14px 14px;
}
.help-orbit a {
  display: grid; justify-items: center; align-content: center; gap: .5rem;
  aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--red);
  padding: 1.4rem 1.2rem; text-align: center;
  font-size: .9rem; line-height: 1.35;
}
.help-orbit a:hover { background: #fff5f5; color: var(--red-dark); }
.help-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #f2c9c9; display: grid; place-items: center;
}
.help-icon img { width: 30px; height: 30px; object-fit: contain; }
.help-icon i { font-size: 1.4rem; }

@media (max-width: 575.98px) {
  .help-orbit { grid-template-columns: 1fr; gap: 16px; }
  .help-orbit li:first-child { width: 100%; }
  .help-orbit li:first-child::after { display: none; }
  .help-orbit a { aspect-ratio: auto; border-radius: 14px; padding: 1.2rem; }
}

/* ---------------------------------------------------- Liver Sutra + blog */

.section-blog { background: #f5f5f5; }

.sutra-card { background: var(--red); color: #fff; padding: 18px; }
.sutra-head { display: flex; gap: 14px; align-items: center; }
.sutra-icon {
  width: 58px; height: 58px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; flex: 0 0 auto;
}
.sutra-title { font-family: var(--display); font-size: 1.25rem; margin: 0; }
.sutra-sub { margin: .2rem 0 0; font-size: .86rem; line-height: 1.4; }
.sutra-note { background: #fff; padding: 16px; font-weight: 700; color: var(--ink); }
.sutra-note .hl { color: var(--red); }
.sutra-note p { margin: 0; }
.sutra-consult { background: var(--navy); color: #fff; padding: 16px; }
.sutra-consult p { margin: 0; font-family: var(--display); font-size: 1.1rem; }
.sutra-clinics { background: #fff; padding: 16px; margin: 0; font-size: .92rem; }
.sutra-clinics a { color: #3aa0d8; }

.blog-heading { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1.4rem; }

.post-card { background: transparent; height: 100%; display: flex; flex-direction: column; }
.post-thumb { display: block; overflow: hidden; }
.post-thumb img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.post-thumb:hover img { transform: scale(1.04); }
.post-date { color: var(--red); font-size: .85rem; margin: .5rem 0 .2rem; }
.post-title { font-family: var(--display); font-size: 1.12rem; line-height: 1.3; margin: 0 0 .8rem; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--red); }
.post-card .btn { align-self: flex-start; margin-top: auto; }

/* -------------------------------------------------------------- Booking */

.section-booking {
  background: var(--white);
  padding-block: 72px;
  position: relative;
  isolation: isolate;
}
.section-booking::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--booking-map, none) right center/contain no-repeat;
  opacity: .09;
}
.section-booking .h-display { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 1.6rem; }

.booking-form label {
  display: block; font-family: var(--display); font-size: 1rem;
  color: var(--ink); margin-bottom: .2rem;
}
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="search"],
.booking-form textarea {
  width: 100%; border: 0; border-bottom: 1px dashed #d2a3a3;
  background: transparent; padding: .35rem 0 .5rem; font: inherit; color: var(--ink);
}
.booking-form input:focus, .booking-form textarea:focus {
  outline: none; border-bottom-color: var(--red);
}
.booking-form textarea { resize: vertical; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-box {
  border: 1px solid var(--line); background: #fafafa;
  padding: 12px 14px; margin: 1.6rem 0 1rem; max-width: 260px;
}
.captcha-q { font-family: var(--display); color: var(--ink); display: block; margin-bottom: .3rem; }
.captcha-box input { width: 100%; border: 0; border-bottom: 1px dashed #d2a3a3;
  background: transparent; padding: .3rem 0; font: inherit; }

.form-consent { font-size: .85rem; margin: 0 0 1rem; }
.form-consent input { margin-right: .4rem; }

.btn-submit { min-width: 340px; justify-content: center; }
@media (max-width: 575.98px) { .btn-submit { min-width: 100%; } }

.form-status { margin: .8rem 0 0; font-size: .9rem; min-height: 1.2em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: #1a7f37; }

/* -------------------------------------------------------- Contact strip */

.contact-strip { background: var(--red); color: #fff; }
.contact-col {
  padding: 22px 24px;
  border-left: 1px solid rgba(255, 255, 255, .35);
  height: 100%;
}
.col-12:first-child > .contact-col { border-left: 0; }
@media (max-width: 991.98px) { .contact-col { border-left: 0; } }

.contact-title {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  color: #fff; margin: 0 0 .35rem;
}
.contact-numbers { margin: 0; font-size: 1.02rem; }
.contact-numbers a { color: #fff; }
.contact-numbers a:hover { color: #fff; text-decoration: underline; }
.contact-note { margin: 0; font-size: .82rem; opacity: .9; }

/* --------------------------------------------------------------- Footer */

.site-footer { background: #1d2733 center/cover no-repeat; color: rgba(255, 255, 255, .85); }
.footer-overlay { background: rgba(20, 30, 42, .82); padding: 54px 0; }

.footer-award { display: flex; gap: 22px; align-items: flex-start; }
.award-medal { width: 110px; height: auto; flex: 0 0 auto; }
.award-kicker { font-family: var(--display); font-size: 1.35rem; color: #fff; margin: 0; }
.award-name { font-family: var(--display); font-size: 2.1rem; color: #fff; margin: 0 0 .8rem; }
.award-about { display: grid; font-size: .88rem; line-height: 1.55; font-weight: 700; }

.footer-heading {
  font-family: var(--display); font-size: 1.35rem; color: #fff; margin: 0 0 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { display: flex; gap: .55rem; align-items: baseline; margin-bottom: .5rem; }
.footer-links i { color: #3aa0d8; font-size: .85rem; }
.footer-links a { color: rgba(255, 255, 255, .88); font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-contact { font-size: .95rem; line-height: 1.75; }
.footer-contact strong { color: #fff; }
.footer-contact a { color: rgba(255, 255, 255, .88); }
.footer-contact a:hover { color: #fff; }

.footer-social { list-style: none; display: flex; gap: .55rem; margin: 1.2rem 0 0; padding: 0; }
.footer-social a {
  width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-size: 1.05rem;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }

.footer-bottom { background: var(--ink); padding: 14px 0; text-align: center; }
.footer-bottom p { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }

/* ------------------------------------------------------- Floating CTAs */

.floating-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 1040;
  display: grid; gap: 10px;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.float-btn:hover { color: #fff; transform: translateY(-2px); }
.float-btn-call { background: var(--red); }
.float-btn-wa   { background: #25d366; }

/* ------------------------------------------------------ Motion & reveal */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   Inner pages — banner, article body, table of contents, FAQ, sidebar, blog
   ========================================================================== */

.page-banner { background: var(--navy) center/cover no-repeat; }
.page-banner.has-image .banner-overlay { background: rgba(1, 22, 44, .78); }
.banner-overlay { background: var(--navy); padding: 46px 0; }

.banner-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.16;
  color: #fff; margin: 0;
}
.banner-title .hl { color: var(--red); }
.banner-meta { margin: .5rem 0 0; color: rgba(255, 255, 255, .75); font-size: .9rem; }

.breadcrumb-nav ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: .35rem;
  margin: .8rem 0 0; padding: 0; font-size: .86rem;
}
.breadcrumb-nav li + li::before { content: "/"; color: rgba(255, 255, 255, .4); margin-right: .35rem; }
.breadcrumb-nav a { color: rgba(255, 255, 255, .8); }
.breadcrumb-nav a:hover { color: #fff; text-decoration: underline; }
.breadcrumb-nav span { color: rgba(255, 255, 255, .55); }

/* --------------------------------------------------------------- Article */

.section-page { padding-block: 52px; }

.rich-page { font-size: 1.02rem; }
.rich-page h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  margin: 2rem 0 .8rem; scroll-margin-top: 130px;
}
.rich-page h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  margin: 1.6rem 0 .6rem; scroll-margin-top: 130px;
}
.rich-page h4 { font-size: 1.08rem; margin: 1.3rem 0 .5rem; }
.rich-page img { height: auto; border-radius: 6px; margin: .4rem 0 1rem; }

/* The old pages floated an illustration beside the opening text with
   align="left". That attribute is stripped on import, so the layout is
   reproduced here instead — and it unwraps on a phone. */
.rich-page p > img:first-child {
  float: left; max-width: 240px;
  margin: .25rem 1.4rem .8rem 0;
}
.rich-page p { overflow: hidden; }
@media (max-width: 575.98px) {
  .rich-page p > img:first-child { float: none; max-width: 100%; margin: .4rem 0 1rem; }
}
.rich-page table {
  width: 100%; border-collapse: collapse; margin: 1rem 0;
  display: block; overflow-x: auto;
}
.rich-page th, .rich-page td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.rich-page th { background: var(--cream); font-weight: 700; color: var(--ink); }
.rich-page blockquote {
  margin: 1.2rem 0; padding: .8rem 1.2rem;
  border-left: 4px solid var(--red); background: var(--cream);
}
.rich-page iframe { max-width: 100%; }

.reviewed-by {
  margin: 2rem 0 0; padding: .85rem 1.1rem;
  background: var(--cream); border-left: 4px solid var(--red);
  font-size: .88rem; color: #5a5a5a;
}
.reviewed-by i { color: var(--red); margin-right: .35rem; }

/* ---------------------------------------------------- Table of contents */

/* The post's featured image, above the table of contents. It used to sit
   behind the title as a background, where the overlay made it unreadable. */
.post-hero {
  margin: 0 0 1.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
}
/* No forced ratio: these are designed banners with text baked in, and a
   crop cuts the phone number off the bottom. The width/height attributes
   on the tag hold the space, so nothing shifts while it loads. */
.post-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.toc {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: 8px; padding: 16px 20px; margin-bottom: 1.8rem;
}
.toc-title {
  font-family: var(--display); font-size: 1.05rem;
  color: var(--ink); margin: 0 0 .5rem;
}
.toc-title i { color: var(--red); margin-right: .3rem; }
/* Numbered by CSS so the nested H3 entries do not consume a number. */
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { margin-bottom: .3rem; font-size: .92rem; }
.toc .toc-l2 { counter-increment: toc; }
.toc .toc-l2::before {
  content: counter(toc) ". "; color: var(--red); font-weight: 700;
}
.toc .toc-l3 { margin-left: 1.4rem; }
.toc .toc-l3::before { content: "– "; color: #b0b0b0; }
.toc a { color: var(--body); }
.toc a:hover { color: var(--red); text-decoration: underline; }

/* -------------------------------------------------------------- FAQ */

.faq-section { margin-top: 2.6rem; }
.faq-heading { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 1.2rem; }

.faq-accordion .accordion-item { border: 1px solid var(--line); margin-bottom: .55rem; border-radius: 6px; }
.faq-accordion .accordion-button {
  font-family: var(--sans); font-weight: 700; color: var(--ink);
  font-size: 1rem; padding: .85rem 1.1rem; background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) { background: var(--cream); color: var(--red); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq-accordion .accordion-body { padding: .3rem 1.1rem 1.1rem; }

.faq-open .faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-open .faq-item:last-child { border-bottom: 0; }
.faq-q { font-size: 1.05rem; margin: 0 0 .4rem; }
.faq-a { color: var(--body); }

/* ------------------------------------------------------------- Sidebar */

.page-sidebar { display: grid; gap: 20px; position: sticky; top: 120px; }
@media (max-width: 991.98px) { .page-sidebar { position: static; } }

.side-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 18px 20px;
}
.side-heading {
  font-family: var(--display); font-weight: 700; font-size: 1.2rem;
  color: var(--ink); margin: 0 0 .9rem;
}
.side-heading .hl { color: var(--red); }

/* Compact: a portrait thumbnail beside the name, not a full-width photo. */
.side-doctor-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1rem; }
.side-doctor-img {
  flex: 0 0 84px; width: 84px; height: 84px;
  border-radius: 50%; object-fit: cover; object-position: top center;
  border: 3px solid var(--line); display: block;
}
.side-doctor-name { font-family: var(--display); font-size: 1.2rem; margin: 0 0 .15rem; line-height: 1.2; }
.side-doctor-role { font-size: .84rem; line-height: 1.45; margin: 0; }
.side-doctor-reg { font-size: .78rem; color: #8a8a8a; margin: .3rem 0 0; }
.side-doctor .btn { width: 100%; justify-content: center; }

.side-form .booking-form label { font-size: .9rem; }
.side-form .btn-submit { min-width: 100%; }
.side-form .captcha-box { max-width: 100%; }

.side-posts { list-style: none; margin: 0; padding: 0; }
.side-posts li { border-bottom: 1px solid var(--line); }
.side-posts li:last-child { border-bottom: 0; }
.side-posts a { display: flex; gap: .7rem; padding: .7rem 0; align-items: flex-start; color: var(--ink); }
.side-post-thumb { flex: 0 0 68px; }
.side-post-thumb img { width: 68px; height: 50px; object-fit: cover; border-radius: 4px; display: block; }
.side-post-title { display: block; font-size: .9rem; line-height: 1.35; font-weight: 600; }
.side-posts time { font-size: .78rem; color: #9a9a9a; }
.side-posts a:hover .side-post-title { color: var(--red); }

.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem 0; color: var(--body); font-size: .93rem;
}
.side-links i { color: var(--red); font-size: .8rem; }
.side-links a:hover, .side-links a.active { color: var(--red); }
.side-links .count { margin-left: auto; color: #a8a8a8; font-size: .8rem; }

.side-search { display: flex; gap: .4rem; }
.side-search input {
  flex: 1; min-width: 0; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .7rem; font: inherit;
}
.side-search input:focus { outline: none; border-color: var(--red); }

/* ----------------------------------------------------------- Blog list */

.list-summary { margin-bottom: 1.2rem; font-size: .95rem; }
.list-summary a { margin-left: .5rem; font-weight: 600; }
.empty-note { color: #8a8a8a; }

.post-excerpt { font-size: .92rem; margin: 0 0 .8rem; }

.pagination-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 2rem; }
.pagination-nav a, .pagination-nav span {
  min-width: 38px; text-align: center; padding: .4rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--body); font-size: .9rem; background: #fff;
}
.pagination-nav a:hover { border-color: var(--red); color: var(--red); }
.pagination-nav span[aria-current] { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

.more-posts { margin-top: 3rem; }
.more-posts .h-display { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin-bottom: 1.2rem; }

/* --------------------------------------------------------- Contact page */

.section-contact-info { background: var(--cream); }
.contact-line { display: flex; gap: .6rem; margin-bottom: .8rem; flex-wrap: wrap; align-items: baseline; }
.contact-line i { color: var(--red); width: 1.1rem; }
.map-embed iframe, .map-embed > * { width: 100%; min-height: 340px; border: 0; border-radius: 8px; }

/* ------------------------------------------------------- The contact page */

/* The body above the block is only the doctor's name and title, so it gets
   the room a short introduction needs rather than a full article's. */
.page-contact-us .section-page { padding-block: 40px 30px; }
.page-contact-us .rich-page h2:first-child { margin-top: 0; }
.page-contact-us .rich-page { font-size: 1.06rem; max-width: 62ch; }


.section-contact { background: var(--cream); padding-block: 52px; }

/* The numbers first: what most people came for. */
.contact-cards {
  display: grid; gap: 16px; margin-bottom: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 20px 18px; position: relative;
  border-top: 3px solid var(--red);
}
.contact-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(214, 26, 35, .08); color: var(--red);
  margin-bottom: .7rem; font-size: .95rem;
}
.contact-card-title {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  color: var(--ink); margin: 0 0 .45rem; line-height: 1.25;
}
.contact-card-numbers { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.contact-card-numbers a { color: var(--red); font-weight: 700; font-size: 1.02rem; }
.contact-card-numbers a:hover { text-decoration: underline; }
.contact-card-note { margin: .45rem 0 0; font-size: .84rem; color: #6b6b6b; }

.contact-main { align-items: stretch; }

.contact-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 26px 26px 24px; height: 100%;
}
.contact-panel > .h-display { margin: 0 0 1.1rem; font-size: clamp(1.3rem, 2.3vw, 1.7rem); }

.contact-address { display: flex; gap: .6rem; margin: 0 0 1.2rem; font-size: 1.02rem; }
.contact-address i { color: var(--red); margin-top: .25rem; }

.contact-details { margin: 0; }
.contact-details dt {
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  color: var(--ink); margin-top: 1rem; line-height: 1.3;
  display: flex; gap: .5rem; align-items: baseline;
}
.contact-details dt i { color: var(--red); width: 1rem; flex: none; }
.contact-details dd { margin: .2rem 0 0 1.5rem; font-size: .96rem; }
.contact-details dd a { color: var(--body); }
.contact-details dd a:hover { color: var(--red); text-decoration: underline; }

.contact-wa { margin-top: 1.6rem; display: inline-flex; align-items: center; gap: .5rem; }

.contact-main .map-embed { height: 100%; }
.contact-main .map-embed iframe { min-height: 420px; height: 100%; }

/* The enquiry form, which on this page has no sidebar to live in. */
.contact-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 32px; margin-top: 2.4rem;
}
.contact-form-card > .h-display { margin: 0 0 .35rem; }
.contact-form-lead { margin: 0 0 1.4rem; color: #6b6b6b; }

@media (max-width: 991.98px) {
  .contact-main .map-embed iframe { min-height: 320px; }
}
@media (max-width: 575.98px) {
  .contact-panel, .contact-form-card { padding: 20px 18px; }
  .contact-details dd { margin-left: 0; }
}

/* ==========================================================================
   Gallery — before/after pairs, image grid, lightbox
   ========================================================================== */

.section-gallery { background: var(--cream); }

/* ------------------------------------------------------- Before / after */

.ba-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px; margin-top: 1.6rem;
}
@media (max-width: 767.98px) { .ba-grid { grid-template-columns: 1fr; } }

.ba-item {
  margin: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden;
}
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.ba-side { position: relative; background: #fff; }
.ba-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ba-label {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  background: rgba(1, 22, 44, .82); color: #fff;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: .18rem .5rem; border-radius: 3px;
}
.ba-label.ba-after { background: var(--red); }
.ba-item figcaption { padding: 12px 16px; display: grid; gap: .2rem; font-size: .92rem; }
.ba-item figcaption strong { color: var(--ink); }

.ba-disclaimer {
  margin: 1rem 0 0; font-size: .82rem; color: #8a8a8a;
  text-align: center; font-style: italic;
}

/* ------------------------------------------------------------ Image grid */

.gal-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-top: 1.6rem;
}
@media (max-width: 991.98px) { .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) { .gal-grid { grid-template-columns: 1fr; } }

.gal-item { margin: 0; }
.gal-open {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #fff; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line);
}
.gal-open img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.gal-open:hover img { transform: scale(1.05); }
.gal-item figcaption { font-size: .86rem; margin-top: .45rem; color: var(--body); }

/* --------------------------------------------------------------- Lightbox */

.lightbox {
  position: fixed; inset: 0; z-index: 1060;
  background: rgba(0, 0, 0, .9);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px; padding: 20px;
}
.lightbox[hidden] { display: none; }

.lb-figure { margin: 0; text-align: center; max-height: 90vh; }
.lb-figure img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  display: block; margin: 0 auto; border-radius: 6px;
}
.lb-figure figcaption { color: rgba(255, 255, 255, .85); margin-top: .8rem; font-size: .9rem; }

.lightbox button {
  border: 0; border-radius: 50%;
  width: 46px; height: 46px;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.1rem; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { position: absolute; right: 18px; top: 18px; z-index: 2; }

@media (max-width: 575.98px) {
  .lightbox { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-prev, .lb-next { position: static; }
  .lb-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .lb-next { grid-column: 1; grid-row: 2; justify-self: end; }
  .lb-figure { grid-row: 1; }
}

/* ==========================================================================
   Content-block treatments
   Elementor supplied these with generated CSS that did not survive the
   migration. The markup did, so the styling is reproduced here from the
   original design: #494949 bars and borders, #F1F1F1 fill, #2CAEE2 headings.
   ========================================================================== */

/* ------------------------------------------------- Collapsible sections */
/* Native <details>/<summary> — collapsed by default, which is the point:
   these hold long lists that would otherwise make the page enormous. */

.rich-page details {
  margin: 0 0 8px;
  border-radius: 2px;
}
.rich-page details + details { margin-top: 0; }

.rich-page summary {
  background: #494949;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  line-height: 1.3;
  padding: 13px 58px 13px 20px;
  cursor: pointer;
  position: relative;
  list-style: none;                 /* Firefox */
  scroll-margin-top: 130px;
}
.rich-page summary::-webkit-details-marker { display: none; }   /* Safari/Chrome */

.rich-page summary:hover { background: #3c3c3c; }
.rich-page summary:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }

.rich-page summary::after {
  content: "\f103";                 /* fa-angles-down */
  font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .95rem;
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
}
.rich-page details[open] > summary::after { content: "\f100"; }  /* fa-angles-left */

/* The panel body: indented to line up with the bar, on white. */
.rich-page details[open] {
  border: 1px solid var(--line);
  border-top: 0;
  padding-bottom: 14px;
  background: #fff;
}
.rich-page details[open] > :not(summary) { padding-inline: 20px; }
.rich-page details[open] > ul,
.rich-page details[open] > ol { padding-inline: 44px; margin-top: 1rem; }

/* ------------------------------------------------------------ Info boxes */
/* Two-up callout boxes — a wide one beside a narrow stat box. */

.rich-page .info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
  margin: 1.8rem 0;
  align-items: start;
}
@media (max-width: 767.98px) { .rich-page .info-grid { grid-template-columns: 1fr; } }

.rich-page .info-box {
  background: #f1f1f1;
  border: 3px solid #494949;
  padding: 20px 24px;
}
.rich-page .info-box .info-title {
  color: #2caee2;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  line-height: 1.25;
  margin: 0 0 .75rem;
}
.rich-page .info-box p:not(.info-title) {
  color: #000;
  font-weight: 700;
  margin: 0;
}
.rich-page .info-box em { font-style: italic; }

/* The enquiry form on the contact page, which has no sidebar to hold it. */
.contact-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 26px 28px; margin-top: 1.4rem;
}
.contact-form-card > .h-display { margin: 0 0 1.2rem; }
@media (max-width: 575.98px) { .contact-form-card { padding: 20px 18px; } }

/* ----------------------------------------------------------- Tab groups */
/* Rebuilt from Elementor's nested-tabs widget by tools/migrate_pages.php.
   Several groups can sit on one page, so the script scopes itself to the
   .content-tabs a button belongs to rather than to the document. */

.rich-page .content-tabs { margin: 1.8rem 0; }

.rich-page .content-tabs-nav {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 1.2rem;
}
.rich-page .content-tab {
  border: 0; background: var(--red); color: #fff;
  font-family: var(--display);
  font-weight: 600; font-size: clamp(.9rem, 1.4vw, 1.05rem);
  line-height: 1.25;
  padding: .7rem 1.1rem;
  text-align: left;
  cursor: pointer;
}
.rich-page .content-tab:hover { background: var(--red-dark); }
.rich-page .content-tab.is-active,
.rich-page .content-tab.is-active:hover { background: #494949; }
.rich-page .content-tab:focus-visible { outline: 3px solid #494949; outline-offset: 2px; }

.rich-page .content-panel { display: none; }
.rich-page .content-panel.is-active { display: block; }
.rich-page .content-panel > :first-child { margin-top: 0; }
.rich-page .content-panel img { max-width: 100%; height: auto; }

@media (max-width: 575.98px) {
  .rich-page .content-tabs-nav { flex-direction: column; }
  .rich-page .content-tab { width: 100%; }
}
/* A third menu level: a label with its items indented beneath it. */
.site-header .dropdown-group { padding: .35rem 0 .15rem; border-top: 1px solid var(--line); }
.site-header .dropdown-group:first-child { border-top: 0; }
.site-header .dropdown-group-label {
  display: block; padding: .3rem 1.1rem;
  font-family: var(--display); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .5px;
  color: #9a9a9a;
}
.site-header a.dropdown-group-label:hover { color: var(--red); background: transparent; }
.site-header .dropdown-group ul { list-style: none; margin: 0; padding: 0; }
.site-header .dropdown-group .dropdown-item { padding-left: 1.8rem; }
