/* ==========================================================================
   JOINT CARE PHYSIOTHERAPY CLINIC - SHARED DESIGN SYSTEM & COMMON STYLES
   ========================================================================== */

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

:root {
  /* Brand Palettes */
  --navy-950: #030a16;
  --navy-900: #061325;
  --navy-850: #091b35;
  --navy-800: #0d2547;
  --navy-700: #143765;
  --navy-600: #1e4982;
  
  --primary-500: #0077f5;
  --primary-600: #0066d6;
  --primary-400: #2991ff;
  --primary-glow: rgba(0, 119, 245, 0.35);
  
  --cyan-400: #38bdf8;
  --cyan-500: #06b6d4;
  --cyan-glow: rgba(56, 189, 248, 0.3);

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  --amber-400: #fbbf24;
  --emerald-500: #10b981;
  
  /* Fonts */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-script: 'Caveat', cursive;

  /* Shadows & Glass */
  --shadow-sm: 0 2px 8px rgba(3, 10, 22, 0.06);
  --shadow-md: 0 8px 24px rgba(3, 10, 22, 0.08);
  --shadow-lg: 0 16px 36px rgba(3, 10, 22, 0.12);
  --shadow-glow: 0 0 30px rgba(0, 119, 245, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.14);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--slate-900);
  background-color: var(--navy-900);
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* ==========================================================================
   COMMON LOGO COMPONENT
   ========================================================================== */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}

.brand-icon {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), 0 0 10px rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.brand-icon img {
  height: 100%;
  width: auto;
  max-width: 68px;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #ffffff;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--cyan-400);
  text-transform: uppercase;
  margin-top: 2px;
}

@media (max-width: 480px) {
  .brand-icon {
    height: 36px;
    padding: 3px 6px;
  }
  .brand-icon img {
    max-width: 54px;
  }
  .brand-title {
    font-size: 0.78rem;
    line-height: 1.2;
    max-width: 175px;
  }
  .brand-tagline {
    font-size: 0.54rem;
    letter-spacing: 1.2px;
  }
}

/* Script accent styling */
.script-accent {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--cyan-400);
  transform: rotate(-3deg);
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}



/* ==========================================================================
   DOCTORS SECTION DECORATIVE SPINNING SHAPES (25% Bigger)
   ========================================================================== */
.doctors-shape-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  opacity: 0.65;
  filter: drop-shadow(0 0 26px rgba(0, 119, 245, 0.48));
  transition: opacity 0.4s ease;
}

.doctors-shape-tr {
  top: -85px;
  right: -85px;
  width: 415px;
  height: 415px;
  animation: spinSlow 34s linear infinite;
}

.doctors-shape-bl {
  bottom: -105px;
  left: -105px;
  width: 450px;
  height: 450px;
  animation: spinSlowReverse 40s linear infinite;
}

.spinning-starburst-img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   REVIEWS SECTION DECORATIVE SPINNING SHAPES (+20% Bigger)
   ========================================================================== */
.reviews-shape-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  opacity: 0.7;
  filter: drop-shadow(0 0 28px rgba(0, 119, 245, 0.45));
  transition: opacity 0.4s ease;
}

.reviews-shape-tr {
  top: -324px;
  right: -324px;
  width: 648px;
  height: 648px;
  animation: spinSlow 36s linear infinite;
}

.reviews-shape-bl {
  bottom: -342px;
  left: -342px;
  width: 684px;
  height: 684px;
  animation: spinSlowReverse 42s linear infinite;
}

.spinning-asterisk-img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   WHY JOINT CARE SECTION DECORATIVE SPINNING SHAPES (+50% Bigger)
   ========================================================================== */
.why-shape-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  opacity: 0.7;
  filter: drop-shadow(0 0 24px rgba(0, 119, 245, 0.4));
  transition: opacity 0.4s ease;
}

.why-shape-tr {
  top: -75px;
  right: -75px;
  width: 435px;
  height: 435px;
  animation: spinSlow 32s linear infinite;
}

.why-shape-bl {
  bottom: -90px;
  left: -90px;
  width: 480px;
  height: 480px;
  animation: spinSlowReverse 38s linear infinite;
}

