/* ==========================================================================
   JOINT CARE PHYSIOTHERAPY CLINIC - DESKTOP SPECIFIC STYLES
   ========================================================================== */

/* Page Wrapper */
.desktop-wrapper {
  min-width: 1024px;
  background-color: var(--navy-900);
  color: #ffffff;
  position: relative;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 19, 37, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(4, 14, 28, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-400);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-400);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-search {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-search:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: #031c47;
  background-image: url('../PICS/hero_section_bg.jpg');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  padding: 50px 0 0;
  overflow: hidden;
  min-height: calc(100vh - 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 22, 59, 0.75) 0%, rgba(2, 22, 59, 0.4) 40%, rgba(2, 22, 59, 0.05) 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 440px;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 480px;
  margin-bottom: 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

/* Floating Badges */
.floating-badge-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 5;
  margin-top: 20px;
}

.floating-pill {
  background: rgba(8, 26, 54, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 11px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: all var(--transition-normal);
  animation: floatY 4s ease-in-out infinite alternate;
}

.floating-pill:nth-child(2) {
  animation-delay: 1.2s;
  margin-right: 18px;
}

.floating-pill:nth-child(3) {
  animation-delay: 2.4s;
}

.floating-pill:hover {
  transform: translateX(-6px) scale(1.04);
  border-color: var(--cyan-400);
  background: rgba(14, 42, 85, 0.95);
}

.pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 119, 245, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}

.hero-script-callout {
  margin-top: auto;
  margin-bottom: 12px;
  z-index: 6;
}

/* Stats Row (Seamless on Hero Canvas, No White Bar) */
.stats-strip {
  position: relative;
  z-index: 10;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 24px 0 36px;
  margin-top: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) var(--delay, 0ms);
}

.stat-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:hover {
  transform: translateY(-3px);
  transition: transform 0.25s ease;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.9rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(2, 20, 56, 0.7);
  letter-spacing: -0.5px;
  display: inline-block;
  will-change: contents;
}

.stat-label {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 6px;
  text-shadow: 0 1px 6px rgba(2, 20, 56, 0.6);
}

/* ==========================================================================
   ABOUT US SECTION (Light Background)
   ========================================================================== */
.about-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef5fc 100%);
  color: var(--slate-900);
  padding: 90px 0 70px;
  position: relative;
}

.about-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: #0d2547;
  margin-bottom: 8px;
}

.section-subtitle-blue {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-500);
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.55;
  letter-spacing: 0.35px;
}

.about-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 28px;
}

.about-image-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(13, 37, 71, 0.15);
  border: 4px solid #ffffff;
}

.about-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 20px;
}

.value-card {
  background: #ffffff;
  padding: 36px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(13, 37, 71, 0.06);
  border: 1px solid rgba(0, 119, 245, 0.08);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 119, 245, 0.14);
  border-color: rgba(0, 119, 245, 0.3);
}

.value-icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(0, 119, 245, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d2547;
  margin-bottom: 8px;
}

.value-text {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* ==========================================================================
   TREATMENTS SECTION (Dark Sapphire)
   ========================================================================== */
.treatments-section {
  background: linear-gradient(180deg, #061325 0%, #0a2142 50%, #061325 100%);
  padding: 95px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.treatments-section .container {
  position: relative;
  z-index: 2;
}

/* 8-Petal Corner Animated Floral SVG (150% Scale) */
.corner-flower {
  position: absolute;
  width: 960px;
  height: 960px;
  max-width: 150vmin;
  max-height: 150vmin;
  color: var(--cyan-400);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.treatments-section:hover .corner-flower {
  opacity: 0.24;
}

.corner-flower-tr {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.corner-flower-bl {
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}

.corner-flower .svg-flower {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: 50% 50%;
  animation: spinFlowerContinuous 26s linear infinite;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
}

.corner-flower-tr .svg-flower,
.corner-flower-bl .svg-flower {
  animation-direction: reverse;
  animation-duration: 32s;
}

@keyframes spinFlowerContinuous {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-heading-white {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.section-subtext-cyan {
  font-size: 1.05rem;
  color: var(--cyan-400);
  margin-top: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
  letter-spacing: 0.4px;
  font-weight: 500;
}

.view-all-link {
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  color: var(--cyan-400);
  transform: translateX(4px);
}

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

.treatment-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  color: var(--slate-900);
}

.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(0, 119, 245, 0.3);
}

.treatment-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #e2e8f0;
}

.treatment-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.treatment-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.treatment-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1f3a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.treatment-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.45;
  margin-bottom: 18px;
  flex-grow: 1;
}

.treatment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-500);
  transition: color var(--transition-fast);
  cursor: pointer;
}

.treatment-link:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

/* ==========================================================================
   RESULTS / BEFORE & AFTER (Real People. Real Progress.)
   ========================================================================== */
.results-section {
  background: radial-gradient(circle at 50% 20%, #0d2850 0%, #07172e 60%, #040e1d 100%);
  padding: 95px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.results-toggle-tabs {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
  backdrop-filter: blur(8px);
}

.results-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.results-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.results-tab-btn.active {
  background: #ffffff;
  color: #0b1f3a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Bright Eye-Catchy Cyan Blue Gradient Pill Button for Gallery */
.btn-gallery-pill,
#btnOpenGallery {
  background: linear-gradient(135deg, #00f2fe 0%, #0077f5 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.55), 0 0 12px rgba(0, 119, 245, 0.45) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  animation: pulseGlowCyan 3s infinite ease-in-out;
}

#btnOpenGallery:hover,
.btn-gallery-pill:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.8), 0 0 20px rgba(0, 119, 245, 0.65) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}

@keyframes pulseGlowCyan {
  0%, 100% {
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.55), 0 0 12px rgba(0, 119, 245, 0.45);
  }
  50% {
    box-shadow: 0 6px 26px rgba(0, 242, 254, 0.8), 0 0 20px rgba(0, 119, 245, 0.65);
  }
}

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

.result-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-normal);
  color: var(--slate-900);
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0, 119, 245, 0.35);
}

