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

/* Mobile Wrapper */
.mobile-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--navy-900);
  color: #ffffff;
  position: relative;
  min-height: 100vh;
  padding-bottom: 84px; /* Space for fixed bottom bar */
  overflow-x: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.mobile-container {
  padding: 0 18px;
}

/* ==========================================================================
   MOBILE HEADER
   ========================================================================== */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 19, 37, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-header .brand-title {
  font-size: 0.84rem;
  line-height: 1.15;
  max-width: 175px;
}

.mobile-header .brand-icon {
  width: auto;
  height: 34px;
}

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

.btn-header-call {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 119, 245, 0.2);
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.btn-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.btn-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.btn-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.btn-hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE SLIDE-OUT DRAWER (Frame 8 of mobile.png)
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 22, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 360px;
  background: linear-gradient(180deg, #061730 0%, #081d3f 60%, #040e1e 100%);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.drawer-nav-list {
  list-style: none;
  padding: 12px 0;
}

.drawer-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

.drawer-nav-item a:hover, .drawer-nav-item a:active {
  background: rgba(0, 119, 245, 0.15);
  color: var(--cyan-400);
}

.drawer-nav-item a .chevron {
  color: #64748b;
  font-size: 0.9rem;
}

.drawer-social-section {
  padding: 20px 24px 10px;
}

.drawer-social-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 12px;
}

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

.drawer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.drawer-contact-section {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.88rem;
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
}

.drawer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}

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

.drawer-signature {
  padding: 10px 24px 24px;
  text-align: left;
}

/* ==========================================================================
   MOBILE HERO SECTION (Screen 1)
   ========================================================================== */
.mobile-hero {
  position: relative;
  min-height: max(720px, calc(100vh - 64px));
  min-height: max(720px, calc(100svh - 64px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 16px 14px;
  background: #031c47 url('../PICS/hero_section_bg.jpg') no-repeat 68% 10% / cover;
  overflow: hidden;
}

.mobile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(2, 22, 59, 0) 0%, 
    rgba(2, 22, 59, 0) 58%, 
    rgba(2, 22, 59, 0.4) 70%, 
    rgba(2, 22, 59, 0.86) 86%, 
    #02163b 98%
  );
  pointer-events: none;
  z-index: 1;
}

.mobile-hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.mobile-hero-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  max-width: 250px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.mobile-hero-subtext {
  font-size: 0.82rem;
  line-height: 1.38;
  color: #e2e8f0;
  margin-bottom: 12px;
  max-width: 250px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.mobile-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 119, 245, 0.4);
}

/* 4 Circular Pills */
.mobile-pills-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
  margin-bottom: 8px;
}

.mobile-pill-item {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 7px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.mobile-pill-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}

.mobile-hero-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 2px;
  padding-bottom: 2px;
  position: relative;
  z-index: 2;
}

.mobile-dots {
  display: flex;
  gap: 6px;
}

.mobile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.mobile-dot.active {
  background: #ffffff;
  width: 20px;
  border-radius: 10px;
}

/* ==========================================================================
   MOBILE ABOUT US (Screen 2)
   ========================================================================== */
.mobile-about {
  background: linear-gradient(180deg, #f8fafc 0%, #eef5fc 100%);
  color: var(--slate-900);
  padding: 44px 18px;
}

.mobile-section-header {
  margin-bottom: 20px;
}

.mobile-section-tag {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.2;
}

.mobile-section-subtitle {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--primary-500);
  margin-top: 8px;
  margin-bottom: 14px;
  line-height: 1.55;
  letter-spacing: 0.35px;
}

.mobile-about-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin-bottom: 20px;
}

.mobile-about-img {
  width: 100%;
  height: 290px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
  margin-bottom: 24px;
}

.mobile-about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-values-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}

.mobile-value-item {
  background: #ffffff;
  padding: 18px 16px;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(13, 37, 71, 0.05);
  border: 1px solid rgba(0, 119, 245, 0.08);
}

.mobile-value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 119, 245, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  flex-shrink: 0;
}

.mobile-value-text h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1f3a;
  margin-bottom: 2px;
}

.mobile-value-text p {
  font-size: 0.86rem;
  color: var(--slate-600);
}

/* ==========================================================================
   MOBILE TREATMENTS (Screen 3)
   ========================================================================== */
