/* ==========================================================================
   Stunning Dentistry - Luxury Dental Clinic Custom Stylesheet
   Color Palette:
   - Primary Dark: #000119
   - Secondary Dark: #0c242e
   - Luxury Cream: #FBF6EA
   - Card Cream: #f3eee4
   - Accent Gold: #F1C67A
   - Warm Gold: #d8aa15
   - Gold Gradient: linear-gradient(0deg, #F1C67A 0%, #fbe1b3 100%)
   - Deep Teal: #114359
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --color-dark: #000119;
  --color-dark-panel: #0c242e;
  --color-cream: #FBF6EA;
  --color-cream-card: #f3eee4;
  --color-cream-border: #eddfc4;
  --color-gold: #F1C67A;
  --color-gold-dark: #d8aa15;
  --color-gold-light: #fbe1b3;
  --color-teal: #114359;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: #555555;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #1b2276;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1b2276;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.25;
}

.luxury-heading {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

/* Gold Gradient Luxury Button */
.btn-gold {
  background: linear-gradient(0deg, #F1C67A 0%, #fbe1b3 100%);
  color: #000000 !important;
  font-weight: 700;
  border-radius: 9999px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(241, 198, 122, 0.4);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 198, 122, 0.3);
  text-decoration: none !important;
  cursor: pointer;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: all 0.6s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241, 198, 122, 0.6);
  color: #000119 !important;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-blue {
  background: #1b2276;
  color: #fff !important;
  font-weight: 700;
  border-radius: 9999px;
  padding: 10px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* box-shadow: 0 4px 15px rgba(241, 198, 122, 0.4); */
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  /* border: 1px solid rgba(241, 198, 122, 0.3); */
  text-decoration: none !important;
  cursor: pointer;
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px #1b227660;
  color: #fff !important;
}

.btn-blue:hover::before {
  left: 100%;
}

.btn-teal {
  background: var(--color-teal);
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-teal:hover {
  background: #0a2d3d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 67, 89, 0.3);
}

/* Header & Mega Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav-item-dropdown {
  position: relative;
}

.mega-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 12px 0;
  border-top: 3px solid #1b2276;
  z-index: 100;
  max-height: 480px;
  overflow-y: auto;
}

.nav-item-dropdown:hover .mega-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown-menu.right-aligned {
  left: auto;
  right: 0;
}

.mega-dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mega-dropdown-menu a:hover {
  background-color: #1b2276;
  color: #fff;
  padding-left: 25px;
}

/* Image Hover Zoom (hover01) */
.hover-zoom {
  overflow: hidden;
  border-radius: 12px;
}

.hover-zoom img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hover-zoom:hover img {
  transform: scale(1.08);
}

/* Curved Section Dividers */
.bottomcurve {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.bottomcurve svg {
  display: block;
  width: 100%;
  height: 45px;
}

.bottomcurve .elementor-shape-fill {
  fill: #ffffff;
}

.bottomcurve.fill-cream .elementor-shape-fill {
  fill: var(--color-cream);
}

/* Lifetime Warranty & Price Guarantee Badges */
.guarantee-card {
  background: var(--color-dark-panel);
  border-radius: 9999px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(12, 36, 46, 0.25);
  transition: transform 0.3s ease;
}

.guarantee-card:hover {
  transform: translateY(-3px);
}

/* Transformation & Cases Cards */
.case-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  background: #ffffff;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.15);
}

/* Lowest Price Special Cards */
.price-service-card {
  background: #ffffff;
  border: 1px solid var(--color-cream-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.35s ease;
}

.price-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(216, 170, 21, 0.18);
  border-color: var(--color-gold);
}

/* Doctor Profiles */
.doctor-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.35s ease;
  text-align: center;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}

.doctor-card img {
  transition: transform 0.5s ease;
}

.doctor-card:hover img {
  transform: scale(1.05);
}

/* Floating Actions & Widgets */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.floating-side-btn {
  position: fixed;
  right: -5px;
  z-index: 85;
  transition: transform 0.3s ease;
}

.floating-side-btn:hover {
  transform: translateX(-8px);
}

.floating-video-btn {
  bottom: 180px;
}

.floating-price-btn {
  bottom: 110px;
}

/* WhatsApp Dropdown Chat Box */
.whatsapp-chat-box {
  position: absolute;
  top: 60px;
  right: 0;
  width: 330px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  padding: 20px;
  z-index: 120;
  display: none;
  animation: fadeInDown 0.3s ease forwards;
}

.whatsapp-chat-box.show {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Popup Framework */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 1, 25, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #444;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.modal-close-btn:hover {
  background: var(--color-gold);
  color: #000;
  transform: rotate(90deg);
}

/* Video Modal */
.modal-video-card {
  background: #000000;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-responsive iframe,
.video-responsive video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Custom Carousel Controls */
.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border: none;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: #1b2276;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
  left: 12px;
}

.carousel-arrow.next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d4d4;
  cursor: pointer;
  transition: all 0.3s ease;
  
}

.carousel-dot.active {
  width: 28px;
  border-radius: 5px;
  background: #1b2276;
  color: white;
}

/* Marquee / Infinite Slider */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 2rem;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 2rem;
  animation: scrollMarquee 35s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 2rem));
  }
}

/* Mobile Bottom Fixed Bar */
.mobile-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  z-index: 80;
  padding: 8px 12px;
}