.result-img-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  background: #0f172a;
  margin-bottom: 16px;
}

.result-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.result-img-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.result-card:hover .result-img-box::after {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

.before-after-tags {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #0b1f3a;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.result-card:hover .badge-tag {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 119, 245, 0.4);
}

.result-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0b1f3a;
  margin-bottom: 4px;
}

.result-subtext {
  font-size: 0.84rem;
  color: var(--slate-600);
}

/* ==========================================================================
   WHY JOINT CARE ? SECTION (White Background & Clean Visuals)
   ========================================================================== */
.why-section {
  background: #ffffff;
  padding: 100px 0 90px;
  color: #0b1f3a;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.why-section .container {
  position: relative;
  z-index: 2;
}

.why-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.why-choose-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #0b1f3a;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.why-badge-line {
  display: inline-block;
  width: 32px;
  height: 2.5px;
  background: #0077f5;
  border-radius: 2px;
}

.why-title {
  font-family: var(--font-heading);
  font-size: 3.1rem;
  font-weight: 900;
  color: #0b1f3a;
  line-height: 1.15;
  margin-bottom: 8px;
}

.text-blue-highlight {
  color: #0077f5;
  display: inline-block;
  font-weight: 900;
}

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

.why-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 119, 245, 0.12);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(0, 70, 180, 0.05);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
}

.why-card:hover {
  transform: translateY(-6px);
  background: #fbfdff;
  border-color: rgba(0, 119, 245, 0.38);
  box-shadow: 0 18px 40px rgba(0, 119, 245, 0.14);
}

.why-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0077f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.why-card:hover .why-icon-box {
  background: #0077f5;
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(0, 119, 245, 0.35);
}

.why-card-content {
  flex: 1;
}

.why-card h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: #0b1f3a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}

/* Bottom Callout: Your Recovery Matters to Us */
.why-bottom-callout {
  margin-top: 65px;
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.why-callout-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: #0b1f3a;
  margin-bottom: 14px;
}

.why-callout-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  max-width: 720px;
  margin: 0 auto;
}

.why-cta-btn {
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff !important;
  padding: 16px 38px;
  border-radius: 35px;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0, 119, 245, 0.38);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 24px;
}

.why-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 119, 245, 0.48);
}

.why-assessment-note {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0b1f3a;
  margin-top: 12px;
  letter-spacing: 0.2px;
}

/* ==========================================================================
   MEET OUR EXPERTS - DESKTOP 3D COVERFLOW CAROUSEL
   ========================================================================== */