.spinning-diamond-img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   CLINICAL VIDEO SECTION DECORATIVE SPINNING FILM REEL TAPE (50% Opacity Cyan)
   ========================================================================== */
.videos-shape-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  opacity: 0.5;
  transform: scale(1);
  filter: drop-shadow(0 0 32px rgba(0, 210, 255, 0.5));
  transition: opacity 0.4s ease;
}

.videos-shape-tr {
  top: -85px;
  right: -85px;
  width: 460px;
  height: 460px;
  animation: spinSlow 26s linear infinite;
}

.videos-shape-bl {
  bottom: -95px;
  left: -95px;
  width: 490px;
  height: 490px;
  animation: spinSlowReverse 30s linear infinite;
}

.spinning-reel-img,
.spinning-hexagon-img {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1);
}

/* ==========================================================================
   HOME VISIT SECTION DECORATIVE SPINNING SHAPES (+50% Bigger)
   ========================================================================== */
.homevisit-shape-decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  opacity: 0.85;
  filter: drop-shadow(0 0 32px rgba(0, 119, 245, 0.45));
  transition: opacity 0.4s ease;
}

.homevisit-shape-tr {
  top: -382.5px;
  right: -382.5px;
  width: 765px;
  height: 765px;
  animation: spinSlow 24s linear infinite;
}

.homevisit-shape-bl {
  bottom: -412.5px;
  left: -412.5px;
  width: 825px;
  height: 825px;
  animation: spinSlowReverse 28.5s linear infinite;
}

.spinning-floral-img {
  width: 100%;
  height: 100%;
  display: block;
}

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

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

@media (max-width: 768px) {
  .doctors-shape-tr {
    top: -45px;
    right: -45px;
    width: 240px;
    height: 240px;
    opacity: 0.75;
    z-index: 0;
  }
  .doctors-shape-bl {
    bottom: -55px;
    left: -55px;
    width: 275px;
    height: 275px;
    opacity: 0.75;
    z-index: 0;
  }

  .reviews-shape-tr {
    top: -180px;
    right: -180px;
    width: 360px;
    height: 360px;
    opacity: 0.75;
    z-index: 0;
  }
  .reviews-shape-bl {
    bottom: -198px;
    left: -198px;
    width: 396px;
    height: 396px;
    opacity: 0.75;
    z-index: 0;
  }

  .why-shape-tr {
    top: -40px;
    right: -40px;
    width: 255px;
    height: 255px;
    opacity: 0.75;
    z-index: 0;
  }
  .why-shape-bl {
    bottom: -50px;
    left: -50px;
    width: 285px;
    height: 285px;
    opacity: 0.75;
    z-index: 0;
  }

  .homevisit-shape-tr {
    top: -214px;
    right: -214px;
    width: 428px;
    height: 428px;
    opacity: 0.85;
    z-index: 0;
  }
  .videos-shape-tr {
    top: -50px;
    right: -50px;
    width: 260px;
    height: 260px;
    opacity: 0.5;
    z-index: 0;
  }
  .videos-shape-bl {
    bottom: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    opacity: 0.5;
    z-index: 0;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0084ff 0%, #0060d6 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 12px 28px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(0, 119, 245, 0.45);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 119, 245, 0.6);
  background: linear-gradient(135deg, #1a91ff 0%, #0070eb 100%);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-play-story {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.btn-play-story .play-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
}

.btn-play-story:hover .play-circle {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}


/* ==========================================================================
   MODAL COMPONENT (Booking, Video, Profile)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(3, 10, 22, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

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

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(3, 10, 22, 0.35);
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: all var(--transition-slow);
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: linear-gradient(135deg, #061730 0%, #0c2b57 100%);
  color: #ffffff;
  padding: 24px 28px;
  position: relative;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

.modal-header p {
  color: var(--cyan-400);
  font-size: 0.88rem;
  margin-top: 4px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.modal-body {
  padding: 28px;
  max-height: 80vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-300);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--slate-900);
  background: var(--slate-50);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 119, 245, 0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0080ff, #005ec4);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 119, 245, 0.35);
  transition: all var(--transition-normal);
  cursor: pointer;
  margin-top: 10px;
}

.form-submit-btn:hover {
  background: linear-gradient(135deg, #1a8eff, #006ee0);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 119, 245, 0.5);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10001;
  background: #ffffff;
  color: var(--slate-900);
  padding: 14px 20px;
  border-radius: 14px;
  border-left: 5px solid var(--emerald-500);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  transform: translateY(-40px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Keyframe animations */
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 0 30px rgba(56, 189, 248, 0.5); }
}

