/* ═══════════════════════════════════════════════════════════
   SMILE & TEETH CARE — Dr. Firoz A. Khan
   Main Stylesheet (style.css)
   Color Palette:
     Primary:    #1E88E5 (Ocean Blue)
     Secondary:  #42A5F5 (Sky Blue)
     Background: #FFFFFF (Pure White)
     Accent:     #ECEFF1 (Soft Silver)
     Text:       #455A64 (Slate Gray)
═══════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  --primary: #1E88E5;
  --primary-dark: #1565C0;
  --primary-light: #BBDEFB;
  --secondary: #42A5F5;
  --accent: #ECEFF1;
  --accent-2: #E3F2FD;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFE;
  --bg-dark: #0a2b3a;
  --text: #455A64;
  --text-dark: #1A2C3D;
  --text-muted: #78909C;
  --text-light: #90A4AE;
  --white: #FFFFFF;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --danger: #EF5350;
  --success: #66BB6A;
  --warning: #FFA726;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;

  /* Spacing */
  --section-pad: 90px;
  --card-radius: 16px;
  --btn-radius: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(30, 136, 229, 0.08);
  --shadow-md: 0 8px 32px rgba(30, 136, 229, 0.14);
  --shadow-lg: 0 20px 60px rgba(30, 136, 229, 0.18);
  --shadow-card: 0 4px 24px rgba(69, 90, 100, 0.10);

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1E88E5 0%, #42A5F5 100%);
  --gradient-hero: linear-gradient(135deg, #E3F2FD 0%, #F8FAFE 40%, #FFFFFF 100%);
  --gradient-dark: linear-gradient(135deg, #0D1B2A 0%, #1A2C3D 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.60));
}

/* ─── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

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

p {
  line-height: 1.75;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Section Common Styles ──────────────────────────────── */
.section-padding {
  padding: var(--section-pad) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--accent-2);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--btn-radius);
  padding: 12px 28px;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary-custom {
  background: var(--gradient-primary);
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.35);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 136, 229, 0.45);
  color: var(--white) !important;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #20BA5A 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  font-size: 1rem;
  padding: 14px 32px;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.50);
  color: var(--white) !important;
}

.btn-whatsapp-sm {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #20BA5A 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.30);
  padding: 10px 22px;
  font-size: 0.875rem;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-whatsapp-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.btn-hero-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  padding: 12px 28px;
}

.btn-hero-outline:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
}

.btn-outline-directions {
  background: transparent;
  color: var(--text-dark) !important;
  border: 2px solid var(--accent);
  padding: 10px 20px;
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.btn-outline-directions:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* Bootstrap overrides */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* ─── Preloader ──────────────────────────────────────────── */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  animation: preloaderPulse 1.2s ease-in-out infinite;
}

.preloader-bar {
  width: 200px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: preloaderLoad 1.8s ease-in-out forwards;
}

.preloader-text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

@keyframes preloaderPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes preloaderLoad {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar-wrapper .navbar {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar-wrapper.scrolled .navbar {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(30, 136, 229, 0.12);
  box-shadow: 0 4px 30px rgba(30, 136, 229, 0.10);
}

/* Logo */
.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.30);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.nav-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Nav Links */
.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text) !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

/* Nav CTA */
.btn-nav {
  padding: 9px 20px !important;
  font-size: 0.84rem !important;
  border-radius: 50px !important;
  font-weight: 600;
  font-family: var(--font-heading);
}

.btn-book {
  background: var(--gradient-primary) !important;
  color: var(--white) !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.30);
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.45);
  color: var(--white) !important;
}

