/* ================================================
   CARE MULTI SPECIALITY DENTAL HOSPITAL
   Enhanced Mobile + Advanced Design Override
   Version 2.0 — Full Mobile + Desktop Upgrade
   ================================================ */

/* ── ENHANCED ROOT VARIABLES ──────────────────── */
:root {
  --gold:       #ffd700;
  --gold-soft:  rgba(255, 215, 0, 0.15);
  --emerald:    #00e5a0;
  --purple-acc: #7c3aed;
  --pink-acc:   #ec4899;
  --nav-height: 80px;
  --safe-top:   env(safe-area-inset-top, 0px);
  --safe-bottom:env(safe-area-inset-bottom, 0px);
  --safe-left:  env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ── GLOBAL PERFORMANCE TWEAKS ─────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent font boost on Android */
* {
  -webkit-tap-highlight-color: transparent;
}

/* ── ENHANCED NAVBAR ────────────────────────────── */
.navbar {
  padding-top: calc(18px + var(--safe-top));
}

.navbar.scrolled {
  padding-top: calc(12px + var(--safe-top));
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 207, 255, 0.12);
}

/* Hide phone number text on medium screens but keep icon */
@media (max-width: 1150px) {
  .nav-phone span,
  .nav-whatsapp span {
    display: none;
  }
}

/* Mobile nav — full-screen overlay effect */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #050c1a !important;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: calc(85px + var(--safe-top)) 30px 40px;
  gap: 6px;
  z-index: 99999 !important;
  border: none;
  align-items: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  animation: slideMenuIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hide floating widgets when mobile nav menu is open */
body.menu-open .emergency-banner,
body.menu-open #emergencyBanner,
body.menu-open .floating-actions,
body.menu-open .ai-widget,
body.menu-open #ai-chat-btn,
body.menu-open .mobile-quick-cta,
body.menu-open .mobile-quick-bar {
  display: none !important;
}

@keyframes slideMenuIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.nav-links.open .nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 14px 18px;
  width: 100%;
  border-bottom: 1px solid rgba(0, 207, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}

.nav-links.open .nav-link:hover,
.nav-links.open .nav-link.active {
  background: rgba(0, 207, 255, 0.08);
  padding-left: 28px;
  color: var(--blue-1);
  border-bottom-color: rgba(0, 207, 255, 0.2);
}

.nav-links.open .nav-link::before {
  content: '→';
  font-size: 0.9rem;
  opacity: 0.5;
}

/* Hamburger on top of overlay */
.hamburger {
  position: relative;
  z-index: 100000 !important;
}

/* ── ENHANCED HERO SECTION ──────────────────────── */
.hero {
  min-height: 100svh; /* svh = small viewport height — handles mobile browsers */
  padding: 100px 0 80px;
}

/* Fix hero on mobile with safe areas */
@media (max-width: 900px) {
  .hero {
    padding-top: calc(100px + var(--safe-top));
    padding-bottom: calc(60px + var(--safe-bottom));
    min-height: 100svh;
  }
}

/* ── HERO STATS — ENHANCED MOBILE ──────────────── */
.hero-stats {
  flex-wrap: wrap;
  gap: 0;
}

.stat-item {
  min-width: 90px;
}

/* ── ENHANCED FLOATING ACTIONS ──────────────────── */
.floating-actions {
  bottom: calc(32px + var(--safe-bottom));
  right: calc(28px + var(--safe-right));
}

/* Pulse animation for WhatsApp button */
.fab-btn.whatsapp {
  animation: whatsappPulse 3s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 6px 40px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ── ENHANCED SERVICES SECTION ──────────────────── */
.service-card {
  cursor: pointer;
}

/* Service card animated shimmer on hover */
.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 207, 255, 0.06) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: none;
  pointer-events: none;
  opacity: 0;
}

.service-card:hover::after {
  animation: cardShimmer 0.7s ease forwards;
  opacity: 1;
}

@keyframes cardShimmer {
  0% { left: -60%; }
  100% { left: 120%; }
}

/* ── ENHANCED DOCTOR CARDS ──────────────────────── */
.doctor-social {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* Always show social on mobile */
@media (hover: none) {
  .doctor-social {
    opacity: 1;
    transform: none;
    position: relative;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 0;
    background: none;
  }
}

/* ── ENHANCED GALLERY GRID ──────────────────────── */
/* Always show captions on mobile */
@media (hover: none) {
  .gallery-caption {
    opacity: 1;
    transform: translateY(0);
  }
  .gallery-hover-overlay {
    display: none;
  }
}

/* ── NEW: LIVE VISITOR BADGE ────────────────────── */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #00e5a0;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.25);
  padding: 4px 10px;
  border-radius: 50px;
  margin-top: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5a0;
  animation: livePulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── NEW: URGENCY/EMERGENCY BANNER ─────────────── */
.emergency-banner {
  position: fixed !important;
  top: 90px !important;
  right: 20px !important;
  left: auto !important;
  z-index: 9990 !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50px !important;
  padding: 8px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.45), 0 4px 12px rgba(0,0,0,0.3) !important;
  text-decoration: none !important;
  color: #ffffff !important;
  max-width: 320px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.emergency-banner .emerg-icon,
.emergency-banner .em-icon {
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  animation: shake 1s ease-in-out infinite alternate;
}

@keyframes shake {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}

.emergency-banner .emerg-text {
  display: flex;
  flex-direction: column;
}

.emergency-banner strong {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.2;
}

.emergency-banner span {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.72rem;
}

.emergency-banner .emerg-close {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 6px;
  font-size: 0.75rem;
  transition: background 0.2s ease;
}

.emergency-banner .emerg-close:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* ── NEW: ANIMATED TRUST COUNTER ─────────────────  */
.trust-counter-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0;
  padding: 32px;
  background: rgba(13, 26, 53, 0.5);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.trust-counter-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 91, 255, 0.05), transparent);
  pointer-events: none;
}

.trust-counter-item {
  text-align: center;
  position: relative;
  z-index: 1;
}

.trust-counter-item .tc-num {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
}

.trust-counter-item .tc-label {
  font-size: 0.75rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
  display: block;
}

