/* ================================================================
   CARE DENTAL HOSPITAL — FINAL COMPREHENSIVE FIXES
   ================================================================ */

/* ─────────────────────────────────────────────
   0. TOOTH CURSOR — SHOW ON DESKTOP (override all previous hide rules)
   ───────────────────────────────────────────── */
/* Desktop only — enable the animated tooth cursor as overlay (native cursor stays visible) */
@media (min-width: 901px) {
  .custom-cursor {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    width: 38px !important;
    height: 38px !important;
    pointer-events: none !important;
    z-index: 999999 !important;
    top: 0 !important;
    left: 0 !important;
    will-change: transform !important;
    background-image: none !important;
    background-color: transparent !important;
  }
  /* DO NOT set cursor:none — keep native OS cursor working normally */
}

/* Hide tooth overlay on mobile/touch */
@media (max-width: 900px) {
  .custom-cursor { display: none !important; }
}
/* ================================================================
   CARE DENTAL HOSPITAL — FINAL COMPREHENSIVE FIXES
   ================================================================ */

/* ─────────────────────────────────────────────
   1. ABOUT IMAGE — NIGHT VIEW HOSPITAL PHOTO
   ───────────────────────────────────────────── */
.about-img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.about-img-wrapper .about-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 16px;
}
@media (max-width: 767px) {
  .about-img-wrapper .about-img {
    height: 280px !important;
    object-position: center center !important;
  }
}

/* ─────────────────────────────────────────────
   2. TESTIMONIALS — FIX MOBILE OVERFLOW / OVERLAP
   ───────────────────────────────────────────── */
.testimonials-track-outer {
  overflow: hidden !important;
  width: 100% !important;
  position: relative;
}
.testimonial-track {
  overflow: visible !important;
  min-width: 0;
}
.testimonial-card {
  min-width: 0 !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  box-sizing: border-box !important;
}
.testimonial-card p {
  overflow: hidden !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}
.testi-author strong,
.testi-author span {
  display: block !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* Mobile: 1 full card */
@media (max-width: 599px) {
  .testimonial-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    padding: 20px 16px !important;
  }
  .testimonial-card p {
    font-size: 0.84rem !important;
    line-height: 1.65 !important;
  }
  .testi-author strong { font-size: 0.85rem !important; }
  .testi-author span { font-size: 0.72rem !important; }
}
/* Tablet: 2 cards */
@media (min-width: 600px) and (max-width: 1023px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 12px) !important;
  }
}