/* Mobile toggler */
.navbar-toggler {
  border: none !important;
  padding: 8px;
  box-shadow: none !important;
  outline: none !important;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.toggler-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav open state */
#navbarNav.show {
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero-section {
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
  background: linear-gradient(105deg, #dbeafe 0%, #e0f2fe 30%, #f0f9ff 55%, #ffffff 80%);
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 30c-8 0-14 6-14 16 0 8 3 14 3 22 0 6 2 10 6 10s5-6 5-12c0-3 0-6 3-6s3 3 3 6c0 6 1 12 5 12s6-4 6-10c0-8 3-14 3-22 0-10-6-16-14-16z' fill='none' stroke='%231E88E5' stroke-width='1.5' opacity='0.05'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 120px 120px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

/* Hero Right: Doctor Photo (Desktop — edge-to-edge on the right) */
@media (min-width: 992px) {
  .hero-image-col {
    position: absolute;
    top: 0;
    /* Push right edge exactly to the viewport right boundary */
    right: calc(50% - 50vw);
    bottom: 0;
    width: 55vw;
    height: 100%;
    z-index: 1;
    margin: 0;
    padding: 0;
    pointer-events: none;
  }

  .hero-image-frame {
    height: 100%;
    width: 100%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    /* Fade only from left — right edge bleeds to full viewport edge */
    -webkit-mask-image: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, 0.10) 15%,
        rgba(0, 0, 0, 0.85) 30%,
        black 44%,
        black 100%);
    mask-image: linear-gradient(to right,
        transparent 0%,
        rgba(0, 0, 0, 0.10) 15%,
        rgba(0, 0, 0, 0.85) 30%,
        black 44%,
        black 100%);
  }

  .hero-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
}

/* Mobile / tablet fallback */
@media (max-width: 991.98px) {
  .hero-image-col {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 24px;
  }

  .hero-image-frame {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  }

  .hero-doctor-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* Hero Content Left */
.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(30, 136, 229, 0.15);
  padding: 6px 18px 6px 6px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.08);
  margin-bottom: 28px;
}

.badge-icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.85rem;
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero-subtitle-heading {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
  line-height: 1.25;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-hero-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--btn-radius);
  padding: 12px 28px;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary) !important;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.1);
}

.btn-hero-call:hover {
  background: var(--primary);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 136, 229, 0.25);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid rgba(30, 136, 229, 0.15);
  padding-top: 28px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.trust-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  display: inline-block;
}

.trust-badge i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Three.js Container */
.three-container {
  width: 100%;
  height: 480px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.08) 0%, rgba(66, 165, 245, 0.12) 50%, rgba(236, 239, 241, 0.30) 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(30, 136, 229, 0.15);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.three-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Floating Info Cards on Hero */
.hero-float-card {
  position: absolute;
  background: white;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(30, 136, 229, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  animation: floatCard 4s ease-in-out infinite;
}

.card-top-left {
  top: 24px;
  left: -20px;
  animation-delay: 0s;
}

.card-bottom-right {
  bottom: 36px;
  right: -20px;
  animation-delay: 1.5s;
}

.card-bottom-left {
  bottom: 36px;
  left: -20px;
  animation-delay: 0.8s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.float-card-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.float-card-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-dark);
  line-height: 1;
}

.float-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.4;
  }
}

/* ─── Stats Section (Matching Hero — Straight Top Edge) ─── */
.stats-section {
  background: #ffffff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 136, 229, 0.10);
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 38px 20px 34px;
  border-radius: 18px;
  background: linear-gradient(160deg, #f8fbff 0%, #ffffff 100%);
  border: 1.5px solid rgba(30, 136, 229, 0.13);
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.stat-item:hover {
  border-color: rgba(30, 136, 229, 0.30);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(30, 136, 229, 0.12);
}

.stat-item:hover::after {
  transform: scaleX(1);
}

.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.10), rgba(66, 165, 245, 0.05));
  border: 1.5px solid rgba(30, 136, 229, 0.18);
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(30, 136, 229, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  background: var(--gradient-primary);
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(30, 136, 229, 0.22);
  border-color: transparent;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: var(--primary);
}

/* ─── About Section ──────────────────────────────────────── */
.about-section {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: start;
}

/* Doctor Image */
..about-image-col {
  position: sticky;
  top: 100px;
  padding: 8px;
}

.doctor-image-wrapper {
  position: relative;
  margin: 12px 8px 32px;
}

.doctor-image-placeholder {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--primary);
  border: 2px dashed rgba(30, 136, 229, 0.30);
  position: relative;
  overflow: hidden;
}

.doctor-image-placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(30, 136, 229, 0.10), transparent);
}

.doctor-image-placeholder i {
  font-size: 5rem;
  opacity: 0.6;
}

.doctor-image-placeholder span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  opacity: 0.8;
}

.doctor-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: absolute;
  top: 0;
  left: 0;
}

/* Doctor Qualification Badges */
.doctor-badge {
  position: absolute;
  background: white;
  border-radius: 50px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-dark);
}

.badge-bds {
  top: 20px;
  right: -16px;
}

.badge-bds i {
  color: #FFA726;
  font-size: 1rem;
}

.badge-implant {
  bottom: 80px;
  left: -16px;
}

.badge-implant i {
  color: var(--primary);
  font-size: 1rem;
}

/* Qualification Cards */
.qual-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qual-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent);
}

.qual-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.qual-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.qual-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 136, 229, 0.25) !important;
}

/* About Content */
.about-intro {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.75;
  max-width: 62ch;
}

.about-bio {
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.8;
  max-width: 62ch;
}