/* ── NEW: SCROLL PROGRESS BAR ─────────────────── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad-main);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.6);
  pointer-events: none;
}

/* ── NEW: NOTIFICATION TOAST ─────────────────── */
.toast-notification {
  position: fixed;
  bottom: calc(100px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(13, 26, 53, 0.98);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--text-1);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 99990;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
  text-align: center;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-notification.success {
  border-color: rgba(0, 229, 160, 0.3);
}

.toast-notification.success i {
  color: var(--emerald);
}

.toast-notification.info i {
  color: var(--blue-1);
}

/* ── NEW: ENHANCED SECTION TRANSITIONS ─────────── */
section {
  will-change: transform;
}

/* ── NEW: SHIMMER LOADING FOR IMAGES ───────────── */
.img-loading {
  background: linear-gradient(90deg, var(--dark-3) 25%, var(--dark-4) 50%, var(--dark-3) 75%);
  background-size: 200% 100%;
  animation: shimmerLoad 1.5s infinite;
}

@keyframes shimmerLoad {
  from { background-position: 200% center; }
  to { background-position: -200% center; }
}

/* ── ENHANCED APPOINTMENT FORM ──────────────────── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 207, 255, 0.2), 0 0 20px rgba(0, 207, 255, 0.1);
}

/* Better select styling on mobile */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%2300cfff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── NEW: MOBILE QUICK CONTACT BAR ─────────────── */
.mobile-quick-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 890;
  background: rgba(5, 12, 26, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 207, 255, 0.15);
  padding: 10px calc(16px + var(--safe-right)) calc(10px + var(--safe-bottom)) calc(16px + var(--safe-left));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
}

.mobile-quick-bar .bar-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 520px;
  margin: 0 auto;
}

.bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.bar-btn i {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.bar-btn.call-btn {
  background: linear-gradient(135deg, rgba(0, 91, 255, 0.2), rgba(0, 207, 255, 0.1));
  border-color: rgba(0, 207, 255, 0.3);
  color: var(--blue-1);
}

.bar-btn.wa-btn {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(18, 140, 126, 0.1));
  border-color: rgba(37, 211, 102, 0.3);
  color: #25d366;
}

.bar-btn.book-btn {
  background: var(--grad-main);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 91, 255, 0.4);
}

.bar-btn:active {
  transform: scale(0.95);
}

/* Show mobile quick bar on mobile devices */
@media (max-width: 768px) {
  .mobile-quick-bar {
    display: block;
  }

  /* Add padding to body so content isn't hidden behind bar */
  body {
    padding-bottom: calc(88px + var(--safe-bottom));
  }

  /* Adjust floating buttons to not overlap the bar */
  .floating-actions {
    bottom: calc(106px + var(--safe-bottom));
    right: calc(16px + var(--safe-right));
  }

  /* Hide old floating WhatsApp/Call buttons on mobile since we have the bar */
  .fab-btn.whatsapp,
  .fab-btn.call {
    display: none;
  }
}

/* ── COMPREHENSIVE MOBILE BREAKPOINTS ─────────── */

/* ── TABLET LARGE (≤1100px) ─────────────────────── */
@media (max-width: 1100px) {
  .nav-container {
    gap: 14px;
  }

  .hero-content {
    width: 58%;
  }

  .hero-image-panel {
    width: 38%;
  }

  .about-grid {
    gap: 48px;
  }
}

