.nav-link:hover::after,
body,
html {
  width: 100%;
}
.btn-primary,
.btn-primary-dark {
  box-shadow: 0 4px 20px rgba(10, 42, 106, 0.35);
}
#preloader.hidden,
#scroll-top {
  opacity: 0;
  visibility: hidden;
}
#preloader,
.dark body,
.topbar {
  background: #0f172a;
}
:root {
  --primary: #0a2a6a;
  --primary-light: #e8eef8;
  --secondary: #f4a622;
  --accent: var(--secondary);
  --color-primary: var(--primary);
  --color-secondary: var(--secondary);
  /* Recolor the template utilities, including opacity and hover variants. */
  --color-red-50: #f3f6fc;
  --color-red-100: var(--primary-light);
  --color-red-200: #cedbf1;
  --color-red-300: #f8ca78;
  --color-red-400: var(--secondary);
  --color-red-500: #174487;
  --color-red-600: var(--primary);
  --color-red-700: #082357;
  --color-red-800: #071e4d;
  --color-red-900: #06183d;
  --color-yellow-400: var(--secondary);
  --color-yellow-500: var(--secondary);
  --gradient: linear-gradient(135deg, #0a2a6a 0%, #071e4d 100%);
  --medical-gradient: linear-gradient(
    135deg,
    #06183d 0%,
    #0a2a6a 60%,
    #0a2a6a 100%
  );
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, sans-serif;
  background: #fff;
  color: #0f172a;
}
.nav-link,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Outfit, sans-serif;
}
body,
html {
  max-width: 100%;
  overflow-x: clip;
  margin: 0;
  padding: 0;
}
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}
.btn-primary,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.ecg-line {
  width: 260px;
  height: 60px;
  overflow: visible;
}
.ecg-path {
  fill: none;
  stroke: #0a2a6a;
  stroke-width: 2.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: 2s infinite forwards drawECG;
}
@keyframes drawECG {
  0% {
    stroke-dashoffset: 600;
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
#navbar {
  transition: 0.4s;
  backdrop-filter: blur(16px);
}
.dark #navbar.scrolled {
  background: rgba(15, 23, 42, 0.97) !important;
}
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0a2a6a;
  transition: width 0.3s;
  border-radius: 2px;
}
.hero-section {
  min-height: 100vh;
  background: var(--medical-gradient);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
}
.btn-outline:hover,
.hero-badge {
  background: rgba(255, 255, 255, 0.1);
}
.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  font-family: Outfit, sans-serif;
}
.btn-outline,
.btn-primary {
  font-weight: 600;
  font-family: Outfit, sans-serif;
}
.btn-primary {
  background: var(--gradient);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.btn-outline,
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  gap: 8px;
  font-size: 15px;
  color: #fff;
  transition: 0.3s;
  cursor: pointer;
}
.btn-primary-dark:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10, 42, 106, 0.45);
}
.btn-outline {
  background: 0 0;
  padding: 13px 28px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  border-color: #fff;
}
.btn-primary-dark {
  background: var(--gradient);
  padding: 14px 28px;
  font-weight: 600;
  font-family: Outfit, sans-serif;
  border: none;
  text-decoration: none;
}
.btn-outline-dark,
.section-tag {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-family: Outfit, sans-serif;
}
.btn-outline-dark {
  gap: 8px;
  background: 0 0;
  color: #0a2a6a;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  border: 2px solid #0a2a6a;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-dark:hover {
  background: #0a2a6a;
  color: #fff;
}
.faq-question:hover,
.section-tag {
  color: #0a2a6a;
}
.card-medical {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(10, 42, 106, 0.08);
  transition: 0.3s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.card-medical:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10, 42, 106, 0.12);
  border-color: rgba(10, 42, 106, 0.2);
}
.blog-card:hover,
.dept-card:hover {
  transform: translateY(-4px);
}
.section-padding {
  padding: 96px 0;
}
.section-tag {
  gap: 6px;
  background: #e8eef8;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.stat-item {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child {
  border-right: none;
}
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(10, 42, 106, 0.06);
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-question {
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  font-family: Outfit, sans-serif;
  transition: color 0.3s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s, padding 0.3s;
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}
.faq-answer.open {
  max-height: 200px;
  padding-bottom: 20px;
}
.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
}
#scroll-top,
.dept-card {
  transition: 0.3s;
  cursor: pointer;
}
.faq-question.active .faq-icon {
  transform: rotate(45deg);
}
.timeline-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #0a2a6a, #f4a622);
}
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(10, 42, 106, 0.4);
  z-index: 100;
  border: none;
}
.blog-card,
.dept-card {
  border-radius: 16px;
  overflow: hidden;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
#scroll-top:hover {
  transform: translateY(-3px) scale(1.05);
}
.dark body {
  color: #e2e8f0;
}
.dark .blog-card,
.dark .card-medical {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}
.dark .topbar {
  background: #020617;
}
.dark .testimonial-card {
  background: #1e293b;
}
.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .section-tag {
  background: rgba(10, 42, 106, 0.15);
}
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .mobile-cta {
    display: block;
  }
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #0a2a6a !important;
  box-shadow: 0 0 0 3px rgba(10, 42, 106, 0.12);
}
.blog-img img,
.slider-track {
  transition: transform 0.5s;
}
.blog-img,
.slider-container {
  overflow: hidden;
}
.slider-track {
  display: flex;
}
.slide {
  min-width: 100%;
  padding: 0 8px;
}
@media (min-width: 768px) {
  .slide {
    min-width: 50%;
  }
}
@media (min-width: 1024px) {
  .slide {
    min-width: 33.333%;
  }
}
@keyframes heartbeat {
  0%,
  100%,
  28%,
  56% {
    transform-origin: center;
    transform: scale(1);
  }
  14%,
  42% {
    transform-origin: center;
    transform: scale(1.3);
  }
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.sticky {
  position: sticky;
}
.top-0 {
  top: 0;
}
.z-50 {
  z-index: 50;
}
.blog-card {
  background: #fff;
  transition: 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.blog-card:hover {
  box-shadow: 0 16px 36px rgba(10, 42, 106, 0.1);
}
.blog-card:hover .blog-img img {
  transform: scale(1.06);
}
.newsletter-section {
  background-color: #10192b;
}
footer {
  background: #050d1a;
}
/* Gold accents remain clear against the dark brand surfaces. */
.topbar { background: var(--primary); }
.nav-link::after { background: var(--secondary); }
.ecg-path { stroke: var(--secondary); }
.hero-section .btn-primary {
  background: var(--gradient) !important;
  color: #ffffff !important;
}
.hero-section .btn-primary:hover {
  background: #174487 !important;
  color: #ffffff !important;
}
.dark .section-tag,
.dark .faq-question:hover { color: var(--secondary); }

/* White page surfaces with navy text and retained brand accents. */
body,
section.bg-slate-50,
section.bg-red-50,
.hero-section,
section[style*="--medical-gradient"] {
  background: #fff !important;
}
:is(.hero-section, section[style*="--medical-gradient"]) .text-white {
  color: var(--primary);
}
:is(.hero-section, section[style*="--medical-gradient"]) :is(.text-slate-300, .text-slate-400, .text-red-200) {
  color: #475569;
}
:is(.hero-section, section[style*="--medical-gradient"]) .text-red-400 {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--secondary);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 3px;
}
:is(.hero-section, section[style*="--medical-gradient"]) :is(.hero-badge, .btn-outline) {
  color: var(--primary);
  border-color: #cedbf1;
  background: #fff;
}
:is(.hero-section, section[style*="--medical-gradient"]) .btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
:is(.hero-section, section[style*="--medical-gradient"]) .btn-primary {
  background: var(--gradient) !important;
  color: #ffffff !important;
}
:is(.hero-section, section[style*="--medical-gradient"]) .btn-primary:hover {
  background: #174487 !important;
  color: #ffffff !important;
}

#navbar a img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

/* Multi-language styling */
html[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}
html[lang="hi"] .font-heading {
  font-family: 'Noto Sans Devanagari', 'Outfit', sans-serif;
}

/* ========================================================
   CALL & WHATSAPP CTAs & LANGUAGE SWITCHER
   ======================================================== */

.nav-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0a2a6a;
  color: #ffffff !important;
  font-family: Outfit, Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(10, 42, 106, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.nav-btn-call:hover {
  background: #174487;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 42, 106, 0.35);
}

.nav-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #20ba5a;
  color: #ffffff !important;
  font-family: Outfit, Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(32, 186, 90, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}
.nav-btn-whatsapp:hover {
  background: #1da34e;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(32, 186, 90, 0.45);
}

@media (max-width: 640px) {
  .nav-btn-call,
  .nav-btn-whatsapp,
  #navbar .lang-switcher {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  #navbar .btn-primary {
    display: none !important;
  }
}

#mobile-menu-btn svg {
  stroke: #0a2a6a;
  width: 24px;
  height: 24px;
}
.dark #mobile-menu-btn svg {
  stroke: #ffffff;
}

