*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
}
body.page-ready .hero-left {
  opacity: 1;
  transform: translateX(0);
}
body.page-ready .hero-right img {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-container {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}
section {
  padding: 1px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s;
}

/* Custom styles for the Services Detail Page to prevent them from inheriting the homepage scroll-animation hiding (opacity 0) */
.services-detail {
  opacity: 1 !important;
  transform: none !important;
}
.service-detail-item {
  opacity: 1 !important;
  transform: none !important;
}

.services {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  padding: 100px 60px 40px;
  background: 0 0;
  overflow: hidden;
}
html {
  scroll-behavior: smooth;
}
.doctor-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(44px);
  transition: box-shadow 0.3s ease, opacity 0.7s ease, transform 0.7s ease;
  overflow: hidden;
}

.doctor-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.doctor-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.doctor-info h3 {
  margin: 0;
  font-size: 18px;
  color: #1e3a5f;
  flex: 1;
}

.doctor-toggle {
  font-size: 14px;
  color: #2b7db6;
  transition: transform 0.3s ease;
  display: inline-block;
  min-width: 16px;
}

.doctor-card.expanded .doctor-toggle {
  transform: rotate(180deg);
}

.doctor-details {
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  padding: 0 10px;
  margin-top: 0;
  max-height: 0;
}

.doctor-card.expanded .doctor-details {
  opacity: 1;
  padding: 12px 10px;
  margin-top: 10px;
}

.doctor-details p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
}
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 30px;
  margin-top: 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.service-card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 40px;
  background: #e9f3f9;
  font-size: 14px;
}
.top-right {
  display: flex;
  gap: 20px;
  align-items: center;
}
.top-right a {
  text-decoration: none;
  color: #1c6fa7;
  font-weight: 500;
  transition: 0.2s;
}
.top-right a:hover {
  color: #124d75;
}

@media (max-width: 900px) {
}

.nav-links a {
  text-decoration: none;
  color: #1a1717;
  font-weight: 550;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  position: relative;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.nav-links a.active-link {
  color: #ffd700 !important;
  border-bottom: 2px solid #ffd700;
  padding-bottom: 2px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  transition: 0.3s;
  margin-bottom: 20px;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary:hover {
  background: #1e5a8a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(43, 125, 182, 0.3);
}
.btn-secondary:hover {
  background: #2b7db6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(60, 141, 191, 0.3);
}
.hero-buttons .hero-services-btn {
  background: linear-gradient(135deg, #dff4ff 0%, #a8ddff 100%);
  color: #124d75;
  border: 1px solid rgba(18, 77, 117, 0.18);
  box-shadow: 0 12px 26px rgba(28, 111, 167, 0.16);
}
.hero-buttons .hero-services-btn:hover {
  background: linear-gradient(135deg, #cbeeff 0%, #86cefb 100%);
  color: #0d4568;
  box-shadow: 0 16px 32px rgba(28, 111, 167, 0.22);
}
.btn-appointment:hover {
  background: linear-gradient(135deg, #00a8b5 0%, #00949f 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(9, 186, 198, 0.6);
}
.hero-left {
  width: 50%;
  flex: 1;
  max-width: 550px;
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero-left h4 {
  margin-bottom: 10px;
  color: #222;
  font-size: 13px;
}
.hero-left h1 {
  font-size: 55px;
  color: #09bac6;
  margin-bottom: 15px;
}
.hero-left h1 span {
  color: #2b7db6;
}
.hero-left p {
  font-size: 16px;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.65;
}
.hero-right img {
  border-radius: 10px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 40px rgba(0, 0, 0, 0.25));
  max-width: 600px;
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  transition: opacity 1s ease 0.15s, transform 1s ease 0.15s;
}
section.show {
  opacity: 1;
  transform: translateY(0);
}
.hero-right {
  width: 50%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-right::before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  background: #eaf4ff;
  border-radius: 50%;
  z-index: -1;
}
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.logo-image {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(15, 56, 87, 0.2);
}
.logo span {
  font-weight: 600;
  opacity: 0.9;
}
.about {
  background: #f8fbfd;
  position: relative;
  padding: 64px 52px;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 420px;
  height: 420px;
  background: url("section2_sticker2.jpg") 0 0 / contain no-repeat;
  opacity: 0.18;
  pointer-events: none;
  filter: blur(1px);
}
.about-container {
  display: flex;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}
.about-text {
  flex: 1;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.about.show .about-text {
  opacity: 1;
  transform: translateY(0);
}
.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #254875;
}
.about-text p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 15px;
}
.about-features {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(42px);
  transition: transform 0.55s ease, box-shadow 0.35s ease, opacity 0.55s ease;
}
.about.show .feature-card {
  opacity: 1;
  transform: translateY(0);
}
.about.show .feature-card:nth-child(1) {
  transition-delay: 0.08s;
}
.about.show .feature-card:nth-child(2) {
  transition-delay: 0.16s;
}
.about.show .feature-card:nth-child(3) {
  transition-delay: 0.24s;
}
.about.show .feature-card:nth-child(4) {
  transition-delay: 0.32s;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: 14px;
  background: linear-gradient(120deg, #e5e5e5, #fff, #cfcfcf, #fff, #dcdcdc);
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: 6s linear infinite silverGlow;
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}
.feature-card h3 {
  color: #2b7db6;
  margin-bottom: 8px;
}
@keyframes silverGlow {
  0%,
  100% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.services-header {
  text-align: center;
  max-width: 800px;
  opacity: 0;
  transform: translateX(-150px);
  transition: 1s ease-out;
}
.services.show .services-header {
  opacity: 1;
  transform: translateX(0);
}
.services-header h2 {
  font-size: 40px;
  color: #1e3a5f;
  margin-bottom: 20px;
}
.services-header p {
  font-size: 16px;
  line-height: 1.65;
  color: #555;
}
.home-services {
  padding: 90px 52px 58px;
  background:
    radial-gradient(circle at top left, rgba(83, 176, 243, 0.16), transparent 34%),
    linear-gradient(180deg, #f7fbfe 0%, #eef5fb 100%);
}
.home-services-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(min(430px, 100%), 480px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.home-services-header {
  position: sticky;
  top: 110px;
  text-align: left;
  padding: 50px 42px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 111, 167, 0.1);
  box-shadow: 0 30px 76px rgba(30, 58, 95, 0.14);
  z-index: 4;
}
.home-services-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(83, 176, 243, 0.14);
  color: #1c6fa7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.home-services-header h2 {
  font-size: clamp(42px, 5.4vw, 58px);
  line-height: 1.01;
  margin-bottom: 18px;
}
.home-services-header p {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.home-services-carousel-wrapper {
  position: relative;
  margin-left: 0;
  padding: 20px 0 16px;
  overflow: hidden;
}
.home-services-carousel-wrapper::before {
  content: none;
  display: none;
}
.home-services-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1c6fa7;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(28, 111, 167, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.home-services-link:hover {
  background: #15567f;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(28, 111, 167, 0.26);
}
.home-services-grid {
  /* Horizontal, swipeable services row */
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 4px 16px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  user-select: auto;
}

/* Hide scrollbar (still scrollable) */
.home-services-grid::-webkit-scrollbar {
  height: 0;
}
.home-services-grid {
  scrollbar-width: none;
}
.home-service-card {
  position: relative;
  flex: 0 0 clamp(170px, 20vw, 210px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(28, 111, 167, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(30, 58, 95, 0.1);
  opacity: 0;
  transform: translateY(38px) scale(0.98);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}
.services.show .home-service-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.services.show .home-service-card:nth-child(1) {
  transition-delay: 0.08s;
}
.services.show .home-service-card:nth-child(2) {
  transition-delay: 0.14s;
}
.services.show .home-service-card:nth-child(3) {
  transition-delay: 0.2s;
}
.services.show .home-service-card:nth-child(4) {
  transition-delay: 0.26s;
}
.services.show .home-service-card:nth-child(5) {
  transition-delay: 0.32s;
}
.services.show .home-service-card:nth-child(6) {
  transition-delay: 0.38s;
}
.home-service-card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -70%;
  width: 45%;
  height: 180%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.72) 50%, rgba(255, 255, 255, 0.18) 58%, transparent 100%);
  transform: rotate(14deg);
  opacity: 0;
  pointer-events: none;
}
.home-service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(28, 111, 167, 0.22);
  box-shadow: 0 28px 60px rgba(28, 111, 167, 0.16);
}
.home-services-grid:hover .home-service-card {
  opacity: 0.74;
}
.home-services-grid:hover .home-service-card:hover {
  opacity: 1;
}

/* Glass effect also on keyboard / touch focus */
.home-service-card:focus-within {
  transform: translateY(-10px);
  border-color: rgba(28, 111, 167, 0.22);
  box-shadow: 0 28px 60px rgba(28, 111, 167, 0.16);
}
.home-service-card:focus-within::after {
  animation: cardGlassSweep 1s ease;
  opacity: 1;
}
.home-service-card:hover::after {
  animation: cardGlassSweep 1s ease;
  opacity: 1;
}
.home-service-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(135deg, #d6edf9, #f5fbff);
}
.home-service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 79, 121, 0.04) 0%, rgba(28, 111, 167, 0.26) 100%),
    linear-gradient(120deg, rgba(214, 237, 249, 0.18), transparent 45%);
  pointer-events: none;
}
.home-service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.92) contrast(1.03) brightness(0.98);
  transition: transform 0.45s ease, filter 0.45s ease;
}
.home-service-card:hover .home-service-media img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.05) brightness(1);
}
.services-card-image {
  position: relative;
}
.services-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 79, 121, 0.05) 0%, rgba(28, 111, 167, 0.24) 100%),
    linear-gradient(120deg, rgba(214, 237, 249, 0.16), transparent 45%);
  pointer-events: none;
}
.services-card-image img {
  filter: saturate(0.92) contrast(1.03) brightness(0.98);
}
.services-card:hover .services-card-image img {
  filter: saturate(1) contrast(1.05) brightness(1);
}
.home-service-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 18px;
  text-align: left;
}
.home-service-tag {
  color: #1c6fa7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.home-service-content h3 {
  margin: 0;
  color: #1e3a5f;
  font-size: 19px;
}
.home-service-content p {
  margin: 0;
  color: #5f6f7f;
  font-size: 15px;
  line-height: 1.6;
}
.home-services-grid .service-read-more,
.home-service-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 8px;
  color: #1c6fa7;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(83, 176, 243, 0.14), rgba(28, 111, 167, 0.06));
  border: 1px solid rgba(28, 111, 167, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.home-services-grid .service-read-more {
  font-size: 0;
}
.home-services-grid .service-read-more::after {
  content: "Read More ->";
  font-size: 14px;
}
.home-services-grid .service-read-more:hover,
.home-service-read-more:hover {
  transform: translateX(4px) translateY(-2px);
  color: #0f5888;
  border-color: rgba(28, 111, 167, 0.22);
  background: linear-gradient(135deg, rgba(83, 176, 243, 0.24), rgba(28, 111, 167, 0.12));
  box-shadow: 0 12px 24px rgba(28, 111, 167, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.home-service-read-more::after {
  content: "";
}
@supports (animation-timeline: view()) {
  .home-service-card::after {
    opacity: .75;
    animation-name: cardGlassSweep;
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timeline: view(block);
    animation-range: entry 15% cover 45%;
  }
}
@media (max-width: 1200px) {
  .home-services-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
    transform: none;
  }
  .home-services-header {
    position: relative;
    top: auto;
  }
  .home-services-carousel-wrapper {
    margin-left: 0;
    padding-top: 0;
  }
  .home-services-carousel-wrapper::before {
    width: 72px;
  }
}
@media (max-width: 900px) {
  .services {
    padding: 60px 25px;
  }
  .home-services {
    padding: 80px 24px 55px;
  }
  .services-header h2 {
    font-size: 32px;
  }
  .home-services-grid {
    padding-bottom: 14px;
  }
}

@media (hover: none) and (pointer: coarse) {
  /* Keep swipe smooth on mobile; avoid heavy hover transforms */
  .home-services-grid {
    user-select: none;
  }
  .home-service-card:hover {
    transform: none;
  }
}
@media (max-width: 600px) {
  .topbar {
    display: none;
  }
  .whatsapp-button {
    bottom: 15px;
    right: 15px;
    padding: 12px 18px;
    font-size: 14px;
  }
  .home-services {
    padding-left: 18px;
    padding-right: 18px;
  }
  .home-services-header {
    padding: 24px 20px;
    border-radius: 22px;
  }
  .home-services-carousel-wrapper {
    margin: 0 -6px;
    padding: 0 6px;
  }
  .home-services-carousel-wrapper::before,
  .home-services-carousel-wrapper::after {
    width: 18px;
  }
  .home-services-grid {
    gap: 16px;
    padding: 10px 0 14px;
  }
  .home-service-card {
    flex-basis: 82vw;
    border-radius: 22px;
  }
  .home-service-content {
    padding: 20px 18px 22px;
  }
  .home-service-content h3 {
    font-size: 24px;
  }
}
.doctors {
  padding: 32px 52px 92px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doctors-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  margin: 40px auto 0;
  padding: 0 20px;
}

.carousel-container {
  overflow: hidden;
  border-radius: 10px;
  flex: 1;
  max-width: calc(100vw - 170px);
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

.carousel-btn {
  background: #2b7db6;
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: #1e5a8a;
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #2b7db6;
  width: 30px;
  border-radius: 6px;
}
.section-title {
  font-size: 36px;
  margin-bottom: 60px;
  color: #1e3a5f;
  width: 100%;
}
.doctor-list {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 80px;
  flex-wrap: wrap;
}
.doctor-card::after {
  display: none;
}
.doctor-card::before {
  display: none;
}
.doctor-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  border-radius: 8px;
  transition: transform 0.4s;
}

.doctor-card:hover .doctor-img {
  transform: scale(1.08);
}


@media (max-width: 900px) {
  .doctors {
    padding: 40px 20px 80px;
  }
  .doctors-carousel {
    gap: 15px;
    padding: 0 10px;
  }
  .carousel-container {
    max-width: calc(100vw - 140px);
  }
  .doctor-card {
    width: 280px;
    flex-shrink: 0;
  }
  .doctor-img {
    width: 120px;
    height: 120px;
  }
}
.query-section {
  padding: 88px 20px;
  text-align: center;
  background: #f7f9fc;
}
.query-section h2 {
  font-size: 34px;
  margin-bottom: 40px;
  color: #1e3a5f;
}
.query-form input,
.query-form textarea {
  background: 0 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #334155;
  font-family: inherit;
  font-size: 15px;
  outline: 0;
  padding: 16px 14px 10px;
  transition: 0.2s;
  width: 100%;
}
.query-form button {
  width: 100%;
  font-weight: 600;
  background: #2b7db6;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}
.query-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  overflow: hidden;
}
.query-left {
  flex: 1;
  opacity: 0;
  transform: translateX(-50px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.reviews-right {
  opacity: 0;
  transform: translateX(50px);
  transition:
    opacity 0.8s,
    transform 0.8s;
  flex: 1;
}
.query-section.active .query-left,
.query-section.active .reviews-right {
  opacity: 1;
  transform: translateX(0);
}
.query-left h2 {
  font-size: 34px;
  margin-bottom: 25px;
  color: #1e3a5f;
}
.query-form {
  background: #fff;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.query-form button:hover {
  background: #1c5f8d;
}
.reviews-right h2 {
  font-size: 34px;
  margin-bottom: 25px;
  color: #1e3a5f;
}
.reviews-scroll-container {
  height: 480px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.reviews-scroll-container::after,
.reviews-scroll-container::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  z-index: 2;
  pointer-events: none;
}
.reviews-scroll-container::before {
  top: 0;
  background: linear-gradient(to bottom, #f7f9fc 0, transparent 100%);
}
.reviews-scroll-container::after {
  bottom: 0;
  background: linear-gradient(to top, #f7f9fc 0, transparent 100%);
}
.reviews-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: 18s linear infinite scrollUp;
  will-change: transform;
  transform: translateZ(0);
}
.reviews-scroll-container:hover .reviews-scroll-track {
  animation-play-state: paused;
}
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-50% - 10px));
  }
}
.review-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(26px);
  transition: transform 0.45s ease, box-shadow 0.3s ease, opacity 0.45s ease;
}
.query-section.active .review-card {
  opacity: 1;
  transform: translateY(0);
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.review-card p {
  font-size: 15px;
  color: #555;
  margin: 10px 0;
}
.review-card h4 {
  color: #2b7db6;
}
.query-form input:hover,
.query-form textarea:hover {
  border-color: #94a3b8;
}
.query-form input:focus,
.query-form textarea:focus {
  border-color: #2b7db6;
  box-shadow: 0 0 0 3px rgba(43, 125, 182, 0.2);
}
.query-form textarea {
  height: 120px;
  resize: vertical;
}
.form-group {
  background: 0 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  left: 12px;
  padding: 0 6px;
  pointer-events: none;
  position: absolute;
  top: 15px;
  transition: 0.2s;
  background: 0 0;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group textarea:valid + label {
  background: #fff;
  color: #2b7db6;
  font-size: 13px;
  font-weight: 600;
  top: -10px;
  left: 10px;
}
.map-section {
  position: relative;
  padding: 100px 5%;
  background: #ffffff;
  overflow: hidden;
}



.map-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.map-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 15px;
}

.map-header p {
  font-size: 18px;
  color: #64748b;
}

.map-container {
  max-width: 1200px;
  margin: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  z-index: 2;
}

.map-left {
  flex: 1.2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(43, 125, 182, 0.15);
  border: 5px solid #fff;
}

.map-right {
  flex: 0.8;
  text-align: left;
  background: transparent; /* No container styling */
}

.map-right h3 {
  font-size: 34px;
  color: #1e3a5f;
  margin-bottom: 25px;
  font-weight: 700;
}

.map-right p {
  font-size: 18px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}

.map-right p a {
  color: #1e3a5f;
  transition: 0.3s;
  font-weight: 500;
}

.map-right p a:hover {
  color: #2b7db6;
}

.direction-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 16px 36px;
  background: #2b7db6;
  color: #fff !important;
  font-size: 18px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(43, 125, 182, 0.3);
  transition: 0.3s transform, 0.3s box-shadow;
}