.doctors-section {
  background: radial-gradient(ellipse 70% 60% at 50% 56%, rgba(0, 119, 245, 0.32) 0%, rgba(56, 189, 248, 0.14) 40%, transparent 72%),
              radial-gradient(circle at 90% 12%, rgba(0, 119, 245, 0.18) 0%, transparent 40%),
              radial-gradient(circle at 10% 88%, rgba(56, 189, 248, 0.16) 0%, transparent 42%),
              linear-gradient(180deg, #020a16 0%, #061833 48%, #020914 100%);
  padding: 95px 0 80px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.doctors-section .container {
  position: relative;
  z-index: 2;
}

.doctors-header-split {
  margin-bottom: 24px;
}

.desktop-coverflow-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 10px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  --card-offset: 320px;
}

@media (max-width: 1100px) {
  .desktop-coverflow-wrapper {
    --card-offset: 280px;
  }
}

/* 3D Stage */
.desktop-coverflow-stage {
  position: relative;
  width: 100%;
  height: 710px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Coverflow Card Base (Desktop) */
.desktop-coverflow-stage .coverflow-card {
  position: absolute;
  width: 330px;
  background: #ffffff;
  border-radius: 28px;
  padding: 16px 16px 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.6s ease,
              filter 0.6s ease,
              box-shadow 0.6s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-origin: center center;
  color: var(--slate-900);
  border: 1px solid rgba(255, 255, 255, 0.9);
  user-select: none;
}

/* Desktop 3D States */
.desktop-coverflow-stage .coverflow-card.is-active {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  filter: blur(0px) brightness(1);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45), 0 6px 20px rgba(0, 119, 245, 0.2);
}

.desktop-coverflow-stage .coverflow-card.is-prev {
  transform: translate3d(calc(-1 * var(--card-offset)), 0, -80px) scale(0.85) rotateY(18deg);
  opacity: 0.8;
  z-index: 5;
  filter: blur(4px) brightness(0.85);
  cursor: pointer;
}

.desktop-coverflow-stage .coverflow-card.is-next {
  transform: translate3d(var(--card-offset), 0, -80px) scale(0.85) rotateY(-18deg);
  opacity: 0.8;
  z-index: 5;
  filter: blur(4px) brightness(0.85);
  cursor: pointer;
}

.desktop-coverflow-stage .coverflow-card.is-hidden {
  transform: translate3d(0, 0, -220px) scale(0.68) rotateY(0deg);
  opacity: 0;
  z-index: 1;
  filter: blur(6px) brightness(0.7);
  pointer-events: none;
}

/* Doctor Photo Space */
.desktop-coverflow-stage .coverflow-photo-space {
  position: relative;
  width: 100%;
  height: 355px;
  border-radius: 20px;
  background: linear-gradient(145deg, #f0f7ff 0%, #dbeafe 100%);
  border: 1px solid rgba(0, 119, 245, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.desktop-coverflow-stage .coverflow-doc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  display: block;
  transition: transform 0.4s ease;
}

.desktop-coverflow-stage .coverflow-card.is-active:hover .coverflow-doc-img {
  transform: scale(1.03);
}

.desktop-coverflow-stage .coverflow-placeholder-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #60a5fa;
}

.desktop-coverflow-stage .coverflow-placeholder-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.4px;
}

.desktop-coverflow-stage .coverflow-role-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  max-width: calc(100% - 28px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0066d6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 60, 160, 0.12);
  z-index: 2;
  white-space: normal;
  text-align: right;
  line-height: 1.25;
}

/* Doctor Details Info */
.desktop-coverflow-stage .coverflow-card-info {
  padding: 14px 6px 0;
}

.desktop-coverflow-stage .coverflow-doc-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 2px;
  line-height: 1.25;
}

.desktop-coverflow-stage .coverflow-doc-qual {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0066d6;
  margin-bottom: 2px;
}

.desktop-coverflow-stage .coverflow-doc-exp {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 10px;
}

.desktop-coverflow-stage .coverflow-doc-bio {
  font-size: 0.84rem;
  line-height: 1.45;
  color: #475569;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desktop-coverflow-stage .coverflow-doc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.desktop-coverflow-stage .coverflow-chip {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.desktop-coverflow-stage .coverflow-btn-profile {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #0077f5 0%, #0056d6 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 102, 214, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.desktop-coverflow-stage .coverflow-btn-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 102, 214, 0.45);
}

.desktop-coverflow-stage .coverflow-btn-profile:active {
  transform: scale(0.98);
}

/* Manual Navigation Circular Arrows (Treatments, Doctors, Reviews) */
.coverflow-arrow,
.desktop-coverflow-wrapper .coverflow-arrow,
.treatments-coverflow-wrapper .coverflow-arrow,
.reviews-coverflow-wrapper .coverflow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 119, 245, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.coverflow-arrow-prev,
.desktop-coverflow-prev {
  left: 20px;
}

.coverflow-arrow-next,
.desktop-coverflow-next {
  right: 20px;
}

.coverflow-arrow:hover,
.desktop-coverflow-wrapper .coverflow-arrow:hover,
.treatments-coverflow-wrapper .coverflow-arrow:hover,
.reviews-coverflow-wrapper .coverflow-arrow:hover {
  transform: translateY(-50%) scale(1.12);
  background: #ffffff;
  border-color: #0077f5;
  box-shadow: 0 14px 32px rgba(0, 119, 245, 0.45);
}