/* ─────────────────────────────────────────────
   3. GLOBAL MOBILE TEXT OVERFLOW PREVENTION
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, span, a, li, strong {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  /* Hero */
  .hero-title-centered {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    line-height: 1.2 !important;
  }
  .hero-desc-centered {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  .hero-pills-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .hero-pill {
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
  }
  /* Stats */
  .hero-stats-strip {
    grid-template-columns: 1fr 1fr !important;
  }
  .stat-sublabel {
    font-size: 0.65rem !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: break-word !important;
  }
  .stat-num {
    font-size: 1.4rem !important;
  }
  /* About */
  .about-text {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    overflow-wrap: break-word !important;
  }
  /* Services */
  .services-grid {
    grid-template-columns: 1fr !important;
  }
  .service-card h3 {
    font-size: 1rem !important;
  }
  /* Section headers */
  .section-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
    line-height: 1.25 !important;
  }
  .section-sub {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }
  /* Doctor cards */
  .doctor-spec-chips {
    flex-wrap: wrap !important;
  }
  .spec-chip {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
  }
  .profile-links-grid {
    flex-wrap: wrap !important;
  }
  .profile-link-btn {
    font-size: 0.72rem !important;
    padding: 5px 8px !important;
  }
  .doctor-timings-badge {
    font-size: 0.78rem !important;
    word-break: break-word !important;
  }
  /* Journey */
  .journey-content h4 { font-size: 0.92rem !important; }
  .journey-content p {
    font-size: 0.82rem !important;
    overflow-wrap: break-word !important;
  }
  .journey-step-num { font-size: 0.72rem !important; }
  .journey-duration { font-size: 0.72rem !important; padding: 4px 8px !important; }
  /* FAQ */
  .faq-question span {
    font-size: 0.88rem !important;
    line-height: 1.4 !important;
    overflow-wrap: break-word !important;
  }
  .faq-answer-inner {
    font-size: 0.85rem !important;
    line-height: 1.65 !important;
    overflow-wrap: break-word !important;
  }
  /* Contact */
  .appt-contact-item {
    font-size: 0.85rem !important;
    overflow-wrap: break-word !important;
  }
  /* Trust strip */
  .trust-links-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .footer-col ul li a {
    font-size: 0.88rem !important;
  }
  .fc-item span, .fc-item a {
    font-size: 0.82rem !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  /* Why section comparison */
  .compare-bar-label span {
    font-size: 0.82rem !important;
    overflow-wrap: break-word !important;
  }
  /* Explorer cards */
  .explorer-card {
    overflow: hidden !important;
  }
  .card-title {
    font-size: 1rem !important;
    overflow-wrap: break-word !important;
  }
  .step-info h4 {
    font-size: 0.85rem !important;
  }
  .step-info p {
    font-size: 0.78rem !important;
    overflow-wrap: break-word !important;
  }
  /* Featured testimonial */
  .spotlight-text {
    font-size: 0.86rem !important;
    line-height: 1.65 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Smallest phones */
@media (max-width: 380px) {
  .hero-title-centered {
    font-size: 1.5rem !important;
  }
  .hero-pill {
    font-size: 0.68rem !important;
    padding: 5px 8px !important;
  }
  .stat-sublabel {
    font-size: 0.6rem !important;
  }
}

/* ─────────────────────────────────────────────
   4. PRELOADER PERFORMANCE FIX
   ───────────────────────────────────────────── */
#preloader.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.35s ease !important;
}

/* ─────────────────────────────────────────────
   5. SMOOTH FONT RENDERING
   ───────────────────────────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ─────────────────────────────────────────────
   6. HERO VIDEO — FASTER INITIAL PAINT
   ───────────────────────────────────────────── */
.hero-video-container {
  contain: strict;
}
#heroBgVideo {
  will-change: auto;
  transform: none;
}

/* ─────────────────────────────────────────────
   7. APPOINTMENT SECTION MOBILE
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .appointment-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .direct-visit-inner {
    padding: 20px 16px !important;
  }
  .direct-visit-inner h3 {
    font-size: 1.15rem !important;
    overflow-wrap: break-word !important;
  }
  .direct-visit-inner p {
    font-size: 0.85rem !important;
    overflow-wrap: break-word !important;
  }
}

/* ─────────────────────────────────────────────
   8. NAV MOBILE MENU — NO OVERFLOW
   ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links.open {
    overflow-y: auto !important;
    max-height: 80vh !important;
  }
  .nav-links a {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}

/* ─────────────────────────────────────────────
   9. WHY CHOOSE US — MOBILE FIX
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .why-grid {
    grid-template-columns: 1fr !important;
  }
  .why-feature-text h4 {
    font-size: 0.95rem !important;
    overflow-wrap: break-word !important;
  }
  .why-feature-text p {
    font-size: 0.83rem !important;
    overflow-wrap: break-word !important;
  }
}


/* ─────────────────────────────────────────────
   DOCTOR PHOTO — NATURAL / NO BRIGHTNESS BOOST
   (overrides all filter effects from other CSS files)
   ───────────────────────────────────────────── */
.doctor-photo {
  filter: none !important;
  -webkit-filter: none !important;
  transition: transform 0.5s ease !important;
}
.doctor-card:hover .doctor-photo {
  filter: none !important;
  -webkit-filter: none !important;
  transform: scale(1.03) !important;
}

/* ─────────────────────────────────────────────
   ENHANCED IMAGE SIZING & PERFECT FRAME FITTING
   ───────────────────────────────────────────── */

/* 1. About Hospital Night View Image — Increased Size & Fit */
.about-img-wrapper {
  position: relative;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 207, 255, 0.15) !important;
}
.about-img-wrapper .about-img {
  width: 100% !important;
  height: 540px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 20px !important;
}
@media (max-width: 1024px) {
  .about-img-wrapper .about-img {
    height: 440px !important;
  }
}
@media (max-width: 767px) {
  .about-img-wrapper .about-img {
    height: 340px !important;
    object-position: center center !important;
  }
}