.mobile-treatments {
  background: linear-gradient(180deg, #061325 0%, #0a2142 100%);
  padding: 44px 18px;
  color: #ffffff;
}

.mobile-treatments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-treatment-row {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.mobile-treatment-row:active {
  background: rgba(0, 119, 245, 0.25);
  transform: scale(0.98);
}

.mobile-treat-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
}

.mobile-treat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-treat-info {
  flex-grow: 1;
}

.mobile-treat-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.mobile-treat-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.3;
}

.mobile-treat-chevron {
  color: var(--cyan-400);
  font-size: 1rem;
}

/* ==========================================================================
   MOBILE RESULTS (Screen 4)
   ========================================================================== */
.mobile-results {
  background: radial-gradient(circle at 50% 10%, #0d2850 0%, #07172e 70%, #040e1d 100%);
  padding: 44px 18px;
  color: #ffffff;
}

.mobile-toggle-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 4px;
  margin: 18px 0 24px;
}

.mobile-tab-btn {
  flex: 1;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
  text-align: center;
  transition: all var(--transition-fast);
}

.mobile-tab-btn.active {
  background: #ffffff;
  color: #0b1f3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Bright Eye-Catchy Cyan Blue Gradient Pill Button for Mobile Gallery */
.btn-gallery-pill,
#btnMOpenGallery {
  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 16px rgba(0, 242, 254, 0.55), 0 0 10px 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;
}

#btnMOpenGallery:active,
.btn-gallery-pill:active {
  transform: scale(0.96) !important;
}

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

.mobile-results-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-result-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  color: var(--slate-900);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.mobile-result-card:active {
  transform: scale(0.98);
  box-shadow: 0 6px 16px rgba(0, 119, 245, 0.25);
}

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

.mobile-result-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mobile-result-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b1f3a;
}

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

/* ==========================================================================
   MOBILE DOCTORS (Screen 5) - 3D COVERFLOW CAROUSEL
   ========================================================================== */
.mobile-doctors {
  background: radial-gradient(ellipse 80% 55% at 50% 54%, rgba(0, 119, 245, 0.35) 0%, rgba(56, 189, 248, 0.16) 42%, transparent 75%),
              radial-gradient(circle at 90% 8%, rgba(0, 119, 245, 0.18) 0%, transparent 40%),
              radial-gradient(circle at 10% 92%, rgba(56, 189, 248, 0.15) 0%, transparent 42%),
              linear-gradient(180deg, #020a16 0%, #061833 48%, #020914 100%);
  padding: 44px 0 36px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.mobile-doctors .mobile-section-header,
.mobile-doctors .mobile-coverflow-wrapper,
.mobile-doctors .coverflow-dots {
  position: relative;
  z-index: 2;
}

.mobile-doctors .mobile-section-header {
  padding: 0 20px;
  margin-bottom: 12px;
}

.mobile-coverflow-wrapper {
  position: relative;
  width: 100%;
  padding: 10px 0 14px;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  --card-offset: 165px;
}

@media (max-width: 375px) {
  .mobile-coverflow-wrapper {
    --card-offset: 145px;
  }
}

@media (min-width: 420px) {
  .mobile-coverflow-wrapper {
    --card-offset: 180px;
  }
}

/* 3D Stage */
.mobile-coverflow-stage {
  position: relative;
  width: 100%;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  touch-action: pan-y;
}

/* Coverflow Card Base */
.coverflow-card {
  position: absolute;
  width: 295px;
  max-width: 84vw;
  background: #ffffff;
  border-radius: 26px;
  padding: 14px 14px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.55s ease,
              filter 0.55s ease,
              box-shadow 0.55s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-origin: center center;
  color: var(--slate-900);
  border: 1px solid rgba(255, 255, 255, 0.85);
  user-select: none;
}

/* 3D Coverflow Positions */
.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 20px 48px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 119, 245, 0.18);
}

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

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

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

/* Doctor Photo Space */
.coverflow-photo-space {
  position: relative;
  width: 100%;
  height: 335px;
  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;
}

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

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

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

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

.coverflow-role-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0066d6;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  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 Card Information */
.coverflow-card-info {
  padding: 12px 4px 0;
}

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

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

.coverflow-doc-exp {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 8px;
}

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

.coverflow-doc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

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

.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.88rem;
  font-weight: 700;
  padding: 11px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 102, 214, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coverflow-btn-profile:active {
  transform: scale(0.97);
}