/* ==========================================================================
   TREATMENT DETAIL MODAL STYLES (Rich Clinical Gradient Aesthetic & Clean Typography)
   ========================================================================== */
.modal-box.modal-large {
  max-width: 720px;
  width: 100%;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 30px 80px rgba(6, 19, 37, 0.5), 0 0 40px rgba(0, 119, 245, 0.15);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #05142a 0%, #0d2a54 60%, #071933 100%);
  color: #ffffff;
  padding: 26px 30px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-align: left;
  letter-spacing: -0.3px;
}

.modal-header p {
  color: var(--cyan-400);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
  text-align: left;
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(90deg) scale(1.05);
}

/* Modal Content Canvas: Layered Soft Ice-Blue Gradient eliminating flat white */
.modal-body#modalTreatBody,
#modalTreatBody {
  background: linear-gradient(180deg, #f0f6fe 0%, #e4effb 40%, #edf4fc 100%);
  padding: 30px 28px;
  max-height: 82vh;
  overflow-y: auto;
  text-align: left;
}

@media (max-width: 600px) {
  .modal-body#modalTreatBody,
  #modalTreatBody {
    padding: 20px 16px;
  }
}

.treat-detail-wrap {
  color: var(--slate-800);
  text-align: left;
}

/* Badge Pill */
.treat-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 119, 245, 0.12) 0%, rgba(56, 189, 248, 0.16) 100%);
  color: #0066d6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 119, 245, 0.22);
  text-align: left;
}

/* Main Category Titles in Modal */
.treat-detail-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0b1f3a;
  line-height: 1.25;
  margin-bottom: 6px;
  text-align: left;
  letter-spacing: -0.3px;
}

.treat-detail-lead {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0077f5;
  line-height: 1.45;
  margin-bottom: 18px;
  text-align: left;
}

/* Intro Box Card with Rich Depth */
.treat-intro-box {
  background: #ffffff;
  border: 1px solid rgba(0, 119, 245, 0.14);
  border-left: 5px solid #0077f5;
  border-radius: 18px;
  padding: 20px 22px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 119, 245, 0.06);
  text-align: left;
}

.treat-intro-box p {
  margin: 0;
  text-align: left;
}

.treat-intro-box strong {
  color: #0b1f3a;
}

/* Focus Tags Strip */
.treat-focus-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  text-align: left;
}

.focus-title {
  font-weight: 800;
  font-size: 0.82rem;
  color: #0077f5;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: left;
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}

.focus-tag {
  background: #ffffff;
  color: #0284c7;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 2px 8px rgba(0, 119, 245, 0.08);
  text-align: left;
}

.treat-divider {
  height: 1.5px;
  background: linear-gradient(90deg, rgba(0, 119, 245, 0.3) 0%, rgba(56, 189, 248, 0.1) 100%);
  margin: 22px 0;
}

/* Section Subheading (e.g. What We Treat) */
.treat-section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 22px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.treat-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #0077f5;
  border-radius: 2px;
}

/* Treatment Detail Cards */
.treat-card-block {
  background: #ffffff;
  border: 1.5px solid rgba(0, 119, 245, 0.13);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.05);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.treat-card-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 119, 245, 0.12);
  border-color: rgba(0, 119, 245, 0.28);
}

.treat-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  text-align: left;
}

.treat-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 119, 245, 0.32);
}

.treat-icon-circle svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
}

.treat-card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 3px 0;
  text-align: left;
}

.treat-card-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  text-align: left;
}

/* 2-Column Subgrid (e.g. Upper Limb / Lower Limb) */
.treat-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  text-align: left;
}