/* Experience Timeline */
.experience-list {
  margin: 28px 0;
}

.exp-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent);
}

.exp-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 24px;
}

.exp-item:last-child {
  padding-bottom: 0;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 24px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary), transparent);
}

.exp-item:last-child::before {
  display: none;
}

.exp-dot {
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.30);
  flex-shrink: 0;
  margin-top: 2px;
}

.exp-role {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.exp-place {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ─── Why Section ────────────────────────────────────────── */
.why-section {
  background: var(--bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--accent);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: left;
}

.why-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin: 0 auto 18px;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Why Choose: Auto-Scroll Marquee ────────────────────── */
.why-marquee {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  /* fade edges so cards appear to drift in/out */
  -webkit-mask-image: linear-gradient(90deg,
      transparent 0%,
      black 6%,
      black 94%,
      transparent 100%);
  mask-image: linear-gradient(90deg,
      transparent 0%,
      black 6%,
      black 94%,
      transparent 100%);
}

.why-marquee-track {
  display: flex;
  width: max-content;
  animation: whyMarqueeScroll 36s linear infinite;
}

.why-marquee:hover .why-marquee-track,
.why-marquee:focus-within .why-marquee-track {
  animation-play-state: paused;
}

.why-marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  padding: 4px 12px 4px;
}

.why-marquee .why-card {
  width: 300px;
  flex-shrink: 0;
  height: auto;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .why-marquee-track {
    animation: none;
  }

  .why-marquee {
    overflow-x: auto;
  }
}

/* ─── Services Section ───────────────────────────────────── */
.services-section {
  background: var(--bg-alt);
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.service-tab {
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: white;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-heading);
}

.service-tab:hover,
.service-tab.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.30);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 28px 24px;
  border: 1px solid var(--accent);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card.hidden {
  display: none;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: rgba(30, 136, 229, 0.20);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card.featured {
  border: 2px solid rgba(30, 136, 229, 0.30);
  background: linear-gradient(135deg, #EBF5FE 0%, white 100%);
}

.service-card.featured.service-card-aligner-glow {
  background: linear-gradient(135deg, #8dc63f 0%, #27ae60 100%);
  box-shadow: 0 8px 24px rgba(141, 198, 63, 0.18);
}

.service-card.featured.service-card-aligner-glow::after {
  background: #2563eb;
}

.service-card-aligner-glow .service-icon {
  border-color: transparent;
}

.service-card-aligner-glow:hover .service-icon {
  border-color: #8dc63f;
}

.service-card-aligner-glow .service-category-tag,
.service-card-aligner-glow h3,
.service-card-aligner-glow p,
.service-card-aligner-glow .service-sub-list span,
.service-card-aligner-glow .service-link {
  color: #ffffff;
}

.service-card-aligner-glow .service-sub-list i,
.service-card-aligner-glow .service-link i {
  color: #2563eb;
}

.service-featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: none;
  border: 3px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

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

.service-card:hover .service-icon {
  border-color: #2563eb;
}

.service-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.service-card.service-card-aligner-glow h3,
.service-card.featured.service-card-aligner-glow h3 {
  color: #ffffff !important;
}

.service-card.service-card-aligner-glow p,
.service-card.featured.service-card-aligner-glow p {
  color: #ffffff !important;
}

.service-sub-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.service-sub-list span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-sub-list span i {
  color: var(--success);
  font-size: 0.7rem;
}

.service-content-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.service-aligner-image {
  flex-shrink: 0;
  width: 120px;
  margin: 0 auto;
}

.service-aligner-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.service-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: var(--transition);
}

.service-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* ─── Recognition & Awards (Masonry style) ───────────────── */
.recognition-section {
  background: var(--bg);
}

.recognition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start;
}

@media (min-width: 992px) {
  .recognition-grid {
    column-count: 3;
    column-gap: 30px;
    display: block;
  }

  .recognition-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .recognition-grid {
    column-count: 2;
    column-gap: 20px;
    display: block;
  }

  .recognition-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .recognition-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .recognition-item {
    width: 100%;
  }
}

.recognition-item {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--accent);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.recognition-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 136, 229, 0.3);
}

.recognition-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.recognition-item:hover .recognition-img {
  transform: scale(1.04);
}

/* ─── Invisalign / Aligner Specialization Section ───────── */
.invisalign-section {
  background:
    url('../assets/images/invislagn_bg.webp') center right / cover no-repeat;
  position: relative;
  overflow: hidden;
}

/* Top dark shade overlay */
.invisalign-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 20, 40, 0.55) 0%,
      rgba(10, 20, 40, 0.20) 30%,
      rgba(10, 20, 40, 0.00) 55%);
  z-index: 0;
  pointer-events: none;
}

