@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500&display=swap');

*,*::before,*::after{box-sizing:border-box}
body{margin:0;padding:0;font-family:'Inter',sans-serif}

.case-study-detail-page {
   min-height: 100vh;
    background: linear-gradient(135deg, #ecdfd7 0%, #FAF9F7 50%, #d4c4b8 100%);
    padding-bottom: 140px;  /* ← ADD THIS LINE */
}
/* Hero Image Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

/* Glassmorphism Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 40px 20px 30px;
}

.hero-patient-name {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-patient-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-condition-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hero-condition-tag {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-button-hero {
    position: absolute;
    top: 52px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-button-hero:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateX(-4px);
}

/* Hero Section - Video Variant */
.hero-section-video {
    position: relative;
    width: 100%;
    height: auto;
    background: #1a1a1a;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

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

.back-button-video {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}

/* Patient Info Below Video */
.hero-info-below {
    background: linear-gradient(135deg, rgba(107, 141, 115, 0.12) 0%, rgba(49, 69, 40, 0.08) 100%);
    padding: 14px 16px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(107, 141, 115, 0.15);
}

.hero-patient-name-below {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #314528;
    margin-bottom: 4px;
}

.hero-patient-info-below {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6B8D73;
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-condition-tags-below {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.hero-condition-tag-below {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(107, 141, 115, 0.15) 0%, rgba(107, 141, 115, 0.1) 100%);
    color: #314528;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(107, 141, 115, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Hero Section - Privacy/Blurred Variant */
.hero-image-blurred {
    filter: blur(25px) brightness(0.6);
    transform: scale(1.15);
}

.hero-privacy-overlay {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hero-privacy-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.hero-privacy-text {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Transformation Box */
.transformation-box {
    background: linear-gradient(135deg, rgba(107, 141, 115, 0.15) 0%, rgba(107, 141, 115, 0.08) 100%);
    padding: 30px 20px;
    margin: 0;
}

.transformation-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #314528;
    text-align: center;
    margin-bottom: 20px;
}

.stats-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: nowrap;
}

.stat-box {
    background: white;
    padding: 50px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 200px;
    min-height: 200px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 700;
    color: #314528;
    margin-bottom: 24px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #6B8D73;
    font-weight: 600;
    line-height: 1.5;
}

/* Patient Snapshot */
.snapshot-box {
    background: white;
    padding: 30px 20px;
    margin: 0;
}

.snapshot-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #314528;
    margin-bottom: 20px;
    text-align: center;
}

.snapshot-content {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(236, 223, 215, 0.2) 0%, rgba(236, 223, 215, 0.1) 100%);
    border: 1px solid rgba(236, 223, 215, 0.4);
    border-radius: 16px;
    padding: 24px;
}

.snapshot-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(236, 223, 215, 0.3);
    font-size: 15px;
    align-items: start;
}

.snapshot-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.snapshot-item:first-child {
    padding-top: 0;
}

.snapshot-label {
    font-weight: 700;
    color: #314528;
}

.snapshot-value {
    color: #555;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(201, 166, 107, 0.15) 0%, rgba(201, 166, 107, 0.08) 100%);
    padding: 40px 20px;
    text-align: center;
}

.cta-button {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(107, 141, 115, 1) 0%, rgba(88, 115, 94, 1) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(107, 141, 115, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(107, 141, 115, 0.4);
}

.cta-subtitle {
    font-size: 18px;
    color: #314528;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 12px;
}

.cta-phone {
    font-size: 16px;
    color: #6B8D73;
    font-weight: 500;
}

.cta-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 13px 24px;
    background: rgba(37,211,102,.05);
    color: #1aab52;
    font-size: 13px;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(37,211,102,.3);
    text-decoration: none;
    letter-spacing: .03em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(37,211,102,.12), 0 0 28px rgba(37,211,102,.07), inset 0 1px 0 rgba(255,255,255,.4);
}

.cta-assist {
    margin-top: 10px;
    font-size: 13px;
    color: #9aab9e;
    font-weight: 400;
}

/* Content Sections */
.content-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: white;
}

.content-section.active {
    max-height: 5000px;
    padding: 40px 20px;
}