@media (max-width: 768px) {
  .mobile-bottom-dock {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  
  body {
    padding-bottom: 70px;
  }
  
  .floating-whatsapp {
    bottom: 80px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  
  .floating-video-btn {
    bottom: 210px;
  }
  
  .floating-price-btn {
    bottom: 150px;
  }
}

  .clinic-card {
    transition:
      transform 0.4s ease,
      box-shadow 0.4s ease;
  }

  .clinic-card img {
    transition: transform 0.6s ease;
  }

  .clinic-card .card-overlay {
    transition: background 0.4s ease;
  }

  .clinic-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 30, 40, 0.25);
  }

  .clinic-card:hover img {
    transform: scale(1.08);
  }

  .clinic-card:hover .card-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 25, 35, 0.96) 0%,
      rgba(0, 25, 35, 0.48) 55%,
      rgba(0, 0, 0, 0.08) 100%
    );
  }
  


  .hover-zoom {
    overflow: hidden;
  }

  .hover-zoom img {
    transition: transform 0.5s ease;
  }

  .hover-zoom:hover img {
    transform: scale(1.06);
  }

  .mobileSlider {
    padding-bottom: 35px;
  }

  .mobileSlider .swiper-pagination-bullet {
    transition: all 0.3s ease;
  }

  .mobileSlider .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 10px;
  }




  .mobileSlider {
    width: 100%;
    overflow: hidden;
    padding-bottom: 45px;
  }

  .mobileSlider .swiper-slide {
    width: 100%;
    height: auto;
  }

  .mobileSlider img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Image hover effect */
  .hover-zoom {
    overflow: hidden;
  }

  .hover-zoom img {
    transition: transform 0.5s ease;
  }

  .hover-zoom:hover img {
    transform: scale(1.05);
  }

  /* Pagination */
  .mobileSlider .swiper-pagination {
    bottom: 5px;
  }

  /* Navigation buttons */
  .mobileSlider .swiper-button-prev,
  .mobileSlider .swiper-button-next {
    width: 38px;
    height: 38px;
  }

  .mobileSlider .swiper-button-prev::after,
  .mobileSlider .swiper-button-next::after {
    font-size: 16px;
  }

  /* Mobile */
  @media (max-width: 639px) {
    .mobileSlider .swiper-button-prev,
    .mobileSlider .swiper-button-next {
      display: none;
    }
  }

  .img-overlay{
 position: absolute;
 top: 0;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: #00000050;
  }

  
    .results-slider {
      width: 100%;
      overflow: hidden;
      padding: 25px 0;
    }

    .slider-row {
      display: flex;
      width: max-content;
      gap: 40px;
      will-change: transform;
    }

    /* ========================================
       CARD
    ======================================== */

    .result-card {
      width: 275px;
      flex-shrink: 0;
    }

    .result-images {
      display: flex;
      width: 100%;
      height: 170px;
      overflow: visible;
      border-radius: 5px;
      position: relative;
    }

    .result-image-box {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }

    .result-image-box:first-child {
      border-radius: 5px 0 0 5px;
    }

    .result-image-box:last-child {
      border-radius: 0 5px 5px 0;
    }

    .result-image-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s ease;
    }

    .result-card:hover img {
      transform: scale(1.05);
    }

    /* ========================================
       BEFORE / AFTER LABELS
    ======================================== */

    .result-label {
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);

      background: #252640;
      color: #fff;

      font-size: 10px;
      font-weight: 700;

      padding: 4px 13px;
      min-width: 62px;

      text-align: center;
      border-radius: 20px;

      z-index: 5;
      white-space: nowrap;
    }

    /* ========================================
       ANIMATIONS
    ======================================== */

    .row-one {
      animation: slideLeft 35s linear infinite;
    }

    .row-two {
      animation: slideRight 35s linear infinite;
    }

    .results-slider:hover .slider-row {
      animation-play-state: paused;
    }

    @keyframes slideLeft {
      from {
        transform: translateX(0);
      }

      to {
        transform: translateX(-50%);
      }
    }

    @keyframes slideRight {
      from {
        transform: translateX(-50%);
      }

      to {
        transform: translateX(0);
      }
    }

    /* ========================================
       MOBILE
    ======================================== */

    @media (max-width: 640px) {

      .results-slider {
        padding: 20px 0;
      }

      .slider-row {
        gap: 20px;
        margin-bottom: 35px;
      }

      .result-card {
        width: 230px;
      }

      .result-images {
        height: 145px;
      }

      .result-label {
        font-size: 9px;
        padding: 4px 10px;
        min-width: 55px;
      }

      .row-one {
        animation-duration: 25s;
      }

      .row-two {
        animation-duration: 25s;
      }
    }

      /* Hide scrollbar */
    .team-slider {
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .team-slider::-webkit-scrollbar {
      display: none;
    }

    /* Card hover */
    .doctor-card {
      transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
    }

    .doctor-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    }

    /* Image animation */
    .doctor-card img {
      transition: transform 0.6s ease;
    }

    .doctor-card:hover img {
      transform: scale(1.06);
    }

    /* Smooth slider */
    .team-slider {
      scroll-behavior: smooth;
    }

    /* Arrow animation */
    .slider-btn {
      transition: all 0.3s ease;
    }

    .slider-btn:hover {
      transform: scale(1.08);
    }

    /* Card reveal */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(25px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .animate-card {
      animation: fadeUp 0.8s ease forwards;
    }

    /* Gold bullet */
    .gold-dot {
      width: 17px;
      height: 17px;
      min-width: 17px;
      background: #d6ae70;
      border-radius: 50%;
    }

    .consult-btn {
      transition: all 0.3s ease;
    }

    .consult-btn:hover {
      transform: translateX(-6px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    }

    .icon-circle {
      transition: all 0.3s ease;
    }

    .consult-btn:hover .icon-circle {
      transform: scale(1.08);
    }

    @keyframes pulse-soft {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.05);
      }
    }

    .pulse-icon {
      animation: pulse-soft 2s infinite;
    }

/* ==========================================================================
   Live Google Reviews Section Styling
   ========================================================================== */
.google-star {
  color: #fbbc04;
}

.google-review-card {
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 20px rgba(0, 20, 50, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.google-review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(17, 34, 118, 0.12);
  border-color: #d8e2ed;
}

.review-filter-chip {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.review-filter-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1b2276;
}

.review-filter-chip.active {
  background: #1b2276;
  color: #ffffff;
  border-color: #1b2276;
  box-shadow: 0 4px 14px rgba(27, 34, 118, 0.25);
}

@keyframes live-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.live-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #22c55e;
  display: inline-block;
  animation: live-glow 2s infinite ease-in-out;
}

.google-arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1b2276;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.google-arrow-btn:hover {
  background: #1b2276;
  color: #ffffff;
  border-color: #1b2276;
  transform: scale(1.08);
}