/* Left-side readable overlay: white fade that dissolves into the photo */
.invisalign-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.88) 28%,
      rgba(255, 255, 255, 0.45) 52%,
      rgba(255, 255, 255, 0.00) 70%);
  z-index: 0;
  pointer-events: none;
}

/* All direct children inside the section sit above the overlays */
.invisalign-section>.container-xl {
  position: relative;
  z-index: 1;
}

.invisalign-hero-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.invisalign-hero-left {
  display: flex;
  flex-direction: column;
}

.invisalign-vismis-card {
  display: flex;
  gap: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 136, 229, 0.15);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.invisalign-vismis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: white;
  border-color: rgba(30, 136, 229, 0.3);
}

.invisalign-vismis-card .card-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.invisalign-vismis-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.invisalign-vismis-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.aligner-benefits-wrapper {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
}

.aligner-benefits-wrapper h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.aligner-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aligner-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.aligner-benefits-list li i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-invisalign-brochure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #FF6F61 0%, #E85A4F 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 8px 24px rgba(255, 111, 97, 0.35);
  transition: var(--transition);
  text-decoration: none;
}

.btn-invisalign-brochure:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 111, 97, 0.45);
  color: white;
  background: linear-gradient(135deg, #ff7f73 0%, #f06a60 100%);
}

.btn-invisalign-brochure.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}


.invisalign-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(30, 136, 229, 0.25), transparent);
  margin: 60px 0;
}

/* Why Choose subsection */
.invisalign-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.invisalign-why-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 30px 24px;
  border: 1px solid var(--accent);
  transition: var(--transition);
  text-align: center;
}

.invisalign-why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 136, 229, 0.25);
}

.why-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(30, 136, 229, 0.06);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  transition: var(--transition);
}

.invisalign-why-card:hover .why-card-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.08);
}

.invisalign-why-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.invisalign-why-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Aligner works timeline */
.invisalign-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 25px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, rgba(30, 136, 229, 0.1) 100%);
  z-index: 1;
}

.timeline-step {
  display: flex;
  gap: 25px;
  position: relative;
  z-index: 2;
}

.step-badge {
  width: 52px;
  height: 52px;
  background: white;
  border: 3px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.timeline-step:hover .step-badge {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
}

.step-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
  flex-grow: 1;
}

.step-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Conditions Grid */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.condition-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  border: 1.5px solid rgba(30, 136, 229, 0.14);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(30, 136, 229, 0.06);
  position: relative;
  overflow: hidden;
}

.condition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.condition-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(30, 136, 229, 0.14);
  border-color: rgba(30, 136, 229, 0.28);
}

.condition-card:hover::before {
  transform: scaleX(1);
}

.condition-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.10), rgba(66, 165, 245, 0.06));
  border: 1.5px solid rgba(30, 136, 229, 0.16);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 14px;
  transition: all 0.3s ease;
}

.condition-card:hover .condition-icon {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(30, 136, 229, 0.22);
}

.condition-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.condition-img {
  margin-bottom: 12px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(30, 136, 229, 0.08);
  box-shadow: 0 2px 8px rgba(30, 136, 229, 0.04);
}

.condition-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.condition-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Brochure images placeholders */
.brochure-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.brochure-img-card {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.img-placeholder-display {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.04) 0%, rgba(30, 136, 229, 0.08) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--primary);
  border-bottom: 1px solid var(--accent);
}

.img-placeholder-display i {
  font-size: 2.5rem;
  opacity: 0.7;
}

.img-placeholder-display span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  padding: 0 15px;
}

.img-card-info {
  padding: 16px;
  flex-grow: 1;
}

.img-card-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.img-card-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ─── Community Outreach Programs Subsection ─────────────── */
.outreach-scroll-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.outreach-card {
  background: white;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--accent);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.outreach-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 136, 229, 0.25);
}

.outreach-img-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.04) 0%, rgba(30, 136, 229, 0.08) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--primary);
  border-bottom: 1px solid var(--accent);
}

.outreach-img-placeholder i {
  font-size: 3rem;
  opacity: 0.65;
}

.outreach-img-placeholder span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.outreach-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.outreach-content h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.outreach-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.outreach-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(30, 136, 229, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

/* Mobile responsive for new subsections */
@media (max-width: 991px) {
  .invisalign-hero-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brochure-images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .outreach-scroll-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .brochure-images-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .outreach-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 10px 4px 20px;
    -webkit-overflow-scrolling: touch;
  }

  .outreach-scroll-container::-webkit-scrollbar {
    height: 6px;
  }

  .outreach-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: 10px;
  }

  .outreach-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(30, 136, 229, 0.3);
    border-radius: 10px;
  }

  .outreach-card {
    width: 85%;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
}