.content-wrapper {
    max-width: 700px;
    margin: 0 -10px;
    background: linear-gradient(135deg, rgba(250, 249, 247, 1) 0%, rgba(236, 223, 215, 0.3) 100%);
    padding: 20px;
    border-radius: 24px;
    border: 2px solid rgba(107, 141, 115, 0.15);
    box-shadow: 0 6px 24px rgba(107, 141, 115, 0.12);
}

.content-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: #314528;
    margin-bottom: 24px;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.content-subsection {
    margin-bottom: 30px;
}

.content-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #314528;
    margin-bottom: 12px;
}

.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.content-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6B8D73;
    font-weight: 700;
}
/* ==========================================
   GLASSMORPHIC PILL NAVIGATION
   Add this to your index.css in Bolt
   ========================================== */

/* LIQUID GLASS PILL CONTAINER */
.liquid-glass-pill {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 750px;
  
  /* Exact liquid glass effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(15px) saturate(180%) brightness(110%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2), 
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  
  border-radius: 60px;
  padding: 12px 20px;  /* ← REDUCED from 15px 25px */
  display: flex;
  align-items: center;
  justify-content: center;  /* ← CHANGED from space-around to center */
  gap: 15px;
  z-index: 9999;  /* ← INCREASED from 1000 to 9999 (higher than Bolt button) */
}
/* Diagonal shine overlay */
.liquid-glass-pill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 60px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}

/* NAVIGATION BUTTONS */
.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 22px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 10;
  animation: gentleFloat 3s ease-in-out infinite;
}

/* Stagger the animation for each button */
.nav-btn:nth-child(1) { animation-delay: 0s; }
.nav-btn:nth-child(2) { animation-delay: 0.2s; }
.nav-btn:nth-child(3) { animation-delay: 0.4s; }
.nav-btn:nth-child(4) { animation-delay: 0.6s; }
.nav-btn:nth-child(5) { animation-delay: 0.8s; }

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.05);
  animation: none;
}

/* ICON CIRCLES */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7ba77b 0%, #6b8e6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 
    0 4px 12px rgba(107, 142, 107, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Subtle pulse ring effect */
.icon-circle::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(107, 142, 107, 0.4);
  animation: subtlePulse 2s ease-in-out infinite;
  opacity: 0;
}

.nav-btn:nth-child(1) .icon-circle::before { animation-delay: 0s; }
.nav-btn:nth-child(2) .icon-circle::before { animation-delay: 0.4s; }
.nav-btn:nth-child(3) .icon-circle::before { animation-delay: 0.8s; }
.nav-btn:nth-child(4) .icon-circle::before { animation-delay: 1.2s; }
.nav-btn:nth-child(5) .icon-circle::before { animation-delay: 1.6s; }