/* 2. Both Doctor Photos — Increased Height & Perfect Centered Frame Fit */
.doctor-card {
  overflow: hidden !important;
  border-radius: 20px !important;
}
.doctor-img-wrap {
  position: relative !important;
  height: 480px !important;
  max-height: none !important;
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #071226, #0e1e3e) !important;
}
.doctor-photo {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  filter: none !important;
  -webkit-filter: none !important;
  transition: transform 0.5s ease !important;
}
.doctor-photo-anil {
  object-position: center 12% !important;
}
.doctor-photo-ramya {
  object-position: center 8% !important;
}
.doctor-card:hover .doctor-photo {
  filter: none !important;
  -webkit-filter: none !important;
  transform: scale(1.03) !important;
}

@media (max-width: 1024px) {
  .doctor-img-wrap {
    height: 420px !important;
  }
}
@media (max-width: 767px) {
  .doctor-img-wrap {
    height: 380px !important;
    max-height: none !important;
  }
}
@media (max-width: 480px) {
  .doctor-img-wrap {
    height: 340px !important;
    max-height: none !important;
  }
}

/* 3. Hero Duo Showcase Image Frame Fit */
.hero-duo-frame {
  border-radius: 24px !important;
  overflow: hidden !important;
}
.hero-duo-img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 24px !important;
}

/* ─────────────────────────────────────────────
   HERO DOCTOR SHOWCASE & TOAST POSITIONING FIXES
   ───────────────────────────────────────────── */

/* 1. Hero Duo Frame & Image — Full Uncropped Doctor Duo View */
.hero-centered-showcase {
  max-width: 980px !important;
  margin: 30px auto 0 auto !important;
}

.hero-duo-frame {
  position: relative !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #091222 !important;
  border: 1.5px solid rgba(0, 207, 255, 0.4) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 207, 255, 0.2) !important;
}

.hero-duo-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center 30% !important;
  display: block !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.hero-duo-frame:hover .hero-duo-img {
  filter: none !important;
  -webkit-filter: none !important;
  transform: scale(1.015) !important;
}

/* 2. Doctor Info Banner Alignment — Below Photo for Zero Face Clipping */
.duo-info-banner {
  position: relative !important;
  bottom: auto !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, #091326 0%, #050a14 100%) !important;
  border-top: 1.5px solid rgba(0, 207, 255, 0.3) !important;
  z-index: 10 !important;
}

@media (max-width: 767px) {
  .duo-info-banner {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 14px 16px !important;
  }
}

/* 3. Toast Notification Position — Top Right on Desktop, Top Banner on Mobile (Never overlaps chatbot or bottom bar) */
.toast-notification {
  left: auto !important;
  right: 24px !important;
  top: 90px !important;
  bottom: auto !important;
  transform: translateY(-20px) !important;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 99999 !important;
}

.toast-notification.show {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  .toast-notification {
    left: 50% !important;
    right: auto !important;
    top: 75px !important;
    bottom: auto !important;
    transform: translateX(-50%) translateY(-20px) !important;
    width: calc(100% - 32px) !important;
    max-width: 360px !important;
  }
  .toast-notification.show {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
  }
}

/* ─────────────────────────────────────────────
   TREATMENT EXPLORER — COMPACT SPACE & MATTE DESIGN
   (removes over-reflection, glare, and tall vertical padding)
   ───────────────────────────────────────────── */

.treatment-explorer-section {
  padding: 55px 0 !important;
  background: #050b14 !important;
}

.explorer-glow,
.card-bg-glow,
.anim-grid-pattern,
.anim-radar-bg,
.anim-sparkle-bg,
.anim-laser-wave {
  display: none !important;
}

.explorer-grid {
  gap: 20px !important;
  margin-top: 30px !important;
}

/* Hide tall 155px anim header to save space and remove glare */
.card-anim-header {
  display: none !important;
}