/* ─── Timeline Section ───────────────────────────────────── */
.timeline-section {
  background: var(--bg-alt);
}

.timeline {
  position: relative;
  padding: 20px 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}

.timeline-dot {
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.35);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  width: calc(50% - 50px);
  background: white;
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--accent);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Gallery Section ────────────────────────────────────── */
.gallery-section {
  background: var(--bg);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.gallery-filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--accent);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-heading);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(30, 136, 229, 0.30);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--card-radius);
  position: relative;
  cursor: pointer;
}

.gallery-item.hidden {
  display: none;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary);
  position: relative;
  transition: var(--transition);
}

.gallery-placeholder i {
  font-size: 2rem;
  opacity: 0.6;
}

.gallery-placeholder span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.gp-tall {
  grid-row: span 2;
}

.gp-wide {
  grid-column: span 2;
}

.gp-normal {}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.80), rgba(66, 165, 245, 0.70));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: white;
}

.gallery-overlay-content i {
  font-size: 2rem;
  margin-bottom: 8px;
}

.gallery-overlay-content p {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ─── Homepage Gallery — Rich Hover Info (no categories) ─── */
.gallery-overlay-content .gallery-ov-duration {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-top: 4px;
}

.gallery-overlay-content .gallery-ov-desc {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 8px;
  max-width: 220px;
  opacity: 0.95;
}

.gallery-cta {
  text-align: center;
  margin-top: 48px;
}

.gallery-cta p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ─── Community Outreach Section ────────────────────────── */
.community-section {
  background: var(--bg-dark);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.community-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}

.community-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.community-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.community-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a6fa8 0%, #0d3d5e 100%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.25);
}