.direction-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(43, 125, 182, 0.4);
}

@media (max-width: 900px) {
  .map-container {
    flex-direction: column;
    gap: 40px;
  }
}
.footer-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.doctor-card.show {
  opacity: 1;
  transform: translateY(0);
}
.doctor-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}
@media (max-width: 900px) {
  .topbar {
    padding: 10px 15px;
  }
  .topbar-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
  }
  .nav-links.active {
    right: 0;
  }
  .close-menu {
    background: none;
    border: none;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 1;
  }
  .nav-links li:not(.mobile-close-li) {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 10px !important;
    font-size: 18px !important;
    color: #333 !important;
    font-weight: 500 !important;
    border-radius: 0;
    text-align: left;
  }
  .nav-links a.active-link {
    color: #2883c5 !important;
    background: rgba(40, 131, 197, 0.05);
    border-bottom: none !important;
    font-weight: 700 !important;
  }
  .nav-links a:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: none;
    color: #2883c5 !important;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 40px 20px;
  }
  .hero-left h1 {
    font-size: 36px;
  }
  .hero-left h4 {
    font-size: 13px;
    color: #2b7db6;
  }
  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
  }
  .hero-buttons a {
    flex: 1;
    min-width: 120px;
    box-sizing: border-box;
    padding: 12px 15px;
    font-size: 14px;
  }
  .query-container {
    flex-direction: column;
    gap: 40px;
  }
  .query-left,
  .reviews-right {
    width: 100%;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

/* --- Fixed Mobile Optimizations --- */
@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    height: auto;
    min-height: 100svh;
    padding: 0;
    background: #f5f5f5;
  }
  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(250, 246, 240, 0.95) 0%,
      rgba(248, 245, 240, 0.88) 40%,
      rgba(246, 244, 240, 0.68) 62%,
      rgba(240, 245, 242, 0.08) 100%
    );
  }
  .hero-container {
    padding: 110px 20px 60px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .hero-left {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
  .hero-left h4 {
    font-size: 12px;
    color: #2b7db6;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .hero-left h1 {
    font-size: 32px;
    margin: 15px 0;
  }
  .hero-left p {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.55;
    color: #444;
  }
  .hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: auto;
    flex-wrap: wrap;
  }
  .hero-buttons a {
    padding: 12px 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
  }
  .hero-right {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }
  .hero-right img {
    transform: translateY(0);
    object-position: center 20%;
  }
  .hero-right::before {
    background: linear-gradient(
      to bottom,
      rgba(250, 246, 240, 0.98) 0%,
      rgba(250, 246, 240, 0.88) 45%,
      rgba(250, 246, 240, 0.4) 65%,
      rgba(250, 246, 240, 0) 100%
    );
  }

  /* About Section */
  .about {
    padding: 34px 20px;
  }
  .about-container {
    gap: 30px;
  }
  .about-text h2 {
    font-size: 28px;
  }
  .feature-card {
    padding: 20px;
  }

  /* Prevent cards from squeezing */
  .about-features {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  /* Services & Doctors Padding */
  .services {
    padding: 34px 20px;
  }
  .services-header h2 {
    font-size: 28px;
  }
  .doctors {
    padding: 34px 20px 50px;
  }
  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Carousel for mobile */
  .doctors-carousel {
    gap: 10px;
    max-width: 100%;
    padding: 0 10px;
  }
  .carousel-container {
    max-width: calc(100vw - 120px);
    overflow: hidden;
  }
  .doctor-card {
    width: 280px;
    flex-shrink: 0;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
    flex-shrink: 0;
  }

  /* General Query & Review */
  .query-section {
    padding: 46px 20px;
  }
  .query-left h2, .reviews-right h2 {
    font-size: 28px;
  }

  /* Location & Footer */
  .map-section {
    padding: 34px 20px;
  }
  .logo-image {
    width: 44px;
    height: 44px;
  }

  /* --- Performance Optimizations to stop lag --- */
  .hero {
    background-attachment: scroll !important;
  }
  .about::before {
    display: none !important;
  }
  .feature-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  }
  .feature-card::before {
    animation: none !important;
    display: none !important;
  }
  .doctor-img {
    animation: none !important;
    filter: none !important;
  }
  .doctor-card::before, .doctor-card::after {
    display: none !important;
  }
  
  /* Disable heavy hover shadows on touch devices */
  .service-card:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  }
  .service-card:hover .service-img-box {
    background: transparent !important;
    box-shadow: none !important;
  }
  .service-card:hover img {
    transform: none !important;
  }

  /* Services Detail Page Optimizations */
  .service-detail-item {
    flex-direction: column !important;
    gap: 0px !important;
  }
  .service-detail-item.reverse {
    flex-direction: column !important;
  }
  .service-detail-item .service-info {
    padding: 30px 20px !important;
  }
  .service-detail-item .service-img {
    width: 100%;
    min-height: 200px;
  }
}