/* ── TABLET MEDIUM (≤900px) ──────────────────────── */
@media (max-width: 900px) {
  /* Cursor off on touch */
  .custom-cursor,
  .cursor-follower {
    display: none !important;
  }
  body { cursor: auto !important; }

  /* Navbar full menu override */
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .nav-phone,
  .nav-whatsapp {
    display: none;
  }
  .btn-staff-login span {
    display: none;
  }
  .btn-staff-login {
    padding: 9px 12px;
  }

  /* Hero stack */
  .hero-grid-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 36px;
    padding: 0 20px;
  }

  .hero-content {
    width: 100%;
    align-items: center;
  }

  .hero-badge {
    justify-content: center;
  }

  .hero-desc {
    text-align: center;
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
    width: 100%;
  }

  .hero-image-panel {
    width: 80%;
    max-width: 380px;
    margin: 20px auto 0;
  }

  .hero-tooth-3d {
    display: none;
  }

  .card-top {
    left: -10px;
    top: 14px;
  }

  .card-bottom {
    right: -10px;
    bottom: 20px;
  }

  /* Trust counter */
  .trust-counter-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-float-card.card-a,
  .about-float-card.card-b {
    display: none;
  }

  .about-img {
    height: 300px;
  }

  .about-cta-row {
    justify-content: center;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  /* Doctors */
  .doctors-grid.two-col {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  /* Explorer */
  .explorer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  /* Testimonials */
  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }

  /* Appointment */
  .appointment-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 230px;
  }
  .gallery-item.large {
    grid-column: 1 / 3;
  }
  .gallery-item:nth-child(4) {
    grid-column: 1;
  }
  .gallery-item:nth-child(5) {
    grid-column: 2;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-map {
    min-height: 380px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* ── TABLET SMALL (≤768px) ───────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height: 72px;
  }

  section {
    padding: 70px 0;
  }

  .container {
    width: 92%;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  }

  .section-sub {
    font-size: 0.92rem;
  }

  /* Navbar */
  .navbar {
    padding: 14px 0;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn-nav {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    padding: 90px 0 50px;
  }

  .hero-title {
    font-size: clamp(1.9rem, 6.5vw, 3rem);
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-desc {
    font-size: 0.9rem;
  }

  .hero-stats {
    padding: 16px;
    gap: 0;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .stat-item {
    padding: 0 16px;
  }

  .hero-image-panel {
    max-width: 320px;
  }

  .hero-doc-photo {
    height: 320px;
  }

  /* About */
  .about-img {
    height: 280px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-outline-call,
  .btn-outline-whatsapp {
    width: 100%;
    justify-content: center;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 28px 22px;
  }

  /* Doctor */
  .doctor-img-wrap {
    height: 360px;
  }

  .doctor-info {
    padding: 22px;
  }

  .profile-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Video */
  .tour-video {
    max-height: 280px;
  }

  .video-info-strip {
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px;
    align-items: flex-start;
  }

  /* Explorer */
  .explorer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Appointment */
  .appointment-form-card {
    padding: 28px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonial-card {
    flex: 0 0 100%;
  }

  .testimonial-card {
    padding: 26px 22px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
    gap: 10px;
  }

  /* Contact map */
  .contact-map {
    min-height: 360px;
  }

  .map-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .map-tab-btn {
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  /* Trust strip */
  .trust-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .trust-badge-card {
    padding: 12px 14px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer {
    padding: 56px 0 0;
  }

  /* Trust counter */
  .trust-counter-bar {
    padding: 24px 20px;
    gap: 12px;
  }

  .trust-counter-item .tc-num {
    font-size: 2rem;
  }

  /* Smile comparison */
  .comparison-slider {
    height: 260px;
  }

  /* Route planner */
  .route-explorer-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .route-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 14px;
  }

  .origin-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .origin-btn {
    width: auto;
    flex: 1 1 45%;
  }
}

/* ── MOBILE PORTRAIT (≤600px) ─────────────────── */
@media (max-width: 600px) {
  section {
    padding: 60px 0;
  }

  .container {
    width: 93%;
  }

  /* Hero stats wrap nicely */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-md);
    padding: 16px;
    gap: 0;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 12px 8px;
  }

  .stat-item:nth-child(4n+1),
  .stat-item:nth-child(4n+3) {
    border-right: 1px solid var(--card-border);
  }

  .stat-item:nth-child(3),
  .stat-item:nth-child(4) {
    border-bottom: none;
  }

  /* Doctor profile links */
  .profile-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Gallery single column */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item.large,
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: 1;
  }

  /* Trust strip single col */
  .trust-links-grid {
    grid-template-columns: 1fr;
  }

  /* Chatbot positioning */
  .chatbot-wrapper {
    right: 20px;
    bottom: calc(110px + var(--safe-bottom));
  }

  .chat-window {
    width: calc(100vw - 32px);
    right: 0;
    bottom: 68px;
  }

  /* Explorer single col */
  .explorer-grid {
    grid-template-columns: 1fr;
  }

  /* Trust counter */
  .trust-counter-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Comparison slider */
  .comparison-slider {
    height: 240px;
  }
}

/* ── MOBILE SMALL (≤480px) ────────────────────── */
@media (max-width: 480px) {
  :root {
    --nav-height: 64px;
  }

  section {
    padding: 56px 0;
  }

  .container {
    width: 94%;
    padding: 0;
  }

  /* Navbar */
  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    gap: 8px;
    padding: 0 16px;
  }

  .logo-img-wrap {
    width: 40px;
    height: 40px;
  }

  .logo-main {
    font-size: 1rem;
  }

  .logo-sub {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .btn-staff-login {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 80px 0 30px;
  }

  .hero-grid-wrapper {
    padding: 0 16px;
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 8.5vw, 2.6rem);
    line-height: 1.12;
  }

  .hero-tagline {
    font-size: 0.88rem;
  }

  .hero-desc {
    font-size: 0.85rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .btn-primary,
  .btn-ghost,
  .btn-whatsapp-hero {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.92rem;
  }

  .hero-image-panel {
    width: 90%;
    max-width: none;
    margin: 0 auto;
  }

  .hero-doc-photo {
    height: 280px;
  }

  .card-top,
  .card-bottom {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  /* Heading sizes */
  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  }

  .section-tag {
    font-size: 0.68rem;
  }

  .section-header {
    margin-bottom: 28px;
  }

  /* About */
  .about-img {
    height: 240px;
  }

  .about-content {
    gap: 14px;
  }

  .about-text {
    font-size: 0.9rem;
  }

  .feature-item {
    font-size: 0.82rem;
    padding: 9px 12px;
  }

  .about-cta-row {
    gap: 10px;
  }

  /* Services */
  .service-card {
    padding: 24px 18px;
  }

  .service-icon-3d {
    width: 58px;
    height: 58px;
    font-size: 1.3rem;
  }

  .service-card h3 {
    font-size: 1.05rem;
  }

  /* Doctors */
  .doctor-img-wrap {
    height: 300px;
  }

  .doctor-info {
    padding: 18px 16px;
    gap: 6px;
  }

  .doctor-info h3 {
    font-size: 1.1rem;
  }

  .doctor-info p {
    font-size: 0.85rem;
  }

  .doctor-stats-row {
    gap: 6px;
  }

  .doc-stat {
    padding: 8px 6px;
  }

  .doctor-timings-badge {
    font-size: 0.73rem;
    flex-wrap: wrap;
  }

  .profile-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .profile-link-btn {
    font-size: 0.72rem;
    padding: 7px 8px;
  }

  /* Video */
  .tour-video {
    max-height: 220px;
  }

  /* Appointment form */
  .appointment-form-card {
    padding: 22px 16px;
  }

  .form-header h3 {
    font-size: 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 11px 14px;
    font-size: 0.88rem;
  }

  .btn-submit {
    font-size: 0.92rem;
    padding: 14px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 22px 16px;
  }

  .testimonial-card p {
    font-size: 0.85rem;
  }

  .carousel-controls {
    gap: 12px;
    margin-top: 22px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  /* Contact */
  .contact-card {
    padding: 14px 16px;
  }

  .contact-card-icon {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .contact-map {
    min-height: 340px;
  }

  .map-overlay-card {
    bottom: 8px;
    left: 8px;
    padding: 10px 12px;
    max-width: 200px;
  }

  .map-overlay-card strong {
    font-size: 0.72rem;
  }

  .map-overlay-card span {
    font-size: 0.65rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer {
    padding: 44px 0 0;
  }

  .footer-brand > p {
    font-size: 0.84rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 0;
  }

  .footer-bottom p {
    font-size: 0.76rem;
  }

  .footer-bottom-links {
    flex-direction: row;
    gap: 16px;
    justify-content: center;
  }

  /* Explorer */
  .explorer-card {
    padding: 22px 18px;
  }

  .card-title {
    font-size: 1rem;
    min-height: auto;
  }

  .card-metrics {
    gap: 8px;
  }

  .metric-box {
    padding: 8px 4px;
  }

  /* Smile slider */
  .comparison-slider {
    height: 200px;
  }

  .slider-label {
    font-size: 0.62rem;
    padding: 4px 8px;
  }

  /* Modal */
  .modal-box {
    padding: 32px 20px;
  }

  .modal-box h3 {
    font-size: 1.2rem;
  }

  /* Google rating badge */
  .google-rating-badge {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  /* Route planner */
  .route-explorer-layout {
    grid-template-columns: 1fr;
  }

  .route-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--card-border);
  }

  .origin-btn {
    width: auto;
    flex: 1 1 45%;
  }

  /* Trust counter */
  .trust-counter-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px 16px;
    gap: 10px;
  }

  .trust-counter-item .tc-num {
    font-size: 1.9rem;
  }

  /* Floating buttons */
  .floating-actions {
    right: calc(14px + var(--safe-right));
    gap: 10px;
  }

  .fab-btn {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .fab-label {
    display: none;
  }
}

/* ── VERY SMALL (≤360px) ─────────────────────── */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .stat-item {
    padding: 10px 6px;
  }

  .stat-num {
    font-size: 1.25rem;
  }

  .hero-badge {
    font-size: 0.62rem;
  }

  .doctor-img-wrap {
    height: 260px;
  }

  .appointment-form-card {
    padding: 18px 12px;
  }

  .service-icon-3d {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .profile-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-counter-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ── LANDSCAPE PHONE FIX ──────────────────────── */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding: 80px 0 40px;
  }

  .hero-grid-wrapper {
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
  }

  .hero-content {
    width: 58%;
    padding: 0;
    align-items: flex-start;
    text-align: left;
  }

  .hero-image-panel {
    width: 40%;
    margin: 0;
  }

  .hero-doc-photo {
    height: 220px;
  }

  .hero-badge {
    justify-content: flex-start;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-stats {
    justify-content: flex-start;
    width: auto;
  }

  .hero-desc {
    text-align: left;
  }

  section {
    padding: 48px 0;
  }
}

/* ── TOUCH DEVICE ENHANCEMENTS ─────────────────── */
@media (hover: none) {
  /* Remove hover-only effects on touch */
  .service-card:hover {
    transform: none;
  }

  /* Increase tap targets */
  .nav-link {
    padding: 10px 16px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .fab-btn,
  .bar-btn,
  .carousel-btn,
  .origin-btn,
  .map-tab-btn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Better touch feedback */
  a:active,
  button:active {
    opacity: 0.8;
  }
}

/* ── HIGH CONTRAST / ACCESSIBILITY ─────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-inner {
    animation: none;
  }
}

/* ── PRINT STYLES ────────────────────────────────── */
@media print {
  .navbar,
  .floating-actions,
  .mobile-quick-bar,
  .chatbot-wrapper,
  #particleCanvas,
  .scroll-indicator,
  .orb,
  video {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    padding-bottom: 0;
  }

  section {
    padding: 30px 0;
  }
}

/* ── ENHANCED VISUAL EFFECTS ────────────────────── */

/* Glassmorphism cards */
.glass-card {
  background: rgba(13, 26, 53, 0.95);
  border: 1px solid rgba(0, 207, 255, 0.15);
}

/* Gradient border effect */
.gradient-border {
  position: relative;
}

.gradient-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--blue-1), transparent, var(--blue-2));
  z-index: -1;
  pointer-events: none;
}

/* ── ENHANCED SCROLL ANIMATIONS ─────────────────── */
[data-aos] {
  pointer-events: none;
}

[data-aos].aos-animate {
  pointer-events: auto;
}

/* ── NEW: ENHANCED CHATBOT ──────────────────────── */
.chatbot-wrapper {
  right: 28px;
  bottom: calc(32px + var(--safe-bottom));
}

@media (max-width: 768px) {
  .chatbot-wrapper {
    right: 20px;
    bottom: calc(100px + var(--safe-bottom));
  }

  .chat-window {
    width: min(350px, calc(100vw - 32px));
    height: min(480px, calc(100svh - 200px));
  }
}

/* ── NEW: ENHANCED VIDEO SECTION ─────────────────── */
.video-player-card {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .tour-video {
    max-height: 56.25vw; /* 16:9 ratio */
    min-height: 200px;
  }
}

/* ── ENHANCED APPOINTMENT FORM INFO PANEL ────────── */
@media (max-width: 768px) {
  .appt-contact-list {
    gap: 10px;
  }

  .appt-contact-item {
    padding: 12px 16px;
  }

  .appt-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 0.9rem;
  }
}

/* ── ENHANCED TESTIMONIALS ───────────────────────── */
.testimonials-track-outer {
  overflow: hidden;
}

.testimonial-track {
  gap: 20px;
}

/* ── ENHANCED FOOTER ─────────────────────────────── */
@media (max-width: 480px) {
  .footer-col h4 {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .footer-col ul a {
    font-size: 0.82rem;
  }

  .fc-item {
    font-size: 0.8rem;
  }
}

/* ── FIXED SPECIFIC BUGS ─────────────────────────── */

/* Fix hero stats overflow on small screens */
.hero-stats {
  overflow: hidden;
}

/* Fix gallery image aspect ratio on all devices */
.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure doctor photos never break layout */
.doctor-photo {
  min-height: 100%;
}

/* Fix map height on mobile */
@media (max-width: 480px) {
  .contact-map {
    min-height: 320px;
  }

  #liveMap iframe {
    height: calc(100% - 55px) !important;
  }

  .map-tab-content.active {
    height: 380px;
  }
}

/* Fix chatbot z-index and bottom offset on mobile */
@media (max-width: 768px) {
  .chatbot-wrapper {
    bottom: calc(var(--mobile-bar-h, 64px) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    left: auto !important;
    z-index: 99990 !important;
    width: 50px !important;
    height: 50px !important;
  }
  .floating-actions {
    position: fixed !important;
    left: 16px !important;
    right: auto !important;
    bottom: calc(var(--mobile-bar-h, 64px) + 14px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 99990 !important;
    pointer-events: none !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  #waBtnFloat,
  #callBtnFloat,
  .floating-actions .fab-btn.whatsapp,
  .floating-actions .fab-btn.call {
    display: none !important;
  }
  .emergency-banner {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    max-width: 94% !important;
    margin: 85px auto 10px !important; /* Clears the 80px fixed navbar on mobile */
    padding: 10px 16px !important;
    z-index: 100 !important;
    border-radius: 30px !important;
    justify-content: center !important;
  }
}

/* Fix floating actions for desktop view */
@media (min-width: 769px) {
  .mobile-quick-bar {
    display: none !important;
  }

  .fab-btn.whatsapp,
  .fab-btn.call {
    display: flex !important;
  }

  body {
    padding-bottom: 0;
  }

  .floating-actions {
    position: fixed !important;
    bottom: 92px !important;
    right: 24px !important;
    left: auto !important;
    z-index: 99998 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-end !important;
  }
}

/* ── NEW: MOBILE MENU CLOSE BTN ────────────────── */
.mobile-menu-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 207, 255, 0.2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-1);
  cursor: pointer;
  z-index: 999;
}

.nav-links.open .mobile-menu-close {
  display: flex;
}

/* ── NEW: ENHANCED INPUT DATE PICKER ──────────── */
input[type="date"] {
  color-scheme: dark;
}

/* ── NEW: SMOOTH SCROLL PADDING ─────────────────── */
#home, #about, #services, #doctors, #video, #makeovers, #explorer,
#appointment, #testimonials, #gallery, #contact, #quiz,
#technology, #journey, #awards, #faq, #triage, #docvideos, #stats, #whychoose {
  scroll-margin-top: calc(var(--nav-height) + 15px);
}

/* ── ENHANCED SERVICE CARD GRADIENT ICONS ────── */
.service-card:nth-child(1) .service-icon-3d { background: linear-gradient(135deg, rgba(0, 91, 255, 0.25), rgba(0, 207, 255, 0.15)); border-color: rgba(0, 207, 255, 0.3); }
.service-card:nth-child(2) .service-icon-3d { background: linear-gradient(135deg, rgba(255, 59, 48, 0.2), rgba(255, 149, 0, 0.1)); border-color: rgba(255, 59, 48, 0.3); color: #ff6b5e; }
.service-card:nth-child(3) .service-icon-3d { background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.1)); border-color: rgba(124, 58, 237, 0.3); color: #a78bfa; }
.service-card:nth-child(4) .service-icon-3d { background: linear-gradient(135deg, rgba(0, 229, 160, 0.2), rgba(0, 207, 255, 0.1)); border-color: rgba(0, 229, 160, 0.3); color: var(--emerald); }
.service-card:nth-child(5) .service-icon-3d { background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 149, 0, 0.1)); border-color: rgba(255, 215, 0, 0.3); color: var(--gold); }
.service-card:nth-child(6) .service-icon-3d { background: linear-gradient(135deg, rgba(0, 207, 255, 0.2), rgba(0, 229, 200, 0.1)); border-color: rgba(0, 229, 200, 0.3); color: var(--teal); }