.nav-btn:hover .icon-circle {
  background: linear-gradient(135deg, #8fb98f 0%, #7ba77b 100%);
  box-shadow: 
    0 6px 20px rgba(107, 142, 107, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.nav-btn:hover .icon-circle::before {
  animation: none;
}

/* LABELS */
.nav-label {
  color: rgba(61, 78, 61, 0.95);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 
    0 1px 2px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 10;
  animation: labelPulse 2s ease-in-out infinite;
}

.nav-btn:nth-child(1) .nav-label { animation-delay: 0s; }
.nav-btn:nth-child(2) .nav-label { animation-delay: 0.4s; }
.nav-btn:nth-child(3) .nav-label { animation-delay: 0.8s; }
.nav-btn:nth-child(4) .nav-label { animation-delay: 1.2s; }
.nav-btn:nth-child(5) .nav-label { animation-delay: 1.6s; }

.nav-btn:hover .nav-label {
  animation: none;
}

/* ANIMATIONS */

/* Gentle floating motion */
@keyframes gentleFloat {
  0%, 100% { 
    transform: translateY(0px);
  }
  50% { 
    transform: translateY(-4px);
  }
}

/* Subtle pulse ring expanding */
@keyframes subtlePulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Label subtle pulse */
@keyframes labelPulse {
  0%, 100% {
    opacity: 0.95;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* RESPONSIVE - Mobile */
@media (max-width: 768px) {
  .liquid-glass-pill {
    gap: 6px;
    padding: 10px 15px;  /* ← Reduced height */
    bottom:35px;
    width: 95%;
    z-index: 9999;  /* ← ADD THIS */
  }

  .icon-circle {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .nav-label {
    font-size: 9px;
  }
  
  .nav-btn {
    padding: 8px 6px;
  }
}
/* Active state for selected button */
.nav-btn.active .icon-circle {
  background: linear-gradient(135deg, #8fb98f 0%, #7ba77b 100%);
  box-shadow: 
    0 6px 20px rgba(107, 142, 107, 0.6),
    0 0 0 3px rgba(107, 142, 107, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  animation: none;
}

.nav-btn.active .icon-circle::before {
  display: none;
}

.nav-btn.active .nav-label {
  color: rgba(61, 78, 61, 1);
  font-weight: 800;
  animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 320px;
    }

    .hero-patient-name {
        font-size: 36px;
    }

    .hero-patient-info {
        font-size: 15px;
    }

   .hero-overlay {
        padding: 30px 20px 25px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(1.5px);
        -webkit-backdrop-filter: blur(1.5px);
    }

    .hero-patient-name-below {
        font-size: 26px;
    }

    .hero-patient-info-below {
        font-size: 13px;
    }

    .hero-info-below {
        padding: 20px 16px 16px;
    }

    .case-play-icon {
        width: 40px;
        height: 40px;
    }

    .hero-privacy-badge {
        padding: 6px 14px;
    }

    .hero-privacy-text {
        font-size: 11px;
    }

    .transformation-box {
        padding: 20px 12px;
    }

    .transformation-title {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-box {
        padding: 16px 10px;
        min-height: 100px;
        max-width: 120px;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 10px;
    }

    .snapshot-content {
        padding: 16px;
    }

    .snapshot-item {
        grid-template-columns: 120px 1fr;
        gap: 12px;
        font-size: 13px;
    }

    .content-title {
        font-size: 26px;
    }
  .case-study-detail-page {
        padding-bottom: 120px;
    }
}
/* Add keyframe animation */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.content-section.active {
    max-height: 5000px;
    padding: 20px 20px 40px 20px;
    animation: fadeSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

html {
    scroll-padding-top: 100px;
}

.content-section {
    scroll-margin-top: 100px;
}
/* Content Separator */
.content-separator {
    background: white;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.separator-line {
    width: 80%;
    max-width: 600px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(107, 141, 115, 0.3) 20%, 
        rgba(107, 141, 115, 0.8) 50%, 
        rgba(107, 141, 115, 0.3) 80%, 
        transparent 100%);
    border-radius: 2px;
}
#contentAnchor {
  scroll-margin-top: 0;
}

html {
  scroll-padding-top: 0;
}
/* ============================================
   TODAY'S TASKS BUTTON STYLES
   ============================================ */

.today-tasks-button {
  max-width: 800px;  /* ← Bigger */
  margin: 15px auto 30px auto;  /* ← Less space from video */
  background: linear-gradient(135deg,
    rgba(107, 141, 115, 0.25) 0%,
    rgba(49, 69, 40, 0.2) 100%);
  backdrop-filter: blur(40px) saturate(180%) brightness(105%);
  border-radius: 20px;
  padding: 34px 40px;  /* ← More padding inside */
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px rgba(49, 69, 40, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: subtleGlow 4s ease-in-out infinite;
}

.today-tasks-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6B8D73 0%, #314528 50%, #6B8D73 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  border-radius: 20px 20px 0 0;
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}

@keyframes subtleGlow {
  0%, 100% { 
    box-shadow: 
      0 8px 32px rgba(49, 69, 40, 0.15),
      0 0 0px rgba(107, 141, 115, 0),
      inset 0 2px 4px rgba(255, 255, 255, 0.3);
  }
  50% { 
    box-shadow: 
      0 10px 36px rgba(49, 69, 40, 0.5),
      0 0 60px rgba(107, 141, 115, 0.8),  /* SUPER OBVIOUS */
      inset 0 2px 4px rgba(255, 255, 255, 0.5);
  }
}

.today-tasks-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 40px rgba(49, 69, 40, 0.2),
    0 0 40px rgba(107, 141, 115, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  animation: none;
}

.today-tasks-button:focus {
  outline: 3px solid rgba(107, 141, 115, 0.5);
  outline-offset: 4px;
}

.tasks-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tasks-left-side {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tasks-day-badge {
  background: linear-gradient(135deg, #314528 0%, #6B8D73 100%);
  color: white;
  padding: 7px 18px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(49, 69, 40, 0.3);
  flex-shrink: 0;
}

.tasks-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #314528;
  line-height: 1;
}

.tasks-arrow {
  font-size: 32px;
  color: #314528;
  line-height: 1;
  animation: bounce 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

.today-tasks-button:hover .tasks-arrow {
  animation: bounceFast 0.6s ease-in-out infinite;
}

@keyframes bounceFast {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.tasks-progress {
  display: flex;
  gap: 12px;
  align-items: center;
}

.tasks-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(49, 69, 40, 0.3);
  transition: all 0.3s;
}

.tasks-dot.active {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #314528 0%, #6B8D73 100%);
  box-shadow: 0 2px 8px rgba(49, 69, 40, 0.4);
}

.tasks-progress-text {
  font-size: 12px;
  color: #6B8D73;
  font-weight: 600;
  margin-left: 10px;
}

.tasks-progress-text .full {
  display: inline;
}

.tasks-progress-text .short {
  display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .today-tasks-button {
    padding: 24px 28px;
    margin: 20px auto 25px auto;
  }

  .tasks-main-row {
    margin-bottom: 18px;
  }

  .tasks-left-side {
    gap: 12px;
  }

  .tasks-title {
    font-size: 22px;
  }

  .tasks-day-badge {
    font-size: 11px;
    padding: 6px 14px;
  }

  .tasks-arrow {
    font-size: 28px;
  }

  .tasks-dot {
    width: 8px;
    height: 8px;
  }

  .tasks-dot.active {
    width: 12px;
    height: 12px;
  }

  .tasks-progress {
    gap: 10px;
  }

  .tasks-progress-text {
    font-size: 11px;
    margin-left: 8px;
  }

  .tasks-progress-text .full {
    display: none;
  }

  .tasks-progress-text .short {
    display: inline;
  }
}

@media (max-width: 400px) {
  .today-tasks-button {
    padding: 20px 24px;
  }

  .tasks-left-side {
    gap: 10px;
  }

  .tasks-title {
    font-size: 20px;
  }

  .tasks-day-badge {
    font-size: 10px;
    padding: 5px 12px;
  }

  .tasks-arrow {
    font-size: 24px;
  }

  .tasks-progress {
    gap: 8px;
  }

  .tasks-progress-text {
    font-size: 11px;
    margin-left: 6px;
  }

  .tasks-dot {
    width: 7px;
    height: 7px;
  }

  .tasks-dot.active {
    width: 10px;
    height: 10px;
  }
}

/* ============================================
   END TODAY'S TASKS BUTTON STYLES
   ============================================ */
.logo-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 0 0;
  background: transparent;
}

.logo-image {
  max-width: 250px;
  height: auto;
}

/* =============================================
   STORIES LISTING PAGE — CASE CARD GRID
   ============================================= */
.case-studies-grid {
  padding: 12px 16px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 16px 24px 48px;
  }
}

@media (min-width: 1024px) {
  .case-studies-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 20px 32px 60px;
  }
}

.case-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(184,146,74,.18);
  border-left: 4px solid #314528;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(49,69,40,.07);
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.case-card:nth-child(even) {
  border-left-color: #6B8D73;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 12px 32px rgba(49,69,40,.14);
}

.case-card:active {
  transform: scale(.98);
}

.case-image-container {
  position: relative;
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .case-image-container { height: 180px; }
}

@media (min-width: 1024px) {
  .case-image-container { height: 200px; }
}

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

.case-image-blurred {
  filter: blur(20px) brightness(0.7);
  transform: scale(1.1);
}

.case-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  transition: background .3s ease;
}

.case-card:hover .case-video-overlay {
  background: rgba(0,0,0,.4);
}

.case-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(107,141,115,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,.4);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: all .3s ease;
}

.case-card:hover .case-play-icon {
  transform: scale(1.1);
  background: rgba(107,141,115,.95);
}

.case-privacy-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(49,69,40,.3);
}

.case-privacy-text {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.case-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: #314528;
  margin: 0 0 4px;
}

.case-age-condition {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #6B8D73;
  font-weight: 600;
  margin: 0 0 10px;
}

.case-description {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.case-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 600;
  background: rgba(107,141,115,.12);
  color: #314528;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(107,141,115,.2);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.case-cta {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #6B8D73;
  display: flex;
  align-items: center;
  gap: 5px;
}

.case-card:hover .case-cta {
  color: #314528;
}

/* ── DESKTOP 2-COLUMN LAYOUT (≥1024px) ── */
@media (min-width: 1024px) {

  /* Page container: side-by-side columns */
  .case-study-detail-page {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
    padding-bottom: 0;
  }

  /* LEFT COLUMN — sticky, contains video + info + stats + CTA */
  .detail-left {
    width: 44%;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(49,69,40,0.1);
  }
  .detail-left::-webkit-scrollbar { display: none; }

  /* Compress vertical spacing so everything fits */
  .detail-left .hero-video-wrapper { border-radius: 0; }
  .detail-left .hero-info-below {
    padding: 12px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }
  .detail-left .hero-info-below-text { display: flex; flex-direction: column; }
  .detail-left .hero-patient-name-below { font-size: 22px; margin-bottom: 2px; }
  .detail-left .hero-patient-info-below { font-size: 13px; margin-bottom: 0; }
  .detail-left .hero-condition-tags-below { justify-content: flex-end; flex-shrink: 0; flex-wrap: wrap; max-width: 40%; }
  .detail-left .transformation-box { padding: 16px 24px; margin: 0; border-radius: 0; }
  .detail-left .transformation-title { font-size: 12px; margin-bottom: 10px; }
  .detail-left .stats-grid { gap: 8px; }
  .detail-left .stat-box { padding: 16px 12px; min-height: unset; }
  .detail-left .stat-number { font-size: 22px; margin-bottom: 6px; }
  .detail-left .stat-label { font-size: 11px; }
  .detail-left .snapshot-box { padding: 14px 24px 20px; margin: 0; border-radius: 0; }
  .detail-left .snapshot-title { font-size: 12px; margin-bottom: 8px; }
  .detail-left .snapshot-item { padding: 6px 0; }
  .detail-left .snapshot-label { font-size: 13px; }
  .detail-left .snapshot-value { font-size: 13px; }
  .detail-left .cta-section { padding: 20px 24px 24px; margin: 0; border-radius: 0; margin-top: auto; border-top: 1px solid rgba(107,141,115,0.15); }

  /* RIGHT COLUMN — scrollable content */
  .detail-right {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 32px 40px 120px;
  }

  /* Hide decorative separator in 2-col view */
  .detail-right .content-separator { display: none; }

  /* Content section: remove white bg, add rounded corners, uniform padding */
  .detail-right .content-section { background: transparent; }
  .detail-right .content-section.active {
    max-width: none;
    padding: 0;
    background: transparent;
  }
  .detail-right .content-wrapper {
    border-radius: 16px;
    padding: 28px;
    margin: 0;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
  }

  /* PILL NAV — floating, centred within right column */
  .liquid-glass-pill {
    left: 44%;
    right: 0;
    bottom: 16px;
    transform: none;
    width: fit-content;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Related Q&A cross-link block (on story detail pages) */
.related-qa-block {
  margin: 20px 0 4px;
  padding: 16px 18px;
  background: rgba(107,141,115,.07);
  border-radius: 14px;
  border: 1px solid rgba(107,141,115,.18);
}
.related-qa-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6B8D73;
  margin: 0 0 10px;
}
.related-qa-link {
  display: block;
  font-size: 13px;
  color: #314528;
  text-decoration: none;
  padding: 6px 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(107,141,115,.15);
}
.related-qa-link:last-child { border-bottom: none; }
.related-qa-link:hover { color: #6B8D73; }