.community-img-placeholder.community-img-teal {
  background: linear-gradient(135deg, #0e7a6e 0%, #054a43 100%);
}

.community-img-placeholder.community-img-amber {
  background: linear-gradient(135deg, #9a6a00 0%, #5a3c00 100%);
}

.community-img-placeholder.community-img-rose {
  background: linear-gradient(135deg, #9a1f4a 0%, #5a0f28 100%);
}

.community-img-placeholder.community-img-purple {
  background: linear-gradient(135deg, #5a2fa8 0%, #31155e 100%);
}

.community-img-placeholder.community-img-green {
  background: linear-gradient(135deg, #1e7a40 0%, #0a4220 100%);
}

.community-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(8, 145, 178, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}

.community-card-badge.community-badge-teal {
  background: rgba(13, 148, 136, 0.92);
}

.community-card-badge.community-badge-amber {
  background: rgba(180, 120, 0, 0.92);
}

.community-card-badge.community-badge-rose {
  background: rgba(190, 18, 60, 0.92);
}

.community-card-badge.community-badge-purple {
  background: rgba(109, 40, 217, 0.92);
}

.community-card-badge.community-badge-green {
  background: rgba(22, 163, 74, 0.92);
}

.community-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.community-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.community-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.community-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.community-card-meta span {
  font-size: 0.78rem;
  color: var(--text-subtle, #8899aa);
  display: flex;
  align-items: center;
  gap: 6px;
}

.community-card-meta i {
  color: var(--accent-primary);
  font-size: 0.8rem;
}

/* CTA Banner */
.community-cta {
  margin-top: 56px;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.18) 0%, rgba(0, 180, 200, 0.10) 100%);
  border: 1px solid rgba(8, 145, 178, 0.35);
  border-radius: 20px;
  padding: 36px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.community-cta-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.4);
}

.community-cta-text {
  flex: 1;
}

.community-cta-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.community-cta-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.community-cta-btn {
  white-space: nowrap;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.92rem;
}

/* ─── Testimonials Section ───────────────────────────────── */

.testimonials-section {
  background: var(--bg-alt);
}

.testimonialsSwiper {
  padding: 20px 8px 60px !important;
}

.testi-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--accent);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testi-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.testi-avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testi-avatar-blue {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
}

.testi-avatar-purple {
  background: linear-gradient(135deg, #6A1B9A, #9C27B0);
}

.testi-avatar-green {
  background: linear-gradient(135deg, #2E7D32, #43A047);
}

.testi-avatar-orange {
  background: linear-gradient(135deg, #E65100, #FF6D00);
}

.testi-info {
  flex: 1;
}

.testi-name {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.testi-location {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testi-treatment {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.testi-logo {
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.20;
}

.testi-stars {
  color: #FFA726;
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testi-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 14px;
  flex-grow: 1;
}

.testi-verified {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Swiper Custom Styles */
.testi-next,
.testi-prev {
  width: 44px !important;
  height: 44px !important;
  background: var(--gradient-primary) !important;
  border-radius: 50% !important;
  color: white !important;
}

.testi-next::after,
.testi-prev::after {
  font-size: 0.85rem !important;
  font-weight: 900 !important;
}

.testi-pagination .swiper-pagination-bullet {
  background: var(--primary) !important;
  opacity: 0.3;
}

.testi-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px !important;
  border-radius: 4px !important;
}

/* Aggregate Rating Line Spanning Bar */
.testi-aggregate-line-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 36px;
  padding: 0 12px;
}

.testi-agg-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light, #90CAF9), transparent);
}

.testi-aggregate-compact {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(30, 136, 229, 0.22);
  box-shadow: 0 4px 20px rgba(30, 136, 229, 0.08);
  border-radius: 50px;
  padding: 8px 24px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testi-aggregate-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(30, 136, 229, 0.14);
}

.agg-compact-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agg-score-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.agg-stars-compact {
  color: #FFA726;
  font-size: 0.95rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.agg-text-compact {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

@media (max-width: 767.98px) {
  .testi-aggregate-line-wrapper {
    gap: 10px;
    margin-bottom: 24px;
  }

  .testi-aggregate-compact {
    flex-direction: column;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 16px;
    text-align: center;
  }
}

/* ── Premium Aggregate Rating Card (above reviews) ── */
.testi-aggregate-premium {
  max-width: 540px;
  margin: 0 auto 20px;
  background: white;
  border-radius: 20px;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), #64B5F6, var(--primary));
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
  box-shadow: 0 8px 32px rgba(30, 136, 229, 0.18);
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.agg-premium-inner {
  background: white;
  border-radius: 17px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.agg-premium-left {
  text-align: center;
  flex-shrink: 0;
}

.agg-premium-score {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.agg-premium-outof {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.agg-premium-divider {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--primary-light), var(--primary), var(--primary-light), transparent);
  border-radius: 2px;
  flex-shrink: 0;
}

.agg-premium-right {
  flex: 1;
}

.agg-premium-stars {
  color: #FFA726;
  font-size: 1.15rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.agg-premium-count {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}

.agg-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
}

.agg-google-logo {
  height: 16px;
  width: auto;
}

@media (max-width: 480px) {
  .agg-premium-inner {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    text-align: center;
  }

  .agg-premium-divider {
    width: 60px;
    height: 2px;
  }
}

/* ─── Clinic Section ─────────────────────────────────────── */
.clinic-section {
  background: var(--bg-alt);
}

.clinic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.clinic-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--accent);
}

.clinic-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--accent);
}

.clinic-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
}

.clinic-card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
}

.clinic-card-header p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.clinic-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.clinic-detail-item {
  display: flex;
  gap: 14px;
}

.clinic-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.clinic-detail-item address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
}

.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hours-day {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 600;
}

.hours-time {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 700;
  background: var(--accent-2);
  padding: 3px 10px;
  border-radius: 50px;
}

.hours-divider {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.hours-item.closed .hours-time {
  color: var(--text-muted);
  background: var(--accent);
}

.clinic-contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Map */
.map-wrapper {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--accent);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 400px;
}

/* ─── FAQ Section ────────────────────────────────────────── */
.faq-section {
  background: var(--bg);
}

.faq-wa-link {
  color: var(--whatsapp);
  font-weight: 600;
  text-decoration: underline;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: var(--card-radius);
  border: 1px solid var(--accent);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(30, 136, 229, 0.25);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-toggle {
  width: 32px;
  height: 32px;
  background: var(--accent-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-item.open .faq-toggle {
  background: var(--gradient-primary);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.75;
}

/* ─── Contact Section ────────────────────────────────────── */
.contact-section {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--accent);
}

.contact-form-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form-card h3 i {
  color: var(--primary);
}

.contact-form-card>p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Form Styles */
.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.required {
  color: var(--danger);
}

.optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input-wrapper {
  position: relative;
}

.form-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 2;
}

.form-icon-service {
  font-size: 1.05rem;
  color: var(--primary);
}

.form-icon-textarea {
  top: 14px;
  transform: none;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg-alt);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.10);
}

.form-control.error {
  border-color: var(--danger);
}

.form-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2378909C'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.form-control textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  display: none;
  align-items: center;
  gap: 5px;
}

.form-error.show {
  display: flex;
}