.google-arrow-btn.swiper-button-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

#googleReviewsSwiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
}

#googleReviewsSwiper .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 6px;
  background: #1b2276;
}

/* Modal Star Rating */
.star-rating-select i {
  cursor: pointer;
  font-size: 24px;
  color: #d1d5db;
  transition: color 0.15s ease;
}

.star-rating-select i.active,
.star-rating-select i:hover,
.star-rating-select i.hovered {
  color: #fbbc04;
}


        /* =========================================
           SLIDER
        ========================================= */

        .clinic-slide {
            position: absolute;
            inset: 0;

            width: 100%;
            height: 100%;

            opacity: 0;
            visibility: hidden;

            transition:
                opacity 0.9s ease-in-out,
                visibility 0.9s ease-in-out;
        }


        /* Active slide */

        .clinic-slide.active {
            opacity: 1;
            visibility: visible;

            z-index: 10;
        }


        /* =========================================
           SLIDER IMAGE
        ========================================= */

        .clinic-slide img {
            position: absolute;
            inset: 0;

            width: 100%;
            height: 100%;

            object-fit: cover;

            transform: scale(1.06);

            transition:
                transform 5s ease;
        }


        /* Zoom animation */

        .clinic-slide.active img {
            transform: scale(1);
        }


        /* =========================================
           DARK OVERLAY
        ========================================= */

        .clinic-overlay {
            position: absolute;
            inset: 0;

            background:
                linear-gradient(
                    to bottom,
                    rgba(0, 0, 0, 0.05),
                    rgba(0, 0, 0, 0.10),
                    rgba(5, 7, 34, 0.80)
                );
        }


        /* =========================================
           DOTS
        ========================================= */

        .clinic-dot {
            width: 8px;
            height: 8px;

            padding: 0;
            border: 0;

            border-radius: 9999px;

            background: rgba(255, 255, 255, 0.50);

            cursor: pointer;

            transition:
                width 0.3s ease,
                background 0.3s ease,
                transform 0.3s ease;
        }


        .clinic-dot:hover {
            transform: scale(1.15);
            background: rgba(255, 255, 255, 0.85);
        }


        /* Active dot */

        .clinic-dot.active {
            width: 26px;

            background: #ffffff;
        }


        /* =========================================
           MOBILE
        ========================================= */

        @media (max-width: 640px) {

            .clinic-slide img {
                object-position: center center;
            }

        }


        /* =====================================================
           MAIN SECTION
        ===================================================== */

        .patients-section {
            background: #faf6ec;
            overflow: hidden;
        }


        /* =====================================================
           FLAGS
        ===================================================== */

        .flag-item {
            flex: 0 0 auto;
            width: 55px;

            display: flex;
            justify-content: center;
            align-items: center;

            font-size: 34px;

            transition:
                transform 0.3s ease,
                filter 0.3s ease;
        }

        .flag-item:hover {
            transform: translateY(-5px) scale(1.08);
            filter: drop-shadow(0 5px 8px rgba(0,0,0,0.15));
        }


        /* =====================================================
           SLIDER
        ===================================================== */

        .patient-slider {
            position: relative;
            width: 100%;
            overflow: hidden;
        }

        .patient-track {
            display: flex;
            gap: 60px;

            transition:
                transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);

            will-change: transform;
        }


        /* =====================================================
           PATIENT CARD
        ===================================================== */

        .patient-card {
            flex: 0 0 calc((100% - 120px) / 3);

            height: 400px;

            overflow: hidden;

            border-radius: 18px;

            background: white;

            box-shadow:
                0 8px 30px rgba(0, 0, 0, 0.08);

            transition:
                transform 0.4s ease,
                box-shadow 0.4s ease;
        }

        .patient-card:hover {
            transform: translateY(-8px);

            box-shadow:
                0 18px 40px rgba(0, 0, 0, 0.15);
        }

        .patient-card img {
            width: 100%;
            height: 100%;

            display: block;

            object-fit: cover;

            transition:
                transform 0.7s ease;
        }

        .patient-card:hover img {
            transform: scale(1.04);
        }


        /* =====================================================
           DOTS
        ===================================================== */

        .patient-dot {
            width: 8px;
            height: 8px;

            border: none;
            padding: 0;

            border-radius: 50%;

            background: #d2b77c;

            cursor: pointer;

            transition:
                width 0.3s ease,
                background 0.3s ease;
        }

        .patient-dot.active {
            width: 28px;
            border-radius: 20px;
            background: #c9972b;
        }


        /* =====================================================
           SIDE FLOATING BUTTONS
        ===================================================== */

        .floating-actions {
            position: fixed;

            right: 0;
            top: 50%;

            transform: translateY(-50%);

            z-index: 9999;

            display: flex;
            flex-direction: column;

            gap: 8px;
        }


        .floating-btn {
            width: 125px;
            min-height: 55px;

            display: flex;
            align-items: center;

            border-radius: 30px 0 0 30px;

            text-decoration: none;

            overflow: hidden;

            transition:
                transform 0.3s ease,
                width 0.3s ease;
        }

        .floating-btn:hover {
            width: 145px;
        }


        .floating-icon {
            width: 52px;
            height: 52px;

            flex: 0 0 52px;

            display: flex;
            justify-content: center;
            align-items: center;

            border-radius: 50%;

            font-size: 25px;
        }


        .floating-text {
            padding-left: 8px;

            line-height: 1.1;

            font-size: 12px;
            font-weight: 700;
        }

        .floating-text span {
            display: block;

            font-size: 10px;
            font-weight: 500;

            margin-top: 3px;
        }


        /* =====================================================
           FREE VIDEO CONSULT
        ===================================================== */

        .video-consult {
            background: #f7d76f;
            color: #765900;
        }

        .video-consult .floating-icon {
            background: #a98214;
            color: white;
        }


        /* =====================================================
           PRICE LIST
        ===================================================== */

        .price-list {
            background: #f3d067;
            color: #765900;
        }

        .price-list .floating-icon {
            background: #a98214;
            color: white;
        }


        /* =====================================================
           WHATSAPP
        ===================================================== */

        .whatsapp-btn {
            width: 54px;
            height: 54px;

            margin-left: auto;

            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 50%;

            background: #25D366;

            color: white;

            font-size: 30px;

            text-decoration: none;

            box-shadow:
                0 5px 15px rgba(0,0,0,0.15);

            transition:
                transform 0.3s ease;
        }

      
        /* =====================================================
           EMAIL
        ===================================================== */

        .email-btn {
            width: 54px;
            height: 54px;

            margin-left: auto;

            display: flex;
            align-items: center;
            justify-content: center;

            border-radius: 50%;

            background: #168ee8;

            color: white;

            font-size: 27px;

            text-decoration: none;

            box-shadow:
                0 5px 15px rgba(0,0,0,0.15);

            transition:
                transform 0.3s ease;
        }

        .email-btn:hover {
            transform: scale(1.1);
        }


        /* =====================================================
           TABLET
        ===================================================== */

        @media (max-width: 900px) {

            .patient-track {
                gap: 25px;
            }

            .patient-card {
                flex: 0 0 calc((100% - 50px) / 3);
                height: 340px;
            }

            .floating-actions {
                transform: translateY(-50%) scale(0.9);
                transform-origin: right center;
            }

        }


        /* =====================================================
           MOBILE
        ===================================================== */

        @media (max-width: 640px) {

            .flag-item {
                width: 42px;
                font-size: 27px;
            }

            .patient-track {
                gap: 15px;
            }

            .patient-card {
                flex: 0 0 100%;
                height: 420px;
            }

            .floating-actions {
                right: 5px;
                gap: 5px;

                transform: translateY(-50%) scale(0.72);

                transform-origin: right center;
            }

        }


            /* Popup Animation */
        @keyframes popupShow {
            from {
                opacity: 0;
                transform: translateY(30px) scale(0.95);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .popup-animation {
            animation: popupShow 0.3s ease-out;
        }

        /* Floating Button Animation */
        .floating-btn {
            transition: all 0.3s ease;
        }

        .floating-btn:hover {
            transform: translateX(-8px);
        }

        /* Overlay */
        #popupOverlay {
            backdrop-filter: blur(4px);
        }

        /* Custom Checkbox */
        .custom-checkbox {
            appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid #aaa;
            border-radius: 4px;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
        }

        .custom-checkbox:checked {
            background: #a77b08;
            border-color: #a77b08;
        }

        .custom-checkbox:checked::after {
            content: "✓";
            color: white;
            position: absolute;
            font-size: 14px;
            font-weight: bold;
            left: 3px;
            top: -1px;
        }

        /* Prevent background scroll */
        body.popup-open {
            overflow: hidden;
        }
    

    @media (max-width: 1023px) {
  .site-header > div:first-child > div {
    gap: .5rem !important;
  }

  .site-header > div:first-child > div > div:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .site-header > div:first-child > div > div:last-child {
    width: auto !important;
    flex: 0 0 auto;
    gap: .35rem !important;
  }

  .site-header > div:first-child img {
    max-width: 145px;
    height: 52px !important;
  }
}

@media (max-width: 639px) {
  .site-header > div:first-child {
    padding-left: .65rem !important;
    padding-right: .65rem !important;
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
  }

  .site-header > div:first-child > div {
    gap: .35rem !important;
  }

  .site-header > div:first-child img {
    max-width: 105px;
    height: 43px !important;
  }

  .site-header marquee {
    font-size: .65rem !important;
    line-height: 1.2;
  }

  .site-header .btn-blue {
    display: none !important;
  }

  #mobileMenuToggle {
    padding: .5rem !important;
  }
}

