:root {
  --primary-blue: #1b4f9c;
  --dark-blue: #0d3b7a;
  --accent-red: #e63946;
  --accent-purple: #6a3ab2;
  --light-bg: #f2f4f7;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
}
* { box-sizing: border-box; }
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

/* Wider container to match live site (Divi uses 1180px content / fullwidth sections) */
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  max-width: 1180px;
}
@media (min-width: 1400px) {
  .container { max-width: 1180px; }
}

/* ===== Top Bar ===== */
.top-bar {
  background: #00345b;
  font-size: 13px;
  color: #fff;
}
.top-bar .top-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
}
.top-phone, .top-email {
  padding: 14px 22px;
  color: #EDF000;
  font-weight: 700;
  display: flex;
  align-items: center;
  font-size: 22px;
  letter-spacing: 0.3px;
}
.top-phone i { font-size: 18px; margin-right: 10px; }
.top-email {
  color: #fff;
  font-weight: 400;
  font-size: 14px;
}
.top-email i { font-size: 14px; }
.top-email a { color: #fff; text-decoration: none; }
.top-clinic {
  background: #e02b20;
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  font-size: 12px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.2);
  text-transform: uppercase;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.top-clinic:hover { background: #c81f15; color: #fff; }
.top-clinic strong { font-size: 12px; }
.top-clinic span { font-size: 11px; opacity: 0.95; }
.top-book {
  background: #0C71C3;
  color: #fff !important;
  padding: 12px 26px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 13px;
}
.top-book:hover { background: #095a9a; }

/* ===== Header / Nav ===== */
.main-header {
  background: #fff;
  padding: 12px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.logo {
  display: inline-block;
  text-decoration: none;
}
.logo img {
  height: 80px;
  width: auto;
  display: block;
}
@media (max-width: 767px) {
  .logo img { height: 60px; }
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 0;
  position: relative;
}
.nav-menu a.active,
.nav-menu a:hover { color: var(--primary-blue); }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: #6cbf3c;
}

/* ===== Nav Dropdown ===== */
.nav-menu li.has-dropdown { position: relative; }
.nav-menu .dropdown-menu-custom {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 220px;
  background: #fff;
  border-top: 3px solid var(--primary-blue);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 8px 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}
.nav-menu li.has-dropdown:hover > .dropdown-menu-custom,
.nav-menu li.has-dropdown:focus-within > .dropdown-menu-custom {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu .dropdown-menu-custom li { width: 100%; }
.nav-menu .dropdown-menu-custom a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}
.nav-menu .dropdown-menu-custom a:hover {
  background: #f4f6f9;
  color: var(--primary-blue);
}
.nav-menu .dropdown-menu-custom a::after { display: none; }
.nav-menu li.has-dropdown > a { cursor: pointer; }

/* ===== Hero Carousel ===== */
.hero-carousel { background: #fff; }
.hero-carousel .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  .hero-carousel .carousel-item img { height: 220px; }
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  background-color: rgba(108, 191, 60, 0.85);
  border-radius: 50%;
  padding: 18px;
  background-size: 50%;
}
.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--primary-blue);
}

/* ===== Page Hero (inner pages like About) ===== */
.page-hero {
  background: #1b1b1b;
  color: #fff;
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  margin: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.page-hero.blue { background: #1f5f9c; }
.page-hero.gray { background: #6e7480; }
.page-hero.slate { background: #3a4654; }

/* ===== Captioned Gallery (Diagnosed / Photo Gallery) ===== */
.captioned-section { padding: 70px 0 90px; background: #fff; }
.captioned-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.captioned-grid .cap-item {
  text-align: left;
}
.captioned-grid .cap-thumb {
  width: 100%;
  background: #f4f6f9;
  border-radius: 4px;
  cursor: zoom-in;
  overflow: hidden;
}
.captioned-grid .cap-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s;
}
.captioned-grid .cap-thumb:hover img { transform: scale(1.04); }
.captioned-grid .cap-caption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark);
}
@media (max-width: 991px) { .captioned-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .captioned-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Testimonials Page Grid ===== */
.testimonials-page { padding: 70px 0 90px; background: #fff; }
.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.tgrid .tcard {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tgrid .tcard .tmeta {
  flex: 0 0 34%;
  text-align: center;
  padding-top: 8px;
}
.tgrid .tcard .tmeta .tname {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 6px;
}
.tgrid .tcard .tmeta .tloc {
  font-size: 13px;
  color: #6cbf3c;
}
.tgrid .tcard .tquote {
  flex: 1;
  background: #f4f6f9;
  border-radius: 3px;
  padding: 18px 20px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dark);
  font-style: italic;
  position: relative;
}
.tgrid .tcard .tquote::before {
  content: '\201C';
  color: #c9d3df;
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
  position: absolute;
  top: 6px; left: 8px;
}
.tgrid .tcard .tquote p { margin: 14px 0 0; }
@media (max-width: 991px) { .tgrid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 600px) { .tgrid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .captioned-grid { grid-template-columns: 1fr; } }

/* ===== Video Gallery ===== */
.videos-section { padding: 70px 0 90px; background: #fff; }
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.videos-grid .video-tile {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.videos-grid .video-tile .video-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.videos-grid .video-tile .video-caption {
  padding: 14px 16px 18px;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 991px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .videos-grid { grid-template-columns: 1fr; } }

/* ===== Outstanding Results ===== */
.results-section {
  padding: 60px 0 80px;
  background: #fff;
}
.result-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}
.result-row:last-child { border-bottom: none; }
.result-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: block;
}
.result-content h3 {
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
}
.result-content p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.result-content ul {
  padding-left: 22px;
  margin-bottom: 12px;
}
.result-content ul li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 4px;
}
.result-content .courtesy {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}
@media (max-width: 767px) {
  .result-row { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
}

/* ===== Media Gallery ===== */
.media-section {
  padding: 70px 0 90px;
  background: #fff;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: start;
}
.media-grid .media-item {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.media-grid .media-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}
.media-grid .media-item img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 991px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .media-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 400px) { .media-grid { grid-template-columns: 1fr; } }

/* ===== Homepage Popup (matches live SGPB image popup) ===== */
.hp-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.hp-popup-overlay.active { display: flex; }
.hp-popup-box {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 640px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 18px 60px rgba(0,0,0,0.4);
  animation: hpPopupSwing 0.9s ease-out;
}
.hp-popup-box img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.hp-popup-close {
  position: absolute;
  top: 4px; right: 4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hp-popup-close:hover { background: #000; }
@keyframes hpPopupSwing {
  0%   { transform: rotate(-8deg) scale(0.85); opacity: 0; }
  30%  { transform: rotate(5deg)  scale(1.02); opacity: 1; }
  60%  { transform: rotate(-3deg) scale(0.99); }
  100% { transform: rotate(0deg)  scale(1);    opacity: 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 95%;
  max-height: 95vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  color: #fff;
  font-size: 36px;
  background: none;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

/* ===== Service Page Article Card ===== */
.service-page {
  background: #f4f6f9;
  padding: 60px 0 80px;
}
.service-card-wrap {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  padding: 60px 70px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card-wrap h2 {
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 700;
  margin: 22px 0 14px;
}
.service-card-wrap h2:first-child { margin-top: 0; }
.service-card-wrap p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.service-card-wrap ul {
  padding-left: 22px;
  margin-bottom: 20px;
}
.service-card-wrap ul li {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.service-card-wrap img.inline-img {
  display: block;
  margin: 24px auto;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.service-card-wrap a.highlight {
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: underline;
}
@media (max-width: 767px) {
  .service-card-wrap { padding: 30px 22px; }
}

/* ===== Contact Schedule Table ===== */
.contact-section {
  padding: 70px 0;
  background: #fff;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text-dark);
}
.schedule-table th,
.schedule-table td {
  padding: 22px 24px;
  vertical-align: middle;
  border: 1px solid #e7e7e7;
}
.schedule-table thead th {
  font-weight: 700;
  color: var(--text-dark);
  background: #fff;
  font-family: 'Poppins', sans-serif;
}
.schedule-table tbody td {
  font-size: 13px;
  line-height: 1.5;
}
.schedule-table tbody tr:nth-child(odd) td {
  background: #fcfcfc;
}

/* ===== Map Grid ===== */
.map-section {
  padding: 30px 0 70px;
  background: #fff;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.map-grid iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 4px;
  display: block;
}
@media (max-width: 991px) {
  .map-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .map-grid { grid-template-columns: 1fr; }
  .schedule-table { font-size: 12px; }
  .schedule-table th,
  .schedule-table td { padding: 12px; }
}

/* ===== Children Heart Care Banner ===== */
.chc-banner {
  background: var(--dark-blue);
  color: #fff;
  padding: 28px 0;
}
.chc-banner .row { align-items: center; }
.chc-banner h3 {
  color: #ffcc00;
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}
.chc-banner .chc-link {
  color: #cfe2ff;
  font-size: 13px;
  display: block;
  margin-bottom: 8px;
}
.chc-banner p { font-size: 14px; margin: 0; color: #e6eefb; }
.chc-banner a.under { color: #ffcc00; text-decoration: underline; }
.chc-logo {
  background: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  color: var(--accent-red);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
  display: inline-block;
  text-align: center;
}
.chc-logo small { display: block; color: var(--primary-blue); font-size: 11px; font-weight: 500; letter-spacing: 0.5px; }
.chc-logo .heart-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.chc-logo .heart-row i { color: var(--accent-red); }

/* ===== Doctor Profile ===== */
.doctor-section {
  padding: 70px 0;
  background: #fff;
}
.doctor-img {
  width: 100%;
  max-width: 360px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.doctor-section h2 {
  color: var(--primary-blue);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
}
.doctor-section .credentials {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.doctor-block {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  align-items: flex-start;
}
.doctor-block .check {
  color: #6cbf3c;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.doctor-block h5 {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
}
.doctor-block ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-dark);
}
.doctor-block ul li::before {
  content: '– ';
  color: var(--text-muted);
}
.doctor-block p { font-size: 13px; margin: 0; color: var(--text-dark); }
.doctor-block a.contact-link { color: var(--accent-red); text-decoration: underline; }
.btn-about {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-top: 12px;
}
.btn-about:hover { background: #582b95; color: #fff; }

/* ===== About body paragraphs ===== */
.about-body {
  padding: 0 0 50px;
  background: #fff;
}
.about-body p {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* ===== Accordion ===== */
.about-accordion {
  background: #fff;
  padding: 0 0 80px;
}
.about-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #e7e7e7;
  background: transparent;
}
.about-accordion .accordion-button {
  background: transparent;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  padding: 18px 0;
  box-shadow: none;
}
.about-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--primary-blue);
  box-shadow: none;
}
.about-accordion .accordion-button::after {
  background: none;
  content: '+';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  transform: none;
  transition: background 0.2s;
  line-height: 1;
}
.about-accordion .accordion-button:not(.collapsed)::after {
  content: '−';
  background-color: var(--accent-red);
  transform: none;
}
.about-accordion .accordion-body {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dark);
}
.about-accordion .accordion-body ul {
  padding-left: 18px;
}
.about-accordion .accordion-body ul li {
  margin-bottom: 4px;
}

/* ===== Services ===== */
.services-section {
  background: var(--light-bg);
  padding: 80px 0;
}
.section-title {
  text-align: center;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 40px;
}
.service-card {
  background: #fff;
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}
.service-icon {
  color: var(--primary-blue);
  font-size: 38px;
  margin-bottom: 18px;
}
.service-card h5 {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* ===== Galleries ===== */
.gallery-section {
  padding: 80px 0;
  background: #fff;
}
.gallery-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-img:hover { transform: scale(1.03); }
.show-more-btn {
  background: var(--accent-purple);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 30px;
}
.show-more-btn:hover { background: #582b95; color: #fff; }
.gallery-add {
  background: #e8eef5;
  height: 170px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 36px;
  cursor: pointer;
}

.video-section {
  padding: 80px 0;
  background: var(--light-bg);
}
.video-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-dark);
  height: 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  line-height: 1.5;
}
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  display: block;
  text-decoration: none;
}
.video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.video-thumb:hover::after { background: rgba(0,0,0,0.1); }
.video-thumb .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px;
  background: var(--accent-red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.video-caption {
  padding: 14px 16px;
  font-size: 12px;
  text-align: center;
}

/* ===== Testimonials ===== */
.testimonials {
  background-color: #1a1a1a;
  color: #fff;
  padding: 80px 0;
  position: relative;
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url('https://fetalechoindelhi.com/wp-content/uploads/2020/04/testimonial-slider-background-black-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.testimonials .section-title { color: #fff; }
.testimonial-card {
  color: #fff;
  padding: 20px 10px;
}
.testimonial-card .name {
  font-weight: 600;
  text-align: center;
  margin-bottom: 2px;
}
.testimonial-card .meta {
  text-align: center;
  color: #bbb;
  font-size: 12px;
  margin-bottom: 18px;
}
.testimonial-quote {
  background: #fff;
  color: var(--text-dark);
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 2px;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  top: 4px; left: 10px;
  font-size: 36px;
  color: var(--accent-red);
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-quote::after {
  content: '\201D';
  position: absolute;
  bottom: -10px; right: 14px;
  font-size: 36px;
  color: var(--accent-red);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ===== Appointment ===== */
.appointment {
  background-image:
    linear-gradient(rgba(27,79,156,0.75), rgba(27,79,156,0.75)),
    url('https://fetalechoindelhi.com/wp-content/uploads/2020/04/make-an-appointment.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #fff;
  padding: 110px 0;
  text-align: center;
}
.appointment h2 {
  font-size: 38px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark-blue);
  color: #cfe2ff;
  padding: 50px 0 20px;
  font-size: 13px;
}
.footer h5 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}
.footer .sub {
  color: #cfe2ff;
  font-size: 12px;
  text-align: center;
  margin-bottom: 16px;
}
.footer p { font-size: 13px; line-height: 1.7; }
.footer a { color: #ffcc00; text-decoration: underline; }
.footer .read-more { display: block; text-align: center; margin-top: 10px; }
.footer-bottom-links {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 11px;
  line-height: 2;
  color: #b8cce8;
}
.footer-bottom-links a {
  color: #ffcc00;
  margin: 0 4px;
  text-decoration: none;
}
.footer-bottom-links a:hover { text-decoration: underline; }
.footer-bottom-links strong { color: #fff; }
.copyright {
  text-align: center;
  font-size: 11px;
  color: #b8cce8;
  margin-top: 20px;
}

/* ===== Floating Buttons ===== */
.float-btns {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.float-btn {
  width: 42px; height: 42px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.float-btn.phone { background: var(--accent-red); }
.float-btn.whatsapp { background: #25d366; }

/* ===== Mobile Hamburger Button ===== */
.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 28px;
  color: var(--primary-blue);
  cursor: pointer;
  padding: 6px 10px;
  line-height: 1;
}

/* =========================================================================
   RESPONSIVE — TABLET AND MOBILE
   ========================================================================= */

/* Tablet & below (<= 991px) */
@media (max-width: 991px) {
  /* Wider container so content uses available space */
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 100%;
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Top bar: hide clinic blocks, shrink phone */
  .top-bar .top-inner { flex-wrap: wrap; }
  .top-clinic { display: none; }
  .top-phone { font-size: 16px; padding: 10px 14px; }
  .top-phone i { font-size: 14px; margin-right: 6px; }
  .top-email { font-size: 12px; padding: 10px 14px; }
  .top-book { padding: 10px 16px; font-size: 11px; }

  /* Header: hide desktop menu, show hamburger */
  .main-header { padding: 10px 0; }
  .logo img { height: 56px; }
  .nav-menu { display: none; }
  .mobile-toggle { display: inline-flex; }

  /* Mobile slide-down menu */
  .nav-menu.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-top: 3px solid var(--primary-blue);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    gap: 0;
    padding: 0;
    z-index: 100;
  }
  .nav-menu.mobile-open li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .nav-menu.mobile-open li a {
    display: block;
    padding: 14px 22px;
    font-size: 14px;
  }
  .nav-menu.mobile-open li a.active::after { display: none; }
  .nav-menu.mobile-open li a.active { color: var(--primary-blue); font-weight: 700; }
  /* Mobile dropdowns become flat lists */
  .nav-menu.mobile-open .has-dropdown { position: static; }
  .nav-menu.mobile-open .dropdown-menu-custom {
    position: static;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: #f4f6f9;
    padding: 0;
  }
  .nav-menu.mobile-open .dropdown-menu-custom a {
    padding: 10px 36px;
    font-size: 13px;
  }
  .main-header .container { position: relative; }

  /* Hero carousel — keep responsive (already 220px on phones, but allow on tablets too) */
  .hero-carousel .carousel-item img { height: 320px; }

  /* Page hero text */
  .page-hero h1 { font-size: 32px; }
  .page-hero { padding: 60px 0 100px; }

  /* CHC banner stacks */
  .chc-banner h3 { font-size: 20px; text-align: center; }
  .chc-banner p, .chc-banner .chc-link { text-align: center; }
  .chc-banner img { display: block; margin: 16px auto 0; max-width: 280px !important; }

  /* Doctor section already uses bootstrap cols — just center photo and reduce padding */
  .doctor-section { padding: 50px 0; }
  .doctor-img { max-width: 280px; }
  .doctor-section h2 { font-size: 24px; }

  /* Services section padding */
  .services-section { padding: 60px 0; }
  .section-title { font-size: 24px; margin-bottom: 28px; }

  /* Photo gallery / video gallery padding */
  .gallery-section { padding: 50px 0; }
  .video-section { padding: 50px 0; }

  /* Testimonials */
  .testimonials { padding: 60px 0; }
  .testimonial-card { padding: 14px 4px; }

  /* Appointment */
  .appointment { padding: 70px 0; }
  .appointment h2 { font-size: 28px; }

  /* Footer */
  .footer { padding: 40px 0 16px; }
  .footer h5 { font-size: 16px; }
  .footer-bottom-links { font-size: 10px; line-height: 1.9; }

  /* Page hero (inner pages) — shorter */
  .page-hero { padding: 50px 0 80px; }

  /* Service article card */
  .service-page { padding: 40px 0 60px; }
  .service-card-wrap { padding: 28px 22px; }
  .service-card-wrap h2 { font-size: 19px; }

  /* Outstanding results — stack image + content */
  .result-row { grid-template-columns: 1fr; gap: 18px; padding: 24px 0; }
  .result-content h3 { font-size: 20px; }

  /* Contact schedule table — make it scroll */
  .schedule-table { font-size: 12px; min-width: 580px; }
  .schedule-table th, .schedule-table td { padding: 12px; }
}

/* Phone (<= 767px) */
@media (max-width: 767px) {
  /* Top bar: stack and shrink */
  .top-bar { font-size: 12px; }
  .top-bar .top-inner > .d-flex { flex-wrap: wrap; justify-content: center; width: 100%; }
  .top-phone { font-size: 14px; padding: 8px 12px; }
  .top-email { font-size: 11px; padding: 6px 12px; word-break: break-all; }
  .top-book { display: none; } /* on phones, the floating WhatsApp + Phone replace this */

  /* Logo smaller */
  .logo img { height: 48px; }

  /* Hero shorter */
  .hero-carousel .carousel-item img { height: 200px; }

  /* Page hero */
  .page-hero h1 { font-size: 26px; }
  .page-hero { padding: 40px 0 70px; }

  /* Section titles */
  .section-title { font-size: 22px; }

  /* Doctor section */
  .doctor-section { padding: 40px 0; }
  .doctor-img { max-width: 240px; }
  .doctor-section h2 { font-size: 22px; }
  .doctor-block h5 { font-size: 14px; }
  .doctor-block p, .doctor-block ul { font-size: 12px; }

  /* CHC logo image smaller */
  .chc-banner img { max-width: 240px !important; }

  /* Testimonials carousel stacks */
  .testimonials .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
  .testimonial-quote { font-size: 12px; padding: 14px 16px; }

  /* Appointment */
  .appointment { padding: 50px 0; }
  .appointment h2 { font-size: 24px; }

  /* Footer */
  .footer p { font-size: 12px; }
  .footer .sub { font-size: 11px; }

  /* About accordion */
  .about-accordion .accordion-button { font-size: 14px; padding: 14px 0; }
  .about-accordion .accordion-body { font-size: 13px; }
  .about-body p { font-size: 13px; }

  /* Floating buttons smaller on mobile */
  .float-btn { width: 38px; height: 38px; font-size: 16px; }
  .float-btns { right: 10px; gap: 8px; }

  /* Popup smaller margin */
  .hp-popup-overlay { padding: 14px; }
}

/* Tiny phones (<= 479px) */
@media (max-width: 479px) {
  .top-bar { font-size: 11px; }
  .top-phone { font-size: 13px; }
  .top-email { font-size: 10px; }
  .logo img { height: 42px; }
  .hero-carousel .carousel-item img { height: 160px; }
  .page-hero h1 { font-size: 22px; }
  .page-hero { padding: 32px 0 56px; }
  .doctor-section h2 { font-size: 20px; }
  .appointment h2 { font-size: 20px; }
  .section-title { font-size: 20px; }
  .service-card-wrap { padding: 22px 16px; }
  .result-img { max-width: 100%; }
  .testimonial-quote { font-size: 11px; }
}