@media (max-width: 600px) {
  .treat-sub-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.treat-sub-col {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 119, 245, 0.12);
  text-align: left;
}

.treat-sub-col h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0b1f3a;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 10px 0;
  border-bottom: 1.5px solid rgba(0, 119, 245, 0.15);
  padding-bottom: 6px;
  text-align: left;
}

.treat-sub-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.treat-sub-col li {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.45;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.treat-sub-col li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0077f5;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Highlight Box (Green Gradient) */
.treat-highlight-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left: 5px solid #10b981;
  padding: 14px 18px;
  border-radius: 14px;
  margin-top: 14px;
  font-size: 0.87rem;
  line-height: 1.55;
  color: #065f46;
  text-align: left;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}

.treat-highlight-box strong {
  color: #064e3b;
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
  text-align: left;
}

/* Goals Box (Blue Gradient) */
.treat-goals-box {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1px solid rgba(0, 119, 245, 0.2);
  border-left: 5px solid #0077f5;
  padding: 16px 18px;
  border-radius: 14px;
  margin-top: 14px;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 119, 245, 0.08);
}

.treat-goals-box h5 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0077f5;
  margin: 0 0 8px 0;
  text-align: left;
}

.treat-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.treat-checklist li {
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.45;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.treat-checklist li::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: -1px;
}

/* Bullet list */
.treat-bullet-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  text-align: left;
}

.treat-bullet-list li {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
  padding: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.treat-bullet-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0077f5;
  flex-shrink: 0;
  margin-top: 7px;
}

/* Include Items Grid */
.treat-include-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
  text-align: left;
}

@media (max-width: 580px) {
  .treat-include-grid {
    grid-template-columns: 1fr;
  }
}

.treat-include-item {
  background: #ffffff;
  border: 1px solid rgba(0, 119, 245, 0.12);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  font-size: 0.86rem;
  font-weight: 700;
  color: #0b1f3a;
  text-align: left;
}

.treat-include-item svg {
  width: 18px;
  height: 18px;
  stroke: #0077f5;
  flex-shrink: 0;
}

/* Medical Alert */
.treat-medical-alert {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 5px solid #f59e0b;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0;
  text-align: left;
}

.treat-medical-alert-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 8px;
  text-align: left;
}

.treat-medical-alert-header svg {
  width: 20px;
  height: 20px;
  stroke: #d97706;
  flex-shrink: 0;
}

.treat-medical-alert p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #78350f;
  margin: 0 0 6px 0;
  text-align: left;
}

.treat-medical-alert p:last-child {
  margin-bottom: 0;
}

/* Rehabilitation Pathway Steps */
.treat-pathway-block {
  background: linear-gradient(180deg, #f0f7ff 0%, #e1effe 100%);
  border: 1.5px solid rgba(0, 119, 245, 0.18);
  border-radius: 20px;
  padding: 22px 20px;
  margin: 22px 0;
  box-shadow: 0 10px 30px rgba(0, 119, 245, 0.08);
  text-align: left;
}

.treat-pathway-block h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 16px 0;
  text-align: left;
}

.pathway-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.pathway-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 119, 245, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.pathway-step:hover {
  border-color: #0077f5;
  transform: translateX(3px);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 119, 245, 0.35);
}

.step-content {
  text-align: left;
  flex-grow: 1;
}

.step-content h5 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 3px 0;
  text-align: left;
}

.step-content p {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
  text-align: left;
}

/* Step Flow Strip (Return-to-Sport / Approach) */
.step-flow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 14px 0;
  text-align: left;
}

.flow-step-pill {
  background: #ffffff;
  color: #0b1f3a;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(0, 119, 245, 0.2);
  box-shadow: 0 2px 8px rgba(0, 119, 245, 0.08);
}

.flow-step-pill.highlight {
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff;
  border-color: #0077f5;
  box-shadow: 0 4px 14px rgba(0, 119, 245, 0.35);
}

.flow-arrow {
  color: #0077f5;
  font-weight: 800;
  font-size: 1rem;
}