/* ===== NEW SERVICES PAGE STYLES ===== */

/* Services Hero Section */
.services-hero {
  background-image:
    linear-gradient(135deg, rgba(43, 125, 182, 0.82) 0%, rgba(28, 111, 167, 0.88) 100%),
    var(--hero-image, url("https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&w=1600&q=80"));
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: white;
  padding: 94px 52px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><path d="M0,100 Q300,50 600,100 T1200,100 L1200,300 L0,300 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.5;
}

.services-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.services-hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
  font-weight: 700;
}

.services-hero p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

/* Services Section */
.services-section {
  padding: 64px 52px;
  background: #f8fbfd;
  opacity: 1 !important;
  transform: none !important;
}

.services-container {
  max-width: 1240px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 42px);
  color: #1e3a5f;
  margin: 0 0 15px;
  font-weight: 700;
  line-height: 1.12;
}

.section-header p {
  font-size: 15px;
  color: #5f6f7f;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.services-page-grid {
  align-items: stretch;
}

/* Auto-scroll behavior (reuses home services carousel styles) */
.services-grid.home-services-grid {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 4px 18px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
  cursor: grab;
  user-select: auto;
}

.services-grid.home-services-grid.is-auto-scrolling {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.services-grid.home-services-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.services-grid.home-services-grid::-webkit-scrollbar {
  height: 0;
}

.services-grid.home-services-grid {
  scrollbar-width: none;
}

.services-grid.home-services-grid .services-card {
  flex: 0 0 clamp(260px, 62vw, 380px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Services Card */
.services-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(28, 111, 167, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(30, 58, 95, 0.09), inset 0 1px 1px rgba(255, 255, 255, 0.65);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  scroll-behavior: smooth;
}
.services-card::after {
  content: "";
  position: absolute;
  inset: -28% auto auto -68%;
  width: 42%;
  height: 175%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.16) 58%, transparent 100%);
  transform: rotate(14deg);
  opacity: 0;
  pointer-events: none;
}

.services-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(28, 111, 167, 0.16), inset 0 1px 1px rgba(255,255,255,0.7);
  background: rgba(255, 255, 255, 0.96);
}
.services-card:hover::after {
  animation: cardGlassSweep 1s ease;
  opacity: 1;
}

.services-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e5f2f8, #f5fbff);
}

.services-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.services-card:hover .services-card-image img {
  transform: scale(1.05);
}