/* Language Switcher Pill in Navbar */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.dark .lang-switcher {
  background: #1e293b;
  border-color: #334155;
}
.lang-switcher button {
  font-family: Outfit, Inter, 'Noto Sans Devanagari', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.lang-switcher button:hover {
  color: #0a2a6a;
}
.dark .lang-switcher button:hover {
  color: #93c5fd;
}
.lang-switcher button.active {
  background: #0a2a6a;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(10, 42, 106, 0.3);
}

/* Topbar Language Switcher */
.topbar-lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}
.topbar-lang-switcher button {
  font-family: Outfit, Inter, 'Noto Sans Devanagari', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #cbd5e1;
  transition: all 0.2s ease;
  line-height: 1.2;
}
.topbar-lang-switcher button:hover {
  color: #ffffff;
}
.topbar-lang-switcher button.active {
  background: #ffffff;
  color: #0a2a6a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Desktop Floating Action Buttons */
.floating-ctas {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 99;
}
@media (max-width: 768px) {
  .floating-ctas {
    display: none !important;
  }
}
.floating-cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #20ba5a;
  color: #ffffff !important;
  padding: 11px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(32, 186, 90, 0.45);
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.floating-cta-wa:hover {
  background: #1da34e;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(32, 186, 90, 0.6);
}
.floating-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0a2a6a;
  color: #ffffff !important;
  padding: 11px 18px;
  border-radius: 9999px;
  box-shadow: 0 4px 18px rgba(10, 42, 106, 0.4);
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.floating-cta-call:hover {
  background: #174487;
  color: #ffffff !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(10, 42, 106, 0.55);
}

/* Ensure mobile-cta is clear and styled */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  border-top: 1px solid #e2e8f0;
}
@media (max-width: 768px) {
  .mobile-cta {
    display: block !important;
  }
}
.mobile-cta-call {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0a2a6a;
  color: #ffffff !important;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #20ba5a;
  color: #ffffff !important;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.mobile-cta-book {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--gradient) !important;
  color: #ffffff !important;
  padding: 4px 4px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  min-width: 0;
}
.mobile-cta-book span {
  display: inline-block;
  line-height: 1.15;
  text-align: center;
  color: #ffffff !important;
  white-space: normal;
}
.mobile-cta-book svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: #ffffff !important;
}

