/* ==========================================================================
   PhysioCare - Components Stylesheet
   Modern, Component-Based CSS Architecture for Healthcare Startup
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero Section (Home)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 5rem 0 6rem 0;
  /* Very Mild, Soothing Pastel Light Green Gradient */
  background: linear-gradient(135deg, #f0fdf4 0%, #edf9f2 40%, #e1f7ec 100%);
  overflow: hidden;
}

/* Full-Size Background Image - Romba Mild & Lite */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/img/hero_bg.jpg'), url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.25; /* Romba mild, subtle lite texture */
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Romba Mild Light Green Soft Gradient Overlay */
.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg, 
    rgba(240, 253, 244, 0.70) 0%,   /* Ultra Mild Whisper Green: #f0fdf4 */
    rgba(236, 253, 245, 0.60) 45%,  /* Soft Pastel Mint: #ecfdf5 */
    rgba(225, 247, 236, 0.70) 100%  /* Gentle Light Green: #e1f7ec */
  );
  pointer-events: none;
  z-index: 2;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%); /* Mild Mint glow */
  pointer-events: none;
  z-index: 2;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -50px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.10) 0%, transparent 70%); /* Soft Pastel Green glow */
  pointer-events: none;
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3; /* Content background mela crisp ah show aagum */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--secondary);
  border-radius: 50%;
  position: relative;
}

.hero-badge .pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: rgba(23, 184, 144, 0.4);
  animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary-900);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title span.highlight-teal {
  color: var(--secondary);
  position: relative;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

/* Trust Indicators / Social Proof in Hero */
.hero-proof {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(5, 150, 105, 0.12);
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.1;
}

.proof-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-avatars {
  display: flex;
  align-items: center;
}

.proof-avatar-stack {
  display: flex;
  margin-right: 0.75rem;
}

.proof-avatar-stack img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  margin-left: -10px;
  object-fit: cover;
}

.proof-avatar-stack img:first-child {
  margin-left: 0;
}

/* Hero Media Visuals & Floating Cards */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 54, 68, 0.15);
  background-color: #ffffff;
  border: 6px solid #ffffff;
}

.hero-image-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

/* Floating Card 1: Patient Satisfaction */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 1rem 1.35rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(11, 54, 68, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  z-index: 10;
  animation: floatBounce 4s ease-in-out infinite alternate;
}

.floating-card-left {
  top: 12%;
  left: -25px;
  animation-delay: 0s;
}

.floating-card-right {
  bottom: 14%;
  right: -25px;
  animation-delay: 2s;
}

@keyframes floatBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-icon.icon-green {
  background-color: var(--secondary-50);
  color: var(--secondary);
}

.floating-icon.icon-teal {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.floating-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-900);
  line-height: 1.2;
}

.floating-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   2. Stats Section
   -------------------------------------------------------------------------- */
.stats-section {
  background-color: var(--surface);
  position: relative;
  margin-top: -2.5rem;
  z-index: 20;
}

.stats-card-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  box-shadow: 0 16px 40px rgba(15, 41, 66, 0.06);
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--border-subtle);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  border: 1px solid var(--primary-100);
}