/* ---------- Mobile drawer ---------- */
#mobileMenuDrawer {
  max-width: min(88vw, 380px);
  padding: 1rem !important;
}

@media (max-width: 380px) {
  #mobileMenuDrawer {
    width: 92vw !important;
  }

  #mobileMenuDrawer .text-xs {
    font-size: .68rem;
  }
}

/* ---------- Main content spacing ---------- */
@media (max-width: 639px) {
  /* Keep fixed-header compensation compact on phones. */
  body > .h-28 {
    height: 5.5rem !important;
  }
}

/* ---------- Hero / Swiper ---------- */
.mobileSlider,
.mobileSlider .swiper-wrapper,
.mobileSlider .swiper-slide {
  width: 100%;
}

.mobileSlider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 250px;
  max-height: 75vh;
  object-fit: cover;
}

@media (max-width: 639px) {
  .mobileSlider .swiper-slide img {
    min-height: 0;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .mobileSlider .swiper-button-prev,
  .mobileSlider .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .mobileSlider .swiper-button-prev:after,
  .mobileSlider .swiper-button-next:after {
    font-size: 15px;
  }
}

/* ---------- Generic headings ---------- */
@media (max-width: 639px) {
  h1 {
    overflow-wrap: anywhere;
  }

  section h2,
  section h3 {
    overflow-wrap: anywhere;
  }

  .text-7xl { font-size: 2.35rem !important; }
  .text-6xl { font-size: 2.15rem !important; }
  .text-5xl { font-size: 1.9rem !important; }
  .text-4xl { font-size: 1.7rem !important; }

  section.py-16,
  section.py-14,
  section.py-12 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
}

/* ---------- Text content ---------- */
@media (max-width: 639px) {
  .max-w-4xl,
  .max-w-5xl,
  .max-w-6xl,
  .max-w-7xl {
    max-width: 100% !important;
  }

  .text-justify {
    text-align: left !important;
  }

  .space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: .85rem;
  }
}

/* ---------- Before/after sliders ---------- */
.results-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.slider-row {
  width: max-content;
  max-width: none;
}

.result-card {
  flex: 0 0 auto;
}

.result-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 639px) {
  .result-card {
    width: min(72vw, 230px) !important;
  }

  .result-image-box {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
  }
}