.btn-submit {
  width: 100%;
  padding: 15px !important;
  font-size: 1rem !important;
  margin-top: 4px;
}

.form-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Contact Info Card */
.contact-info-card {
  background: white;
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--accent);
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--accent);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.ci-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.ci-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ci-value {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

a.ci-value:hover {
  color: var(--primary);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  padding-top: 20px;
  border-top: 1px solid var(--accent);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
  transition: var(--transition);
}

.social-link:hover {
  transform: translateY(-3px);
  color: white;
}

.social-link.facebook {
  background: #1877F2;
}

.social-link.instagram {
  background: linear-gradient(135deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);
}

.social-link.youtube {
  background: #FF0000;
}

.social-link.whatsapp {
  background: var(--whatsapp);
}

/* Emergency Banner */
.emergency-banner {
  background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
  border: 1px solid #FFA726;
  border-radius: var(--card-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.emergency-icon {
  font-size: 1.8rem;
  color: #E65100;
  flex-shrink: 0;
}

.emergency-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #E65100;
}

.emergency-sub {
  font-size: 0.78rem;
  color: #795548;
  line-height: 1.4;
}

.emergency-call-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #E65100;
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: auto;
  transition: var(--transition);
}

.emergency-call-btn:hover {
  background: #BF360C;
  color: white;
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {}

.footer-top {
  background: var(--bg-dark);
  padding: 70px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: white;
  display: block;
}

.footer-brand-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.75;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.70);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links-col h4,
.footer-services-col h4,
.footer-contact-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-links-col ul li,
.footer-services-col ul li {
  margin-bottom: 10px;
}

.footer-links-col ul li a,
.footer-services-col ul li a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.60);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links-col ul li a i,
.footer-services-col ul li a i {
  font-size: 0.6rem;
  color: var(--secondary);
}

.footer-links-col ul li a:hover,
.footer-services-col ul li a:hover {
  color: white;
  gap: 12px;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.footer-contact-item i {
  color: var(--secondary);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer-contact-item span,
.footer-contact-item a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  transition: var(--transition);
}

.footer-contact-item a:hover {
  color: white;
}

.footer-cta {
  margin-top: 16px;
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0, 0, 0, 0.30);
  padding: 20px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.72rem !important;
  text-align: right;
  max-width: 400px;
}

/* ─── WhatsApp Float Button ──────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.60);
  color: white;
}

.wa-float-tooltip {
  position: absolute;
  right: 72px;
  background: var(--text-dark);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
}

.wa-float-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--text-dark);
}

.whatsapp-float:hover .wa-float-tooltip {
  opacity: 1;
}

/* ─── Back to Top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ─── Utility Classes ────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container-xl {
  max-width: 1200px;
}

/* ─── Focus Styles (Accessibility) ──────────────────────── */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Selection ──────────────────────────────────────────── */
::selection {
  background: rgba(30, 136, 229, 0.20);
  color: var(--primary-dark);
}

/* ─── Testimonial Read-More Modal ─────────────────────────── */
#testimonialModal .modal-content {
  border: none;
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-lg);
}

#testimonialModal .modal-header {
  border-bottom: 1px solid var(--accent);
  padding: 24px 28px 18px;
}

#testimonialModal .modal-title {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-size: 1.15rem;
}

#testimonialModal .modal-body {
  padding: 24px 28px 28px;
}

#testimonialModal .btn-close:focus {
  box-shadow: none;
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ─── Page Hero (sub-pages: About / Services / Clear Aligners) ─── */
.page-hero {
  padding: 140px 0 64px;
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--bg) 60%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 136, 229, 0.12), transparent 70%);
}

.page-hero .section-label {
  justify-content: center;
  margin: 0 auto 16px;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.page-hero-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.page-breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.page-breadcrumb i {
  font-size: 0.65rem;
  opacity: 0.6;
}

/* ─── Sub-page Section CTA Band ───────────────────────────── */
.page-end-cta {
  background: var(--gradient-primary, linear-gradient(135deg, var(--primary), var(--secondary)));
  border-radius: var(--card-radius);
  padding: 56px 40px;
  text-align: center;
  color: white;
  margin-top: 24px;
}

.page-end-cta h2 {
  color: white;
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.page-end-cta p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 28px;
}

.page-end-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-end-cta .btn-whatsapp-sm,
.page-end-cta .btn-primary-custom {
  background: white;
  color: var(--primary) !important;
}

.page-end-cta .btn-whatsapp-sm i,
.page-end-cta .btn-primary-custom i {
  color: var(--primary);
}

/* ─── Before/After Slider Grid (Clear Aligners page) ──────── */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ba-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--bg);
}