.services-card-content {
  padding: 26px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.services-card-content h3 {
  font-size: 24px;
  color: #1e3a5f;
  margin: 0;
  font-weight: 700;
  transition: color 0.3s ease;
  line-height: 1.2;
}

.services-card:hover .services-card-content h3 {
  color: #2b7db6;
}

.services-card-content p {
  font-size: 15px;
  color: #5f6f7f;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.services-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2b7db6;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  font-size: 14px;
  align-self: flex-start;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(83, 176, 243, 0.14), rgba(28, 111, 167, 0.06));
  border: 1px solid rgba(28, 111, 167, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.services-read-more:hover {
  color: #104f79;
  transform: translateX(4px) translateY(-2px);
  background: linear-gradient(135deg, rgba(83, 176, 243, 0.24), rgba(28, 111, 167, 0.12));
  border-color: rgba(28, 111, 167, 0.24);
  box-shadow: 0 12px 24px rgba(28, 111, 167, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
@supports (animation-timeline: view()) {
  .services-card::after {
    opacity: .75;
    animation-name: cardGlassSweep;
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timeline: view(block);
    animation-range: entry 15% cover 45%;
  }
}
@keyframes cardGlassSweep {
  0% {
    transform: translateX(-20%) rotate(14deg);
    opacity: 0;
  }
  20% {
    opacity: .9;
  }
  100% {
    transform: translateX(320%) rotate(14deg);
    opacity: 0;
  }
}

/* CTA Section */
.services-cta {
  background: linear-gradient(135deg, #2b7db6 0%, #1c5f8d 100%);
  color: #fff;
  padding: 46px 36px;
  text-align: center;
  border-radius: 28px;
  margin: 0;
  opacity: 1 !important;
  transform: none !important;
  box-shadow: 0 24px 48px rgba(28, 95, 141, 0.2);
}

.services-cta h2 {
  font-size: 36px;
  margin: 0 0 15px;
  font-weight: 700;
}

.services-cta p {
  font-size: 16px;
  margin: 0 0 30px;
  opacity: 0.95;
}

.services-next-steps {
  padding: 20px 52px 68px;
  background:
    radial-gradient(circle at top left, rgba(83, 176, 243, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, #eef7fc 100%);
  opacity: 1 !important;
  transform: none !important;
}

.services-next-steps-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr) minmax(260px, 0.9fr);
  gap: 24px;
}

.next-step-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(28, 111, 167, 0.12);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 40px rgba(30, 58, 95, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.next-step-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(214, 239, 251, 0.88));
}

.next-step-primary .cta-secondary {
  background: rgba(28, 111, 167, 0.1);
  color: #15567f;
  border: 1px solid rgba(28, 111, 167, 0.18);
}

.next-step-primary .cta-secondary:hover {
  background: rgba(28, 111, 167, 0.16);
  color: #0f4d74;
}

.next-step-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(83, 176, 243, 0.14);
  color: #1c6fa7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.next-step-card h2 {
  margin: 0 0 14px;
  color: #1e3a5f;
  font-size: 34px;
  line-height: 1.1;
}

.next-step-card p {
  margin: 0;
  color: #586a7b;
  font-size: 15px;
  line-height: 1.6;
}

.next-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.next-step-list {
  margin: 0;
  padding-left: 20px;
  color: #586a7b;
  line-height: 1.8;
}

.next-step-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-step-contact a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #1c6fa7;
  font-weight: 700;
  background: rgba(83, 176, 243, 0.1);
  border: 1px solid rgba(28, 111, 167, 0.12);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.next-step-contact a:hover {
  transform: translateY(-2px);
  background: rgba(83, 176, 243, 0.18);
  box-shadow: 0 12px 22px rgba(28, 111, 167, 0.12);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.cta-primary {
  background: #fff;
  color: #2b7db6;
}

.cta-primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* ===== SERVICE DETAIL PAGES ===== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 20px 60px;
  background: #f8fbfd;
  font-size: 14px;
  color: #666;
  max-width: 1300px;
  margin: 0 auto;
}

.breadcrumb-nav a {
  color: #2b7db6;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #1e5a8a;
  text-decoration: underline;
}

/* Service Detail Hero */
.service-detail-hero {
  background-image:
    linear-gradient(135deg, rgba(43, 125, 182, 0.82) 0%, rgba(28, 111, 167, 0.88) 100%),
    var(--hero-image, url("https://images.unsplash.com/photo-1588776814546-ec7e9d7b4f6f?auto=format&fit=crop&w=1600&q=80"));
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  color: white;
  padding: 84px 52px;
  text-align: center;
}

.service-detail-hero h1 {
  font-size: 48px;
  margin: 0 0 15px;
  font-weight: 700;
}

.service-detail-hero p {
  font-size: 16px;
  margin: 0;
  opacity: 0.95;
}

/* Service Detail Content */
.service-detail-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  max-width: 1300px;
  margin: 48px auto;
  padding: 0 52px;
  opacity: 1 !important;
  transform: none !important;
}

.service-detail-main {
  flex: 1;
}

.service-section {
  text-align: left !important;
  opacity: 1 !important;
  transform: none !important;
  margin-bottom: 40px;
  padding: 0 !important;
  background: none !important;
}

.service-section h2 {
  font-size: 30px;
  color: #1e3a5f;
  margin: 0 0 20px;
  font-weight: 700;
}

.service-section p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.service-list li:before {
  content: 'âœ“';
  position: absolute;
  left: 0;
  color: #2b7db6;
  font-weight: bold;
  font-size: 18px;
}

/* Procedure Steps */
.procedure-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.step {
  background: rgba(43, 125, 182, 0.05);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #2b7db6;
}

.step h3 {
  font-size: 18px;
  color: #2b7db6;
  margin: 0 0 10px;
  font-weight: 700;
}

.step p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* FAQ Section */
.faq {
  margin: 30px 0;
}

.faq-item {
  margin-bottom: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #2b7db6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item h4 {
  color: #2b7db6;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.faq-item p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* CTA Section in Detail */
.cta-section {
  background: linear-gradient(135deg, #2b7db6 0%, #1c6fa7 100%);
  color: white !important;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-top: 40px;
}

.service-section.cta-section {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #2b7db6 0%, #1c6fa7 100%) !important;
  padding: 42px !important;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(28, 111, 167, 0.2);
  text-align: center !important;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
}

.service-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.cta-section .btn-primary,
.cta-section .btn-secondary {
  min-width: 230px;
  border-radius: 16px;
  padding: 14px 24px;
}


.btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px);
}


.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-box {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.sidebar-box h3 {
  color: #2b7db6;
  font-size: 18px;
  margin: 0 0 15px;
  font-weight: 700;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-box li:last-child {
  border-bottom: none;
}

.sidebar-box a {
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: block;
}

.sidebar-box a:hover {
  color: #2b7db6;
  padding-left: 5px;
}

.features-list li:before {
  content: 'âœ“';
  margin-right: 8px;
  color: #2b7db6;
  font-weight: bold;
}

.cta-box {
  text-align: center;
  background: linear-gradient(135deg, #2b7db6 0%, #1c6fa7 100%);
  color: white;
}

.cta-box h3 {
  color: white;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  margin: 0 0 15px;
}

.sidebar-btn {
  display: inline-block;
  background: white;
  color: #2b7db6;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.sidebar-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Responsive Services */
@media (max-width: 1024px) {
  .services-section {
    padding: 52px 36px;
  }

  .services-next-steps {
    padding: 18px 36px 56px;
  }

  .services-next-steps-inner {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail-content {
    grid-template-columns: 1fr;
    padding: 0 36px;
  }

  .service-detail-hero {
    padding: 68px 36px;
  }

  .services-hero {
    padding: 82px 36px;
  }

  .breadcrumb-nav {
    padding: 18px 36px;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 34px 20px;
  }

  .services-next-steps {
    padding: 14px 20px 42px;
  }

  .services-hero {
    padding: 52px 20px;
  }

  .services-hero h1 {
    font-size: 36px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-cta {
    padding: 32px 20px;
    border-radius: 22px;
  }

  .next-step-card {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .next-step-card h2 {
    font-size: 28px;
  }

  .cta-buttons {
    gap: 10px;
  }

  .cta-btn {
    font-size: 14px;
  }

  .service-detail-content {
    padding: 0 20px;
    gap: 20px;
  }

  .service-detail-hero {
    padding: 50px 20px;
  }

  .service-detail-hero h1 {
    font-size: 32px;
  }

  .service-section h2 {
    font-size: 22px;
  }

  .procedure-steps {
    grid-template-columns: 1fr;
  }

  .service-buttons {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
  }

  .breadcrumb-nav {
    padding: 15px 20px;
    font-size: 12px;
  }

  .service-sidebar {
    order: -1;
    margin-bottom: 30px;
  }
}

@media (max-width: 520px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a,

  .home-services {
    padding-top: 54px;
    padding-bottom: 36px;
  }

  .home-services-header h2 {
    font-size: 24px;
  }

  .home-services-header p {
    font-size: 14px;
  }

  .home-service-tag {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .home-service-content h3 {
    font-size: 22px;
  }

  .home-services-grid .service-read-more {
    width: 100%;
    justify-content: center;
  }

  .services-hero h1,
  .service-detail-hero h1 {
    font-size: 28px;
  }

  .section-header h2,
  .next-step-card h2,
  .service-section h2 {
    font-size: 24px;
  }

  .services-card-content,
  .sidebar-box,
  .service-section.cta-section,
  .next-step-card {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ===== ABOUT PAGE RESPONSIVE STYLES ===== */

/* About Hero Section */
.about-hero {
  background: linear-gradient(135deg, rgba(43, 125, 182, 0.85) 0%, rgba(28, 111, 167, 0.9) 100%),
    url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?auto=format&fit=crop&w=1600&q=80') center/cover;
  background-attachment: fixed;
  color: white;
  padding: 120px 60px;
  text-align: center;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero .hero-content {
  text-align: center;
  background: none;
  padding: 0;
}

.about-hero h1 {
  font-size: clamp(36px, 6vw, 52px);
  margin-bottom: 15px;
  font-weight: 700;
}

.about-hero p {
  font-size: clamp(16px, 2.5vw, 22px);
  opacity: 0.95;
  margin: 0;
}

/* Introduction Section */
.intro-section {
  padding: clamp(40px, 8vw, 80px) 60px;
  background: #f8fbfd;
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(83, 176, 243, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.intro-container {
  display: flex;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 1;
}

.intro-left {
  flex: 1;
  min-width: 0;
}

.intro-left h4 {
  font-size: clamp(12px, 2vw, 14px);
  color: #2b7db6;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.intro-left h2 {
  font-size: clamp(32px, 5vw, 44px);
  color: #1e3a5f;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.intro-left h2 .highlight {
  color: #2b7db6;
}

.intro-left p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: clamp(22px, 3.5vw, 32px);
  color: #2b7db6;
  font-weight: 700;
}

.stat-label {
  font-size: clamp(13px, 1.5vw, 15px);
  color: #666;
  margin-top: 5px;
}

.intro-right {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-bg {
  position: relative;
  width: clamp(300px, 40vw, 450px);
  height: clamp(300px, 40vw, 450px);
}

.circle-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(83, 176, 243, 0.2) 0%, rgba(28, 111, 167, 0.1) 100%);
  filter: blur(40px);
}

.circle-inner {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  overflow: hidden;
  background: white;
  box-shadow: 0 30px 60px rgba(30, 58, 95, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.badge-experience {
  position: absolute;
  bottom: 20px;
  right: -30px;
  background: linear-gradient(135deg, #2b7db6 0%, #1c6fa7 100%);
  color: white;
  padding: clamp(16px, 2vw, 20px);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(43, 125, 182, 0.25);
  text-align: center;
  min-width: 140px;
  z-index: 2;
}

.badge-experience h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
}

.badge-experience .unit {
  font-size: clamp(11px, 1.3vw, 13px);
  opacity: 0.9;
  margin: 5px 0;
  line-height: 1.4;
}

.badge-experience p {
  font-size: clamp(12px, 1.5vw, 14px);
  margin: 8px 0 0;
  opacity: 0.95;
}

.badge-clinic {
  position: absolute;
  top: 30px;
  left: -40px;
  background: white;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  max-width: 180px;
  z-index: 2;
  border-left: 4px solid #2b7db6;
}

.badge-clinic h4 {
  margin: 0 0 8px;
  color: #2b7db6;
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 700;
}

.badge-clinic p {
  margin: 0;
  font-size: clamp(12px, 1.4vw, 13px);
  color: #666;
  line-height: 1.5;
}

/* Mission, Vision, Values Section */
.mvv-section {
  padding: clamp(40px, 8vw, 80px) 60px;
  background: white;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 50px);
}

.section-title h2 {
  font-size: clamp(32px, 5vw, 44px);
  color: #1e3a5f;
  margin: 0 0 15px;
  font-weight: 700;
}

.section-title p {
  font-size: clamp(15px, 1.8vw, 17px);
  color: #666;
  margin: 0;
}

.mvv-wrapper {
  display: flex;
  gap: 60px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: flex-start;
}

.mvv-image-container {
  flex: 1;
  min-width: 0;
}

.mvv-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.mvv-content {
  flex: 1;
  min-width: 0;
}

.mvv-tabs {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  border-bottom: 2px solid #e0e8ef;
  flex-wrap: wrap;
}

.mvv-tab {
  padding: 15px 20px;
  background: none;
  border: none;
  color: #666;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.mvv-tab:hover {
  color: #2b7db6;
}

.mvv-tab.active {
  color: #2b7db6;
  border-bottom-color: #2b7db6;
}

.mvv-tab-content {
  display: none;
  opacity: 0;
  animation: fadeIn 0.4s ease;
}

.mvv-tab-content.active {
  display: block;
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mvv-tab-content h3 {
  font-size: clamp(20px, 3vw, 26px);
  color: #1e3a5f;
  margin-bottom: 15px;
  font-weight: 700;
}

.mvv-tab-content p {
  font-size: clamp(14px, 1.6vw, 16px);
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* Team Section */
.team-section {
  padding: clamp(40px, 8vw, 80px) 60px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f0f7fc 100%);
  position: relative;
}

.team-container {
  max-width: 1300px;
  margin: 0 auto;
}

.team-subtitle {
  font-size: clamp(14px, 2vw, 18px);
  color: #2b7db6;
  opacity: 0.9;
  margin: 5px 0 0;
}

.team-carousel-wrapper {
  position: relative;
  padding: clamp(20px, 3vw, 30px) 0;
}

/* Why Choose Us Section */
.why-choose-section {
  padding: clamp(40px, 8vw, 80px) 60px;
  background: white;
  position: relative;
}

.why-choose-wrapper {
  max-width: 1300px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: clamp(30px, 5vw, 50px);
}

.why-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(28, 111, 167, 0.1);
  padding: clamp(25px, 3vw, 35px);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  border-color: rgba(28, 111, 167, 0.25);
}

.why-card h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #2b7db6;
  margin-bottom: 12px;
  font-weight: 700;
}

.why-card p {
  font-size: clamp(13px, 1.5vw, 15px);
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===== MOBILE RESPONSIVE ABOUT STYLES ===== */

/* Tablet & Large Mobile (768px and below) */
@media (max-width: 768px) {
  .about-hero {
    padding: 80px 20px;
    background-attachment: scroll;
    min-height: 300px;
  }

  .about-hero h1 {
    font-size: 32px;
  }

  .about-hero p {
    font-size: 18px;
  }

  /* Intro Section */
  .intro-section {
    padding: 40px 20px;
  }

  .intro-section::before {
    display: none;
  }

  .intro-container {
    flex-direction: column;
    gap: 30px;
    padding: 0;
  }

  .intro-left {
    width: 100%;
    text-align: center;
  }

  .intro-left h4 {
    font-size: 12px;
  }

  .intro-left h2 {
    font-size: 28px;
  }

  .intro-left p {
    font-size: 15px;
  }

  .intro-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 25px;
  }

  .stat-box {
    padding: 15px;
    border-radius: 10px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 13px;
  }

  .intro-right {
    width: 100%;
    margin: 0 auto;
  }

  .circular-bg {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }

  .badge-experience {
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
    min-width: 120px;
    padding: 12px 15px;
  }

  .badge-experience h3 {
    font-size: 28px;
  }

  .badge-experience .unit {
    font-size: 11px;
  }

  .badge-experience p {
    font-size: 12px;
  }

  .badge-clinic {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 160px;
    padding: 12px 15px;
  }

  .badge-clinic h4 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .badge-clinic p {
    font-size: 12px;
  }

  /* MVV Section */
  .mvv-section {
    padding: 40px 20px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .section-title p {
    font-size: 15px;
  }

  .mvv-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .mvv-image-container {
    width: 100%;
  }

  .mvv-image {
    max-width: 100%;
  }

  .mvv-content {
    width: 100%;
  }

  .mvv-tabs {
    gap: 10px;
    flex-wrap: wrap;
  }

  .mvv-tab {
    padding: 12px 15px;
    font-size: 14px;
    margin-bottom: -2px;
  }

  .mvv-tab-content h3 {
    font-size: 22px;
  }

  .mvv-tab-content p {
    font-size: 14px;
  }

  /* Team Section */
  .team-section {
    padding: 40px 20px;
  }

  .team-subtitle {
    font-size: 16px;
  }

  .team-carousel-wrapper {
    padding: 20px 0;
  }

  /* Why Choose Section */
  .why-choose-section {
    padding: 40px 20px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .why-card {
    padding: 25px 20px;
  }

  .why-card h3 {
    font-size: 20px;
  }

  .why-card p {
    font-size: 14px;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .about-hero {
    padding: 60px 15px;
    min-height: 280px;
  }

  .about-hero h1 {
    font-size: 26px;
  }

  .about-hero p {
    font-size: 16px;
  }

  /* Intro Section */
  .intro-section {
    padding: 30px 15px;
  }

  .intro-container {
    gap: 20px;
  }

  .intro-left h2 {
    font-size: 24px;
  }

  .intro-left p {
    font-size: 14px;
    line-height: 1.6;
  }

  .intro-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .stat-box {
    padding: 12px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 12px;
  }

  .circular-bg {
    width: 220px;
    height: 220px;
  }

  .circle-inner {
    inset: 15px;
  }

  .badge-experience {
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    min-width: 110px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .badge-experience h3 {
    font-size: 22px;
    margin: 0 0 4px;
  }

  .badge-experience .unit {
    font-size: 10px;
    margin: 3px 0;
  }

  .badge-experience p {
    font-size: 11px;
    margin-top: 5px;
  }

  .badge-clinic {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 140px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .badge-clinic h4 {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .badge-clinic p {
    font-size: 11px;
  }

  /* MVV Section */
  .mvv-section {
    padding: 30px 15px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .section-title p {
    font-size: 14px;
  }

  .mvv-tabs {
    gap: 8px;
    margin-bottom: 20px;
  }

  .mvv-tab {
    padding: 10px 12px;
    font-size: 12px;
  }

  .mvv-tab-content h3 {
    font-size: 20px;
  }

  .mvv-tab-content p {
    font-size: 13px;
  }

  /* Team Section */
  .team-section {
    padding: 30px 15px;
  }

  .team-subtitle {
    font-size: 14px;
  }

  /* Why Choose Section */
  .why-choose-section {
    padding: 30px 15px;
  }

  .why-card {
    padding: 20px 15px;
  }

  .why-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .why-card p {
    font-size: 13px;
  }
}

  .services-card-image {
    aspect-ratio: 16 / 11;
  }

  .service-detail-content {
    padding: 0 14px;
  }

  .services-cta,
  .services-next-steps,
  .services-section,
  .breadcrumb-nav {
    margin-left: 0;
    margin-right: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .services-card-content h3 {
    font-size: 21px;
  }

  .services-card-content p {
    font-size: 14px;
  }



/* --- New Appointment Form Aesthetics --- */

.query-left, #appointment-form-wrapper {
  flex: 1;
  background: linear-gradient(145deg, #2170a9 0%, #12355c 100%) !important; /* Lighter beautiful gradient */
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  padding: 35px 28px !important;
  box-shadow: 0 20px 45px rgba(13, 32, 56, 0.4) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.query-left::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.query-left h2 {
  font-size: 32px !important;
  margin-bottom: 24px !important;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.query-form {
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 32px 24px 24px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  gap: 26px !important;
}

.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.form-group.half-width {
  flex: 1;
  margin-bottom: 0;
  padding-top: 22px; /* room for floating label above the input */
}

.form-group.half-width label {
  top: 7px !important; /* label sits just above the input inside the padding area */
}

.form-group.half-width input:focus + label,
.form-group.half-width input:not(:placeholder-shown) + label,
.form-group.half-width input[type="date"] + label,
.form-group.half-width select + label,
.form-group.half-width select:focus + label,
.form-group.half-width select:valid + label,
.form-group.half-width textarea:focus + label,
.form-group.half-width textarea:not(:placeholder-shown) + label {
  top: -2px !important; /* float to top of padding area */
  left: 4px !important;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 20px; /* more gap so stacked labels have breathing room */
  }
}

.query-form input,
.query-form select,
.query-form textarea {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 14px !important;
  outline: 0 !important;
  padding: 15px 14px 10px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
  box-sizing: border-box;
}

.query-form select option {
  background: #1e3a5f;
  color: #fff;
}

.query-form input:hover,
.query-form select:hover,
.query-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.query-form input:focus,
.query-form select:focus,
.query-form textarea:focus {
  border-color: #e5e7eb !important; /* Silver highlight */
  box-shadow: 0 0 0 3px rgba(229, 231, 235, 0.25) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.form-group label {
  color: #a0aec0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  left: 14px !important;
  padding: 0 4px !important;
  pointer-events: none;
  position: absolute;
  top: 15px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: transparent !important;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group input[type="date"] + label,
.form-group input[type="time"] + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  top: -22px !important;
  left: 4px !important;
  padding: 0 !important;
}

.form-group select + label {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  top: -22px !important;
  left: 4px !important;
  padding: 0 !important;
}

/* Submit Button in Silver */
button.silver-submit-btn {
  width: 100% !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%) !important;
  color: #1e3a5f !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 12px !important;
  font-size: 16px !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.9) !important;
  margin-top: 6px;
}

button.silver-submit-btn:hover {
  background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

button.silver-submit-btn:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1) !important;
}

/* Form Success Overlay Animation */
.query-left, .contact-card {
  position: relative; /* ensure overlay maps to these boxes */
  overflow: hidden;
}

.form-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border-radius: inherit; /* match parent border radius */
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-bar-container {
  width: 60%;
  max-width: 250px;
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar {
  width: 0%;
  height: 100%;
  background: #4ade80;
  animation: loadingAnim 1.5s ease-in-out forwards;
}

@keyframes loadingAnim {
  0% { width: 0%; }
  100% { width: 100%; }
}

.success-tick-container {
  text-align: center;
  animation: tickFadeIn 0.5s ease forwards;
}

@keyframes tickFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.tick-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #4ade80;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

.tick-svg {
  width: 32px;
  height: 32px;
  stroke: #1a1a1a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawTick 0.5s ease 0.2s forwards;
}

@keyframes drawTick {
  to { stroke-dashoffset: 0; }
}

.success-tick-container h3 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 8px;
}

.success-tick-container p {
  color: #a0aec0;
  margin: 0;
  font-size: 15px;
}

/* Disabled Options Styling */
select option:disabled {
  color: #999;
  background-color: #f5f5f5;
}

/* Stats Banner Below Hero - Infinite Marquee Loop */
.stats-banner {
  background-color: #fdfaf4;
  border-top: 1px solid #f3e5d0;
  border-bottom: 1px solid #f3e5d0;
  padding: 22px 0;
  overflow: hidden;
  width: 100%;
}

.stats-scroll-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Add subtle blur gradients to edges for a pro look */
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.stats-track {
  display: flex;
  width: max-content;
  animation: scrollStats 16s linear infinite;
  gap: 50px;
}

.stats-track:hover {
  animation-play-state: paused;
}

@keyframes scrollStats {
  0% { transform: translateX(0); }
  /* Translate exactly by 50% plus half the gap 
     Since it's 2 sets of identical items, exactly half the width is one set. */
  100% { transform: translateX(calc(-50% - 25px)); } 
}

.stat-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 16px;
  color: #1f2937;
  font-family: inherit;
  white-space: nowrap; /* Prevent multiline wrapping in marquee */
}

.stat-item svg {
  flex-shrink: 0;
}

.stat-text {
  font-weight: 500;
}

.stat-text strong {
  color: #3b89f0; /* Vibrant orange matching the screenshot */
  font-weight: 800;
  margin-right: 2px;
}

@media (max-width: 900px) {
  .stats-banner {
    padding: 16px 0;
  }
  .stat-item {
    font-size: 14px;
    gap: 8px;
  }
  .stat-item svg {
    width: 22px;
    height: 22px;
  }
  .stats-track {
    gap: 30px;
  }
  @keyframes scrollStats {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); } 
  }
}

/* Modern homepage theme refresh */
:root {
  --brand-ink: #123041;
  --brand-ink-soft: #496171;
  --brand-surface: #f4efe6;
  --brand-surface-2: #fffaf2;
  --brand-card: rgba(255, 252, 246, 0.82);
  --brand-line: rgba(18, 48, 65, 0.12);
  --brand-accent: #0f766e;
  --brand-highlight: #f3c178;
  --brand-shadow: 0 24px 70px rgba(18, 48, 65, 0.12);
}

body {
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 211, 154, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(73, 179, 165, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f4ec 0%, #fffaf4 44%, #fffdf9 100%);
  color: var(--brand-ink);
}

h1, h2, h3, h4, .logo, .section-title, .hero-eyebrow, .home-services-eyebrow {
  font-family: "Sora", sans-serif;
}

.topbar {
  position: relative;
  z-index: 20;
  background: transparent;
  padding: 8px 32px 0; /* Compressed top padding */
}

.topbar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 16px; /* Compressed container padding */
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.62);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(18, 48, 65, 0.08);
}

.top-left {
  color: var(--brand-ink-soft);
  font-weight: 600;
}

.top-right a {
  color: var(--brand-ink);
  font-weight: 700;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  position: sticky;
  top: 8px;
  width: calc(100% - 40px);
  max-width: 1240px;
  margin: 8px auto 0;
  padding: 6px 6px 6px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(17, 48, 64, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(14, 38, 51, 0.18);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 700;
  gap: 12px;
  color: #f9f5ef;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-width: 0;
}

/* Logo text: show full name including (SINCE 1960) */
.logo span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  min-width: 0;
}

.logo span span {
  color: var(--brand-highlight);
}

.logo-image {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.mobile-close-li {
  display: none;
}

.nav-links a {
  color: rgba(249, 245, 239, 0.88);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fffaf1;
  text-shadow: none;
}

.nav-links a.active-link {
  color: #0f2f40 !important;
  background: linear-gradient(135deg, #ffe4bb 0%, #f7c97c 100%);
  border-bottom: none;
  padding: 10px 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.phone {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f9f5ef;
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}
.phone:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1eb4a4 0%, #0f766e 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.32);
}

.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  overflow: hidden;
  background: #f5f5f5;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250, 246, 240, 0.95) 0%,
    rgba(250, 246, 240, 0.85) 35%,
    rgba(250, 246, 240, 0.4) 55%,
    rgba(250, 246, 240, 0) 75%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-container {
  display: flex;
  position: absolute;
  inset: 0;
  z-index: 3;
  max-width: none;
  margin: 0;
  gap: 0;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 60px;
  padding-left: 48px;
  padding-right: 0;
  box-sizing: border-box;
}

.hero-left {
  text-align: left;
  max-width: 500px;
  width: 46%;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(18, 48, 65, 0.08);
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(18, 48, 65, 0.06);
}

.hero-left h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.98;
  margin: 0 0 10px; /* Reduced margin */
  color: var(--brand-ink);
}

.hero-left h1 span {
  display: inline-block;
  color: var(--brand-accent);
}

.hero-left p {
  font-size: 17px; /* Slightly smaller font to save space */
  line-height: 1.65;
  color: var(--brand-ink-soft);
  max-width: 58ch;
  margin-bottom: 20px; /* Reduced margin */
}

.hero-buttons {
  justify-content: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-appointment {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1eb4a4 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.38);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.18);
  color: var(--brand-ink, #0f2f40);
  border: 1.5px solid rgba(18, 48, 65, 0.22);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-ink, #0f2f40);
  transform: translateY(-2px);
}

.btn-appointment {
  background: linear-gradient(135deg, #f0bb65 0%, #d97706 100%);
  color: #0f2f40;
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.28);
}

.btn-appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.38);
  color: #0f2f40;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vh, 16px);
  max-width: 100%;
  margin-top: clamp(6px, 1vh, 10px);
}

.hero-proof-item {
  padding: 14px 16px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 48, 65, 0.08);
  box-shadow: 0 14px 38px rgba(18, 48, 65, 0.07);
}

.hero-proof-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  color: var(--brand-ink);
}

.hero-proof-item span {
  color: var(--brand-ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.hero-right {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  min-height: auto;
}

.hero-right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(250, 246, 240, 0.95) 0%,
    rgba(250, 246, 240, 0.85) 35%,
    rgba(250, 246, 240, 0.4) 55%,
    rgba(250, 246, 240, 0) 75%
  );
}

.hero-right img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: brightness(0.95) contrast(1.06) saturate(1.03);
  border-radius: 0;
  display: block;
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: 0;
  left: 0;
}

.hero-floating-card {
  position: absolute;
  right: 6%;
  bottom: 4%;
  max-width: 270px;
  padding: 14px 16px 12px;
  border-radius: 22px;
  background: rgba(18, 48, 65, 0.84);
  color: #f9f5ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 62px rgba(18, 48, 65, 0.2);
  backdrop-filter: blur(16px);
  z-index: 4;
}

.hero-floating-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #f7c97c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-floating-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  line-height: 1.45;
  margin-bottom: 6px;
}

.hero-floating-card p {
  margin: 0;
  color: rgba(249, 245, 239, 0.74);
  font-size: 13px;
  line-height: 1.6;
}

.stats-banner {
  background: linear-gradient(90deg, #123041 0%, #194559 52%, #0f766e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto; /* Push to absolute bottom of flex container */
  position: relative;
  z-index: 2;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.stat-item {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-text {
  color: rgba(255, 248, 238, 0.9);
}

.stat-text strong {
  color: #ffd596;
}

.about,
.map-section,
.query-section {
  background: transparent;
}

.about-container,
.query-container,
.map-container {
  max-width: 1240px;
}

.feature-card,
.doctor-card,
.query-form,
.review-card,
.map-right {
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  box-shadow: var(--brand-shadow);
}

.home-services {
  background:
    radial-gradient(circle at top left, rgba(243, 193, 120, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.94) 0%, rgba(247, 242, 232, 0.82) 100%);
}

.home-services-header {
  background: rgba(18, 48, 65, 0.95);
  border-color: rgba(18, 48, 65, 0.18);
  box-shadow: 0 28px 80px rgba(18, 48, 65, 0.18);
}

.home-services-header h2,
.home-services-header p {
  color: #fff7ee;
}

.home-services-eyebrow {
  background: rgba(255, 213, 150, 0.14);
  color: #ffd596;
}

.home-services-link {
  background: linear-gradient(135deg, #f2b24b 0%, #d97706 100%);
  color: #102d3c;
}

.home-services-link:hover {
  background: linear-gradient(135deg, #f6c164 0%, #e28712 100%);
  color: #102d3c;
}

.home-service-card {
  background: rgba(255, 253, 249, 0.86);
  border-color: rgba(18, 48, 65, 0.08);
}

.home-service-tag,
.service-read-more,
.about-text h2,
.section-title,
.query-left h2,
.reviews-right h2,
.map-header h2,
.map-right h3,
.doctor-info h3 {
  color: var(--brand-ink);
}

.service-read-more {
  font-weight: 800;
}

.doctors {
  padding-top: 64px;
}

.carousel-btn {
  background: #123041;
}

.carousel-btn:hover {
  background: #0f766e;
}

.dot.active {
  background: #0f766e;
}

.query-form,
.reviews-right,
.map-left img,
.map-right {
  border-radius: 28px;
}

.query-form {
  background: rgba(255, 253, 249, 0.92);
}

.query-form button {
  background: linear-gradient(135deg, #123041 0%, #0f766e 100%);
}

.query-form button:hover {
  background: linear-gradient(135deg, #102d3c 0%, #0d675f 100%);
}

.review-card h4 {
  color: var(--brand-accent);
}

.map-left img {
  box-shadow: var(--brand-shadow);
}

.direction-btn {
  background: #123041;
  border-radius: 999px;
  padding: 14px 24px;
}

.direction-btn:hover {
  background: #0f766e;
}

.footer {
  background:
    radial-gradient(circle at top left, rgba(243, 193, 120, 0.14), transparent 20%),
    linear-gradient(135deg, #102b39 0%, #0f3341 52%, #0b524e 100%);
}

.footer-col p,
.footer-bottom {
  color: rgba(249, 245, 239, 0.72);
}

.whatsapp {
  background: linear-gradient(135deg, #1dcf8b 0%, #0ea76f 100%);
  box-shadow: 0 18px 38px rgba(17, 120, 79, 0.24);
}

@media (max-width: 1024px) {
  .navbar {
    margin-left: 20px;
    margin-right: 20px;
  }

  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .stats-banner {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-container {
    gap: 36px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .hero-right {
    min-height: 420px;
  }

  .hero-floating-card {
    right: 4%;
    bottom: 2%;
  }

  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 10px 14px 0;
  }

  .topbar-container {
    border-radius: 22px;
    padding: 12px 14px;
  }

  .navbar {
    top: 10px;
    padding: 14px 16px;
    border-radius: 22px;
  }

  .nav-actions {
    display: none;
  }

  .hamburger {
    background: linear-gradient(135deg, #f0bb65 0%, #d97706 100%);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.22);
  }

  .hamburger span {
    background-color: #102d3c;
  }

  .nav-links {
    background: rgba(17, 48, 64, 0.96);
    backdrop-filter: blur(18px);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-links a {
    color: #fff7ee !important;
    width: 100%;
  }

  .nav-links a.active-link {
    color: #113040 !important;
    background: linear-gradient(135deg, #f0bb65 0%, #d97706 100%) !important;
    border-bottom: none !important;
    border-radius: 8px;
    font-weight: 700 !important;
  }

  .mobile-close-li .close-menu {
    background: rgba(255, 255, 255, 0.1);
    color: #fff7ee;
    border: 0;
    border-radius: 999px;
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 48px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-left {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-proof {
    max-width: 100%;
  }

  .hero-right {
    width: 100%;
    min-height: 360px;
  }

  .hero-right::before {
    width: min(82vw, 380px);
    height: min(82vw, 380px);
  }

  .hero-floating-card {
    position: static;
    margin-top: 18px;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar-container {
    text-align: center;
  }

  .logo {
    font-size: 16px;
  }

  .logo-image {
    width: 46px;
    height: 46px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 0;
  }

  .stats-banner {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-left h1 {
    font-size: 38px;
  }

  .hero-left p {
    font-size: 16px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-appointment {
    width: 100%;
  }
}

/* Sub-page Styles */
.sub-hero {
  padding: 160px 48px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sub-hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  color: var(--brand-ink);
  margin-bottom: 16px;
}

.sub-hero p {
  font-size: 18px;
  color: var(--brand-ink-soft);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-content {
  padding: 80px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  padding: 40px;
  border-radius: 32px;
  box-shadow: var(--brand-shadow);
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .sub-hero {
    padding: 120px 24px 60px;
  }
}

/* Height-based media queries for compact 'Fit-to-Fold' view */

@media (max-height: 850px) {
  .hero {
    padding-top: clamp(50px, 6vh, 70px);
  }
  .hero-left h1 {
    font-size: clamp(34px, 4.5vw, 52px);
  }
  .hero-left p {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .hero-buttons {
    margin-bottom: 12px;
  }
  .hero-proof-item {
    padding: 10px 12px 8px;
    border-radius: 14px;
  }
  .hero-proof-item strong {
    font-size: 16px;
    margin-bottom: 2px;
  }
  .hero-proof-item span {
    font-size: 11px;
  }
  .hero-right {
    min-height: 340px;
  }
  .hero-right img {
    max-height: 40vh;
  }
  .hero-floating-card {
    padding: 10px 12px;
    max-width: 220px;
    border-radius: 16px;
  }
  .hero-floating-card strong {
    font-size: 13px;
  }
  .hero-floating-card p {
    font-size: 11px;
  }
}

@media (max-height: 700px) {
  .topbar {
    display: none; /* Hide topbar on very short screens to save space */
  }
  .navbar {
    top: 4px;
    margin-top: 4px;
    padding: 8px 18px;
  }
  .hero {
    padding-top: 50px;
  }
  .hero-left h1 {
    font-size: 32px;
  }
  .hero-left p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .hero-buttons {
    gap: 10px;
  }
  .btn-primary, .btn-secondary, .btn-appointment {
    min-height: 44px;
    font-size: 14px;
    padding: 0 16px;
  }
  .hero-proof {
    gap: 6px;
  }
  .hero-proof-item {
    padding: 8px 10px;
  }
  .hero-right {
    min-height: 300px;
  }
  .hero-right img {
    max-height: 35vh;
  }
  .hero-floating-card {
    display: none; /* Hide floating card on critically short viewports */
  }
}

/* --- Orbital Testimonial Slider --- */
.orbital-testimonials {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.orbital-container {
  position: relative;
  width: 380px;
  height: 380px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.center-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 5;
}
.center-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  z-index: 1;
  pointer-events: none;
}
.satellite {
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  z-index: 3;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  left: 50%;
  top: 50%;
  margin-left: -27.5px;
  margin-top: -27.5px;
  opacity: 0.7;
  filter: grayscale(80%);
}
.satellite.active {
  opacity: 1;
  filter: grayscale(0%);
  border-color: #25d366;
  z-index: 4;
}
.satellite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.orbital-review-content {
  text-align: center;
  padding: 0 20px;
  transition: opacity 0.3s ease-in-out;
  min-height: 120px;
}
.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: #4a5568;
  font-style: italic;
  transition: opacity 0.3s ease-in-out;
}
.review-author {
  transition: opacity 0.3s ease-in-out;
}

/* --- Extra Mobile/Tablet Responsive Fixes --- */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    gap: 40px;
    padding-top: 60px;
  }
  .nav-actions {
    display: none !important;
  }
  .query-container {
    flex-direction: column;
  }
  .about-container {
    flex-direction: column;
  }
  .doctor-list {
    flex-direction: column;
  }
}

/* Desktop squeeze before mobile drawer */
@media (max-width: 1240px) and (min-width: 901px) {
  .navbar {
    padding: 10px 14px 10px 16px !important;
  }
  .nav-links {
    gap: 8px !important;
  }
  .nav-links a {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
  .logo {
    gap: 10px !important;
    font-size: 16px !important;
  }
  .nav-cta {
    padding: 0 14px !important;
    font-size: 14px !important;
  }
  .phone {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
}

/* ===== PROFESSIONAL FOOTER ===== */
.footer {
  background:
    radial-gradient(circle at top left, rgba(243, 193, 120, 0.14), transparent 20%),
    linear-gradient(135deg, #102b39 0%, #0f3341 52%, #0b524e 100%);
  padding: 0;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 32px 48px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 48px;
  align-items: flex-start;
  text-align: left;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo-image {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-name {
  color: #f9f5ef;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}

.footer-brand-name small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}

.footer-tagline {
  color: rgba(249, 245, 239, 0.68);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 300px;
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1dcf8b 0%, #0ea76f 100%);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(14, 167, 111, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 167, 111, 0.4);
}

.footer-heading {
  color: #f9f5ef;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(249, 245, 239, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #f0bb65;
  padding-left: 6px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(249, 245, 239, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.footer-icon {
  flex-shrink: 0;
  font-size: 16px;
  margin-top: 1px;
}

.footer-contact-list a {
  color: rgba(249, 245, 239, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-list a:hover {
  color: #f0bb65;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 32px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(249, 245, 239, 0.45);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .footer-inner {
    padding: 40px 20px 32px;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* ============================================================
   MOBILE UX & ACCESSIBILITY IMPROVEMENTS
   ============================================================ */

/* Better tap targets on mobile */
a, button, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Improve focus visibility for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1c6fa7;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Prevent images from overflowing their containers on any screen */
img {
  max-width: 100%;
  height: auto;
}

/* Fix service cards on very small screens */
@media (max-width: 480px) {
  .home-services-wrapper {
    display: block;
  }
  .home-services-header {
    position: static;
    padding: 30px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  .home-services-carousel-wrapper {
    margin-left: 0;
  }
  .home-service-card {
    flex: 0 0 clamp(160px, 70vw, 240px);
  }
  .hero {
    min-height: 100svh;
  }
  .hero-container {
    padding: 110px 20px 40px;
    position: absolute;
  }
  .hero-left {
    width: 100%;
  }
  .hero-left h1 {
    font-size: 28px;
  }
  .hero-left p {
    font-size: 14px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-buttons a {
    text-align: center;
    width: 100%;
  }
  .hero-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .hero-right img {
    object-position: center 20%;
  }
  .navbar {
    padding: 10px 16px;
  }
  .nav-actions .phone {
    display: none;
  }
}

/* Ensure the CTA banner stacks gracefully on mobile */
@media (max-width: 600px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 36px 24px;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-solid,
  .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }
}

/* Remove horizontal overflow caused by wide grid on tablet */
@media (max-width: 1024px) {
  .home-services-wrapper {
    grid-template-columns: 1fr;
  }
  .home-services-header {
    position: static;
    text-align: center;
    margin-bottom: 24px;
  }
  .home-services-carousel-wrapper {
    margin-left: 0;
  }
  .home-services-carousel-wrapper::before {
    display: none;
  }
}

/* Query / Appointment form responsiveness */
@media (max-width: 768px) {
  .query-container {
    flex-direction: column;
  }
  .query-left,
  .reviews-right {
    width: 100%;
  }
  .form-row {
    flex-direction: column;
  }
  .half-width {
    width: 100% !important;
  }
}
\n
/* ========================================================================= */
/* SERVICE PAGES CSS (Extracted & Mobile Optimized)                          */
/* ========================================================================= */
.service-detail-hero {
  background: linear-gradient(135deg, #eaf3f8 0%, #f5fbff 60%, #ecf7ff 100%);
  padding: 120px 20px 80px;
  text-align: center;
  border-bottom: 1px solid #ddeef8;
}
.service-detail-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  color: #1e3a5f;
  margin: 0 0 16px;
  font-weight: 800;
}
.service-detail-hero p {
  color: #5a7a9a;
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}
.service-content-wrapper {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  background: #fff;
}
.service-img-hero {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.content-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  color: #1e3a5f;
  margin-top: 40px;
  margin-bottom: 16px;
}
.content-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  color: #1c6fa7;
  margin-top: 30px;
  margin-bottom: 12px;
}
.content-body p, .content-body ul {
  color: #4a5568;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.content-body ul {
  padding-left: 20px;
}
.content-body li {
  margin-bottom: 10px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #1c6fa7 100%);
  border-radius: 20px;
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(28, 111, 167, 0.2);
}
.cta-banner-content h2 { color: #fff; font-family: 'Sora'; font-size: 32px; margin:0 0 10px; }
.cta-banner-content p { color: rgba(255,255,255,0.8); font-size: 16px; margin:0; max-width:500px; line-height:1.6;}
.cta-actions { display: flex; gap: 15px; }
.btn-solid { background: #25d366; color: #1e3a5f; padding: 15px 30px; border-radius: 50px; font-weight: 800; text-decoration: none; transition: 0.2s;}
.btn-outline { background: transparent; color: #fff; padding: 15px 30px; border-radius: 50px; font-weight: 700; text-decoration: none; border: 2px solid rgba(255,255,255,0.3); transition: 0.2s;}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color:#fff; }

/* Desktop & Tablet Fallbacks */
@media (max-width: 900px) {
  .cta-banner { flex-direction: column; text-align: center; gap: 30px; padding: 40px 30px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .btn-solid, .btn-outline { width: 100%; justify-content: center; display: flex; }
}

/* Specific Mobile Overrides */
@media (max-width: 768px) {
  .service-detail-hero {
    padding: 100px 15px 60px;
  }
  .service-detail-hero p {
    font-size: 16px;
  }
  .service-content-wrapper {
    margin: 40px auto;
  }
  .service-img-hero {
    height: 250px;
    margin-bottom: 30px;
  }
  .content-body h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .content-body h3 {
    font-size: 20px;
    margin-top: 25px;
  }
  #related-services ul {
    flex-direction: column;
    gap: 10px;
  }
  #related-services ul li {
    width: 100%;
    text-align: center;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
}

/* =====================================================================
   DEEP MOBILE OVERHAUL — Full Responsive Pass
   Targeting: Navbar, Hero, Stats, About, Services, Testimonials,
              Doctors, Contact, Service Pages, Patient Stories, Footer
   ===================================================================== */

/* 1. NAVBAR: Prevent logo text overflow & fix pill width */
@media (max-width: 900px) {
  .navbar {
    width: calc(100% - 24px);
    margin: 8px auto 0;
    padding: 10px 14px;
    border-radius: 18px;
    top: 6px;
  }

  .logo span {
    font-size: 11px;
    white-space: normal;
    max-width: 200px;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    display: block;
  }

  .logo-image {
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0;
  }

  .hamburger {
    display: flex;
    padding: 10px 14px;
    border-radius: 12px;
    min-width: 48px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    margin-bottom: 0;
  }

  /* Mobile nav drawer */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 320px;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    transition: transform 0.3s ease;
    transform: translateX(100%);
  }

  .nav-links.active {
    display: flex;
    transform: translateX(0);
  }

  .mobile-close-li {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    padding: 0 0 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .nav-links li:not(.mobile-close-li) {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
    white-space: normal;
  }

  .nav-links a.active-link {
    border-radius: 12px;
    padding: 14px 16px;
  }
}

/* 2. HERO: Fix layout on small screens */
@media (max-width: 900px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
    overflow: hidden;
  }

  .hero-left h1 {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.1;
  }

  .hero-left p {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-proof {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-proof-item:last-child {
    grid-column: 1 / -1;
  }

  .hero-right img {
    max-width: 80vw;
    max-height: 50vw;
    object-fit: contain;
  }

  .btn-primary,
  .btn-secondary,
  .btn-appointment {
    min-height: 48px;
    font-size: 14px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-left h1 {
    font-size: 26px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof-item:last-child {
    grid-column: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-appointment {
    width: 100%;
    text-align: center;
  }

  .hero-right {
    min-height: 220px;
  }

  .hero-right img {
    max-width: 90vw;
    max-height: 45vw;
  }
}

/* 3. STATS BANNER: overflow guard — only inside media query to not break desktop */

/* 4. ABOUT SECTION: Stack feature cards on phones */
@media (max-width: 600px) {
  .about {
    padding: 28px 16px;
  }

  .about-container {
    gap: 24px;
  }

  .about-features {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .feature-card {
    padding: 18px !important;
    border-radius: 14px !important;
  }

  .about-text h2 {
    font-size: 22px;
  }
}

/* 5. SERVICES SECTION: Cards must scroll properly on mobile */
@media (max-width: 480px) {
  .home-services {
    padding: 36px 12px;
  }

  .home-services-header {
    padding: 20px 16px;
  }

  .home-services-header h2 {
    font-size: 22px;
  }

  .home-services-header p {
    font-size: 14px;
  }

  .home-service-card {
    flex-basis: 80vw;
  }
}

/* 6. ORBITAL TESTIMONIALS: Scale down for small screens */
@media (max-width: 480px) {
  .orbital-testimonials {
    min-height: auto;
    padding: 0 10px;
  }

  .orbital-container {
    width: 280px;
    height: 280px;
  }

  .orbital-ring {
    width: 210px;
    height: 210px;
  }

  .center-avatar-wrapper {
    width: 100px;
    height: 100px;
  }

  .satellite {
    width: 44px;
    height: 44px;
    margin-left: -22px;
    margin-top: -22px;
  }

  .review-text {
    font-size: 14px;
  }

  .orbital-review-content {
    padding: 0 8px;
    min-height: auto;
  }
}

/* 7. DOCTORS CAROUSEL: Fix carousel button overflow */
@media (max-width: 480px) {
  .doctors {
    padding: 28px 12px 40px;
  }

  .doctors-carousel {
    gap: 8px;
    padding: 0;
  }

  .carousel-container {
    max-width: calc(100vw - 100px);
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .doctor-card {
    width: 240px;
    padding: 14px;
  }

  .doctor-img {
    width: 100px;
    height: 100px;
  }

  .doctor-info h3 {
    font-size: 15px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

/* 8. QUERY SECTION (Reviews + Form) */
@media (max-width: 600px) {
  .query-section {
    padding: 36px 14px;
  }

  .query-left h2,
  .reviews-right h2 {
    font-size: 22px;
  }

  .query-form {
    padding: 20px 16px;
  }

  .form-row {
    flex-direction: column;
  }

  .half-width {
    width: 100% !important;
  }

  .reviews-scroll-container {
    height: 350px;
  }
}

/* 9. MAP / LOCATION SECTION */
@media (max-width: 600px) {
  .map-section {
    padding: 28px 14px;
  }

  .map-header h2 {
    font-size: 24px;
  }

  .map-header p {
    font-size: 15px;
  }

  .map-right h3 {
    font-size: 22px;
  }

  .map-right p {
    font-size: 15px;
  }

  .direction-btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 14px 20px;
  }

  .map-left iframe {
    height: 250px;
  }
}

/* 10. BLOGS PAGE */
@media (max-width: 600px) {
  .blogs-container,
  .blog-grid {
    padding: 0 12px;
  }
}

/* 11. SERVICE DETAIL PAGES (piles, fistula, etc.) */
@media (max-width: 600px) {
  .service-detail-hero {
    padding: 90px 14px 50px !important;
  }

  .service-detail-hero h1 {
    font-size: 24px !important;
  }

  .service-detail-hero p {
    font-size: 15px !important;
  }

  .service-content-wrapper {
    padding: 0 14px !important;
    margin: 28px auto !important;
  }

  .service-img-hero {
    height: 200px !important;
    border-radius: 14px !important;
  }

  .content-body h2 {
    font-size: 20px !important;
    margin-top: 24px !important;
  }

  .content-body h3 {
    font-size: 17px !important;
  }

  .content-body p,
  .content-body ul {
    font-size: 15px !important;
  }

  .cta-banner {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 28px 16px !important;
    text-align: center !important;
    border-radius: 16px !important;
  }

  .cta-banner-content h2 {
    font-size: 20px !important;
  }

  .cta-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .btn-solid,
  .btn-outline {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
  }

  #faq-section {
    margin-top: 28px !important;
  }

  #faq-section h2 {
    font-size: 20px;
  }

  #related-services {
    margin-top: 28px;
  }

  #related-services h2 {
    font-size: 20px;
  }
}

/* 12. PATIENT STORY PAGES */
@media (max-width: 600px) {
  .patient-story-wrapper,
  .story-content {
    padding: 0 14px;
  }
}

/* 13. CONTACT PAGE */
@media (max-width: 600px) {
  .contact-hero,
  .contact-header {
    padding: 90px 14px 40px !important;
  }

  .contact-form-wrapper,
  .booking-form-container {
    padding: 20px 14px !important;
  }
}

/* 14. GALLERY PAGE */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .gallery-hero {
    padding: 90px 14px 40px !important;
  }
}

/* 15. GLOBAL: Fix any horizontal overflow from padding/margins */
@media (max-width: 480px) {
  * {
    max-width: 100%;
  }

  section {
    overflow-x: hidden;
  }

  .home-services-wrapper,
  .about-container,
  .query-container,
  .map-container,
  .footer-container {
    width: 100%;
    overflow-x: hidden;
  }

  /* Ensure text never escapes */
  h1, h2, h3, h4, p {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
}

/* =====================================================================
   CRITICAL FIX: Stats Banner Mobile Overflow
   The .stats-banner uses width:100vw + negative margin causing overflow
   ===================================================================== */
@media (max-width: 900px) {
  .stats-banner {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    left: 0 !important;
    right: 0 !important;
    overflow: hidden;
  }

  .stats-scroll-container {
    width: 100%;
    overflow: hidden;
  }

  .stats-track {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    overflow-x: visible;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
    white-space: nowrap;
    animation: scrollStats 14s linear infinite !important;
    width: max-content !important;
  }

  .stats-track::-webkit-scrollbar {
    display: none;
  }

  .stats-track:hover {
    animation-play-state: running;
  }

  .stat-item {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
  }
}

/* =====================================================================
   CRITICAL FIX: Nav backdrop overlay when drawer is open
   ===================================================================== */
@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
    pointer-events: none;
  }

  .nav-links {
    z-index: 99999 !important;
    pointer-events: all;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }
}

/* =====================================================================
   CRITICAL FIX: Hero section horizontal scroll from fixed background
   ===================================================================== */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll !important;
    background-size: cover !important;
    overflow: hidden !important;
  }
}

/* =====================================================================
   FINAL POLISH: Ensure all page sections don't bleed outside viewport
   ===================================================================== */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* =====================================================================
   SURGICAL FIX: Each identified overflow element at mobile widths
   ===================================================================== */

/* Fix 1: Carousel wrapper negative margin causes overflow */
@media (max-width: 900px) {
  .home-services-carousel-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    overflow: hidden;
  }

  /* Fix the inner grid scroll container */
  .home-services-grid {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Constrain service cards to 85% of viewport */
  .home-service-card {
    flex: 0 0 min(85vw, 300px) !important;
    min-width: 0;
    max-width: 85vw;
  }

  /* Fix 2: Stats banner — disable animation-based width */
  .stats-banner {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    margin-left: 0 !important;
  }

  .stats-scroll-container {
    overflow: hidden !important;
    max-width: 100% !important;
  }

  /* Fix 3: Query section — stop reviews-right from overflowing */
  .query-container {
    flex-direction: column !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .query-left,
  .reviews-right {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box;
  }

  /* Fix 4: Doctor carousel — stop cards from bleeding right */
  .doctors-carousel {
    max-width: 100vw !important;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
  }

  .carousel-container {
    overflow: hidden !important;
    max-width: calc(100vw - 110px) !important;
    min-width: 0;
  }

  .doctor-card {
    min-width: 0;
    max-width: 100%;
  }

  /* Fix 5: Map container */
  .map-container {
    flex-direction: column !important;
    width: 100% !important;
    overflow: hidden !important;
    gap: 24px !important;
  }

  .map-left,
  .map-right {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    box-sizing: border-box;
  }

  /* Fix 6: Home services section padding */
  .home-services {
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden !important;
  }

  .home-services-wrapper {
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  /* Ensure absolutely positioned elements don't bleed */
  .hero-right::before {
    width: min(90vw, 300px) !important;
    height: min(90vw, 300px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Testimonial orbital — prevent satellite overflow */
  .orbital-container {
    max-width: calc(100vw - 40px);
    max-height: calc(100vw - 40px);
  }

  /* Ensure all section content boxes stay in viewport */
  .services-card,
  .next-step-card,
  .sidebar-box,
  .faq-item,
  .step {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* =====================================================================
   CSS CONTAINMENT: Prevent animation tracks from expanding scrollWidth
   The stats marquee and services carousel have wide internal content
   that counts toward body.scrollWidth unless we use CSS contain
   ===================================================================== */
.stats-scroll-container {
  contain: layout;
  overflow: hidden;
  position: relative;
}

.home-services-grid {
  contain: layout;
}

/* Ensure the section itself clips everything */
section.home-services,
.home-services {
  contain: layout;
  overflow: hidden;
}

/* Final safety — all sections should be box-sizing and width-safe */
section {
  max-width: 100%;
  box-sizing: border-box;
}

/* =====================================================================
   FINAL HERO/BANNER WIDTH LOCK
   Keep hero content padded via .hero-container, but let stats banner span full width.
   ===================================================================== */
.hero {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hero-container {
  padding-left: 48px !important;
  padding-right: 48px !important;
}

.stats-banner {
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
}

@media (max-width: 1024px) {
  .hero-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 640px) {
  .hero-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {
  .hero-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* =====================================================================
   FINAL MOBILE HERO POLISH
   Fill the empty top hero space with the visual support block.
   ===================================================================== */
@media (max-width: 900px) {
  .hero {
    padding-top: 88px !important;
  }

  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px !important;
  }

  .hero-right {
    order: -1;
    width: 100%;
    min-height: auto !important;
    display: grid;
    grid-template-columns: minmax(120px, 40vw) minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(239, 246, 251, 0.35));
    border: 1px solid rgba(18, 48, 65, 0.08);
    box-shadow: 0 18px 42px rgba(18, 48, 65, 0.12);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
  }

  .hero-right img {
    width: 100%;
    max-width: none;
    max-height: none !important;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f6fbff 100%);
    border: 1px solid rgba(18, 48, 65, 0.08);
    box-shadow: 0 14px 32px rgba(18, 48, 65, 0.14);
  }

  .hero-floating-card {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: 0 !important;
    max-width: none !important;
    min-height: 100%;
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(18, 48, 65, 0.94), rgba(15, 92, 100, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 34px rgba(18, 48, 65, 0.26);
  }

  .hero-floating-card strong {
    font-size: 22px;
    line-height: 1.2;
  }

  .hero-floating-card p {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(247, 250, 255, 0.84);
  }

  .hero-floating-label {
    margin-bottom: 8px;
    color: #ffd596;
    font-size: 10px;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-buttons .btn-appointment {
    grid-column: 1 / -1;
  }

  .btn-primary,
  .btn-secondary,
  .btn-appointment {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 82px !important;
  }

  .hero-right {
    grid-template-columns: minmax(108px, 38vw) minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .hero-right img {
    border-radius: 14px;
    padding: 10px;
  }

  .hero-floating-label {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .hero-floating-card strong {
    font-size: 18px;
  }

  .hero-floating-card p {
    font-size: 13px;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
    gap: 9px;
  }
}

@media (max-width: 768px) {
  /* =========================================
     PRO-LEVEL MOBILE OPTIMIZATION
     ========================================= */

  /* 1. TOPBAR & NAVBAR */
  .top-left {
    display: none; /* Hide welcome text to save space */
  }
  .topbar {
    padding: 8px 15px !important;
    justify-content: center;
  }
  .topbar-container {
    text-align: center;
    width: 100%;
  }
  .top-right {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 12px;
  }
  .navbar {
    padding: 10px 15px;
  }
  .logo-image {
    width: 40px;
    height: 40px;
  }
  .logo span {
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
    max-width: 220px;
  }
  .nav-actions {
    gap: 10px;
  }
  .phone {
    display: none; /* Hide phone in navbar to save space, CTA is enough */
  }
  .nav-cta {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  /* 2. HERO SECTION */
  .hero-container {
    flex-direction: column;
    padding: 120px 20px 40px; /* Space for fixed navbar */
    text-align: center;
    gap: 30px;
  }
  .hero-left {
    width: 100%;
    max-width: 100%;
    transform: none;
    opacity: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-left h1 {
    font-size: 38px;
    line-height: 1.2;
  }
  .hero-left p {
    font-size: 15px;
    padding: 0 10px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  .hero-buttons a {
    width: 100%;
    justify-content: center;
  }
  .hero-proof {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    margin-top: 30px;
  }
  .hero-right {
    width: 100%;
    transform: none;
    opacity: 1;
    margin-top: -25px;
  }
  .hero-right img {
    max-width: 90%;
    margin: 0 auto;
  }
  .hero-right::before {
    width: 300px;
    height: 300px;
  }
  .hero-floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -30px;
    width: 90%;
    padding: 15px;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* 3. STATS BANNER */
  .stats-banner {
    padding: 15px 0;
  }
  .stat-text {
    font-size: 14px;
  }
  
  /* 4. ABOUT SECTION */
  .about {
    padding: 40px 20px;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .about-text h2 {
    font-size: 28px;
  }
  .about-text p {
    font-size: 15px;
  }
  .about-features {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 15px;
  }
  .feature-card {
    padding: 20px;
  }
  
  /* 5. SERVICES SECTION */
  .home-services {
    padding: 40px 20px;
  }
  .home-services-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .home-services-header {
    position: relative;
    top: 0;
    padding: 30px 20px;
    text-align: center;
  }
  .home-services-header h2 {
    font-size: 32px;
  }
  .home-services-carousel-wrapper {
    margin-left: 0;
    padding: 10px 0;
  }
  .home-services-carousel-wrapper::before {
    display: none;
  }
  .home-service-card {
    flex: 0 0 260px; /* Give good width for horizontal swipe */
  }
  
  /* 6. ORBITAL TESTIMONIALS */
  .orbital-section {
    padding: 40px 15px !important;
  }
  .orbital-section h2 {
    font-size: 28px !important;
  }
  .orbital-container {
    transform: scale(0.65);
    margin: -40px auto;
  }
  .orbital-review-content {
    margin-top: 10px;
    padding: 0 15px;
  }
  .review-text {
    font-size: 15px !important;
  }
  
  /* 7. DOCTORS SECTION */
  .doctors {
    padding: 40px 15px;
  }
  .doctors .section-title {
    font-size: 28px;
  }
  .doctor-card {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 15px;
  }
  .doctor-img {
    width: 100px;
    height: 100px;
  }
  .doctor-info h3 {
    font-size: 18px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .doctor-details {
    max-height: 150px;
  }
  .doctor-card.expanded .doctor-details {
    max-height: 250px;
    padding: 10px 8px;
  }
}


/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-teal, #0f766e);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--primary-blue, #1e3a8a);
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}