/* ---------- Affordable treatment cards ---------- */
@media (max-width: 639px) {
  .result-card h3 {
    font-size: .9rem !important;
  }

  section .grid > a.flex.items-center {
    min-width: 0;
  }

  section .grid > a.flex.items-center img {
    width: 6rem !important;
    height: 5.5rem !important;
  }

  section .grid > a.flex.items-center h3 {
    min-width: 0;
    font-size: .9rem !important;
    line-height: 1.25;
  }

  /* Keep the offer badge useful without covering the cards. */
  .grid .absolute.left-1\/2.top-1\/2 {
    transform: translate(-50%, -50%) scale(.8);
  }
}

/* ---------- Wall banners ---------- */
section.w-full.overflow-hidden img,
section.w-full.overflow-hidden video {
  display: block;
  width: 100%;
}

@media (max-width: 639px) {
  section.w-full.overflow-hidden > img,
  section.w-full.overflow-hidden > video {
    min-height: 190px;
    max-height: 70vh;
    object-fit: cover;
  }

  #typeappsTitle1 .Typewriter__wrapper {
    font-size: clamp(1.45rem, 7vw, 2.5rem) !important;
    line-height: 1.05;
  }
}

/* ---------- Patient slider ---------- */
.patient-slider {
  width: 100%;
  overflow: hidden;
}

.patient-track {
  display: flex;
  align-items: stretch;
  width: max-content;
}

.patient-card {
  flex: 0 0 auto;
  overflow: hidden;
}

.patient-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 639px) {
  .patient-card {
    width: 72vw !important;
    max-width: 260px;
  }

  #flags {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }

  #flags::-webkit-scrollbar {
    display: none;
  }

  .flag-item {
    flex: 0 0 auto;
    font-size: 1.45rem;
  }
}

/* ---------- Technology cards ---------- */
@media (max-width: 639px) {
  #technology .grid {
    grid-template-columns: 1fr !important;
  }

  #technology .col-span-2 {
    grid-column: auto !important;
  }

  #technology .grid > div {
    min-width: 0;
  }

  #technology [class*="h-[250px]"] {
    height: 210px !important;
  }

  #technology .p-4 {
    padding: .75rem !important;
  }

  #technology .font-bold {
    font-size: .78rem !important;
  }
}

/* ---------- Stats ---------- */
@media (max-width: 639px) {
  .counter-value {
    font-size: 2rem !important;
  }

  section.bg-brand-navy .relative.h-\[234px\] {
    height: 190px !important;
  }

  section.bg-brand-navy .relative.h-\[146px\] {
    height: 125px !important;
  }
}

/* ---------- Brand logos ---------- */
@media (max-width: 639px) {
  section .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-4.lg\:grid-cols-5 {
    gap: .65rem !important;
  }

  section .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-4.lg\:grid-cols-5 > div {
    height: 92px !important;
    padding: .6rem !important;
  }

  section .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-4.lg\:grid-cols-5 img {
    max-height: 55px;
  }
}

/* ---------- Work portfolio ---------- */
@media (max-width: 480px) {
  section .grid.grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: .6rem !important;
  }
}

/* ---------- Google reviews ---------- */
.google-review-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#googleReviewsSwiper {
  width: 100%;
  overflow: hidden;
}

#googleReviewsSwiper .swiper-slide {
  height: auto;
}

@media (max-width: 639px) {
  #googleReviewsSwiper .swiper-slide {
    width: 88% !important;
  }

  .google-review-card {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  .google-review-card p {
    font-size: .78rem !important;
    line-height: 1.55 !important;
  }

  #googleReviewPrev,
  #googleReviewNext {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
  }

  #googleReviewPrev { left: -2px !important; }
  #googleReviewNext { right: -2px !important; }
}

/* ---------- YouTube testimonials ---------- */
#videoTestimonialsCollapsible iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 639px) {
  #videoTestimonialsCollapsible {
    margin-top: 1.25rem !important;
  }

  #videoTestimonialsCollapsible .grid {
    gap: .75rem !important;
  }
}

/* ---------- Instagram reels ---------- */
@media (max-width: 639px) {
  section a[class*="min-w-[260px]"] {
    min-width: 76vw !important;
    height: 118vw !important;
    max-height: 520px;
  }

  section .flex.flex-col.md\:flex-row.md\:items-end {
    align-items: stretch !important;
  }

  section .flex.flex-col.md\:flex-row.md\:items-end > a {
    width: 100%;
  }
}

/* ---------- Team slider ---------- */
.team-slider {
  scrollbar-width: none;
}

.team-slider::-webkit-scrollbar {
  display: none;
}

@media (max-width: 639px) {
  #teamSlider {
    gap: .85rem !important;
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
  }

  #teamSlider > * {
    flex: 0 0 82vw !important;
    max-width: 300px;
  }

  .slider-btn {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ---------- Modals ---------- */
.modal-overlay {
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-content-card,
.modal-video-card {
  width: min(100%, 560px);
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.video-responsive {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-responsive iframe {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 639px) {
  .modal-overlay {
    align-items: flex-end !important;
    padding: .5rem !important;
  }

  .modal-content-card,
  .modal-video-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 1rem);
    border-radius: 1rem !important;
  }

  .modal-close-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: 16px !important; /* prevents iOS zoom */
  }
}

/* ---------- Mobile bottom dock ---------- */
.mobile-bottom-dock {
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 639px) {
  .mobile-bottom-dock {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    min-height: 58px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 18px rgba(0,0,0,.08);
  }

  .mobile-bottom-dock a {
    min-width: 0;
    padding: .5rem .15rem;
    justify-content: center;
  }

  body {
    padding-bottom: 64px;
  }
}

@media (min-width: 640px) {
  .mobile-bottom-dock {
    display: none !important;
  }
}

/* ---------- Floating WhatsApp ---------- */
@media (max-width: 639px) {
  .floating-whatsapp {
    right: 12px !important;
    bottom: 75px !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 55 !important;
  }

  .floating-whatsapp i {
    font-size: 1.5rem !important;
  }
}

/* ---------- Forms ---------- */
input, select, textarea {
  max-width: 100%;
}

@media (max-width: 639px) {
  input, select, textarea {
    min-height: 44px;
  }

  form .flex {
    min-width: 0;
  }
}

/* ---------- Prevent horizontal overflow from long utility classes/content ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, h6, a, span, label {
  overflow-wrap: break-word;
}

@media (max-width: 1023px) {
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }}


  html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, video, iframe {
  max-width: 100%;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

section {
  max-width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.site-header > div:first-child > div {
  width: 100%;
  min-width: 0;
}

.site-header marquee {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .site-header > div:first-child > div {
    gap: .5rem !important;
  }

  .site-header > div:first-child > div > div:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .site-header > div:first-child > div > div:last-child {
    width: auto !important;
    flex: 0 0 auto;
    gap: .35rem !important;
  }

  .site-header > div:first-child img {
    max-width: 145px;
    height: 52px !important;
  }
}

@media (max-width: 639px) {
  .site-header > div:first-child {
    padding-left: .65rem !important;
    padding-right: .65rem !important;
    padding-top: .5rem !important;
    padding-bottom: .5rem !important;
  }

  .site-header > div:first-child > div {
    gap: .35rem !important;
  }

  .site-header > div:first-child img {
    max-width: 105px;
    height: 43px !important;
  }

  .site-header marquee {
    font-size: .65rem !important;
    line-height: 1.2;
  }

  .site-header .btn-blue {
    display: none !important;
  }

  #mobileMenuToggle {
    padding: .5rem !important;
  }
}

/* ---------- Mobile drawer ---------- */
#mobileMenuDrawer {
  max-width: min(88vw, 380px);
  padding: 1rem !important;
}