/* Featured service card glowing treatment */
.service-card.featured {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.08), rgba(255, 149, 0, 0.04));
  border-color: rgba(255, 59, 48, 0.3);
}

.service-card.featured::before {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.6), rgba(255, 149, 0, 0.4));
  transform: scaleX(1);
}

/* ── ENHANCED HERO FLOAT CARDS ──────────────────── */
.hero-float-card {
  z-index: 10;
  min-width: 180px;
}

/* ── FIXED COMPARISON SLIDER MOBILE ─────────────── */
@media (max-width: 480px) {
  .slider-wrapper {
    margin: 20px 0 0;
    border-radius: var(--radius-md);
  }

  .handle-button {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

/* ── NEW: WHATSAPP CALL TO ACTION (STICKY) ──────── */
.sticky-wa-cta {
  display: none;
}

/* ── TICKER MOBILE FIX ───────────────────────────── */
.ticker-strip {
  overflow: hidden;
  touch-action: pan-y;
}

/* ── MAP MOBILE FIX ────────────────────────────── */
@media (max-width: 600px) {
  .map-tab-content.active {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 380px;
  }

  .route-details-panel {
    height: auto;
    overflow-y: visible;
    padding: 16px;
  }

  .route-gps-btn {
    align-self: stretch;
    justify-content: center;
    text-align: center;
  }
}

/* ── IMPROVED FORM VALIDATION STYLES ───────────── */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:focus) {
  border-color: rgba(255, 59, 48, 0.4);
}

.form-group input:valid:not(:placeholder-shown) {
  border-color: rgba(0, 229, 160, 0.3);
}

/* ── NEW: ENHANCED PRELOADER ────────────────────── */
.preloader-inner {
  animation: preloaderFadeIn 0.5s ease forwards;
}

@keyframes preloaderFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ── ENHANCED AOS ANIMATIONS ────────────────────── */
[data-aos="fade-up"] {
  transform: translateY(24px);
}

[data-aos="fade-down"] {
  transform: translateY(-24px);
}

/* ── NEW: GRADIENT UNDERLINE EFFECT ─────────────── */
.gradient-underline {
  position: relative;
}

.gradient-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-main);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.gradient-underline:hover::after {
  transform: scaleX(1);
}