/* Consistent contact actions, retaining the existing colors and shapes. */
.floating-ctas > a {
  width: 200px;
  height: 48px;
  justify-content: center;
  padding: 8px 12px;
}
.floating-ctas svg,
.mobile-cta svg { flex-shrink: 0; }
#scroll-top { bottom: 204px; }
.mobile-cta > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mobile-cta a { min-width: 0; height: 48px; padding: 6px; }
.mobile-cta { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
#navbar .brand-lockup { flex-shrink: 0; white-space: nowrap; }
#navbar .nav-btn-call,
#navbar .nav-btn-whatsapp,
#navbar .btn-primary { width: 120px; height: 48px; padding: 6px 8px; justify-content: center; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
#navbar .hidden.lg\:flex { gap: 16px; }
#navbar #mobile-menu .btn-primary { width: 100%; }
.hero-section .btn-primary,
.hero-section .btn-outline { width: 220px; min-height: 52px; justify-content: center; }
#home .grid > div { min-width: 0; }
#home .hero-badge { max-width: 100%; }
#home .hero-badge svg { flex-shrink: 0; }
#home .hero-support { gap: 20px; }
#home .hero-support > div { min-width: 0; }
#home .hero-support .text-3xl { font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.4; }
#home .btn-primary,
#home .btn-outline { max-width: 100%; height: auto; text-align: center; }
/* Appointment accents and flexible content retain the existing card layout. */
body a.appointment-cta,
body a.appointment-cta:hover,
#appt-form button[type="submit"],
.appointment-cta,
.appointment-cta:hover {
  background: var(--gradient) !important;
  color: #ffffff !important;
}
body a.appointment-cta:hover,
.appointment-cta:hover,
#appt-form button[type="submit"]:hover {
  background: #174487 !important;
  color: #ffffff !important;
}
body a.appointment-cta svg,
body a.appointment-cta i,
.appointment-cta svg,
.appointment-cta i,
.appointment-cta [data-lucide],
#appt-form button[type="submit"] svg,
#appt-form button[type="submit"] i {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
#services .card-medical { display: flex; flex-direction: column; min-width: 0; }
#services .card-medical > a { margin-top: auto; padding-top: 16px; }
#services .card-medical > div { flex-shrink: 0; }
/* These white cards keep readable text regardless of OS color preference. */
.faq-section,
.faq-section .card-medical,
#services .card-medical { background: #fff; }
.faq-section :is(h2, h3, .faq-question),
#services .card-medical > h3 { color: #0a2a6a; }
.faq-section .faq-answer,
#services .card-medical > p { color: #475569; }
.faq-section .faq-question:hover,
.faq-section .faq-question.active { color: #0a2a6a; }
.faq-section .faq-question { gap: 12px; }
.faq-section .faq-answer.open { max-height: none; }
#contact .card-medical,
footer .grid > div { min-width: 0; overflow-wrap: anywhere; }
#services, #how-it-works, #areas, #contact { scroll-margin-top: 88px; }
@media (min-width: 1024px) and (max-width: 1279px) {
  #navbar .nav-btn-call,
  #navbar .nav-btn-whatsapp { width: 100px; }
  #navbar .hidden.lg\:flex { gap: 12px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  #home .absolute.-left-10 { left: -12px; }
  #home .absolute.-right-8 { right: -12px; }
}
@media (max-width: 768px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  #scroll-top { bottom: calc(92px + env(safe-area-inset-bottom)); right: 16px; }
}
@media (max-width: 639px) {
  #navbar .nav-btn-call,
  #navbar .nav-btn-whatsapp { display: none; }
}



/* Fit replacement home-care imagery within the existing image frames. */
#home .overflow-hidden > img[src*="assets/home-care/"] { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
#about img[src*="assets/home-care/"] { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }

/* About stays white; nested dark cards need their own contrasting text. */
#about { --about-heading: #0a2a6a; --about-copy: #475569; }
#about [class*="text-slate-"] { color: var(--about-copy); }
#about .font-heading,
#about .text-red-600:not(svg):not(i) { color: var(--about-heading); }
@media (prefers-color-scheme: dark) {
  #about .dark\:bg-slate-700 { --about-heading: #ffffff; --about-copy: #e2e8f0; }
}

/* WhatsApp Brand Color (#20ba5a) */
.nav-btn-whatsapp,
.floating-cta-wa,
.mobile-cta-wa,
.btn-whatsapp,
[class*="bg-[#25D366]"],
[class*="bg-[#20ba5a]"] {
  background-color: #20ba5a !important;
}
.topbar a[href*="wa.me"],
.contact-wa-link,
a[href*="wa.me"].text-green-600,
a[href*="wa.me"].text-green-400 {
  color: #20ba5a !important;
}
.topbar a[href*="wa.me"]:hover,
a[href*="wa.me"]:hover {
  color: #1da34e !important;
}

/* Red Heart Color Enforcement (#dc2626) */
#heart-path,
#preloader svg path[d*="M36 62"],
.preloader-heart,
#scroll-top svg path[d*="M12 21.593"] {
  fill: #dc2626 !important;
}
i[data-lucide="heart"],
i[data-lucide="heart-pulse"],
i[data-lucide="heart-handshake"],
i[data-lucide="scan-heart"],
i[data-lucide="heart-off"],
[data-lucide="heart"],
[data-lucide="heart-pulse"],
[data-lucide="heart-handshake"],
[data-lucide="scan-heart"],
[data-lucide="heart-off"] {
  color: #dc2626 !important;
  stroke: #dc2626 !important;
}