@media (max-width: 380px) {
  #mobileMenuDrawer {
    width: 92vw !important;
  }

  #mobileMenuDrawer .text-xs {
    font-size: .68rem;
  }
}

/* ---------- Main content spacing ---------- */
@media (max-width: 639px) {
  /* Keep fixed-header compensation compact on phones. */
  body > .h-28 {
    height: 5.5rem !important;
  }
}

/* ---------- Hero / Swiper ---------- */
.mobileSlider,
.mobileSlider .swiper-wrapper,
.mobileSlider .swiper-slide {
  width: 100%;
}

.mobileSlider .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 250px;
  max-height: 75vh;
  object-fit: cover;
}

@media (max-width: 639px) {
  .mobileSlider .swiper-slide img {
    min-height: 0;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }

  .mobileSlider .swiper-button-prev,
  .mobileSlider .swiper-button-next {
    width: 32px;
    height: 32px;
  }

  .mobileSlider .swiper-button-prev:after,
  .mobileSlider .swiper-button-next:after {
    font-size: 15px;
  }
}

/* ---------- Generic headings ---------- */
@media (max-width: 639px) {
  h1 {
    overflow-wrap: anywhere;
  }

  section h2,
  section h3 {
    overflow-wrap: anywhere;
  }

  .text-7xl { font-size: 2.35rem !important; }
  .text-6xl { font-size: 2.15rem !important; }
  .text-5xl { font-size: 1.9rem !important; }
  .text-4xl { font-size: 1.7rem !important; }

  section.py-16,
  section.py-14,
  section.py-12 {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
}

/* ---------- Text content ---------- */
@media (max-width: 639px) {
  .max-w-4xl,
  .max-w-5xl,
  .max-w-6xl,
  .max-w-7xl {
    max-width: 100% !important;
  }

  .text-justify {
    text-align: left !important;
  }

  .space-y-4 > :not([hidden]) ~ :not([hidden]) {
    margin-top: .85rem;
  }
}

/* ---------- Before/after sliders ---------- */
.results-slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.slider-row {
  width: max-content;
  max-width: none;
}

.result-card {
  flex: 0 0 auto;
}

.result-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 639px) {
  .result-card {
    width: min(72vw, 230px) !important;
  }

  .result-image-box {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
  }
}

/* ---------- Affordable treatment cards ---------- */
@media (max-width: 639px) {
  .result-card h3 {
    font-size: .9rem !important;
  }

  section .grid > a.flex.items-center {
    min-width: 0;
  }

  section .grid > a.flex.items-center img {
    width: 6rem !important;
    height: 5.5rem !important;
  }

  section .grid > a.flex.items-center h3 {
    min-width: 0;
    font-size: .9rem !important;
    line-height: 1.25;
  }

  /* Keep the offer badge useful without covering the cards. */
  .grid .absolute.left-1\/2.top-1\/2 {
    transform: translate(-50%, -50%) scale(.8);
  }
}

/* ---------- Wall banners ---------- */
section.w-full.overflow-hidden img,
section.w-full.overflow-hidden video {
  display: block;
  width: 100%;
}

@media (max-width: 639px) {
  section.w-full.overflow-hidden > img,
  section.w-full.overflow-hidden > video {
    min-height: 190px;
    max-height: 70vh;
    object-fit: cover;
  }

  #typeappsTitle1 .Typewriter__wrapper {
    font-size: clamp(1.45rem, 7vw, 2.5rem) !important;
    line-height: 1.05;
  }
}

/* ---------- Patient slider ---------- */
.patient-slider {
  width: 100%;
  overflow: hidden;
}

.patient-track {
  display: flex;
  align-items: stretch;
  width: max-content;
}

.patient-card {
  flex: 0 0 auto;
  overflow: hidden;
}

.patient-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 639px) {
  .patient-card {
    width: 72vw !important;
    max-width: 260px;
  }

  #flags {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }

  #flags::-webkit-scrollbar {
    display: none;
  }

  .flag-item {
    flex: 0 0 auto;
    font-size: 1.45rem;
  }
}

/* ---------- Technology cards ---------- */
@media (max-width: 639px) {
  #technology .grid {
    grid-template-columns: 1fr !important;
  }

  #technology .col-span-2 {
    grid-column: auto !important;
  }

  #technology .grid > div {
    min-width: 0;
  }

  #technology [class*="h-[250px]"] {
    height: 210px !important;
  }

  #technology .p-4 {
    padding: .75rem !important;
  }

  #technology .font-bold {
    font-size: .78rem !important;
  }
}