.explorer-card {
  background: #091326 !important;
  border: 1px solid rgba(0, 207, 255, 0.15) !important;
  border-radius: 16px !important;
  padding: 22px 18px !important;
  backdrop-filter: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.explorer-card::before,
.explorer-card::after {
  display: none !important;
}

.explorer-card:hover {
  transform: translateY(-4px) !important;
  background: #0c1a34 !important;
  border-color: rgba(0, 207, 255, 0.4) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

.card-header {
  margin-bottom: 14px !important;
}

.card-icon-wrap {
  width: 44px !important;
  height: 44px !important;
  font-size: 1.15rem !important;
  border-radius: 12px !important;
  background: rgba(0, 207, 255, 0.08) !important;
  border: 1px solid rgba(0, 207, 255, 0.2) !important;
  box-shadow: none !important;
}

.card-title {
  font-size: 1.05rem !important;
  min-height: auto !important;
  margin-bottom: 14px !important;
  line-height: 1.35 !important;
}

.card-metrics {
  gap: 8px !important;
  margin-bottom: 16px !important;
}

.metric-box {
  padding: 8px 4px !important;
  border-radius: 8px !important;
  background: rgba(5, 12, 26, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
}

.metric-box i {
  font-size: 0.85rem !important;
  margin-bottom: 3px !important;
}

.metric-box .m-val {
  font-size: 0.76rem !important;
  margin-bottom: 1px !important;
}

.metric-box .m-lbl {
  font-size: 0.62rem !important;
}

.roadmap-wrapper {
  margin-bottom: 16px !important;
}

.roadmap-title {
  font-size: 0.7rem !important;
  margin-bottom: 10px !important;
}

.roadmap-steps {
  gap: 10px !important;
}

.roadmap-step {
  gap: 10px !important;
}

.step-dot {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.72rem !important;
  flex-shrink: 0 !important;
}

.step-info h4 {
  font-size: 0.84rem !important;
  margin-bottom: 2px !important;
}

.step-info p {
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
}

.card-action {
  margin-top: auto !important;
  padding-top: 10px !important;
}

.btn-card-action {
  padding: 10px 16px !important;
  font-size: 0.84rem !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* ================================================================
   ULTIMATE MOBILE RESPONSIVENESS & SMOOTH PERFORMANCE OPTIMIZATIONS
   ================================================================ */

/* 1. Global Smooth Scrolling & Touch Hygiene */
html {
  scroll-behavior: smooth !important;
  overflow-x: hidden !important;
  width: 100% !important;
}

body {
  overflow-x: hidden !important;
  width: 100% !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Hardware Compositing for 60fps Smooth Transitions */
.hero-duo-frame,
.doctor-card,
.service-card,
.explorer-card,
.testimonial-card,
.tech-card,
.award-card,
.journey-item,
.navbar,
.mobile-quick-bar,
.floating-actions {
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  transform: translateZ(0) !important;
}

/* 2. Mobile Container Padding & Header Constraints */
@media (max-width: 767px) {
  .container {
    width: 92% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Section Padding Standardization for Mobile */
  section {
    padding: 50px 0 !important;
  }

  .section-tag {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
    margin-bottom: 8px !important;
  }

  .section-title {
    font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .section-sub {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 25px !important;
  }

  /* Navbar Mobile Layout */
  .nav-container {
    padding: 0 12px !important;
  }

  .nav-logo .logo-main {
    font-size: 1.1rem !important;
  }

  .nav-logo .logo-sub {
    font-size: 0.65rem !important;
  }

  .nav-phone-chip {
    display: none !important; /* Covered by bottom quick bar */
  }

  .btn-nav span {
    display: inline !important;
  }

  .btn-nav {
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
  }

  /* Hero Section Mobile Polish */
  .hero {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
    min-height: auto !important;
  }

  .hero-badge {
    font-size: 0.72rem !important;
    padding: 6px 12px !important;
    margin-bottom: 16px !important;
  }

  .hero-title-centered {
    font-size: clamp(1.6rem, 6.2vw, 2.2rem) !important;
    line-height: 1.22 !important;
    margin-bottom: 14px !important;
  }

  .hero-desc-centered {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
  }

  .hero-pills-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
    margin-bottom: 24px !important;
  }

  .hero-pill {
    font-size: 0.72rem !important;
    padding: 5px 10px !important;
    white-space: nowrap !important;
  }

  .hero-actions-centered {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .hero-actions-centered a {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.9rem !important;
  }

  /* Hero Stats Strip on Mobile */
  .hero-stats-container {
    margin-top: 30px !important;
  }

  .hero-stats-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1px !important;
    background: rgba(0, 207, 255, 0.15) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  .stat-strip-item {
    background: rgba(7, 15, 30, 0.95) !important;
    padding: 14px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .stat-strip-item .stat-icon-wrap {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    margin-bottom: 6px !important;
  }

  .stat-num {
    font-size: 1.35rem !important;
  }

  .stat-plus {
    font-size: 1rem !important;
  }

  .stat-sublabel {
    font-size: 0.64rem !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  /* Ticker Strip Mobile */
  .ticker-strip {
    padding: 10px 0 !important;
    font-size: 0.78rem !important;
  }

  /* About Grid Mobile */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

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

  .feature-item span {
    font-size: 0.84rem !important;
  }

  .about-cta-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .about-cta-row a {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
    font-size: 0.88rem !important;
  }

  .mv-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Symptom Triage Mobile */
  .symptom-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .symptom-chip {
    padding: 12px 10px !important;
    font-size: 0.78rem !important;
  }

  .symptom-chip i {
    font-size: 1.1rem !important;
  }

  .triage-result-box {
    padding: 18px 14px !important;
  }

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

  .service-card {
    padding: 22px 18px !important;
  }

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

  .service-card p {
    font-size: 0.84rem !important;
    line-height: 1.6 !important;
  }

  /* Doctors Team Banner Mobile */
  .team-banner-card {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }

  .team-banner-img {
    height: 220px !important;
    border-radius: 14px !important;
  }

  .team-banner-info h3 {
    font-size: 1.2rem !important;
  }

  .team-banner-info p {
    font-size: 0.84rem !important;
  }

  .doctors-grid.two-col {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .doctor-info {
    padding: 20px 16px !important;
  }

  .doctor-info h3 {
    font-size: 1.25rem !important;
  }

  .doctor-info p {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
  }

  /* Doctor Video Showcase Mobile */
  .doc-video-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .dvc-info h4 {
    font-size: 0.98rem !important;
  }

  .dvc-info p {
    font-size: 0.82rem !important;
  }

  /* Interactive Smile Makeover Slider Mobile */
  .comparison-slider {
    height: 280px !important;
    border-radius: 16px !important;
  }

  .slider-label {
    font-size: 0.65rem !important;
    padding: 4px 8px !important;
  }

  /* Dental Health Quiz Mobile */
  .quiz-wrapper {
    padding: 20px 16px !important;
  }

  .quiz-question-title {
    font-size: 1.05rem !important;
  }

  .quiz-options-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .quiz-opt-card {
    padding: 14px 16px !important;
    font-size: 0.88rem !important;
  }

  /* Technology Section Mobile */
  .tech-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .tech-card {
    padding: 20px 16px !important;
  }

  .tech-card h3 {
    font-size: 1.05rem !important;
  }

  .tech-card p {
    font-size: 0.84rem !important;
  }

  /* Journey Timeline Mobile Alignment & Node Collision Fix */
  #journeySection .journey-timeline::before,
  .journey-timeline::before {
    left: 20px !important;
    transform: none !important;
  }

  .journey-item,
  .journey-item:nth-child(odd),
  .journey-item:nth-child(even) {
    flex-direction: row !important;
    align-items: flex-start !important;
    transform: none !important;
    margin-bottom: 28px !important;
    padding-left: 0 !important;
  }

  .journey-item:nth-child(odd) .journey-content,
  .journey-item:nth-child(even) .journey-content,
  .journey-content {
    margin-left: 54px !important;
    margin-right: 0 !important;
    width: calc(100% - 54px) !important;
    max-width: none !important;
    text-align: left !important;
  }

  .journey-node {
    left: 20px !important;
    top: 20px !important;
    transform: translate(-50%, 0) !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
  }

  .journey-item:hover .journey-node {
    transform: translate(-50%, 0) scale(1.05) !important;
  }

  /* Awards Section Mobile */
  .awards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .award-card {
    padding: 16px 12px !important;
  }

  .award-num {
    font-size: 1.4rem !important;
  }

  .award-label {
    font-size: 0.72rem !important;
  }

  /* Appointment & Direct Visit Mobile */
  .appointment-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Featured Testimonial Spotlight Mobile */
  .spotlight-card-frame {
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }

  .spotlight-text {
    font-size: 0.86rem !important;
    line-height: 1.65 !important;
  }

  .spotlight-author {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
  }

  /* FAQ Mobile */
  .faq-search-wrapper {
    margin-bottom: 16px !important;
  }

  .faq-filter-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    gap: 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .faq-pill {
    flex: 0 0 auto !important;
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
  }

  .faq-question {
    padding: 16px 14px !important;
  }

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

  /* Verified Listings Mobile */
  .listings-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .listing-card {
    padding: 14px 12px !important;
  }

  .listing-info h4 {
    font-size: 0.85rem !important;
  }

  .listing-info p {
    font-size: 0.7rem !important;
  }

  /* Contact & Map Mobile */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .contact-map {
    min-height: 360px !important;
    border-radius: 16px !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
  }

  /* Mobile Quick Contact Bar — Floating Bottom */
  .mobile-quick-bar {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: rgba(5, 11, 22, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(0, 207, 255, 0.3) !important;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px !important;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.6) !important;
  }

  .mobile-quick-bar .bar-inner {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    max-width: 500px !important;
    margin: 0 auto !important;
  }

  .bar-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
    color: var(--text-2) !important;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    transition: color 0.2s ease !important;
  }

  .bar-btn i {
    font-size: 1.15rem !important;
  }

  .bar-btn.call-btn { color: #00cfff !important; }
  .bar-btn.wa-btn   { color: #25D366 !important; }
  .bar-btn.book-btn { color: #a855f7 !important; }
  .bar-btn.models-btn { color: #f59e0b !important; }
  .bar-btn.map-btn  { color: #3b82f6 !important; }
}

/* Extra Small Devices (<380px) */
@media (max-width: 379px) {
  .hero-title-centered {
    font-size: 1.45rem !important;
  }
  .symptom-grid {
    grid-template-columns: 1fr !important;
  }
  .awards-grid {
    grid-template-columns: 1fr !important;
  }
  .listings-grid {
    grid-template-columns: 1fr !important;
  }
  .gallery-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 200px !important;
  }
}

/* ─────────────────────────────────────────────
   3D CLINICAL SIMULATOR ENGINE MOBILE REFINEMENTS
   ───────────────────────────────────────────── */
.models-section {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .visualizer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .model-selectors-card {
    order: 1 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .model-selectors-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .model-selector-btn {
    padding: 12px 6px !important;
    font-size: 0.78rem !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: rgba(14, 28, 56, 0.8) !important;
    border: 1px solid rgba(0, 207, 255, 0.2) !important;
  }

  .model-selector-btn i {
    font-size: 1.15rem !important;
  }

  .viewport-pane {
    order: 2 !important;
    height: 380px !important;
    min-height: 380px !important;
    border-radius: 20px !important;
  }

  #detailPanel {
    order: 3 !important;
    padding: 20px 16px !important;
    border-radius: 20px !important;
  }

  .model-controls-card {
    order: 4 !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 480px) {
  .model-selector-btn span {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  .viewport-pane {
    height: 340px !important;
    min-height: 340px !important;
  }
}

/* ─────────────────────────────────────────────
   HERO DOCTOR BADGES — ZERO OVERLAP GUARANTEE
   ───────────────────────────────────────────── */
.duo-top-badges-bar {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  right: 16px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

.duo-experience-badge,
.duo-rating-badge {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .duo-top-badges-bar {
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    gap: 6px !important;
  }
  .duo-experience-badge,
  .duo-rating-badge {
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
  }
  .duo-rating-badge .badge-text {
    display: none !important; /* Hides long text on mobile so badge fits as "⭐ 4.9★ 🟢" */
  }
}

@media (max-width: 480px) {
  .duo-top-badges-bar {
    top: 8px !important;
    left: 8px !important;
    right: 8px !important;
  }
  .duo-experience-badge span {
    font-size: 0.68rem !important;
  }
}

/* ─────────────────────────────────────────────
   FLOATING ACTION BUTTONS (WHATSAPP, CALL & SCROLL TO TOP)
   ───────────────────────────────────────────── */
.floating-actions {
  position: fixed !important;
  right: 24px !important;
  bottom: 88px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: flex-end !important;
  z-index: 99998 !important;
  pointer-events: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Enable clicks on children inside floating-actions */
.floating-actions .fab-btn {
  pointer-events: auto !important;
}

/* FAB Buttons sizing & styling */
.fab-btn {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.2rem !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative !important;
  text-decoration: none !important;
  margin: 0 !important;
}

.fab-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
}

.fab-btn.call {
  background: linear-gradient(135deg, #005bff, #00c7ff) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 91, 255, 0.5) !important;
}

#scrollTop {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.8) !important;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
  background: rgba(10, 25, 50, 0.85) !important;
  color: #00c7ff !important;
  border: 1px solid rgba(0, 199, 255, 0.3) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}

#scrollTop.visible {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
}

/* Mobile Responsive Floating Adjustments */
@media (max-width: 768px) {
  /* Hide side floating WhatsApp & Call on mobile (already present in bottom quick bar) */
  #waBtnFloat,
  #callBtnFloat,
  .fab-btn.whatsapp,
  .fab-btn.call,
  .fab-btn.wa {
    display: none !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;
  }

  #scrollTop {
    width: 44px !important;
    height: 44px !important;
    font-size: 0.95rem !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 480px) {
  .floating-actions {
    left: 12px !important;
    right: auto !important;
    bottom: calc(var(--mobile-bar-h, 64px) + 12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #scrollTop {
    width: 40px !important;
    height: 40px !important;
    font-size: 0.85rem !important;
  }
}

/* ─────────────────────────────────────────────
   DOCTORS DUO IMAGE FULL UNCROPPED VIEW FIX
   ───────────────────────────────────────────── */
.hero-duo-frame,
.team-banner-img-wrap {
  height: auto !important;
  max-height: none !important;
  overflow: hidden !important;
  background: radial-gradient(circle at center, #0d1b38, #050c1a) !important;
}

.hero-duo-img,
.team-banner-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

@media (max-width: 768px) {
  .hero-duo-frame,
  .team-banner-img-wrap {
    height: auto !important;
    max-height: none !important;
  }

  .hero-duo-img,
  .team-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

@media (max-width: 480px) {
  .hero-duo-frame,
  .team-banner-img-wrap {
    height: auto !important;
    max-height: none !important;
  }

  .hero-duo-img,
  .team-banner-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}

/* ================================================================
   3D MODELS SHOWCASE & INTEGRATION STYLES
   ================================================================ */

/* Nav 3D Link & Live Glow Badge */
.nav-3d-link {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.nav-glow-badge {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00cfff, #005bff);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.6);
  animation: pulse3dLive 2s infinite ease-in-out;
  line-height: 1;
}

@keyframes pulse3dLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

/* Hero Pill 3D */
.hero-pill-3d {
  background: rgba(0, 207, 255, 0.1) !important;
  border: 1px solid rgba(0, 207, 255, 0.35) !important;
  color: #00cfff !important;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-pill-3d:hover {
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.25), rgba(0, 91, 255, 0.3)) !important;
  border-color: #00cfff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 207, 255, 0.35);
  color: #ffffff !important;
}

/* Dedicated 3D Models Preview Section */
.models-preview-section {
  position: relative;
  padding: 100px 0;
  background: radial-gradient(circle at 50% 20%, rgba(13, 30, 65, 0.8) 0%, #050c1a 80%);
  overflow: hidden;
  z-index: 2;
}

.models-ambient-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 207, 255, 0.12) 0%, rgba(0, 91, 255, 0.05) 50%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.models-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0 50px;
  position: relative;
  z-index: 2;
}

.model-preview-card {
  background: rgba(13, 26, 53, 0.65);
  border: 1px solid rgba(0, 207, 255, 0.18);
  border-radius: 20px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.model-preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.model-preview-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 207, 255, 0.45);
  box-shadow: 0 18px 45px rgba(0, 207, 255, 0.2), 0 0 25px rgba(0, 207, 255, 0.15);
}

.model-preview-card:hover::before {
  opacity: 1;
}

.model-preview-card.featured-mp-card {
  background: linear-gradient(145deg, rgba(16, 35, 75, 0.75), rgba(9, 20, 44, 0.8));
  border-color: rgba(0, 207, 255, 0.35);
  box-shadow: 0 14px 40px rgba(0, 91, 255, 0.25);
}

.mp-card-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(0, 207, 255, 0.1);
  border: 1px solid rgba(0, 207, 255, 0.25);
  color: #00cfff;
}

.mp-badge-signature {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.25));
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.mp-visual-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.15), rgba(0, 91, 255, 0.2));
  border: 1px solid rgba(0, 207, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
}

.mp-icon {
  font-size: 2rem;
  color: #00cfff;
  filter: drop-shadow(0 0 10px rgba(0, 207, 255, 0.6));
  transition: transform 0.4s ease;
}

.model-preview-card:hover .mp-icon {
  transform: scale(1.15) rotate(5deg);
}

.mp-icon-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid rgba(0, 207, 255, 0.25);
  animation: iconPulse 3s infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0; }
}

.mp-3d-tag {
  position: absolute;
  bottom: -8px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  background: #005bff;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 91, 255, 0.5);
}

.mp-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mp-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f0f6fc;
  margin-bottom: 12px;
  line-height: 1.3;
}

.mp-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #8b949e;
  margin-bottom: 20px;
  flex: 1;
}

.mp-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mp-features-list li {
  font-size: 0.85rem;
  color: #c9d1d9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-features-list li i {
  color: #00cfff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.btn-preview-model {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(0, 207, 255, 0.08);
  border: 1px solid rgba(0, 207, 255, 0.3);
  color: #00cfff;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-preview-model:hover {
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.2), rgba(0, 91, 255, 0.25));
  border-color: #00cfff;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 207, 255, 0.25);
  transform: translateY(-2px);
}

.btn-preview-primary {
  background: linear-gradient(135deg, #00cfff, #005bff);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 91, 255, 0.35);
}

.btn-preview-primary:hover {
  background: linear-gradient(135deg, #26d6ff, #0047cc);
  box-shadow: 0 8px 25px rgba(0, 207, 255, 0.45);
  color: #ffffff;
}

/* Grand 3D Banner Callout */
.models-grand-banner {
  background: linear-gradient(135deg, rgba(13, 26, 53, 0.85), rgba(8, 40, 90, 0.85));
  border: 1px solid rgba(0, 207, 255, 0.3);
  border-radius: 20px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.mgb-glow {
  position: absolute;
  left: -50px;
  top: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 207, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.mgb-content {
  display: flex;
  align-items: center;
  gap: 22px;
}

.mgb-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 207, 255, 0.15);
  border: 1px solid rgba(0, 207, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #00cfff;
  flex-shrink: 0;
}

.mgb-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.mgb-text p {
  font-size: 0.88rem;
  color: #8b949e;
  margin: 0;
}

.mgb-btn {
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Service & Explorer 3D Badges */
.service-3d-tag,
.explorer-3d-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #00cfff;
  background: rgba(0, 207, 255, 0.08);
  border: 1px solid rgba(0, 207, 255, 0.22);
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin-top: 8px;
}

.service-3d-tag:hover,
.explorer-3d-tag:hover {
  background: rgba(0, 207, 255, 0.2);
  border-color: #00cfff;
  color: #ffffff;
  transform: translateX(3px);
}

.tech-card-highlight {
  border-color: rgba(0, 207, 255, 0.35) !important;
  background: linear-gradient(135deg, rgba(16, 35, 75, 0.8), rgba(9, 20, 44, 0.8)) !important;
}

.tech-card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #00cfff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tech-card-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive adjustments for 3D Preview */
@media (max-width: 992px) {
  .models-preview-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .models-grand-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .mgb-content {
    flex-direction: column;
  }
}

/* ─────────────────────────────────────────────
   HERO VIDEO CONTROLS FLOATING BADGE
   ───────────────────────────────────────────── */
.hero-video-controls {
  position: absolute !important;
  top: 92px !important;
  right: 28px !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  pointer-events: auto !important;
}

.hero-video-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 8px 16px !important;
  background: rgba(5, 12, 26, 0.88) !important;
  border: 1.5px solid rgba(0, 207, 255, 0.45) !important;
  border-radius: 30px !important;
  color: #e2e8f0 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55), 0 0 14px rgba(0, 207, 255, 0.25) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-video-btn:hover {
  background: rgba(0, 91, 255, 0.45) !important;
  border-color: #00cfff !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65), 0 0 22px rgba(0, 207, 255, 0.5) !important;
}

.hero-video-btn:active {
  transform: scale(0.94) !important;
}

.hero-video-btn i {
  color: #00cfff !important;
  font-size: 0.84rem !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.hero-video-btn.active {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #a7f3d0 !important;
}

.hero-video-btn.active i {
  color: #10b981 !important;
}

.hero-video-btn.paused {
  border-color: #f59e0b !important;
}

.hero-video-btn.paused i {
  color: #f59e0b !important;
}

@media (max-width: 1024px) {
  .hero-video-controls {
    top: 80px !important;
    right: 18px !important;
    gap: 8px !important;
  }
}

@media (max-width: 768px) {
  .hero-video-controls {
    top: auto !important;
    bottom: 20px !important;
    right: 14px !important;
    gap: 6px !important;
  }
  .hero-video-btn {
    padding: 6px 12px !important;
    font-size: 0.72rem !important;
  }
}