/* Manual Navigation Control Arrows (Treatments, Doctors, Reviews) */
.coverflow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(0, 119, 245, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 35;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.coverflow-arrow-prev {
  left: 6px;
}

.coverflow-arrow-next {
  right: 6px;
}

.coverflow-arrow:hover,
.coverflow-arrow:active {
  transform: translateY(-50%) scale(1.08);
  border-color: #0077f5;
  box-shadow: 0 10px 26px rgba(0, 119, 245, 0.4);
}

/* Coverflow Indicator Dots */
.coverflow-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  z-index: 20;
  position: relative;
}

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

.coverflow-dot.active {
  width: 24px;
  border-radius: 8px;
  background: #0077f5;
  box-shadow: 0 0 10px rgba(0, 119, 245, 0.6);
}

/* ==========================================================================
   MOBILE WHY JOINT CARE ? (Screen 5 - White Background & Solid Icons)
   ========================================================================== */
.mobile-why {
  background: #ffffff;
  padding: 48px 18px 40px;
  color: #0b1f3a;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-why .mobile-section-header {
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

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

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

.mobile-why-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 900;
  color: #0b1f3a;
  line-height: 1.2;
}

.mobile-why-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.mobile-why-card {
  background: #ffffff;
  border: 1.5px solid rgba(0, 119, 245, 0.12);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(0, 70, 180, 0.05);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}

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

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

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

.mobile-why-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #475569;
}

/* Bottom Callout in Mobile */
.mobile-why-callout {
  margin-top: 36px;
  text-align: center;
  padding: 0 6px;
  position: relative;
  z-index: 2;
}

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

.mobile-why-callout-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 20px;
}

.mobile-why-cta-btn {
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff !important;
  width: 100%;
  padding: 14px 20px;
  border-radius: 28px;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 119, 245, 0.35);
  text-decoration: none;
}

.mobile-why-assessment-note {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0b1f3a;
  margin-top: 10px;
}

/* ==========================================================================
   MOBILE REVIEWS (Screen 7)
   ========================================================================== */
.mobile-reviews {
  background: radial-gradient(circle at 50% 30%, #0a2143 0%, #061325 80%);
  padding: 44px 18px 36px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.mobile-reviews .mobile-section-header,
.mobile-reviews .mobile-reviews-coverflow-wrapper,
.mobile-reviews .mobile-reviews-track,
.mobile-reviews .coverflow-dots,
.mobile-reviews .mobile-rev-dots {
  position: relative;
  z-index: 5;
}

.mobile-reviews-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 2px 20px;
  scrollbar-width: none;
}

.mobile-reviews-track::-webkit-scrollbar {
  display: none;
}

.mobile-review-card {
  flex: 0 0 86%;
  scroll-snap-align: center;
  background: #ffffff;
  border-radius: 20px;
  padding: 22px 18px;
  color: var(--slate-900);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  position: relative;
  transition: transform 0.3s ease;
}

.mobile-review-quote {
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--slate-700);
  font-style: italic;
  margin: 10px 0 16px;
}

.mobile-reviews-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}

.mobile-rev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.mobile-rev-dot.active {
  width: 20px;
  border-radius: 10px;
  background: var(--cyan-400);
}