.stat-number {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1.1;
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Service Cards
   -------------------------------------------------------------------------- */
.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-700), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 54, 68, 0.11);
  border-color: rgba(23, 184, 144, 0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-card-icon {
  background: var(--secondary);
  color: #ffffff;
  transform: scale(1.06);
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.85rem;
}

.service-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

.service-dept-badge {
  display: inline-block;
  background: rgba(5, 150, 105, 0.10);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.service-dept-badge.ortho-badge { background: rgba(14, 116, 144, 0.10); color: #0e7490; border-color: rgba(14, 116, 144, 0.25); }
.service-dept-badge.neuro-badge { background: rgba(124, 58, 237, 0.10); color: #7c3aed; border-color: rgba(124, 58, 237, 0.25); }
.service-dept-badge.joint-badge { background: rgba(5, 150, 105, 0.10); color: #059669; border-color: rgba(5, 150, 105, 0.25); }
.service-dept-badge.sports-badge { background: rgba(234, 88, 12, 0.10); color: #ea580c; border-color: rgba(234, 88, 12, 0.25); }
.service-dept-badge.surgery-badge { background: rgba(37, 99, 235, 0.10); color: #2563eb; border-color: rgba(37, 99, 235, 0.25); }
.service-dept-badge.senior-badge { background: rgba(180, 83, 9, 0.10); color: #b45309; border-color: rgba(180, 83, 9, 0.25); }
.service-dept-badge.pediatric-badge { background: rgba(219, 39, 119, 0.10); color: #db2777; border-color: rgba(219, 39, 119, 0.25); }
.service-dept-badge.posture-badge { background: rgba(13, 148, 136, 0.10); color: #0d9488; border-color: rgba(13, 148, 136, 0.25); }
.service-dept-badge.electro-badge { background: rgba(79, 70, 229, 0.10); color: #4f46e5; border-color: rgba(79, 70, 229, 0.25); }
.service-dept-badge.manual-badge { background: rgba(202, 138, 4, 0.10); color: #a16207; border-color: rgba(202, 138, 4, 0.25); }
.service-dept-badge.pulmonary-badge { background: rgba(2, 132, 199, 0.10); color: #0284c7; border-color: rgba(2, 132, 199, 0.25); }
.service-dept-badge.women-badge { background: rgba(225, 29, 72, 0.10); color: #e11d48; border-color: rgba(225, 29, 72, 0.25); }

.service-doctor-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.service-doctor-pill.ortho {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.service-doctor-pill.ortho:hover {
  background: #dcfce7;
  transform: translateY(-1px);
}

.service-doctor-pill.neuro {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid rgba(109, 40, 217, 0.25);
}

.service-doctor-pill.neuro:hover {
  background: #ede9fe;
  transform: translateY(-1px);
}

.service-conditions-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.service-conditions-list li {
  font-size: 0.84rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.service-conditions-list li i {
  color: #10b981;
  font-size: 0.75rem;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(15, 76, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.90rem;
  color: var(--primary-700);
  transition: all var(--transition-fast);
}

.service-card-link i {
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-link {
  color: var(--secondary);
}

.service-card:hover .service-card-link i {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   4. Why Choose Us / Two Column Collage
   -------------------------------------------------------------------------- */
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-us-images {
  position: relative;
}

.why-us-main-img {
  width: 88%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 480px;
}

.why-us-secondary-img {
  position: absolute;
  bottom: -30px;
  right: 0;
  width: 50%;
  border-radius: var(--radius-lg);
  border: 6px solid #ffffff;
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  height: 260px;
}

.experience-badge {
  position: absolute;
  top: 30px;
  left: -20px;
  background: var(--primary-700);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(15, 76, 92, 0.3);
  text-align: center;
}

.experience-badge .exp-years {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--secondary-light);
}

.experience-badge .exp-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 2.25rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--secondary-50);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feature-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   5. 4-Step Treatment Process Timeline
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 2rem;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--secondary) 0, var(--secondary) 8px, transparent 8px, transparent 16px);
  z-index: 1;
}

.process-step {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all var(--transition-normal);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

.process-number {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--secondary);
  color: var(--primary-900);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 4px 14px rgba(23, 184, 144, 0.25);
}

.process-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.process-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   6. Doctor Cards
   -------------------------------------------------------------------------- */
.doctor-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 41, 66, 0.08);
  border-color: rgba(23, 184, 144, 0.35);
}

.doctor-image-wrap {
  position: relative;
  height: 440px;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.doctor-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform var(--transition-smooth);
}

@media (max-width: 768px) {
  .doctor-image-wrap {
    height: 380px;
  }
}

.doctor-card:hover .doctor-image-wrap img {
  transform: scale(1.05);
}

.doctor-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(7, 37, 47, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
}

.doctor-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.25rem;
}

.doctor-name a:hover {
  color: var(--secondary);
}

.doctor-specialty {
  font-size: 0.88rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.doctor-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.doctor-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.doctor-meta i {
  color: var(--accent-warm);
}

.doctor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.doctor-social-mini {
  display: flex;
  gap: 0.5rem;
}

.doctor-social-mini a {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.doctor-social-mini a:hover {
  background: var(--secondary);
  color: #ffffff;
}

/* Category Filter Tabs (Doctors & Blog) */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  background-color: #ffffff;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--primary-700);
  color: var(--primary-700);
}

.filter-btn.active {
  background-color: var(--primary-700);
  color: #ffffff;
  border-color: var(--primary-700);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* --------------------------------------------------------------------------
   7. Appointment Full-Width CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #059669 0%, #047857 60%, #10b981 120%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.28);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 184, 144, 0.2) 0%, transparent 70%);
}

.cta-banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta-banner-text {
  max-width: 650px;
}

.cta-banner-title {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 1rem;
}

.cta-banner-desc {
  color: var(--text-inverse-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-banner-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   8. Testimonials & Slider
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.testimonial-quote-icon {
  font-size: 2.25rem;
  color: var(--primary-100);
  margin-bottom: 1rem;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  color: var(--accent-warm);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 2rem;
  flex-grow: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-900);
}

.author-injury {
  font-size: 0.82rem;
  color: var(--secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   9. Pricing Cards (in INR ₹)
   -------------------------------------------------------------------------- */
.pricing-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(15, 41, 66, 0.08);
}

.pricing-card.popular {
  border: 2px solid var(--secondary);
  box-shadow: 0 16px 40px rgba(23, 184, 144, 0.18);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--secondary), var(--primary-700));
  color: #ffffff;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 12px rgba(23, 184, 144, 0.35);
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.currency-symbol {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-900);
}

.price-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1;
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 2.25rem;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-main);
}

.pricing-feature i {
  color: var(--secondary);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pricing-feature.disabled {
  color: var(--text-light);
  text-decoration: line-through;
}

.pricing-feature.disabled i {
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   10. Blog Cards
   -------------------------------------------------------------------------- */
.blog-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 54, 68, 0.1);
  border-color: rgba(23, 184, 144, 0.3);
}

.blog-image-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.blog-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-image-wrap img {
  transform: scale(1.05);
}

.blog-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--secondary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
}

.blog-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-title a:hover {
  color: var(--secondary);
}

.blog-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   11. FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(11, 54, 68, 0.06);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-900);
  text-align: left;
  cursor: pointer;
  background: none;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--secondary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
  max-height: 400px;
}

/* --------------------------------------------------------------------------
   12. Appointment Booking Wizard & Form Elements
   -------------------------------------------------------------------------- */
.booking-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.booking-form-box {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.booking-sidebar {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(23, 184, 144, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Time Slot Picker Buttons */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.slot-btn {
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.slot-btn:hover {
  border-color: var(--primary-700);
}

.slot-btn.selected {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   13. Modals & Notifications
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 37, 47, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.92);
  transition: transform var(--transition-smooth);
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-icon-success {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary-50);
  color: var(--secondary);
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 24px rgba(23, 184, 144, 0.25);
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.modal-ref-box {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.modal-ref-box strong {
  color: var(--primary-900);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-900);
  color: #ffffff;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2500;
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --------------------------------------------------------------------------
   14. Responsive Component Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-proof {
    justify-content: center;
  }
  .stats-card-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }
  .stat-box:nth-child(2)::after {
    display: none;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid::before {
    display: none;
  }
  .cta-banner-content {
    flex-direction: column;
    text-align: center;
  }
  .booking-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stats-card-container {
    grid-template-columns: 1fr;
  }
  .stat-box::after {
    display: none !important;
  }
  .floating-card {
    display: none; /* Hide floating cards on small mobile to prevent overlap */
  }
  .hero-image-wrapper {
    height: 380px;
  }
  .hero-image-wrapper img {
    height: 100%;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-form-box {
    padding: 1.75rem;
  }
  .cta-banner {
  background: linear-gradient(135deg, #059669 0%, #047857 60%, #10b981 120%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(5, 150, 105, 0.28);
}
  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-banner-actions .btn {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   14. Scroll Progress Indicator Bar
   -------------------------------------------------------------------------- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary) 0%, #38ef7d 50%, #059669 100%);
  z-index: 100000;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(23, 184, 144, 0.8), 0 0 20px rgba(16, 185, 129, 0.4);
  transition: width 0.05s ease-out;
}

/* --------------------------------------------------------------------------
   15. Custom Animated Cursor (Sifoxen Inspiration)
   -------------------------------------------------------------------------- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--secondary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.06s ease-out;
  will-change: transform;
}

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(23, 184, 144, 0.75);
  background-color: rgba(23, 184, 144, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  transition: width 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.26s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.2s ease,
              opacity 0.2s ease;
  will-change: transform, width, height;
}

/* Hover state on clickable links and buttons */
.custom-cursor-follower.cursor-hover {
  width: 62px;
  height: 62px;
  background-color: rgba(15, 76, 92, 0.7);
  border-color: var(--secondary);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 25px rgba(23, 184, 144, 0.35);
}

.custom-cursor-dot.cursor-hover {
  opacity: 0;
}

/* Hover state on large cards */
.custom-cursor-follower.cursor-card-hover {
  width: 76px;
  height: 76px;
  background-color: rgba(15, 76, 92, 0.85);
  border-color: var(--secondary-light);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 30px rgba(23, 184, 144, 0.45);
}

.custom-cursor-follower.cursor-active {
  transform: translate(-50%, -50%) scale(0.8);
  background-color: rgba(23, 184, 144, 0.85);
  border-color: #ffffff;
}

/* Click ripple shockwave */
.cursor-click-ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid var(--secondary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999997;
  transform: translate(-50%, -50%) scale(1);
  animation: cursorRippleExpand 0.5s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes cursorRippleExpand {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.95;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.6);
    opacity: 0;
  }
}

/* Hide custom cursor on mobile/touch screens */
@media (pointer: coarse), (max-width: 992px) {
  .custom-cursor-dot,
  .custom-cursor-follower,
  .cursor-click-ripple {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   16. Infinite Scrolling Marquee Tickers (Sifoxen Inspiration)
   -------------------------------------------------------------------------- */
.marquee-section {
  position: relative;
  overflow: hidden;
  background: var(--primary-900);
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.marquee-section.marquee-accent {
  background: linear-gradient(90deg, #081a2e 0%, #0c2d48 50%, #081a2e 100%);
  padding: 1.75rem 0;
  border-top: 1px solid #059669;
  border-bottom: 1px solid #059669;
}

.marquee-section.marquee-aqua {
  background: linear-gradient(90deg, #059669 0%, #10b981 50%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.35);
}

.marquee-section.marquee-aqua .marquee-item {
  color: #ffffff;
}

.marquee-section.marquee-aqua .marquee-star {
  color: #a7f3d0;
}

.marquee-section.marquee-tilted {
  transform: rotate(-1.5deg) scale(1.03);
  margin: 2rem 0;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.marquee-track {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease;
}

.marquee-item:hover {
  color: var(--secondary-light);
  transform: scale(1.05);
}

/* Outlined hollow font variation inspired by modern creative healthcare sites */
.marquee-item.outline-text {
  color: transparent !important;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.75);
}

.marquee-section.marquee-aqua .marquee-item.outline-text {
  -webkit-text-stroke: 1.8px var(--primary-900);
}

.marquee-item.outline-text:hover {
  color: var(--secondary-light) !important;
  -webkit-text-stroke: 1.5px var(--secondary-light);
}

.marquee-star {
  color: var(--secondary);
  font-size: 1.15rem;
  display: inline-block;
  animation: starRotate 7s linear infinite;
}

@keyframes starRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Fallback CSS animation in case JS is disabled */
.no-js .marquee-track {
  animation: marqueeScroll 28s linear infinite;
}
.no-js .marquee-track.reverse {
  animation: marqueeScrollReverse 32s linear infinite;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   17. Slow Popup Entrance System for Photos and Words (Page Open & Scroll)
   "page open pannum podhu photos and words laa slow va popup aagura maathiri"
   -------------------------------------------------------------------------- */

/* Universal slow popup base (General Words & Elements) */
.slow-popup {
  opacity: 0;
  transform: translateY(32px) scale(0.92);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.slow-popup.revealed,
.slow-popup.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Specific slow popup for Photos & Visual Media (smooth gentle scale-up popup) */
.popup-photo,
.reveal-photo {
  opacity: 0;
  transform: translateY(30px) scale(0.86);
  transition: opacity 1.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.popup-photo.revealed,
.popup-photo.popped-up,
.reveal-photo.revealed,
.reveal-photo.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Specific slow popup for Words / Headings / Subtitles */
.popup-text,
.popup-word,
.reveal-text {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 1.05s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.05s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.popup-text.revealed,
.popup-text.popped-up,
.popup-word.revealed,
.popup-word.popped-up,
.reveal-text.revealed,
.reveal-text.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Cards & Containers Slow Popup */
.popup-card {
  opacity: 0;
  transform: translateY(36px) scale(0.92);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease;
  will-change: opacity, transform;
}

.popup-card.revealed,
.popup-card.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Enhanced scroll reveal classes with slow popup easing */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px) scale(0.94);
  transition: opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed,
.reveal-on-scroll.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px) translateY(18px) scale(0.93);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-left.revealed,
.reveal-left.popped-up {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) scale(1) !important;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px) translateY(18px) scale(0.93);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-right.revealed,
.reveal-right.popped-up {
  opacity: 1 !important;
  transform: translateX(0) translateY(0) scale(1) !important;
}

.reveal-scale {
  opacity: 0;
  transform: translateY(26px) scale(0.88);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-scale.revealed,
.reveal-scale.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity;
}

.reveal-fade.revealed,
.reveal-fade.popped-up {
  opacity: 1 !important;
}

/* Stagger Delay Classes */
.delay-100 { transition-delay: 0.10s !important; }
.delay-150 { transition-delay: 0.15s !important; }
.delay-200 { transition-delay: 0.20s !important; }
.delay-250 { transition-delay: 0.25s !important; }
.delay-300 { transition-delay: 0.30s !important; }
.delay-350 { transition-delay: 0.35s !important; }
.delay-400 { transition-delay: 0.40s !important; }
.delay-500 { transition-delay: 0.50s !important; }
.delay-600 { transition-delay: 0.60s !important; }
.delay-700 { transition-delay: 0.70s !important; }
.delay-800 { transition-delay: 0.80s !important; }
.delay-900 { transition-delay: 0.90s !important; }
.delay-1000 { transition-delay: 1.00s !important; }

.reveal-delay-1 { transition-delay: 0.12s !important; }
.reveal-delay-2 { transition-delay: 0.24s !important; }
.reveal-delay-3 { transition-delay: 0.36s !important; }
.reveal-delay-4 { transition-delay: 0.48s !important; }
.reveal-delay-5 { transition-delay: 0.60s !important; }
.reveal-delay-6 { transition-delay: 0.72s !important; }

/* --------------------------------------------------------------------------
   HERO SECTION PAGE-OPEN SLOW POPUP ORCHESTRATION
   -------------------------------------------------------------------------- */
.hero-content .hero-badge.slow-popup {
  opacity: 0;
  transform: translateY(22px) scale(0.90);
  transition: opacity 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s,
              transform 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s;
}

.hero-content .hero-title.slow-popup {
  opacity: 0;
  transform: translateY(32px) scale(0.93);
  transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.26s,
              transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.26s;
}

.hero-content .hero-subtitle.slow-popup {
  opacity: 0;
  transform: translateY(26px) scale(0.96);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s,
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s;
}

.hero-content .hero-cta-group.slow-popup {
  opacity: 0;
  transform: translateY(26px) scale(0.92);
  transition: opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.58s,
              transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.58s;
}

.hero-content .hero-proof.slow-popup {
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.72s,
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.72s;
}

.hero-content .hero-badge.revealed,
.hero-content .hero-title.revealed,
.hero-content .hero-subtitle.revealed,
.hero-content .hero-cta-group.revealed,
.hero-content .hero-proof.revealed,
.hero-content .hero-badge.popped-up,
.hero-content .hero-title.popped-up,
.hero-content .hero-subtitle.popped-up,
.hero-content .hero-cta-group.popped-up,
.hero-content .hero-proof.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Hero Main Photo Slow Popup */
.hero-visual.popup-photo,
.hero-visual .hero-image-wrapper.popup-photo {
  opacity: 0;
  transform: translateY(35px) scale(0.85);
  transition: opacity 1.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.32s,
              transform 1.35s cubic-bezier(0.2, 0.8, 0.2, 1) 0.32s;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.08);
}

.hero-visual.revealed,
.hero-visual.popped-up,
.hero-visual .hero-image-wrapper.revealed,
.hero-visual .hero-image-wrapper.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  box-shadow: 0 25px 50px rgba(5, 150, 105, 0.16);
}

/* Hero Floating Badges Slow Popup */
.hero-visual .floating-card-left.slow-popup {
  opacity: 0;
  transform: translate(-15px, 25px) scale(0.84);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.65s,
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.65s;
}

.hero-visual .floating-card-right.slow-popup {
  opacity: 0;
  transform: translate(15px, 25px) scale(0.84);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.82s,
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.82s;
}

.hero-visual .floating-card-left.revealed,
.hero-visual .floating-card-left.popped-up {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

.hero-visual .floating-card-right.revealed,
.hero-visual .floating-card-right.popped-up {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* Page Banner Subpage Headers Slow Popup */
.page-banner .banner-content.slow-popup {
  opacity: 0;
  transform: translateY(28px) scale(0.93);
  transition: opacity 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s,
              transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.page-banner .banner-content.revealed,
.page-banner .banner-content.popped-up {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Reduced Motion Preference Accessibility */
@media (prefers-reduced-motion: reduce) {
  .slow-popup,
  .popup-photo,
  .popup-text,
  .popup-card,
  .reveal-on-scroll,
  .reveal-scale,
  .reveal-left,
  .reveal-right,
  .reveal-fade,
  .hero-content .slow-popup,
  .hero-visual .popup-photo,
  .floating-card.slow-popup {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Subtle Interactive Replay Hint */
.curtain-title:hover::after {
  content: '↻ Click to replay';
  position: absolute;
  top: -24px;
  right: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--curtain-color-2);
  background: rgba(174, 97, 190, 0.12);
  padding: 2px 8px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0.85;
}

/* ================================================================
   FAROFO LOTTIE PRELOADER SCREEN
   Requested: https://lottiefiles.com/free-animation/farofo-gjIdjXiETG
   ================================================================ */
.page-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #ecfdf5 100%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, visibility;
  animation: autoFadePreloader 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.30s forwards;
}

@keyframes autoFadePreloader {
  0% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.page-preloader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preloader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid #a7f3d0;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(5, 150, 105, 0.12);
  max-width: 380px;
  width: 90%;
}

.preloader-lottie-box {
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.preloader-lottie-box img,
.preloader-lottie-box video,
.preloader-lottie-box dotlottie-player,
.preloader-lottie-box iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.preloader-gif {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(15, 76, 92, 0.15));
  animation: preloaderBounce 2s infinite ease-in-out;
}

@keyframes preloaderBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.preloader-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.35rem;
}

.preloader-tagline {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.preloader-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.preloader-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(15, 76, 92, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.preloader-progress-fill {
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--accent-mint));
  border-radius: 4px;
  animation: preloaderSlide 1.2s infinite ease-in-out;
}

@keyframes preloaderSlide {
  0% { transform: translateX(-100%); width: 30%; }
  50% { transform: translateX(50%); width: 60%; }
  100% { transform: translateX(200%); width: 30%; }
}

/* ================================================================
   ANIMATIONS SHOWCASE CONTAINERS (MP4 / GIF / LOTTIE)
   ================================================================ */
.lottie-card {
  background: linear-gradient(135deg, #ffffff 0%, #F5FAF9 100%);
  border: 1px solid rgba(23, 184, 144, 0.2);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 15px 35px rgba(5, 150, 105, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lottie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 76, 92, 0.14);
}

.lottie-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.lottie-animation-frame {
  width: 100%;
  max-width: 340px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.08);
}

.lottie-animation-frame video,
.lottie-animation-frame img,
.lottie-animation-frame dotlottie-player,
.lottie-animation-frame iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Secondary Animation Cards (Spine, Recovery, Care) */
.motion-feature-card {
  background: #ffffff;
  border: 1px solid rgba(15, 76, 92, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 76, 92, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.motion-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(5, 150, 105, 0.12);
}

.motion-feature-frame {
  width: 100%;
  height: 200px;
  background: #F8FAFC;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.motion-feature-frame video,
.motion-feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.motion-pill-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 76, 92, 0.9);
  color: #6ee7b7;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 2-Column Founder Doctors Grid */
.doctors-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .doctors-grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.doctor-founder-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(15, 76, 92, 0.10);
  box-shadow: 0 15px 35px rgba(15, 76, 92, 0.07);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.doctor-founder-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(15, 76, 92, 0.14);
}

.doctor-founder-imgwrap {
  position: relative;
  width: 100%;
  height: 380px;
  background: #E8F5F3;
  overflow: hidden;
}

.doctor-founder-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-founder-card:hover .doctor-founder-imgwrap img {
  transform: scale(1.04);
}

.founder-pill-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: linear-gradient(135deg, var(--primary-900), var(--primary-800));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(15, 76, 92, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.founder-pill-badge i {
  color: var(--accent-warm);
}

.founder-rural-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.doctor-founder-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.doctor-founder-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.35rem;
}

.doctor-founder-role {
  color: var(--secondary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.doctor-founder-bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.doctor-founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.doctor-founder-tag {
  background: #F0F9F8;
  color: var(--primary-900);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(23, 184, 144, 0.2);
}

.doctor-founder-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(5, 150, 105, 0.08);
}

.doctor-founder-fee {
  display: flex;
  flex-direction: column;
}

.doctor-founder-fee span:first-child {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.doctor-founder-fee span:last-child {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   Two Young Lady Doctors Showcase Card
   -------------------------------------------------------------------------- */
.two-doctors-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 2px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 12px 36px rgba(5, 150, 105, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.two-doctors-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(15, 76, 92, 0.18);
}

.two-doctors-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.doctor-badge-overlay {
  position: absolute;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-900);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  z-index: 2;
  transition: transform 0.25s ease;
}

.doctor-badge-left {
  left: 12px;
}

.doctor-badge-right {
  right: 12px;
}

.doctor-badge-overlay span {
  font-size: 0.7rem;
  color: var(--secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Kinetic Piece-by-Piece Letter Assembly & Join System
   "letters laa piece piece ah vandhu join aagura maathiri"
   -------------------------------------------------------------------------- */
.piece-assemble-title,
.kinetic-title {
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: pointer;
  display: inline-block;
  position: relative;
}

.assemble-word,
.kinetic-word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
}

.assemble-char,
.kinetic-char {
  display: inline-block;
  position: relative;
  opacity: 0;
  transform: translate3d(var(--scatter-x, -35px), var(--scatter-y, 45px), var(--scatter-z, 60px))
             rotateX(var(--rot-x, 40deg))
             rotateY(var(--rot-y, -30deg))
             rotateZ(var(--rot-z, 20deg))
             scale(var(--scatter-scale, 0.45));
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.9s cubic-bezier(0.19, 1, 0.22, 1),
              filter 0.85s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--char-idx, 0) * 38ms);
  will-change: transform, opacity, filter;
}

/* Assembled & Joined state: pieces lock crisply into place */
.piece-assemble-title.assembled .assemble-char,
.piece-assemble-title.assembled .kinetic-char,
.piece-assemble-title.kinetic-animate .assemble-char,
.piece-assemble-title.kinetic-animate .kinetic-char,
.kinetic-title.kinetic-animate .kinetic-char,
.assemble-active .assemble-char {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1) !important;
  filter: blur(0px) !important;
}

.assemble-space,
.kinetic-space {
  display: inline-block;
  width: 0.26em;
}

.assemble-phrase,
.kinetic-phrase {
  display: inline;
}

/* Subtle Interactive Replay Badge */
.piece-assemble-title:hover::after {
  content: '↻ Click to re-assemble';
  position: absolute;
  top: -24px;
  right: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--secondary, #059669);
  background: rgba(5, 150, 105, 0.10);
  border: 1px solid rgba(5, 150, 105, 0.20);
  padding: 2px 10px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

/* --------------------------------------------------------------------------
   Mobile Responsiveness & Hardening (320px - 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
  }

  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    max-width: 100% !important;
  }

  /* Hero Section Responsiveness */
  .hero-section {
    padding: 3.5rem 0 4rem 0;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.8vw, 2.6rem) !important;
    line-height: 1.22 !important;
    word-break: normal !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* 2x2 Stats Grid for clean mobile layout */
  .stats-card-container {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
  }

  .stat-box {
    padding: 0.75rem 0.5rem !important;
    text-align: center !important;
  }

  .stat-number {
    font-size: 1.85rem !important;
  }

  .stat-label {
    font-size: 0.8rem !important;
  }

  .hero-proof {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .proof-item {
    padding: 0.75rem !important;
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-subtle) !important;
  }

  /* Sticky Sidebars Unstick on Mobile */
  [style*="position: sticky"] {
    position: static !important;
    width: 100% !important;
  }

  /* Two Doctors Card on Mobile */
  .doctor-badge-overlay {
    position: static !important;
    margin: 0.4rem auto !important;
    width: fit-content !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.2vw, 2.15rem) !important;
  }

  .preloader-card {
    padding: 1.75rem 1.25rem !important;
    max-width: 90vw !important;
  }

  .preloader-gif {
    max-width: 130px !important;
  }

  .preloader-tagline {
    font-size: 0.95rem !important;
  }

  .preloader-note {
    font-size: 0.78rem !important;
  }
}

/* ==========================================================================
   HEARTFELT REHAB AND PHYSIO CARE - BRANDING & WHATSAPP WIDGET
   ========================================================================== */

/* Brand Logo Image */
.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

.footer-logo-badge {
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.25rem;
}

.footer-logo-badge img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Floating WhatsApp Widget */
.whatsapp-float-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #047857 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
}

.whatsapp-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: waPulse 2s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

@keyframes waPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

.whatsapp-card-popup {
  display: none;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(15, 76, 92, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.25);
  width: 310px;
  padding: 1.25rem;
  margin-bottom: 0.85rem;
  animation: waSlideUp 0.3s ease forwards;
}

.whatsapp-card-popup.active {
  display: block;
}

@keyframes waSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-popup-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
  margin-bottom: 0.85rem;
}

.wa-popup-header i {
  font-size: 1.6rem;
  color: #25d366;
}

.wa-popup-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary-900);
}

.wa-popup-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.wa-doctor-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wa-doctor-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary-900);
  transition: all 0.2s ease;
}

.wa-doctor-btn:hover {
  background: #dcfce7;
  border-color: #25d366;
  transform: translateX(3px);
}

.wa-doc-info {
  text-align: left;
}

.wa-doc-name {
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
}

.wa-doc-role {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.wa-doc-action {
  background: #25d366;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Timings Card */
.clinic-timings-badge {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.timings-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(15, 76, 92, 0.1);
  font-size: 0.86rem;
}

.timings-row:last-child {
  border-bottom: none;
}

.timings-day {
  font-weight: 700;
  color: var(--primary-900);
}

.timings-val {
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Service Details Page Specific Layout & Alignment
   -------------------------------------------------------------------------- */
.service-details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.service-main-col {
  min-width: 0;
}

.service-sidebar-col {
  min-width: 0;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-hero-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.service-hero-img-wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.service-details-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary-900);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.symptoms-causes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.symptoms-box,
.causes-box {
  background: var(--bg-alt);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-subtle);
}

.symptoms-box h3,
.causes-box h3 {
  font-size: 1.18rem;
  color: var(--primary-900);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.symptoms-list,
.causes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.symptoms-list li,
.causes-list li {
  font-size: 0.90rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.symptoms-list li i,
.causes-list li i {
  color: var(--secondary);
  font-size: 0.5rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.service-phases-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.service-phase-card {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.service-phase-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.08);
}

.phase-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(14, 116, 144, 0.2);
}

.phase-content h4 {
  font-size: 1.05rem;
  color: var(--primary-900);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.phase-content p {
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.service-benefits-box {
  background: linear-gradient(135deg, rgba(240, 253, 244, 0.7), #ffffff);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 3rem;
}

.service-benefits-box h3 {
  font-size: 1.3rem;
  color: var(--primary-900);
  margin-bottom: 1.2rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.5;
}

.benefit-item i {
  color: #10b981;
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.service-booking-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.service-booking-card .section-badge {
  margin-bottom: 0.85rem;
}

.service-booking-card h3 {
  font-size: 1.38rem;
  color: var(--primary-900);
  margin-bottom: 0.4rem;
}

.service-info-meta {
  background: var(--bg-alt);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.service-meta-label {
  color: var(--text-muted);
}

.service-meta-val {
  font-weight: 700;
  color: var(--primary-900);
}

.service-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-quick-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.service-features-mini {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.service-features-mini div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features-mini i {
  color: var(--secondary);
  font-size: 0.9rem;
}

.related-services-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1.5px solid var(--border-subtle);
}

.related-services-card h4 {
  font-size: 1.1rem;
  color: var(--primary-900);
  margin-bottom: 1rem;
}

.related-services-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.related-service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.related-service-link:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateX(3px);
}

.related-service-link i {
  color: var(--secondary);
  font-size: 0.8rem;
  transition: transform var(--transition-fast);
}

.related-service-link:hover i {
  transform: translateX(3px);
}

/* Responsive Breakpoints for Service Details */
@media (max-width: 991px) {
  .service-details-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .service-sidebar-col {
    position: static !important;
    width: 100% !important;
  }

  .service-hero-img-wrap img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .symptoms-causes-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .service-phase-card {
    padding: 1.15rem;
    gap: 1rem;
  }

  .service-hero-img-wrap img {
    height: 220px;
  }

  .service-booking-card {
    padding: 1.75rem 1.25rem;
  }

  .motion-feature-card {
    padding: 1.25rem 1rem !important;
  }
}