.coverflow-arrow:active,
.desktop-coverflow-wrapper .coverflow-arrow:active,
.treatments-coverflow-wrapper .coverflow-arrow:active,
.reviews-coverflow-wrapper .coverflow-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

/* Desktop Pagination Dots */
.desktop-coverflow-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  z-index: 20;
  position: relative;
}

.desktop-coverflow-dots .coverflow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.desktop-coverflow-dots .coverflow-dot.active {
  width: 28px;
  border-radius: 10px;
  background: #0077f5;
  box-shadow: 0 0 12px rgba(0, 119, 245, 0.7);
}

/* ==========================================================================
   REVIEWS & TESTIMONIALS (Carousel Slider)
   ========================================================================== */
.reviews-section {
  background: radial-gradient(circle at 30% 50%, #0a2143 0%, #061325 70%);
  padding: 95px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.reviews-section .container {
  position: relative;
  z-index: 2;
}

.reviews-header-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.reviews-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-nav-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.review-nav-arrow:hover {
  background: var(--primary-500);
  border-color: var(--primary-400);
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 119, 245, 0.4);
}

.reviews-carousel-viewport {
  overflow: hidden;
  width: 100%;
  padding: 14px 4px 28px;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #ffffff;
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 270px;
  color: var(--slate-900);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.review-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0, 119, 245, 0.35);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.review-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 1rem;
}

.review-quote-mark {
  color: #0077f5;
  font-size: 2.2rem;
  line-height: 1;
  font-family: serif;
  opacity: 0.7;
}

.review-quote {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--slate-700);
  font-style: italic;
  margin-bottom: 22px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-400);
  flex-shrink: 0;
}

.author-avatar-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.author-avatar-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: #0077f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #bfdbfe;
  transition: all var(--transition-fast);
}

.reviews-coverflow-card:hover .author-avatar-icon {
  background: #0077f5;
  color: #ffffff;
  border-color: #0077f5;
  transform: scale(1.05);
}

.author-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #0b1f3a;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--primary-600);
  font-weight: 600;
}

.reviews-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.review-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.review-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--cyan-400);
}

/* Pop-up and Slide-up Animations */
@keyframes reviewBlockPopUp {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(32px);
  }
  65% {
    transform: scale(1.025) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes reviewTextSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card.animate-popup {
  animation: reviewBlockPopUp 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.review-card.animate-popup .review-stars {
  animation: reviewTextSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.review-card.animate-popup .review-quote {
  animation: reviewTextSlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.review-card.animate-popup .review-author {
  animation: reviewTextSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ==========================================================================
   DEDICATED APPOINTMENT BOOKING SECTION (In-Page)
   ========================================================================== */
.booking-section {
  background: radial-gradient(circle at 40% 30%, #0d2850 0%, #06152b 80%, #040e1d 100%);
  padding: 95px 0;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-grid {
  display: block;
  max-width: 980px;
  margin: 0 auto;
}

.booking-form-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 50px 54px;
  color: var(--slate-900);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
  position: relative;
}

.booking-form-card-extended {
  text-align: center;
}

.booking-card-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.booking-badge {
  background: rgba(0, 119, 245, 0.1);
  color: var(--primary-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.booking-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.2;
  margin-bottom: 8px;
}

.booking-subtitle {
  font-size: 0.98rem;
  color: var(--slate-600);
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.booking-fields-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
  text-align: left;
}

.booking-form-group {
  margin-bottom: 0;
}

.booking-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.booking-label svg {
  color: var(--primary-500);
}

.booking-input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 1rem;
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.25s ease;
  font-family: inherit;
}

.booking-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 119, 245, 0.15);
}

.booking-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.booking-submit-btn {
  width: 100%;
  max-width: 440px;
  padding: 16px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 119, 245, 0.35);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.booking-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 119, 245, 0.45);
}

.booking-reassurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
  font-weight: 500;
}

.booking-success-message {
  text-align: center;
  padding: 30px 10px;
}

.booking-success-message .success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.booking-success-message h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #0b1f3a;
  margin-bottom: 10px;
}

.booking-success-message p {
  color: var(--slate-600);
  line-height: 1.6;
  font-size: 0.96rem;
  max-width: 480px;
  margin: 0 auto;
}

.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary-500);
  color: var(--primary-600);
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-500);
  color: #ffffff;
}

/* ==========================================================================
   START YOUR RECOVERY TODAY (CTA Section)
   ========================================================================== */
.cta-banner-section {
  position: relative;
  background: linear-gradient(135deg, #051428 0%, #0d2a54 60%, #07172f 100%);
  padding: 95px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 36px;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.cta-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 700px;
  margin: 0 auto;
}

.cta-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}