/* Mobile Pop-up and Slide-up Animations */
@keyframes mobilePopUp {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
  }
  65% {
    transform: scale(1.025) translateY(-3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

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

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

.mobile-review-card.animate-popup .mobile-review-quote {
  animation: mobileTextSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

.mobile-review-card.animate-popup .review-author {
  animation: mobileTextSlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

/* ==========================================================================
   MOBILE DEDICATED BOOKING (Screen 7)
   ========================================================================== */
.mobile-booking {
  background: radial-gradient(circle at 50% 15%, #0d2850 0%, #06152b 80%, #040e1e 100%);
  padding: 44px 18px;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-booking-badge {
  background: rgba(0, 119, 245, 0.2);
  color: var(--cyan-400);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.mobile-booking-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 20px;
  color: var(--slate-900);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  margin-top: 18px;
}

.mobile-booking-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.mobile-booking-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  font-size: 16px; /* Prevents iOS safari auto-zoom */
  color: #0f172a;
  background: #f8fafc;
  transition: all 0.25s ease;
  font-family: inherit;
  margin-bottom: 16px;
}

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

.mobile-booking-submit-btn {
  width: 100%;
  padding: 15px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 119, 245, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.mobile-booking-submit-btn:active {
  transform: scale(0.98);
}

.mobile-booking-guarantee {
  text-align: center;
  margin-top: 14px;
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.mobile-booking-success {
  text-align: center;
  padding: 20px 8px;
}

.m-success-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.mobile-booking-success h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #0b1f3a;
  margin-bottom: 8px;
}

.mobile-booking-success p {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* ==========================================================================
   MOBILE CTA & FOOTER (Screen 7 & 8)
   ========================================================================== */
.mobile-cta {
  background: linear-gradient(180deg, #061730 0%, #081d3f 50%, #040e1e 100%);
  padding: 44px 18px;
  text-align: center;
}

.mobile-cta-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.mobile-cta-subtext {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.mobile-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.mobile-cta-features {
  display: flex;
  justify-content: space-around;
  margin-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.mobile-feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mobile-feat-item span {
  font-size: 0.74rem;
  font-weight: 600;
  color: #ffffff;
}

.mobile-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.8rem;
}

.mobile-footer-brand {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.mobile-footer-text {
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 0.82rem;
}

/* ==========================================================================
/* Sticky bottom quick bar removed in favor of floating call & whatsapp buttons */
.mobile-sticky-bar {
  display: none !important;
}

/* ==========================================================================
   REVIEW AUTHOR DP & ICON
   ========================================================================== */
.author-avatar-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #cbd5e1;
}

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

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

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

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Mobile)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 74px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 9995;
  cursor: pointer;
  animation: pulseWhatsApp 2.4s infinite;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.floating-whatsapp-btn:active {
  transform: scale(0.92);
}

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

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

.mobile-home-visit .mobile-section-header,
.mobile-home-visit .m-homevisit-features-grid,
.mobile-home-visit .m-homevisit-service-areas,
.mobile-home-visit .m-homevisit-actions {
  position: relative;
  z-index: 5;
}

.mobile-home-visit .mobile-section-header {
  margin-bottom: 24px;
}

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

.m-homevisit-sub {
  font-size: 1rem;
  font-weight: 700;
  color: #0077f5;
  margin-top: 6px;
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: 0.35px;
}

.m-homevisit-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 20px;
}

.m-homevisit-img-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 50, 120, 0.15);
  border: 3px solid #ffffff;
  margin-bottom: 22px;
}

.m-homevisit-img-box img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.m-hv-floating-badges {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.m-hv-badge {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #0077f5;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

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

.m-homevisit-feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0, 119, 245, 0.1);
  box-shadow: 0 4px 14px rgba(0, 119, 245, 0.05);
}

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

.m-homevisit-feat-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b1f3a;
  line-height: 1.25;
}

.m-homevisit-service-areas {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border-left: 4px solid #0077f5;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0, 119, 245, 0.05);
}

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

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

.m-service-areas-content p {
  font-size: 0.76rem;
  color: #475569;
  margin: 0;
  line-height: 1.35;
}

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

.m-homevisit-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-btn-hv-primary {
  background: linear-gradient(135deg, #0084ff 0%, #0060d6 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 13px 18px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 119, 245, 0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.m-btn-hv-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 13px 18px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

/* ==========================================================================
   MOBILE TREATMENTS 3D FLAT SHUFFLE COVERFLOW (1:1 Ratio, Swipe & Arrows)
   ========================================================================== */
.mobile-treatments-coverflow-wrapper {
  position: relative;
  width: 100%;
  margin-top: 32px;
  perspective: 1000px;
}

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

.mobile-treatment-coverflow-card {
  position: absolute;
  width: 82%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.55s ease,
              filter 0.55s ease;
  will-change: transform, opacity;
  color: var(--slate-900);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.mobile-treatment-coverflow-card.is-active {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.mobile-treatment-coverflow-card.is-prev {
  transform: translate3d(-170px, 0, -80px) scale(0.86) rotateY(0deg);
  opacity: 0.7;
  z-index: 5;
}

.mobile-treatment-coverflow-card.is-next {
  transform: translate3d(170px, 0, -80px) scale(0.86) rotateY(0deg);
  opacity: 0.7;
  z-index: 5;
}

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

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

.m-treatment-coverflow-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.m-treatment-coverflow-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 31, 58, 0.85);
  color: var(--cyan-400);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
}

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

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

.m-treatment-coverflow-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 12px;
}

.m-treatment-coverflow-btn {
  background: #eff6ff;
  color: #0077f5;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 119, 245, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* ==========================================================================
   MOBILE REVIEWS 3D SHUFFLE DECK (Flat cards behind)
   ========================================================================== */
.mobile-reviews-coverflow-wrapper {
  position: relative;
  width: 100%;
  padding: 10px 0;
  perspective: 1000px;
}

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

.mobile-reviews-coverflow-card {
  position: absolute;
  width: 88%;
  background: #ffffff;
  border-radius: 22px;
  padding: 22px 20px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.55s ease,
              filter 0.55s ease;
  will-change: transform, opacity;
  color: var(--slate-900);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.mobile-reviews-coverflow-card.is-active {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

.mobile-reviews-coverflow-card.is-prev {
  transform: translate3d(-180px, 0, -80px) scale(0.86) rotateY(0deg);
  opacity: 0.7;
  z-index: 5;
  cursor: pointer;
}

.mobile-reviews-coverflow-card.is-next {
  transform: translate3d(180px, 0, -80px) scale(0.86) rotateY(0deg);
  opacity: 0.7;
  z-index: 5;
  cursor: pointer;
}

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

/* Mobile Gallery Button in Results */
.btn-results-gallery.mobile-gallery-btn {
  background: rgba(0, 119, 245, 0.25);
  border: 1.5px solid var(--cyan-400);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
  cursor: pointer;
  flex-shrink: 0;
}

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

.m-branches-header {
  text-align: center;
  margin-bottom: 24px;
}

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

.m-branches-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: #0b1f3a;
  line-height: 1.2;
  margin-bottom: 6px;
}

.m-branches-sub {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
}

/* Mobile 3D Back-to-Back Deck Stage */
.m-branches-deck-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  perspective: 1000px;
  perspective-origin: 50% 35%;
  padding: 6px 0;
}

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

/* Mobile Card in Stack */
.m-branch-deck-card {
  position: absolute;
  width: 100%;
  background: #ffffff;
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 0 12px 30px -6px rgba(0, 50, 120, 0.1), 0 2px 8px rgba(0, 119, 245, 0.04);
  border: 1.5px solid rgba(0, 119, 245, 0.14);
  color: #0b1f3a;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.55s 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 */
.m-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 18px 40px -8px rgba(0, 50, 120, 0.15), 0 4px 12px rgba(56, 189, 248, 0.14);
  border-color: rgba(0, 119, 245, 0.28);
}

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

.m-branch-deck-card.is-behind-2 {
  transform: translate3d(0, -30px, -70px) scale(0.88) rotate(-0.4deg);
  opacity: 0.6;
  z-index: 6;
  pointer-events: none;
  filter: blur(1.2px);
}

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

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

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

.m-branch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.m-branch-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1f3a;
}

.m-branch-status-pill {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.m-branch-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 10px;
}

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

.m-branch-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
}

.m-branch-amenity-tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.m-branch-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-btn-branch-directions {
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(0, 119, 245, 0.3);
}

.m-btn-branch-call {
  background: #ffffff;
  color: #0077f5 !important;
  border: 1.5px solid rgba(0, 119, 245, 0.3);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px;
  border-radius: 14px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.m-btn-deck-arrow {
  width: 44px;
  height: 44px;
  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 4px 14px rgba(0, 119, 245, 0.15);
  transition: all 0.2s ease;
}

.m-btn-deck-arrow:active {
  transform: scale(0.92);
  background: #0077f5;
  color: #ffffff;
}

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

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

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

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

.mobile-videos-section .video-coverflow-stage {
  height: 520px;
}

.mobile-videos-section .video-card {
  width: 300px;
  border-radius: 20px;
}

.mobile-videos-section .video-card.orientation-horizontal {
  width: 320px;
}

.mobile-videos-section .video-card.orientation-vertical .video-media-wrapper {
  max-height: 320px;
}

.mobile-videos-section .video-card.orientation-horizontal .video-media-wrapper {
  max-height: 200px;
}

.mobile-videos-section .video-card-treatment-info {
  padding: 14px 16px;
}

.mobile-videos-section .video-case-title {
  font-size: 0.95rem;
}

.mobile-videos-section .video-treatment-name {
  font-size: 0.8rem;
}

.mobile-videos-section .video-case-details {
  font-size: 0.76rem;
}