/* Master Image Responsiveness & Aspect Ratio Protection */
img, video {
  max-width: 100%;
  height: auto;
}

/* Doctor Card Photos — Ensure facial visibility on all screens */
.doctor-photo-anil {
  object-position: center 5% !important;
}
.doctor-photo-ramya {
  object-position: center 3% !important;
}

.team-banner-img {
  width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: contain !important;
  object-position: center top !important;
  border-radius: 16px !important;
}

@media (max-width: 900px) {
  .hero-doc-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    max-height: 420px !important;
    object-fit: cover !important;
    object-position: center 6% !important;
  }
  .about-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    max-height: 380px !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .doctor-img-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    max-height: 440px !important;
  }
  .team-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
    object-position: center top !important;
  }
}

@media (max-width: 600px) {
  .hero-doc-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    max-height: 360px !important;
    object-fit: cover !important;
    object-position: center 5% !important;
  }
  .about-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    max-height: 320px !important;
    object-fit: cover !important;
  }
  .doctor-img-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    max-height: 420px !important;
  }
  .team-banner-card {
    padding: 16px !important;
  }
  .team-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important;
    object-fit: contain !important;
    object-position: center top !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    gap: 14px !important;
  }
  .gallery-item {
    aspect-ratio: 4 / 3 !important;
    width: 100% !important;
    height: auto !important;
  }
  .gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
  .comparison-slider {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 240px !important;
  }
}

@media (max-width: 480px) {
  .hero-doc-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    max-height: 320px !important;
    object-position: center 5% !important;
  }
  .about-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    max-height: 280px !important;
    object-fit: cover !important;
  }
  .about-img-accent {
    display: none !important;
  }
  .doctor-img-wrap {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    max-height: 380px !important;
  }
  .team-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    object-fit: contain !important;
    object-position: center top !important;
  }
  .comparison-slider {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    min-height: 220px !important;
  }
  .logo-real-img {
    max-height: 38px !important;
    width: auto !important;
  }
  .card-anim-header {
    height: 130px !important;
    margin: -24px -18px 16px -18px !important;
    width: calc(100% + 36px) !important;
  }
}