/* CTA "Start a Conversation" Badge Background Color (#174487) */
.cta-badge-conversation {
  background-color: #174487 !important;
  color: #ffffff !important;
}


/* Keep network highlights inside the existing two-column mobile grid. */
#athomecare-highlights .stat-item { min-width: 0; }
@media (max-width: 639px) {
  #athomecare-highlights [data-i18n^="stats.value"] { font-size: clamp(1.5rem, 5vw, 2.25rem); }
}

/* ========================================================
   BOOK APPOINTMENT & DARK-BACKGROUND CTAs - WHITE TEXT
   ======================================================== */
/* White text for Book Appointment elements */
.appointment-cta,
body a.appointment-cta,
body a.appointment-cta:hover,
.appointment-cta:hover,
.mobile-cta-book,
.mobile-cta-book:hover,
.floating-cta-book,
.floating-cta-book:hover,
#navbar .btn-primary,
#navbar .btn-primary:hover,
#navbar #mobile-menu .btn-primary,
.hero-section .btn-primary,
.hero-section .btn-primary:hover,
:is(.hero-section, section[style*="--medical-gradient"]) .btn-primary,
:is(.hero-section, section[style*="--medical-gradient"]) .btn-primary:hover,
a[href*="mailto:care@athomecare.in?subject=Appointment%20Request"],
a[href*="mailto:care@athomecare.in?subject=Appointment%20Request"]:hover,
[data-i18n="nav.book"],
[data-i18n="hero.bookBtn"],
[data-i18n="cta.book"] {
  color: #ffffff !important;
}