/* ---------- Stats ---------- */
@media (max-width: 639px) {
  .counter-value {
    font-size: 2rem !important;
  }

  section.bg-brand-navy .relative.h-\[234px\] {
    height: 190px !important;
  }

  section.bg-brand-navy .relative.h-\[146px\] {
    height: 125px !important;
  }
}

/* ---------- Brand logos ---------- */
@media (max-width: 639px) {
  section .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-4.lg\:grid-cols-5 {
    gap: .65rem !important;
  }

  section .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-4.lg\:grid-cols-5 > div {
    height: 92px !important;
    padding: .6rem !important;
  }

  section .grid.grid-cols-2.sm\:grid-cols-3.md\:grid-cols-4.lg\:grid-cols-5 img {
    max-height: 55px;
  }
}

/* ---------- Work portfolio ---------- */
@media (max-width: 480px) {
  section .grid.grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: .6rem !important;
  }
}

/* ---------- Google reviews ---------- */
.google-review-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#googleReviewsSwiper {
  width: 100%;
  overflow: hidden;
}

#googleReviewsSwiper .swiper-slide {
  height: auto;
}

@media (max-width: 639px) {
  #googleReviewsSwiper .swiper-slide {
    width: 88% !important;
  }

  .google-review-card {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  .google-review-card p {
    font-size: .78rem !important;
    line-height: 1.55 !important;
  }

  #googleReviewPrev,
  #googleReviewNext {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px;
  }

  #googleReviewPrev { left: -2px !important; }
  #googleReviewNext { right: -2px !important; }
}

/* ---------- YouTube testimonials ---------- */
#videoTestimonialsCollapsible iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 639px) {
  #videoTestimonialsCollapsible {
    margin-top: 1.25rem !important;
  }

  #videoTestimonialsCollapsible .grid {
    gap: .75rem !important;
  }
}

/* ---------- Instagram reels ---------- */
@media (max-width: 639px) {
  section a[class*="min-w-[260px]"] {
    min-width: 76vw !important;
    height: 118vw !important;
    max-height: 520px;
  }

  section .flex.flex-col.md\:flex-row.md\:items-end {
    align-items: stretch !important;
  }

  section .flex.flex-col.md\:flex-row.md\:items-end > a {
    width: 100%;
  }
}

/* ---------- Team slider ---------- */
.team-slider {
  scrollbar-width: none;
}

.team-slider::-webkit-scrollbar {
  display: none;
}

@media (max-width: 639px) {
  #teamSlider {
    gap: .85rem !important;
    padding-left: 2.75rem !important;
    padding-right: 2.75rem !important;
  }

  #teamSlider > * {
    flex: 0 0 82vw !important;
    max-width: 300px;
  }

  .slider-btn {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ---------- Modals ---------- */
.modal-overlay {
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-content-card,
.modal-video-card {
  width: min(100%, 560px);
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}

.video-responsive {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-responsive iframe {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 639px) {
  .modal-overlay {
    align-items: flex-end !important;
    padding: .5rem !important;
  }

  .modal-content-card,
  .modal-video-card {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 1rem);
    border-radius: 1rem !important;
  }

  .modal-close-btn {
    width: 34px !important;
    height: 34px !important;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: 16px !important; /* prevents iOS zoom */
  }
}

/* ---------- Mobile bottom dock ---------- */
.mobile-bottom-dock {
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 639px) {
  .mobile-bottom-dock {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    min-height: 58px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 18px rgba(0,0,0,.08);
  }

  .mobile-bottom-dock a {
    min-width: 0;
    padding: .5rem .15rem;
    justify-content: center;
  }

  body {
    padding-bottom: 64px;
  }
}

@media (min-width: 640px) {
  .mobile-bottom-dock {
    display: none !important;
  }
}

/* ---------- Floating WhatsApp ---------- */
@media (max-width: 639px) {
  .floating-whatsapp {
    right: 12px !important;
    bottom: 75px !important;
    width: 48px !important;
    height: 48px !important;
    z-index: 55 !important;
  }

  .floating-whatsapp i {
    font-size: 1.5rem !important;
  }
}

/* ---------- Forms ---------- */
input, select, textarea {
  max-width: 100%;
}

@media (max-width: 639px) {
  input, select, textarea {
    min-height: 44px;
  }

  form .flex {
    min-width: 0;
  }
}

/* ---------- Prevent horizontal overflow from long utility classes/content ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

p, h1, h2, h3, h4, h5, h6, a, span, label {
  overflow-wrap: break-word;
}

@media (max-width: 1023px) {
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ===== Premium Hover Effects & Scroll Animations ===== */
html { scroll-behavior:smooth; }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:none} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes floatSoft { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
@keyframes pulseSoft { 0%,100%{box-shadow:0 0 0 0 rgba(167,123,8,.18)} 50%{box-shadow:0 0 0 10px rgba(167,123,8,0)} }
@keyframes shimmer { from{background-position:-200% 0} to{background-position:200% 0} }

/* reveal-on-scroll */
.reveal-on-scroll{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s cubic-bezier(.22,1,.36,1)}
.reveal-on-scroll.is-visible{opacity:1;transform:none}

/* universal image hover */
img{transition:transform .5s cubic-bezier(.22,1,.36,1),filter .5s ease}
.hover-zoom,.hover-zoom img,.patient-card,.google-review-card,.treatment-card,.service-card,.technology-card,.team-card,.work-card{transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s ease,border-color .35s ease}
.hover-zoom:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(15,23,42,.14)}
.hover-zoom:hover img{transform:scale(1.06)}

/* cards */
.patient-card:hover,.google-review-card:hover,.treatment-card:hover,.service-card:hover,.technology-card:hover,.team-card:hover,.work-card:hover{transform:translateY(-8px);box-shadow:0 18px 38px rgba(15,23,42,.13)}
.patient-card:hover img,.google-review-card:hover img,.treatment-card:hover img,.service-card:hover img,.technology-card:hover img,.team-card:hover img,.work-card:hover img{transform:scale(1.035)}

/* buttons / links */
a,button{transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease,color .25s ease,border-color .25s ease}
.btn-blue:hover,.btn-gold:hover{transform:translateY(-3px);box-shadow:0 12px 25px rgba(15,23,42,.16)}
button:hover{transform:translateY(-2px)}
button:active,a:active{transform:translateY(0) scale(.98)}

/* floating actions */
.mobile-bottom-dock a:hover,.floating-whatsapp:hover{transform:translateY(-5px);box-shadow:0 12px 28px rgba(15,23,42,.2)}
.floating-whatsapp{animation:pulseSoft 2.4s infinite}

/* section headings */
section h2,section h3{transition:letter-spacing .35s ease}
section:hover h2{letter-spacing:.01em}

/* badges / featured elements */
[class*="rounded-full"].bg-red-600{animation:floatSoft 3s ease-in-out infinite}

/* interactive form fields */
input,textarea,select{transition:border-color .25s ease,box-shadow .25s ease,transform .25s ease}
input:focus,textarea:focus,select:focus{transform:translateY(-1px);box-shadow:0 0 0 4px rgba(167,123,8,.10)}

/* subtle loading shimmer helper */
.loading-shimmer{background:linear-gradient(90deg,rgba(255,255,255,.04) 25%,rgba(255,255,255,.18) 50%,rgba(255,255,255,.04) 75%);background-size:200% 100%;animation:shimmer 1.5s linear infinite}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal-on-scroll{opacity:1;transform:none;transition:none}*,*:before,*:after{animation:none!important;transition:none!important}}