/* ================================================
   ULTRA MOBILE COMPATIBILITY & OVERFLOW PROTECTION
   ================================================ */

html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Prevent horizontal overflow on containers */
.container,
.hero-container,
.nav-container,
.section-container,
.footer-container {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Body lock when mobile menu is open */
body.menu-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Prevent auto-zoom on iOS inputs when focused */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents auto zoom in iOS */
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Responsive Table Wrapper */
  .table-responsive,
  .admin-table-wrap,
  .treatment-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
  }

  /* Hero Section Mobile Enhancements */
  .hero-ctas,
  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .hero-ctas .btn,
  .hero-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Section Padding Optimization */
  section {
    padding: 50px 16px !important;
  }

  .hero {
    padding-top: calc(90px + var(--safe-top)) !important;
    padding-bottom: 50px !important;
  }

  /* Typography Fluid Scaling */
  h1, .hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.6rem) !important;
    line-height: 1.25 !important;
  }

  h2, .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    line-height: 1.3 !important;
  }

  h3, .card-title {
    font-size: clamp(1.15rem, 4vw, 1.4rem) !important;
  }

  /* Stat cards / Trust metrics grid on mobile */
  .trust-counter-bar,
  .stats-grid,
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 18px !important;
  }

  .trust-counter-item .tc-num {
    font-size: 1.8rem !important;
  }

  .trust-counter-item .tc-label {
    font-size: 0.7rem !important;
  }

  /* Emergency banner optimization on mobile */
  .emergency-banner {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    margin: 10px auto !important;
    max-width: 92% !important;
    justify-content: center !important;
  }

  /* Floating Widgets Mobile Spacing */
  .floating-actions {
    bottom: calc(76px + var(--safe-bottom)) !important;
    right: 14px !important;
    z-index: 99988 !important;
  }

  /* Mobile Quick Action Bottom Bar */
  .mobile-quick-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 62px !important;
    background: rgba(5, 12, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(0, 207, 255, 0.2) !important;
    z-index: 99990 !important;
    align-items: center !important;
    justify-content: space-around !important;
    padding: 4px 6px calc(4px + var(--safe-bottom)) !important;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.7) !important;
  }

  .mobile-quick-bar a,
  .mobile-quick-bar button {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 6px 2px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
  }

  .mobile-quick-bar a i,
  .mobile-quick-bar button i {
    font-size: 1.15rem !important;
    color: var(--blue-1, #00cfff) !important;
  }

  .mobile-quick-bar a:active,
  .mobile-quick-bar button:active {
    background: rgba(0, 207, 255, 0.15) !important;
    color: #ffffff !important;
  }

  .mobile-quick-bar .quick-btn-call {
    background: linear-gradient(135deg, #00cfff, #005bff) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    margin: 0 4px !important;
  }

  .mobile-quick-bar .quick-btn-call i {
    color: #ffffff !important;
  }

  .mobile-quick-bar .quick-btn-whatsapp {
    background: #25d366 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    margin: 0 4px !important;
  }

  .mobile-quick-bar .quick-btn-whatsapp i {
    color: #ffffff !important;
  }

  body {
    padding-bottom: 64px !important;
  }

  /* Modals on Mobile */
  .modal-content,
  .modal-dialog {
    width: 95% !important;
    max-width: 95% !important;
    margin: 15px auto !important;
    padding: 20px 16px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
}

/* Extra small devices (< 400px) */
@media screen and (max-width: 400px) {
  .trust-counter-bar,
  .stats-grid,
  .hero-stats {
    grid-template-columns: 1fr !important;
  }

  .nav-logo-text {
    font-size: 0.95rem !important;
  }

  .mobile-quick-bar a span,
  .mobile-quick-bar button span {
    font-size: 0.62rem !important;
  }
}

/* ================================================
   PERFORMANCE & SPEED BOOST (HIGH ACCURACY RENDERING)
   ================================================ */

/* Hardware acceleration for interactive elements */
.service-card,
.doctor-card,
.feature-card,
.testimonial-card,
.gallery-item,
.modal-box,
.btn-primary,
.floating-actions,
.mobile-quick-bar {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Skip offscreen rendering for heavy below-the-fold sections for instant load speed */
@media (prefers-reduced-motion: no-preference) {
  .gallery-section,
  .testimonials-section,
  .faq-section,
  .comparison-section,
  .technology-section,
  .location-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
  }
}

/* Optimize smooth scrolling behavior */
html {
  scroll-behavior: smooth;
}

/* Ensure images load without layout shifts (CLS protection) */
img {
  max-width: 100%;
  height: auto;
}

/* ================================================
   SPACIOUS & UNPACKED HERO & NAVBAR REDESIGN
   ================================================ */

.navbar {
  height: 84px !important;
  background: rgba(5, 12, 26, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 207, 255, 0.15) !important;
}

.nav-links {
  gap: 28px !important;
}

.nav-links .nav-link {
  font-size: 0.94rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px;
}

.nav-phone-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  background: rgba(0, 207, 255, 0.08) !important;
  border: 1px solid rgba(0, 207, 255, 0.2) !important;
  color: var(--blue-1, #00cfff) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.nav-phone-chip:hover {
  background: rgba(0, 207, 255, 0.18) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.hero {
  padding: 130px 0 60px !important;
  min-height: 82vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.hero-grid-wrapper {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  gap: 48px !important;
  align-items: center !important;
}

.hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 18px !important;
}

.hero-title {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem) !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.8px !important;
  margin: 0 !important;
}

.hero-desc {
  font-size: 1.08rem !important;
  line-height: 1.65 !important;
  color: rgba(226, 232, 240, 0.9) !important;
  max-width: 620px !important;
  margin: 0 !important;
}

.hero-pills-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 6px 0 !important;
}

.hero-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  background: rgba(13, 26, 53, 0.6) !important;
  border: 1px solid rgba(0, 207, 255, 0.2) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  backdrop-filter: blur(10px) !important;
}

.hero-pill i {
  color: #00e5a0 !important;
}

.hero-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-top: 10px !important;
}