.ba-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba-images .ba-img {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--primary);
  position: relative;
}

.ba-images .ba-img.ba-after {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-2));
}

.ba-img-label {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(13, 27, 40, 0.65);
  color: white;
  padding: 3px 9px;
  border-radius: 50px;
}

.ba-card-body {
  padding: 18px 20px;
}

.ba-card-body h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

.ba-card-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

@media (max-width: 767.98px) {
  .ba-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-title {
    font-size: 2rem;
  }

  .page-hero {
    padding: 110px 0 48px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .ba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Google Review Logo ─────────────────────────────────── */
.google-review-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

/* ─── Shared Modal Overlay (used by cert + gallery popups) ── */
.cert-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.cert-modal-box {
  background: #fff;
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.cert-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.cert-modal-close:hover {
  color: #e53935;
}

/* ─── Upgraded 3D Invisalign Card ─────────────────────────── */
.glass-3d-card {
  position: relative;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid rgba(13, 110, 253, 0.2);
  box-shadow:
    0 0 0 1px rgba(13, 110, 253, 0.06),
    0 20px 60px rgba(13, 110, 253, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.glass-3d-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glass-3d-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.glass-3d-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 10px;
  background: linear-gradient(90deg, rgba(13, 110, 253, 0.12), rgba(66, 165, 245, 0.06));
  border-bottom: 1px solid rgba(13, 110, 253, 0.12);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: #1E88E5;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.glass-3d-header i {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(30, 136, 229, 0.5));
}

#alignerThreeContainer {
  position: relative;
  z-index: 1;
  width: 100%;
}

#alignerThreeContainer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: transparent !important;
}

/* Bare 3D container used when glass-3d-card is removed */
.three-container-large {
  width: 100%;
  position: relative;
  cursor: grab;
}

.three-container-large:active {
  cursor: grabbing;
}


/* Floating badges around 3D card */
.aligner-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 50px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a2c3d;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.14);
  z-index: 10;
  white-space: nowrap;
  animation: floatBadge 3s ease-in-out infinite alternate;
}

.aligner-badge i {
  color: #1E88E5;
  font-size: 0.9rem;
}

.aligner-badge.badge-tl {
  top: 80px;
  left: -20px;
  animation-delay: 0s;
}

.aligner-badge.badge-tr {
  top: 140px;
  right: -24px;
  animation-delay: 0.6s;
}

@keyframes floatBadge {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-8px);
  }
}

/* Upgraded clear aligner hero feature chips */
.aligner-features-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.aligner-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(30, 136, 229, 0.08);
  border: 1px solid rgba(30, 136, 229, 0.18);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1565C0;
  transition: background 0.2s, transform 0.2s;
}

.aligner-feature-chip:hover {
  background: rgba(30, 136, 229, 0.16);
  transform: translateY(-2px);
}

.aligner-feature-chip i {
  font-size: 0.85rem;
  color: #1E88E5;
}

/* ─── Aligner Gallery on Clear Aligners Page ─────────────── */
.aligner-gallery-section {
  background: #f8fafe;
}

/* ─── Gallery Modal Upgrades ─────────────────────────────── */
.gallery-popup-item {
  position: relative;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 15px 12px;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.4) 60%, transparent 100%);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-bottom: 3px solid var(--primary);
  z-index: 3;
}

.media-gallery-item:hover .gallery-caption,
.gallery-popup-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-modal-tabs {
  margin: 20px auto 0 !important;
  justify-content: center;
  padding: 0 28px;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  cursor: pointer;
}

.media-overlay-icon {
  width: 50px;
  height: 50px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.media-gallery-item:hover .media-overlay,
.gallery-popup-item:hover .media-overlay {
  opacity: 1;
}

/* ─── Why Choose Swiper Styles ─── */
.whySwiper {
  padding: 40px 0;
  overflow: hidden;
}
.whySwiper .swiper-wrapper {
  align-items: center;
}
.whySwiper .swiper-slide {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 0.4;
  transform: scale(0.85) translateY(20px);
  display: flex;
  justify-content: center;
}
.whySwiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1) translateY(-10px);
}
.whySwiper .why-card {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  border: 2px solid rgba(13, 110, 253, 0.2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.whySwiper .swiper-slide-active .why-card {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

/* ─── Testimonials Arrows (Web) ─── */
@media (min-width: 992px) {
  .testi-slider-wrapper {
    padding-left: 70px;
    padding-right: 70px;
  }
  .testi-slider-wrapper .testi-prev {
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
  }
  .testi-slider-wrapper .testi-next {
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-top: 0 !important;
  }
}