.cta-feat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #030a16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 80px 0 30px;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 18px 0 24px;
  max-width: 320px;
}

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

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary-500);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.92rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--cyan-400);
  padding-left: 4px;
}

.contact-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.contact-info-item svg {
  color: var(--cyan-400);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-script-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .stat-number {
    font-size: 2.3rem;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: pulseWhatsApp 2.4s infinite;
  text-decoration: none;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWhatsApp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.floating-whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   HOME VISIT - JOINT CARE TEAM (DESKTOP)
   ========================================================================== */
.home-visit-section {
  background: linear-gradient(135deg, #f0f7ff 0%, #e1effe 50%, #f0f8ff 100%);
  color: #0b1f3a;
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 119, 245, 0.1);
  border-bottom: 1px solid rgba(0, 119, 245, 0.1);
}

.home-visit-section .container {
  position: relative;
  z-index: 2;
}

.homevisit-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.homevisit-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 119, 245, 0.1);
  border: 1px solid rgba(0, 119, 245, 0.2);
  color: #0077f5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.homevisit-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: #0b1f3a;
  line-height: 1.15;
  margin-bottom: 8px;
}

.homevisit-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0077f5;
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.5;
  letter-spacing: 0.35px;
}

.homevisit-desc {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 28px;
}

.homevisit-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.homevisit-feature-pill {
  background: #ffffff;
  border: 1px solid rgba(0, 119, 245, 0.14);
  padding: 12px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 119, 245, 0.05);
  transition: all 0.3s ease;
}

.homevisit-feature-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 119, 245, 0.35);
  box-shadow: 0 8px 20px rgba(0, 119, 245, 0.12);
}

.homevisit-feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0077f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.homevisit-feat-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* Service Areas Box */
.homevisit-service-areas {
  background: #ffffff;
  border-left: 4px solid #0077f5;
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 28px;
  box-shadow: 0 6px 20px rgba(0, 119, 245, 0.07);
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-areas-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  color: #0077f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-areas-content h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 3px 0;
}

.service-areas-content p {
  font-size: 0.84rem;
  color: #475569;
  margin: 0;
}

.service-areas-content strong {
  color: #0077f5;
}

/* Home Visit Action Buttons */
.homevisit-btn-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-homevisit-primary {
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(0, 119, 245, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-homevisit-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 119, 245, 0.45);
}
/* ==========================================================================
   HOME VISIT SECTION - CLEAN 2X2 GRID + SERVICE AREAS (No Photo)
   ========================================================================== */
.home-visit-section {
  position: relative;
  background: #f0f7ff;
  padding: 85px 0 95px;
  overflow: hidden;
}

.home-visit-section .container,
.homevisit-wrap {
  position: relative;
  z-index: 5;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.homevisit-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0284c7;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.homevisit-title {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 900;
  color: #0b1f3a;
  line-height: 1.2;
  margin: 0 0 8px 0;
}

.homevisit-subtitle {
  font-size: 1.18rem;
  font-weight: 700;
  color: #0077f5;
  margin-top: 8px;
  margin-bottom: 18px;
  line-height: 1.5;
  letter-spacing: 0.35px;
}

.homevisit-desc {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 30px auto;
}

.homevisit-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  text-align: left;
}

.homevisit-feature-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 119, 245, 0.08);
  box-shadow: 0 4px 18px rgba(0, 119, 245, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.homevisit-feature-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 119, 245, 0.12);
}

.homevisit-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0077f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.homevisit-feat-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0b1f3a;
}

.homevisit-service-areas {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  padding: 18px 24px;
  border-radius: 20px;
  border: 1px solid rgba(0, 119, 245, 0.08);
  border-left: 5px solid #0077f5;
  box-shadow: 0 4px 18px rgba(0, 119, 245, 0.06);
  margin-bottom: 30px;
  text-align: left;
}

.service-areas-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0077f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-areas-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 3px 0;
}

.service-areas-content p {
  font-size: 0.92rem;
  color: #475569;
  margin: 0;
}

.service-areas-content strong {
  color: #0077f5;
  font-weight: 700;
}

.homevisit-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-homevisit-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0084ff 0%, #0060d6 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 119, 245, 0.35);
  transition: all 0.3s ease;
}

.btn-homevisit-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 119, 245, 0.45);
}

.btn-homevisit-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.96rem;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
  transition: all 0.3s ease;
}

.btn-homevisit-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.45);
}

/* ==========================================================================
   TREATMENTS - 3D FLAT SHUFFLING DECK (1:1 Photo Ratio, Arrows, No Desktop Swipe)
   ========================================================================== */