.hero-img-card {
  position: relative !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0, 207, 255, 0.15), 0 0 0 1px rgba(0, 207, 255, 0.2) !important;
  transition: transform 0.4s ease !important;
}

.hero-img-card:hover {
  transform: translateY(-4px) !important;
}

.hero-showcase-badge {
  position: absolute !important;
  bottom: 16px !important;
  left: 16px !important;
  right: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 18px !important;
  background: rgba(5, 12, 26, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 207, 255, 0.25) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  z-index: 10 !important;
}

.hero-showcase-badge .badge-avatar-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #00cfff, #005bff) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  color: #fff !important;
  flex-shrink: 0 !important;
}

.hero-showcase-badge strong {
  display: block !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
}

.hero-showcase-badge span {
  display: block !important;
  font-size: 0.76rem !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Stat Strip Below Hero */
.hero-stats-container {
  margin-top: 45px !important;
}

.hero-stats-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 24px 36px !important;
  background: rgba(13, 26, 53, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 207, 255, 0.18) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.stat-strip-item {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.stat-icon-wrap {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(0, 207, 255, 0.1) !important;
  border: 1px solid rgba(0, 207, 255, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  color: #00cfff !important;
}

.stat-strip-item .stat-num {
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

.stat-strip-item .stat-plus {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  color: #00e5a0 !important;
  margin-left: 2px !important;
}

.stat-strip-item .stat-sublabel {
  display: block !important;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  margin-top: 3px !important;
}

.stat-strip-divider {
  width: 1px !important;
  height: 40px !important;
  background: rgba(0, 207, 255, 0.15) !important;
}

@media (max-width: 992px) {
  .hero-grid-wrapper {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .hero-stats-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 20px !important;
  }

  .stat-strip-divider {
    display: none !important;
  }
}

/* ================================================
   MODERN MINIMALIST & LUXURY CLEAN DESIGN OVERRIDES
   ================================================ */

:root {
  --navy-dark: #070d19;
  --navy-card: rgba(11, 22, 44, 0.75);
  --accent-blue: #2563eb;
  --accent-teal: #0ea5e9;
  --accent-gold: #f59e0b;
}

body {
  background-color: var(--navy-dark) !important;
  color: #f8fafc !important;
  font-family: 'Outfit', sans-serif !important;
}

.gradient-text-luxury,
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #0284c7 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Section Header Typography */
.section-tag {
  color: #38bdf8 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px !important;
}

/* Luxury Primary Buttons */
.btn-primary,
.btn-nav {
  background: linear-gradient(135deg, #2563eb, #0284c7) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4) !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  padding: 12px 26px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover,
.btn-nav:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.6) !important;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 12px 24px !important;
  backdrop-filter: blur(10px) !important;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
}

/* Glass Cards Enhancement */
.service-card,
.doctor-card,
.feature-card,
.testimonial-card,
.appointment-form-card {
  background: rgba(11, 22, 44, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.35s ease !important;
}

.service-card:hover,
.doctor-card:hover,
.feature-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 25px 50px -10px rgba(2, 132, 199, 0.25) !important;
}

/* HD Hero Image & Rating Chip Styles */
.hero-hd-frame {
  position: relative !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  box-shadow: 0 25px 60px -10px rgba(0, 207, 255, 0.25), 0 0 0 1px rgba(0, 207, 255, 0.3) !important;
  background: rgba(11, 22, 44, 0.9) !important;
}

.hero-hd-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hero-hd-frame:hover img {
  transform: scale(1.03) !important;
}

.hero-rating-chip {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 14px !important;
  background: rgba(5, 12, 26, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
  border-radius: 50px !important;
  z-index: 10 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.hero-rating-chip .rating-star {
  color: #fbbf24 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
}

.hero-rating-chip .rating-text {
  color: #f8fafc !important;
  font-size: 0.74rem !important;
  font-weight: 600 !important;
}

.hero-rating-chip .rating-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #00e5a0 !important;
  box-shadow: 0 0 8px #00e5a0 !important;
  animation: livePulse 1.5s ease-in-out infinite !important;
}

/* ================================================
   CENTERED HERO LAYOUT & DOCTOR DUO SHOWCASE
   ================================================ */

.hero-centered-wrapper {
  max-width: 1050px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.hero-content-centered {
  align-items: center !important;
  text-align: center !important;
  max-width: 860px !important;
  margin: 0 auto !important;
}

.hero-title-centered {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem) !important;
  text-align: center !important;
}

.hero-desc-centered {
  text-align: center !important;
  margin: 0 auto !important;
}

.hero-pills-centered {
  justify-content: center !important;
}

.hero-actions-centered {
  justify-content: center !important;
}

/* Centered Doctor Duo Showcase Frame - Premium Vibrant Redesign */
.hero-centered-showcase {
  width: 100% !important;
  max-width: 820px !important;
  margin: 36px auto 0 !important;
  position: relative !important;
}

.hero-duo-frame {
  position: relative !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: linear-gradient(145deg, #0e192e, #091122) !important;
  border: 1.5px solid rgba(0, 207, 255, 0.5) !important;
  box-shadow: 
    0 25px 70px -10px rgba(0, 207, 255, 0.45), 
    0 0 45px rgba(168, 85, 247, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease !important;
}

.hero-duo-frame:hover {
  transform: translateY(-4px) scale(1.008) !important;
  box-shadow: 
    0 35px 90px -10px rgba(0, 207, 255, 0.6), 
    0 0 60px rgba(168, 85, 247, 0.45),
    inset 0 1px 3px rgba(255, 255, 255, 0.35) !important;
}

.hero-duo-img {
  width: 100% !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center 15% !important;
  display: block !important;
  filter: brightness(1.28) contrast(1.12) saturate(1.22) !important;
  transition: filter 0.4s ease, transform 0.6s ease !important;
}

.hero-duo-frame:hover .hero-duo-img {
  filter: brightness(1.34) contrast(1.16) saturate(1.28) !important;
  transform: scale(1.025) !important;
}

/* Ambient Backlight Glow Effect */
.duo-ambient-glow {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60% !important;
  background: radial-gradient(circle at 50% 0%, rgba(0, 207, 255, 0.18), transparent 70%) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Top Right Rating Badge - Vibrant Gold Glass Pill */
.duo-rating-badge {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  background: rgba(10, 18, 36, 0.85) !important;
  backdrop-filter: blur(20px) saturation(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturation(180%) !important;
  border: 1px solid rgba(251, 191, 36, 0.7) !important;
  border-radius: 50px !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(251, 191, 36, 0.35) !important;
  z-index: 10 !important;
}

.duo-rating-badge .star-icon {
  color: #fbbf24 !important;
  font-weight: 900 !important;
  font-size: 0.9rem !important;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6) !important;
}

.duo-rating-badge .badge-text {
  color: #ffffff !important;
  letter-spacing: 0.2px !important;
}

.duo-rating-badge .live-dot-green {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #00ffaa !important;
  box-shadow: 0 0 10px #00ffaa !important;
  animation: livePulse 1.5s ease-in-out infinite !important;
}

/* Top Left Experience Badge - Cyan Glass Pill */
.duo-experience-badge {
  position: absolute !important;
  top: 18px !important;
  left: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  background: rgba(10, 18, 36, 0.85) !important;
  backdrop-filter: blur(20px) saturation(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturation(180%) !important;
  border: 1px solid rgba(0, 207, 255, 0.6) !important;
  border-radius: 50px !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 207, 255, 0.3) !important;
  z-index: 10 !important;
}

.duo-experience-badge i {
  color: #00cfff !important;
  font-size: 0.9rem !important;
}

/* Bottom Specialist Duo Banner (Frosted Glass Card) */
.duo-info-banner {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding: 16px 24px !important;
  background: linear-gradient(180deg, rgba(8, 16, 32, 0.72) 0%, rgba(4, 8, 18, 0.96) 100%) !important;
  backdrop-filter: blur(24px) saturation(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturation(180%) !important;
  border-top: 1.5px solid rgba(0, 207, 255, 0.45) !important;
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.5) !important;
  z-index: 10 !important;
}

.duo-doctor-col {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-align: left !important;
}

.duo-doc-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-size: 1.15rem !important;
  flex-shrink: 0 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.duo-doc-avatar.pink-avatar {
  background: linear-gradient(135deg, #ff2a85, #9333ea) !important;
  box-shadow: 0 4px 18px rgba(255, 42, 133, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.duo-doc-avatar.blue-avatar {
  background: linear-gradient(135deg, #00d2ff, #2563eb) !important;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.duo-doctor-col:hover .duo-doc-avatar {
  transform: scale(1.08) rotate(3deg) !important;
}

.duo-doc-details strong {
  display: block !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: 0.2px !important;
}

.duo-doc-details .duo-spec {
  display: block !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}

.duo-doc-details .pink-spec {
  color: #ff9ebb !important;
  text-shadow: 0 0 12px rgba(255, 42, 133, 0.3) !important;
}

.duo-doc-details .blue-spec {
  color: #7dd3fc !important;
  text-shadow: 0 0 12px rgba(0, 207, 255, 0.3) !important;
}

.duo-divider {
  width: 1px !important;
  height: 42px !important;
  background: linear-gradient(to bottom, rgba(0, 207, 255, 0.1), rgba(0, 207, 255, 0.6), rgba(0, 207, 255, 0.1)) !important;
}

@media (max-width: 768px) {
  .duo-experience-badge {
    display: none !important;
  }

  .duo-info-banner {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding: 14px 16px !important;
  }

  .duo-divider {
    display: none !important;
  }

  .duo-doctor-col {
    width: 100% !important;
  }
}

/* ===== FEATURED SPOTLIGHT TESTIMONIAL CARD (R. RAGHAVENDRA) ===== */
.featured-testimonial-hero {
  width: 100% !important;
  max-width: 920px !important;
  margin: 0 auto 36px !important;
}

.spotlight-card-frame {
  position: relative !important;
  border-radius: 26px !important;
  padding: 32px 38px !important;
  background: linear-gradient(135deg, rgba(15, 25, 48, 0.95), rgba(8, 14, 28, 0.98)) !important;
  border: 1.5px solid rgba(251, 191, 36, 0.55) !important;
  box-shadow: 
    0 20px 60px -10px rgba(251, 191, 36, 0.25), 
    0 0 40px rgba(0, 207, 255, 0.2),
    inset 0 1px 2px rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  backdrop-filter: blur(20px) !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}

.spotlight-card-frame:hover {
  transform: translateY(-4px) !important;
  box-shadow: 
    0 30px 85px -10px rgba(251, 191, 36, 0.4), 
    0 0 55px rgba(0, 207, 255, 0.35),
    inset 0 1px 3px rgba(255, 255, 255, 0.3) !important;
}

.spotlight-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 18px !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.12)) !important;
  border: 1px solid rgba(251, 191, 36, 0.65) !important;
  border-radius: 50px !important;
  color: #fbbf24 !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  margin-bottom: 20px !important;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2) !important;
}

.spotlight-quote-icon {
  font-size: 2.2rem !important;
  color: rgba(251, 191, 36, 0.4) !important;
  margin-bottom: 8px !important;
}

.spotlight-stars {
  color: #fbbf24 !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  margin-bottom: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.spotlight-verified-chip {
  font-size: 0.76rem !important;
  color: #00ffaa !important;
  background: rgba(0, 255, 170, 0.1) !important;
  border: 1px solid rgba(0, 255, 170, 0.3) !important;
  padding: 4px 12px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
}

.spotlight-text {
  font-size: 1.02rem !important;
  line-height: 1.75 !important;
  color: #f1f5f9 !important;
  font-style: italic !important;
  margin-bottom: 24px !important;
}

.spotlight-author {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding-top: 20px !important;
}

.spotlight-avatar {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  font-size: 1.45rem !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.5), 0 0 0 2px rgba(251, 191, 36, 0.7) !important;
  flex-shrink: 0 !important;
}

.spotlight-author-info strong {
  display: block !important;
  font-size: 1.12rem !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

.spotlight-author-info span {
  display: block !important;
  font-size: 0.85rem !important;
  color: #fbbf24 !important;
  font-weight: 600 !important;
  margin-top: 2px !important;
}

/* Card badges for regular carousel items */
.testi-badge-top {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: #00cfff !important;
  background: rgba(0, 207, 255, 0.1) !important;
  border: 1px solid rgba(0, 207, 255, 0.28) !important;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  margin-bottom: 12px !important;
}

@media (max-width: 768px) {
  .spotlight-card-frame {
    padding: 22px 20px !important;
  }
  .spotlight-text {
    font-size: 0.92rem !important;
  }
}