/* White icons for Book Appointment elements */
.appointment-cta svg,
.appointment-cta i,
.appointment-cta [data-lucide],
body a.appointment-cta svg,
body a.appointment-cta i,
.mobile-cta-book svg,
.floating-cta-book svg,
#navbar .btn-primary svg,
#navbar .btn-primary i,
.hero-section .btn-primary svg,
.hero-section .btn-primary i {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* All CTAs with dark background must have white text and icons */
.btn-primary,
.btn-primary:hover,
.btn-primary-dark,
.btn-primary-dark:hover,
.nav-btn-call,
.nav-btn-call:hover,
.nav-btn-whatsapp,
.nav-btn-whatsapp:hover,
.floating-cta-call,
.floating-cta-call:hover,
.floating-cta-wa,
.floating-cta-wa:hover,
.floating-cta-book,
.floating-cta-book:hover,
.mobile-cta-call,
.mobile-cta-wa,
.mobile-cta-book,
.cta-badge-conversation,
#appt-form button[type="submit"],
#appt-form button[type="submit"]:hover,
button[type="submit"].btn-primary,
button[type="submit"].btn-primary:hover,
.dark .btn-primary,
[class*="bg-[#0a2a6a]"],
[class*="bg-[#174487]"],
[class*="bg-[#071e4d]"],
[class*="bg-[#20ba5a]"] {
  color: #ffffff !important;
}

.btn-primary svg,
.btn-primary i,
.btn-primary [data-lucide],
.btn-primary-dark svg,
.btn-primary-dark i,
.appointment-cta svg,
.appointment-cta i,
.appointment-cta [data-lucide],
.nav-btn-call svg,
.nav-btn-whatsapp svg,
.floating-cta-call svg,
.floating-cta-wa svg,
.floating-cta-book svg,
.mobile-cta-call svg,
.mobile-cta-wa svg,
.mobile-cta-book svg,
.cta-badge-conversation svg,
#appt-form button[type="submit"] svg,
#appt-form button[type="submit"] i,
button[type="submit"].btn-primary svg,
button[type="submit"].btn-primary i,
.btn-whatsapp svg {
  color: #ffffff !important;
}

/* Stroked SVGs (Lucide icons, outline calendar/phone icons in dark CTAs) */
.btn-primary svg[fill="none"],
.btn-primary-dark svg[fill="none"],
.appointment-cta svg[fill="none"],
.mobile-cta-book svg,
.floating-cta-book svg,
.btn-primary .lucide,
.btn-primary-dark .lucide,
.appointment-cta .lucide,
#appt-form button[type="submit"] .lucide,
button[type="submit"].btn-primary .lucide,
.hero-section .btn-primary .lucide {
  stroke: #ffffff !important;
  color: #ffffff !important;
  fill: none !important;
}

.btn-primary svg[fill="none"] path,
.btn-primary-dark svg[fill="none"] path,
.appointment-cta svg[fill="none"] path,
.mobile-cta-book svg path,
.floating-cta-book svg path,
.btn-primary svg[fill="none"] rect,
.btn-primary-dark svg[fill="none"] rect,
.appointment-cta svg[fill="none"] rect,
.mobile-cta-book svg rect,
.floating-cta-book svg rect,
.btn-primary svg[fill="none"] line,
.btn-primary-dark svg[fill="none"] line,
.appointment-cta svg[fill="none"] line,
.mobile-cta-book svg line,
.floating-cta-book svg line,
.btn-primary svg[fill="none"] circle,
.btn-primary-dark svg[fill="none"] circle,
.appointment-cta svg[fill="none"] circle,
.mobile-cta-book svg circle,
.floating-cta-book svg circle {
  stroke: #ffffff !important;
  fill: none !important;
}

/* Filled SVGs (Phone icon, WhatsApp icon, Heart/badge icon in dark CTAs) */
.nav-btn-call svg,
.nav-btn-whatsapp svg,
.mobile-cta-call svg,
.mobile-cta-wa svg,
.floating-cta-call svg,
.floating-cta-wa svg,
.cta-badge-conversation svg,
.btn-whatsapp svg {
  fill: #ffffff !important;
  color: #ffffff !important;
}

.nav-btn-call svg path,
.nav-btn-whatsapp svg path,
.mobile-cta-call svg path,
.mobile-cta-wa svg path,
.floating-cta-call svg path,
.floating-cta-wa svg path,
.cta-badge-conversation svg path,
.cta-badge-conversation svg path[d*="M12 21.593"],
.btn-whatsapp svg path {
  fill: #ffffff !important;
}

/* Lucide <i> placeholder before/after render */
.btn-primary i,
.btn-primary [data-lucide],
.btn-primary-dark i,
.btn-primary-dark [data-lucide],
.appointment-cta i,
.appointment-cta [data-lucide],
#appt-form button[type="submit"] i,
#appt-form button[type="submit"] [data-lucide],
button[type="submit"].btn-primary i,
button[type="submit"].btn-primary [data-lucide] {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* ========================================================
   FOOTER BRAND EMBLEM & TEXT ALIGNMENTS
   ======================================================== */
footer .footer-logo-box {
  width: 48px;
  height: 48px;
}
footer .footer-logo-box img,
footer .footer-logo-img {
  width: 80% !important;
  height: auto !important;
  max-height: 80% !important;
  object-fit: contain !important;
}
footer .footer-brand-title {
  font-size: large !important;
}
footer .footer-brand-title sup,
footer .footer-brand-title .tm-badge {
  font-size: 8px !important;
  vertical-align: top !important;
  line-height: 1 !important;
  margin-left: 2px !important;
}
footer .footer-tagline {
  font-size: small !important;
  color: #f4a622 !important;
}