/* ---------- Premium Hover Effects ---------- */
.hover-zoom, .patient-card, .google-review-card, .treatment-card,
.service-card, .technology-card, .team-card, .work-card {
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, border-color .35s ease;
  will-change: transform;
}

.hover-zoom img {
  transition: transform .55s cubic-bezier(.22,1,.36,1), filter .35s ease;
}

.hover-zoom:hover img { transform: scale(1.06); }

.patient-card:hover, .google-review-card:hover, .treatment-card:hover,
.service-card:hover, .technology-card:hover, .team-card:hover, .work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

button, a.btn-blue, a[class*="rounded-full"] {
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

button:hover, a.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}

button:active, a.btn-blue:active { transform: translateY(0) scale(.98); }

/* ---------- Scroll Reveal ---------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* ---------- Floating / Attention Animations ---------- */
@keyframes dc-float {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}

@keyframes dc-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.35); }
  50% { box-shadow: 0 0 0 12px rgba(34,197,94,0); }
}

@keyframes dc-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes dc-pop {
  0% { opacity: 0; transform: scale(.88); }
  100% { opacity: 1; transform: scale(1); }
}

/* WhatsApp / floating action elements */
.fixed a[href*="whatsapp"], a[href*="wa.link"] {
  transition: transform .3s ease, box-shadow .3s ease;
}
.fixed a[href*="whatsapp"]:hover, a[href*="wa.link"]:hover {
  transform: translateY(-4px) scale(1.03);
}

/* Modal entrance */
.modal-overlay { transition: opacity .3s ease, visibility .3s ease; }
.modal-content-card, .modal-video-card { animation: dc-pop .35s ease both; }

/* Form focus */
input, textarea, select { transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease; }
input:focus, textarea:focus, select:focus { transform: translateY(-1px); }

/* Image loading feel */
img { transition: opacity .3s ease; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}/* =========================================
   SIDE ACTION BUTTONS
========================================= */

.side-actions {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

/* Main buttons */
.side-action {
    width: 150px;
    min-height: 58px;

    display: flex;
    align-items: center;

    text-decoration: none;

    border-radius: 15px 0 0 15px;

    padding: 7px 10px 7px 7px;

    box-sizing: border-box;

    transition: all 0.3s ease;
}

/* Hover */
.side-action:hover {
    width: 165px;
    transform: translateX(-5px);
}

/* Icon */
.side-icon {
    width: 42px;
    height: 42px;

    min-width: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: 700;

    margin-right: 8px;
}

/* Text */
.side-text {
    display: flex;
    flex-direction: column;

    line-height: 1.1;
}

.side-text strong {
    font-size: 16px;
    font-weight: 700;
}

.side-text small {
    font-size: 12px;
    margin-top: 3px;
}

/* Free button */
.consult-btn {
    background: #ffda55;
    color: #554400;
}

.consult-btn .side-icon {
    background: #a77d00;
    color: white;
}

/* Request button */
.request-btn {
    background: #ffda55;
    color: #554400;
}

.request-btn .side-icon {
    background: #a77d00;
    color: white;
}

/* WhatsApp */
.whatsapp-btn {
    width: 60px;
    height: 60px;

    margin-top: 35px;
    margin-right: 18px;

    border-radius: 50%;

    background: #25d366;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 31px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.2);

    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .side-actions {
        top: auto;
        bottom: 15px;

        right: 10px;

        transform: none;

        gap: 7px;

        align-items: flex-end;
    }

    .side-action {
        width: 125px;
        min-height: 46px;

        padding: 5px 8px 5px 5px;

        border-radius: 12px;
    }

    .side-action:hover {
        width: 125px;
        transform: none;
    }

    .side-icon {
        width: 34px;
        height: 34px;

        min-width: 34px;

        font-size: 15px;

        margin-right: 6px;
    }

    .side-text strong {
        font-size: 12px;
    }

    .side-text small {
        font-size: 9px;

        margin-top: 2px;
    }

    .whatsapp-btn {
        width: 48px;
        height: 48px;

        margin-top: 10px;
        margin-right: 3px;

        font-size: 24px;
    }
}


/* =========================================
   VERY SMALL PHONES
========================================= */

@media (max-width: 380px) {

    .side-actions {
        right: 6px;
        bottom: 10px;
    }

    .side-action {
        width: 110px;
        min-height: 43px;
    }

    .side-action:hover {
        width: 110px;
    }

    .side-icon {
        width: 31px;
        height: 31px;
        min-width: 31px;
    }

    .side-text strong {
        font-size: 11px;
    }

    .side-text small {
        font-size: 8px;
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