/* Motto Banner */
.treat-motto {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #0077f5;
  background: rgba(0, 119, 245, 0.08);
  border: 1.5px dashed rgba(0, 119, 245, 0.3);
  padding: 12px 20px;
  border-radius: 30px;
  margin: 22px 0 16px;
  letter-spacing: 0.3px;
}

/* Bottom CTA in Modal */
.treat-modal-cta {
  margin-top: 14px;
  text-align: center;
}

.treat-modal-cta .booking-submit-btn {
  width: 100%;
  max-width: 100%;
  padding: 16px 28px;
  border-radius: 16px;
  font-size: 1.02rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  box-shadow: 0 10px 25px rgba(0, 119, 245, 0.35);
}



/* ==========================================================================
   FLOATING WHATSAPP 2-OPTION WIDGET
   ========================================================================== */
.floating-wa-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .floating-wa-widget {
    bottom: 22px;
    right: 18px;
  }
}

.floating-wa-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  animation: pulseWhatsApp 2.4s infinite;
  -webkit-tap-highlight-color: transparent;
}

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

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

@media (max-width: 768px) {
  .floating-wa-btn {
    width: 54px;
    height: 54px;
  }
}

/* Floating Direct Call Button (Positioned directly above WhatsApp on the right) */
.floating-call-btn {
  position: fixed;
  bottom: 98px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077f5 0%, #0056b3 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 119, 245, 0.45);
  z-index: 99998;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.25);
  animation: pulseCallBtn 2.4s infinite;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-tap-highlight-color: transparent;
}

.floating-call-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 119, 245, 0.6);
}

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

@media (max-width: 768px) {
  .floating-call-btn {
    bottom: 86px;
    right: 18px;
    left: auto;
    width: 54px;
    height: 54px;
  }
}

@keyframes pulseCallBtn {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 119, 245, 0.5), 0 8px 25px rgba(0, 119, 245, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0, 119, 245, 0), 0 8px 25px rgba(0, 119, 245, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 119, 245, 0), 0 8px 25px rgba(0, 119, 245, 0.4);
  }
}

.floating-wa-menu {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 310px;
  max-width: calc(100vw - 36px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: waMenuSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  color: #0b1f3a;
  z-index: 100000;
}

.floating-wa-menu.active,
.floating-wa-menu.is-open {
  display: flex !important;
}

@keyframes waMenuSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.floating-wa-menu-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.wa-header-dot {
  width: 10px;
  height: 10px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  flex-shrink: 0;
}

.floating-wa-menu-header h4 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0;
  line-height: 1.2;
}

.floating-wa-menu-header p {
  font-size: 0.76rem;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.2;
}

.wa-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-menu-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  text-decoration: none;
  color: #0b1f3a;
  transition: all 0.22s ease;
  cursor: pointer;
}

.wa-menu-option:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.18);
}

.wa-option-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-option-icon.hv {
  background: rgba(0, 119, 245, 0.12);
  color: #0077f5;
}

.wa-option-icon.clinic {
  background: rgba(37, 211, 102, 0.15);
  color: #16a34a;
}

.wa-menu-text {
  flex: 1;
}

.wa-menu-text h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b1f3a;
  margin: 0 0 2px;
}