.treatments-coverflow-wrapper {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 85px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.treatments-coverflow-stage {
  position: relative;
  width: 100%;
  height: 540px;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.treatments-coverflow-card {
  position: absolute;
  width: 360px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              filter 0.65s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s ease;
  user-select: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.treatments-coverflow-card.is-active {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  filter: brightness(1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 8px 30px rgba(0, 119, 245, 0.25);
}

.treatments-coverflow-card.is-prev {
  transform: translate3d(-260px, 0, -90px) scale(0.86) rotateY(0deg);
  opacity: 0.75;
  z-index: 5;
  filter: brightness(0.92);
}

.treatments-coverflow-card.is-next {
  transform: translate3d(260px, 0, -90px) scale(0.86) rotateY(0deg);
  opacity: 0.75;
  z-index: 5;
  filter: brightness(0.92);
}

.treatments-coverflow-card.is-hidden {
  transform: translate3d(0, 0, -220px) scale(0.7) rotateY(0deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.treatment-coverflow-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e2e8f0;
}

.treatment-coverflow-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.treatments-coverflow-card:hover .treatment-coverflow-photo img {
  transform: scale(1.06);
}

.treatment-coverflow-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 31, 58, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--cyan-400);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 12px;
}

.treatment-coverflow-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.treatment-coverflow-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 6px 0;
}

.treatment-coverflow-desc {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 16px;
}

.treatment-coverflow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f7ff;
  color: #0077f5;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0, 119, 245, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: auto;
}

.treatment-coverflow-btn:hover {
  background: #0077f5;
  color: #ffffff;
}

/* ==========================================================================
   REVIEWS - 3D FLAT SHUFFLE COVERFLOW (DESKTOP & MOBILE)
   ========================================================================== */
.reviews-section {
  position: relative;
  overflow: hidden;
}

.reviews-section .container {
  position: relative;
  z-index: 5;
}

.reviews-coverflow-wrapper {
  position: relative;
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  padding: 10px 0;
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

.reviews-coverflow-stage {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.reviews-coverflow-card {
  position: absolute;
  width: 480px;
  max-width: 90%;
  background: #ffffff;
  border-radius: 26px;
  padding: 32px 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.6s ease,
              filter 0.6s ease,
              box-shadow 0.6s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-origin: center center;
  color: var(--slate-900);
  border: 1px solid rgba(255, 255, 255, 0.9);
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
}

/* Flat Shuffle 3D Deck (Cards behind are NOT angled/rotated) */
.reviews-coverflow-card.is-active {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  filter: brightness(1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 119, 245, 0.2);
}

.reviews-coverflow-card.is-prev {
  transform: translate3d(-260px, 0, -90px) scale(0.86) rotateY(0deg);
  opacity: 0.75;
  z-index: 5;
  filter: brightness(0.92);
  cursor: pointer;
}

.reviews-coverflow-card.is-next {
  transform: translate3d(260px, 0, -90px) scale(0.86) rotateY(0deg);
  opacity: 0.75;
  z-index: 5;
  filter: brightness(0.92);
  cursor: pointer;
}

.reviews-coverflow-card.is-hidden {
  transform: translate3d(0, 0, -220px) scale(0.7) rotateY(0deg);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Gallery link button in results section */
.btn-results-gallery {
  background: rgba(0, 119, 245, 0.2);
  border: 1.5px solid var(--cyan-400);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-results-gallery:hover {
  background: var(--cyan-400);
  color: #0b1f3a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   BRANCHES SECTION (Ice Blue Theme - 3D Back-to-Back Stack & Card Shuffle)
   ========================================================================== */
.branches-section {
  background: linear-gradient(180deg, #f0f7ff 0%, #e1effc 50%, #d6e9f8 100%);
  padding: 95px 0 105px;
  color: #0b1f3a;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 119, 245, 0.12);
  border-bottom: 1px solid rgba(0, 119, 245, 0.12);
}

.branches-section .container {
  position: relative;
  z-index: 2;
}

.branches-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 46px;
}

.branches-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 119, 245, 0.1);
  border: 1px solid rgba(0, 119, 245, 0.25);
  color: #0077f5;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.branches-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.15;
  margin-bottom: 10px;
}

.branches-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
}

/* 3D Back-to-Back Deck Stage */
.branches-deck-wrapper {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
  perspective: 1200px;
  perspective-origin: 50% 35%;
}

.branches-deck-stage {
  position: relative;
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Branch Card in Stack */
.branch-deck-card {
  position: absolute;
  width: 100%;
  max-width: 700px;
  background: #ffffff;
  border-radius: 28px;
  padding: 38px 36px 34px;
  box-shadow: 0 16px 40px -8px rgba(0, 50, 120, 0.1), 0 4px 14px rgba(0, 119, 245, 0.04);
  border: 1.5px solid rgba(0, 119, 245, 0.14);
  color: #0b1f3a;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.6s ease,
              border-color 0.4s ease;
  will-change: transform, opacity, filter;
  transform-origin: center center;
  backface-visibility: hidden;
  user-select: none;
}

/* Layered Back-to-Back Positions */
.branch-deck-card.is-active {
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  filter: blur(0px);
  box-shadow: 0 24px 55px -10px rgba(0, 60, 140, 0.16), 0 8px 24px rgba(56, 189, 248, 0.14);
  border-color: rgba(0, 119, 245, 0.28);
}

.branch-deck-card.is-behind-1 {
  transform: translate3d(0, -22px, -45px) scale(0.95) rotate(0.4deg);
  opacity: 0.86;
  z-index: 8;
  pointer-events: none;
  filter: blur(0.5px);
}

.branch-deck-card.is-behind-2 {
  transform: translate3d(0, -42px, -90px) scale(0.90) rotate(-0.4deg);
  opacity: 0.62;
  z-index: 6;
  pointer-events: none;
  filter: blur(1.2px);
}

.branch-deck-card.is-hidden {
  transform: translate3d(0, -60px, -130px) scale(0.85);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  filter: blur(2.5px);
}

/* Silky Smooth Shuffle-Up Exit State */
.branch-deck-card.is-shuffling-up {
  transform: translate3d(0, -115%, 50px) scale(0.97) rotate(-2.5deg) !important;
  opacity: 0 !important;
  filter: blur(3.5px) !important;
  z-index: 25 !important;
  pointer-events: none;
}

/* Silky Smooth Shuffle-Down Entry State */
.branch-deck-card.is-shuffling-down-start {
  transform: translate3d(0, -115%, 50px) scale(0.97) rotate(2.5deg) !important;
  opacity: 0 !important;
  filter: blur(3.5px) !important;
  z-index: 25 !important;
  transition: none !important;
}

.branch-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.branch-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0b1f3a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.branch-status-pill {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.branch-details-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.branch-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #334155;
}

.branch-detail-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0077f5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.branch-amenities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.branch-amenity-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.branch-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-branch-directions {
  flex: 1;
  min-width: 180px;
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 119, 245, 0.35);
  transition: all 0.25s ease;
}

.btn-branch-directions:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 119, 245, 0.5);
  background: linear-gradient(135deg, #0084ff 0%, #0060d6 100%);
}

.btn-branch-call {
  background: #ffffff;
  color: #0077f5 !important;
  border: 1.5px solid rgba(0, 119, 245, 0.3);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-branch-call:hover {
  background: #f0f7ff;
  border-color: #0077f5;
  transform: translateY(-2px);
}

/* Controls */
.branches-deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  position: relative;
  z-index: 15;
}

.btn-deck-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 119, 245, 0.25);
  color: #0077f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 119, 245, 0.15);
  transition: all 0.25s ease;
}