.wa-menu-text p {
  font-size: 0.74rem;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

/* ==========================================================================
   HOME VISIT BOOKING MODAL
   ========================================================================== */
.homevisit-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.homevisit-modal-overlay.is-active {
  display: flex;
}

.homevisit-modal-dialog {
  background: #ffffff;
  border-radius: 26px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.homevisit-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.homevisit-modal-header {
  margin-bottom: 22px;
}

.homevisit-badge {
  background: rgba(0, 119, 245, 0.12);
  color: #0077f5;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 12px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 8px;
}

.homevisit-modal-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: #0b1f3a;
  margin-bottom: 6px;
}

.homevisit-modal-sub {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   RESULTS CLINICAL PHOTO GALLERY MODAL
   ========================================================================== */
.gallery-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 10, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gallery-modal-overlay.is-active {
  display: flex;
}

.gallery-modal-dialog {
  background: #061730;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  position: relative;
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gallery-modal-close:hover {
  background: #0077f5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.gallery-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 119, 245, 0.5);
  box-shadow: 0 12px 30px rgba(0, 119, 245, 0.25);
}

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

.gallery-card-info {
  padding: 14px 16px;
}

.gallery-card-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.gallery-card-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* Doctor Name (PT) Blue Badge Tag */
.doc-pt-blue {
  color: #0077f5 !important;
  font-weight: 700;
  margin-left: 5px;
  display: inline-block;
}

/* ==========================================================================
   CLINICAL VIDEO REHABILITATION SECTION (3D SHUFFLE COVERFLOW CAROUSEL)
   ========================================================================== */
.videos-coverflow-wrapper {
  position: relative;
  margin-top: 30px;
  padding: 10px 0 30px;
  width: 100%;
}

.video-coverflow-stage {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  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.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;
  width: 100%;
}

.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);
}

/* Responsive Overrides for Mobile (<768px) */
@media (max-width: 768px) {
  .video-coverflow-stage {
    height: 510px;
    perspective: 800px;
  }
  .video-card {
    width: 290px;
    border-radius: 20px;
  }
  .video-card.orientation-horizontal {
    width: 310px;
  }
  .video-card.orientation-vertical .video-media-wrapper {
    max-height: 310px;
  }
  .video-card.orientation-horizontal .video-media-wrapper {
    max-height: 190px;
  }
  .video-card.is-prev {
    transform: translateX(-56%) scale(0.82) translateZ(-50px) rotateY(14deg);
    opacity: 0.45;
    filter: blur(3px);
  }
  .video-card.is-next {
    transform: translateX(56%) scale(0.82) translateZ(-50px) rotateY(-14deg);
    opacity: 0.45;
    filter: blur(3px);
  }
  .video-card-treatment-info {
    padding: 12px 16px 16px;
    gap: 4px;
  }
  .video-case-title {
    font-size: 0.94rem;
  }
  .video-treatment-name {
    font-size: 0.78rem;
  }
  .video-case-details {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  .video-modal-dialog {
    max-width: 95vw;
    border-radius: 18px;
  }
  .video-modal-header,
  .video-modal-footer {
    padding: 12px 16px;
  }
}

/* ==========================================================================
   HERO SPECIALIZED CLINICAL FEATURE CARDS (Reference Design)
   ========================================================================== */
.hero-feature-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 36px;
  position: relative;
  z-index: 8;
}

.hero-feature-card {
  position: relative;
  background: linear-gradient(135deg, rgba(8, 28, 62, 0.92) 0%, rgba(4, 15, 36, 0.96) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  text-decoration: none;
  min-height: 88px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.75), 0 0 28px rgba(0, 119, 245, 0.45);
  background: linear-gradient(135deg, rgba(12, 42, 90, 0.96) 0%, rgba(6, 22, 52, 0.98) 100%);
}

.hero-feature-card:active {
  transform: scale(0.97);
}

.hero-feature-text {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.2px;
  z-index: 2;
  flex: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-feature-img-wrap {
  position: relative;
  width: 95px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030d1d;
}

.hero-feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: contrast(1.05) saturate(1.1);
}

.hero-feature-card:hover .hero-feature-img-wrap img {
  transform: scale(1.12);
}

.hero-feature-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 15, 36, 0.8) 0%, rgba(4, 15, 36, 0.1) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
  .hero-feature-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .hero-feature-cards-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 6px;
  }
  .hero-feature-card {
    padding: 10px 10px 10px 12px;
    border-radius: 14px;
    min-height: 66px;
    gap: 6px;
  }
  .hero-feature-text {
    font-size: 0.76rem;
    line-height: 1.2;
    font-weight: 800;
  }
  .hero-feature-img-wrap {
    width: 54px;
    height: 48px;
    border-radius: 8px;
  }
}

@media (max-width: 380px) {
  .hero-feature-card {
    padding: 8px 8px 8px 10px;
    min-height: 60px;
  }
  .hero-feature-text {
    font-size: 0.7rem;
  }
  .hero-feature-img-wrap {
    width: 44px;
    height: 40px;
  }
}




/* Video Top Actions & In-Card Playback Controls */
.video-top-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.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;
}