.btn-deck-arrow:hover {
  background: #0077f5;
  color: #ffffff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 119, 245, 0.35);
}

.btn-deck-arrow:active {
  transform: translateY(0) scale(0.95);
}

.branches-deck-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.branches-deck-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 119, 245, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.branches-deck-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #0077f5;
  box-shadow: 0 2px 8px rgba(0, 119, 245, 0.4);
}

/* ==========================================================================
   CLINICAL VIDEO REHABILITATION SECTION (3D SHUFFLE COVERFLOW)
   ========================================================================== */
.videos-section {
  padding: 100px 0 110px;
  background: radial-gradient(circle at 50% 20%, #0d2850 0%, #06152b 55%, #040e1e 100%);
  position: relative;
  overflow: hidden;
}

.videos-coverflow-wrapper {
  position: relative;
  margin-top: 40px;
  padding: 20px 0 40px;
}

.video-coverflow-stage {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.video-card {
  position: absolute;
  width: 380px;
  max-width: 88vw;
  background: linear-gradient(180deg, #092042 0%, #051226 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  transition: all 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.video-card.orientation-horizontal {
  width: 460px;
}

.video-card.is-active {
  transform: translateX(0) scale(1) translateZ(0);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  filter: none;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 119, 245, 0.4);
  border-color: rgba(56, 189, 248, 0.7);
}

.video-card.is-prev {
  transform: translateX(-52%) scale(0.85) translateZ(-90px) rotateY(12deg);
  opacity: 0.55;
  z-index: 5;
  filter: blur(4px);
  pointer-events: auto;
  cursor: pointer;
}

.video-card.is-next {
  transform: translateX(52%) scale(0.85) translateZ(-90px) rotateY(-12deg);
  opacity: 0.55;
  z-index: 5;
  filter: blur(4px);
  pointer-events: auto;
  cursor: pointer;
}

.video-card.is-hidden {
  transform: scale(0.65) translateZ(-180px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  filter: blur(8px);
}

.video-media-wrapper {
  position: relative;
  background: #020712;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card.orientation-vertical .video-media-wrapper {
  aspect-ratio: 9 / 16;
  max-height: 380px;
}

.video-card.orientation-horizontal .video-media-wrapper {
  aspect-ratio: 16 / 9;
  max-height: 260px;
}

.video-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(3, 15, 30, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--cyan-400);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.video-maximize-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 119, 245, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-maximize-btn:hover {
  transform: scale(1.15);
  background: #0077f5;
}

.video-play-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.video-play-indicator svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.video-card.is-active.is-playing .video-play-indicator {
  opacity: 0;
}

.video-card-treatment-info {
  padding: 16px 20px 20px;
  background: linear-gradient(180deg, rgba(8, 26, 54, 0.98) 0%, rgba(4, 14, 30, 1) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.video-treatment-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-case-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
}

.video-treatment-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #93c5fd;
  margin: 0;
}

.video-case-details {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* VIDEO MAXIMIZE LIGHTBOX MODAL */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-backdrop.is-open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.video-modal-dialog {
  background: #081a36;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 119, 245, 0.3);
}

.video-modal-header {
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1);
}

.video-modal-body {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 56vh;
  overflow: hidden;
}

.video-modal-body video {
  max-width: 100%;
  max-height: 56vh;
  outline: none;
}

.video-modal-footer {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}



.video-control-btn {
  background: rgba(4, 16, 34, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.video-control-btn:hover {
  background: #0077f5;
  border-color: #38bdf8;
  transform: scale(1.12);
}

.play-pulse-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(3, 15, 30, 0.88);
  border: 2px solid var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.55);
  transition: transform 0.25s ease;
  cursor: pointer;
}

.play-pulse-circle svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.video-card.is-active .video-play-indicator {
  cursor: pointer;
}

.video-card.is-active:hover .play-pulse-circle {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.75);
}

.video-card.is-active.is-playing .video-play-indicator {
  opacity: 0;
  pointer-events: none;
}

.video-media-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #020712;
}


/* ==========================================================================
   ENHANCED 3D SHUFFLE + ROTATE CAROUSEL & VERTICAL BUTTON STACK
   ========================================================================== */
.video-top-actions {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  display: flex !important;
  flex-direction: column !important; /* Mute on top, Expand directly below */
  align-items: center !important;
  gap: 10px !important;
  z-index: 25 !important;
}

.video-top-actions .video-control-btn {
  position: static !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(4, 16, 36, 0.92) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.video-top-actions .video-control-btn:hover {
  background: #0077f5 !important;
  border-color: #38bdf8 !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8) !important;
}

/* 3D Coverflow Stage with Depth & Rotation */
.video-coverflow-stage {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  transform-style: preserve-3d;
  width: 100%;
}

.video-card {
  position: absolute;
  width: 380px;
  max-width: 88vw;
  background: linear-gradient(180deg, #092042 0%, #051226 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
}

.video-card.orientation-horizontal {
  width: 470px;
}

.video-card.is-active {
  transform: translateX(0) scale(1) translateZ(40px) rotateY(0deg) rotateZ(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  filter: none;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 119, 245, 0.45);
  border-color: rgba(56, 189, 248, 0.8);
}

.video-card.is-prev {
  transform: translateX(-58%) scale(0.83) translateZ(-110px) rotateY(20deg) rotateZ(-2deg);
  opacity: 0.6;
  z-index: 5;
  filter: blur(3px);
  pointer-events: auto;
  cursor: pointer;
}

.video-card.is-next {
  transform: translateX(58%) scale(0.83) translateZ(-110px) rotateY(-20deg) rotateZ(2deg);
  opacity: 0.6;
  z-index: 5;
  filter: blur(3px);
  pointer-events: auto;
  cursor: pointer;
}

.video-card.is-hidden {
  transform: scale(0.6) translateZ(-220px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  filter: blur(10px);
}

.video-card.is-shuffling-out {
  transform: translateX(-120%) scale(0.7) translateZ(-200px) rotateY(35deg) rotateZ(-6deg);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.play-pulse-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(3, 15, 30, 0.88);
  border: 2px solid var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
  transition: transform 0.25s ease;
  cursor: pointer;
}

.play-pulse-circle svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}

.video-card.is-active .video-play-indicator {
  cursor: pointer;
}

.video-card.is-active:hover .play-pulse-circle {
  transform: scale(1.12);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.8);
}

.video-card.is-active.is-playing .video-play-indicator {
  opacity: 0;
  pointer-events: none;
}
