/* ===================================================================
   TABLE OF CONTENTS
   ===================================================================
   1.  CORE SETUP
       - Imports, Resets, Variables (:root)
   
   2.  GLOBAL UI COMPONENTS
       - Buttons (Custom, Hero, View All)
       - Section Titles & Spacing
       - Animations & Dividers (ECG, WhatsApp)
   
   3.  LAYOUT MODULES
       - Navbar (Desktop, Sticky, Mobile)
       - Footer
   
   4.  HOME PAGE STYLES
       - Hero Slider
       - Features Section
       - Stats Section
       - Diseases Teaser (Compact Cards)
       - Homeopathic Approach (New Design)
       - CTA Sections
   
   5.  ABOUT PAGE STYLES
       - Dr. Image & Bio
       - Feature Icons
   
   6.  DISEASE / TREATMENTS PAGE STYLES
       - Hero & Headers
       - Timeline Section
       - Accordion Section (Detailed)
       - Limitations & Considerations
   
   7.  TESTIMONIAL PAGE STYLES
       - Hero & Cards
       - Video & Full Experience
       - Before & After
   
   8.  APPOINTMENT & CONTACT STYLES
       - Form Styles
       - Contact Cards & Maps
       - Clinic Timings
   
   9.  GLOBAL RESPONSIVE UTILITIES
       - General breakpoint adjustments
=================================================================== */

/* ===================================================================
   1. CORE SETUP
=================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  font-family: "Lato", "Poppins", sans-serif;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  background-color: var(--light-color);
  color: var(--text-color);
}

:root {
  /* Colors */
  --primary-color: #227855;
  --primary-light: rgba(34, 120, 85, 0.1);
  --primary-light-trans: #34b683;
  --primary-dark: #1a6043;
  --secondary-color: #ff7e5f;
  --dark-color: #222222;
  --light-color: #f8f9fa;
  --text-color: #444444;
  --text-light: #777777;
  --white-color: #ffffff;
  --black: #000000;
  --accent-color: #dba359;
  
  /* Utils */
  --gray: #e9ecef;
  --dark-gray: #6c757d;
  --transition: all 0.3s ease;
  --navbar-height: 80px;

  /* Accordion Specifics */
  --bs-blue-dark: #2a4b7c;
  --bs-blue-light: #5c7caf;
  --bs-card-hover-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* ===================================================================
   2. GLOBAL UI COMPONENTS
=================================================================== */

/* --- Buttons --- */
.custom-btn {
  background-color: #227855;
  color: white;
  margin-right: 15px;
  border-radius: 5px;
  font-size: 16px;
  transition: ease-in-out 0.2s;
}

.custom-btn:hover {
  background-color: white;
  color: #227855;
  border: 1px solid #227855;
}

.btn-outline-light {
  border: 2px solid #227855;
  color: #227855;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-light:hover {
  background-color: #227855;
  color: white;
  border-color: #227855;
  transform: translateY(-3px);
}

.view-all-btn {
    background: var(--primary-color);
    color: white;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    font-size: 0.95rem;
}

.view-all-btn:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 120, 85, 0.2);
}

/* --- Section Styling --- */
.section-padding {
  padding: 80px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 40px;
  width: 100%;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  border-radius: 2px;
}

/* --- General Cards --- */
.card {
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* --- Special Dividers --- */
.ecg-divider {
  background-color: white;
  overflow: hidden;
}

.ecg-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

.ecg-line {
  fill: none;
  stroke: #227855;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawECG 4s linear infinite;
}

@keyframes drawECG {
  0% { stroke-dashoffset: 2000; }
  100% { stroke-dashoffset: 0; }
}

/* --- WhatsApp Float (Left Bottom) --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background-color: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    animation: bounceIn 1s ease-in-out;
    transition: all 0.3s ease;
    color: white;
    font-size: 28px;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: white;
}

/* --- Scroll to Top Button (Right Bottom) --- */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    color: var(--primary-color);
    font-size: 22px;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: white ;
    color: var(--primary-color);
    box-shadow: 0 12px 20px rgba(34, 120, 85, 0.3);
    border-color: var(--primary-color);
}

.scroll-top-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Optional: Add a pulsing animation when button appears */
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(34, 120, 85, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 120, 85, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 120, 85, 0); }
}

.scroll-top-btn.show {
    animation: pulseGreen 2s ease-out;
}

/* Responsive adjustments for floating buttons */
@media (max-width: 767.98px) {
    .whatsapp-float,
    .scroll-top-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .whatsapp-float {
        left: 15px;
        bottom: 15px;
    }
    
    .scroll-top-btn {
        right: 15px;
        bottom: 15px;
        border-width: 1.5px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float,
    .scroll-top-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .whatsapp-float {
        left: 12px;
        bottom: 12px;
    }
    
    .scroll-top-btn {
        right: 12px;
        bottom: 12px;
        border-width: 1.5px;
    }
}

/* For very small screens, ensure buttons don't overlap */
@media (max-width: 400px) {
    .whatsapp-float {
        left: 10px;
        bottom: 10px;
    }
    
    .scroll-top-btn {
        right: 10px;
        bottom: 10px;
    }
}


/* ===================================================================
   MOBILE HERO SECTION FIX - REVISED
   Add this to the Global Responsive Utilities section or 
   at the end of the style.css file
=================================================================== */

/* For tablet and mobile devices */
@media (max-width: 991.98px) {
  /* Reduce hero slider height on mobile */
  .hero-slider {
    min-height: 60vh !important;
    position: relative;
  }
  
  /* Make slides stack properly */
  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center center !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Adjust the overlay for better visibility on mobile */
  .hero-slide-1, 
  .hero-slide-2, 
  .hero-slide-3 {
    background-color: rgba(255, 255, 255, 0.11) !important;
    background-blend-mode: overlay;
  }
  
  /* Make content more readable */
  .hero-content {
    text-align: center;
    padding: 30px 20px !important;
    background-color: rgba(255, 255, 255, 0.178);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    margin: 0 20px;
    max-width: 95%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  /* Adjust text for mobile */
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.3;
    margin-bottom: 15px !important;
    color: var(--primary-color);
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.5;
    margin-bottom: 20px !important;
    color: var(--text-color);
  }
  
  /* Adjust buttons for mobile */
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero-btn, .btn-outline-light {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem;
  }
}

/* For small mobile devices */
@media (max-width: 767.98px) {
  .hero-slider {
    min-height: 55vh !important;
  }
  
  .hero-content {
    padding: 25px 15px !important;
    margin: 0 15px;
  }
  
  .hero-title {
    font-size: 1.6rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
  
  /* Adjust slider controls for mobile */
  .slider-controls {
    bottom: 20px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* For extra small mobile devices */
@media (max-width: 576px) {
  .hero-slider {
    min-height: 65vh !important;
  }
  
  .hero-content {
    padding: 20px 15px !important;
    margin: 0 10px;
  }
  
  .hero-title {
    font-size: 1.4rem !important;
  }
  
  .hero-subtitle {
    font-size: 0.9rem !important;
  }
  
  .hero-btn, .btn-outline-light {
    padding: 10px 15px !important;
    font-size: 0.9rem;
  }
}

/* ===================================================================
   3. LAYOUT MODULES (Navbar & Footer)
=================================================================== */

/* --- Navbar: Mobile Horizontal Layout --- */
.navbar {
    transition: all 0.3s ease-in-out;
    padding: 0.5rem 0;
}

.navbar .container {
    padding-left: 15px;
    padding-right: 15px;
}

.nav-logo img {
    width: 180px;
    height: auto;
    transition: all 0.3s ease-in-out;
}

.navbar-nav-container {
    display: block;
    width: 100%;
}

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0 -4px; /* Negative margin to counteract button padding */
}

.nav-item {
    margin: 0;
}

/* Desktop buttons styling - works on mobile too */
.custom-btn {
    background-color: #227855;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    padding: 8px 12px;
    transition: ease-in-out 0.2s;
    display: inline-block;
    border: 1px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.custom-btn:hover {
    background-color: white;
    color: #227855;
    border: 1px solid #227855;
    text-decoration: none;
}

/* Sticky navbar adjustments */
.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
    background-color: white !important;
}

.navbar.sticky .nav-logo img {
    width: 150px;
}

.navbar.sticky .custom-btn {
    padding: 6px 10px;
    font-size: 13px;
}

body.sticky-nav {
    padding-top: 90px;
}

/* Desktop view - original layout */
@media (min-width: 768px) {
    .navbar .container {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .nav-logo {
        margin-bottom: 0 !important;
        margin-right: auto !important;
    }
    
    .navbar-nav-container {
        width: auto !important;
    }
    
    .navbar-nav {
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        margin: 0 !important;
    }
    
    .custom-btn {
        margin-right: 15px !important;
        margin-bottom: 0 !important;
        font-size: 16px !important;
        padding: 8px 15px !important;
    }
    
    .nav-item:last-child .custom-btn {
        margin-right: 0 !important;
    }
    
    .navbar.sticky .custom-btn {
        padding: 8px 15px !important;
        font-size: 16px !important;
    }
    
    body.sticky-nav {
        padding-top: 70px;
    }
}

/* Tablet adjustments (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .custom-btn {
        font-size: 15px !important;
        padding: 7px 12px !important;
        margin-right: 10px !important;
    }
    
    .navbar.sticky .custom-btn {
        font-size: 14px !important;
        padding: 6px 10px !important;
    }
}

/* Mobile view (below 768px) */
@media (max-width: 767.98px) {
    .nav-logo {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .nav-logo img {
        width: 160px;
    }
    
    .navbar.sticky .nav-logo img {
        width: 140px;
    }
    
    .navbar-nav {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .custom-btn {
        font-size: 13px;
        padding: 6px 10px;
        margin: 2px 4px !important;
    }
    
    .navbar.sticky .custom-btn {
        font-size: 12px;
        padding: 5px 8px;
        margin: 2px 3px !important;
    }
    
    body.sticky-nav {
        padding-top: 110px;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .nav-logo img {
        width: 140px;
    }
    
    .navbar.sticky .nav-logo img {
        width: 130px;
    }
    
    .custom-btn {
        font-size: 12px;
        padding: 5px 8px;
        margin: 2px 3px !important;
    }
    
    .navbar.sticky .custom-btn {
        font-size: 11px;
        padding: 4px 7px;
    }
    
    body.sticky-nav {
        padding-top: 105px;
    }
}

/* Very small mobile devices */
@media (max-width: 400px) {
    .custom-btn {
        font-size: 11px;
        padding: 4px 6px;
        margin: 2px 2px !important;
    }
    
    .navbar-nav {
        margin: 0 -2px !important;
    }
}

/* --- Footer --- */
.footer-section {
  background-color: #227855;
  color: #ffffff;
}

.footer-heading {
  font-size: 1.25rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: #fff;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.footer-section a:hover { color: #b2dfdb; }

.footer-section a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #b2dfdb;
  transition: width 0.3s ease;
}

.footer-section a:hover::after { width: 100%; }

.social-icons a {
  display: inline-block;
  margin-right: 12px;
  font-size: 1.2rem;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #c8e6c9;
}

.ratio iframe { border-radius: 8px; }


/* ===================================================================
   4. HOME PAGE STYLES
=================================================================== */

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slide.active { opacity: 1; z-index: 1; }

/* Slide Images */
/* .hero-slide-1 { background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(34, 120, 86, 0.308)), url('images/hero-doctor1.PNG') no-repeat center center/cover; } */
.hero-slide-1 { background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(9, 240, 148, 0.308)), url('images/hero-doctor1.PNG') no-repeat center center/cover; }
.hero-slide-2 { background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(9, 240, 148, 0.308)), url('images/hero-sexual3.png') no-repeat center center/cover; }
.hero-slide-3 { background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(9, 240, 148, 0.308)), url('images/hero-hoss2.png') no-repeat center center/cover; }

.hero-content {
  color: #333;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #227855;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #444;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-btn {
  background-color: #227855;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  border: 2px solid #227855;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 120, 85, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-btn:hover {
  background-color: white;
  color: #227855;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 120, 85, 0.4);
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.hero-btn:hover::before { left: 100%; }

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: white;
  transform: scale(1.2);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10;
}

.slider-arrow {
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.slider-arrow:hover { background-color: rgba(0, 0, 0, 0.6); }

/* Slider Progress & Animation */
.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 11;
}

.progress-bar {
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  width: 0%;
  transition: width 4s linear;
}

.progress-bar.active { width: 100%; }

.slide-in-next { animation: slideInNext 1s ease-out; }
.slide-in-prev { animation: slideInPrev 1s ease-out; }

@keyframes slideInNext {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInPrev {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Features Section --- */
/* =========================================
   Enhanced Q&A Section Styles
========================================= */
.qa-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5f0 100%);
}

.question-bubble {
    background: var(--primary-color);
    color: white;
    padding: 25px 30px;
    border-radius: 20px;
    margin-bottom: 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(34, 120, 85, 0.2);
    transition: all 0.3s ease;
}

.question-bubble h4 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
}

.question-controls {
    display: block;
    width: 100%;
}

.question-controls .btn {
    padding: 7px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.question-controls .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.question-controls .btn-primary:hover {
    background-color: transparent;
    color: white;
}

.question-controls .btn-outline-light {
    border: 2px solid white;
    color: white;
}

.question-controls .btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.qa-counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.answer-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--accent-color);
    margin-top: 20px;
}

.answer-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
}

.dr-signature {
    display: flex;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.dr-signature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Question Selector Buttons */
.question-selector-btn {
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: 12px;
    padding: 18px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    min-height: 90px;
}

.question-selector-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(34, 120, 85, 0.1);
}

.question-selector-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 12px rgba(34, 120, 85, 0.2);
}

.question-selector-btn.active .btn-icon {
    background: white;
    color: var(--primary-color);
}

.question-selector-btn.active .btn-text p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-text {
    flex: 1;
    min-width: 0;
}

.btn-text h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.btn-text p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.3;
}

#show-more-questions {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
========================================= */

/* Tablet (768px to 991px) */
@media (max-width: 991.98px) {
    .question-bubble {
        padding: 20px 25px;
    }
    
    .question-bubble h4 {
        font-size: 1.3rem;
    }
    
    .question-controls .btn {
        padding: 6px 14px;
        font-size: 0.85rem;
        min-width: 90px;
    }
    
    .qa-counter {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
    
    .answer-box {
        padding: 25px;
    }
    
    .answer-box p {
        font-size: 1.05rem;
    }
    
    .question-selector-btn {
        padding: 15px 12px;
        min-height: 85px;
    }
    
    .btn-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Mobile (576px to 767px) */
@media (max-width: 767.98px) {
    .question-bubble {
        padding: 18px 20px;
    }
    
    .question-bubble h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .question-controls .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 85px;
    }
    
    .qa-counter {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
    
    /* Ensure buttons stay in same row on mobile */
    .question-controls .d-flex {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }
    
    .question-controls .d-flex > div:first-child {
        flex-shrink: 0;
    }
    
    .qa-counter {
        flex-shrink: 0;
    }
    
    .answer-box {
        padding: 20px;
        margin-top: 15px;
    }
    
    .answer-box p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .question-selector-btn {
        padding: 14px 12px;
        min-height: 80px;
        gap: 10px;
    }
    
    .btn-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-text h5 {
        font-size: 0.95rem;
    }
    
    .btn-text p {
        font-size: 0.8rem;
    }
    
    .dr-signature {
        font-size: 0.9rem;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575.98px) {
    .question-bubble {
        padding: 16px 18px;
    }
    
    .question-bubble h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .question-controls .btn {
        padding: 5px 10px;
        font-size: 0.8rem;
        min-width: 80px;
    }
    
    .qa-counter {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    /* Adjust spacing for very small screens */
    .question-controls .d-flex {
        gap: 6px;
    }
    
    .answer-box {
        padding: 18px;
    }
    
    .answer-box p {
        font-size: 0.95rem;
    }
    
    .question-selector-btn {
        padding: 12px 10px;
        min-height: 75px;
        gap: 8px;
    }
    
    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .btn-text h5 {
        font-size: 0.9rem;
    }
    
    .btn-text p {
        font-size: 0.75rem;
    }
    
    .dr-signature {
        font-size: 0.85rem;
        padding-top: 12px;
    }
    
    .dr-signature i {
        font-size: 1rem;
    }
}

/* Extra Small Mobile (< 400px) */
@media (max-width: 400px) {
    .question-bubble {
        padding: 14px 16px;
    }
    
    .question-bubble h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .question-controls .btn {
        padding: 4px 8px;
        font-size: 0.75rem;
        min-width: 75px;
    }
    
    .qa-counter {
        padding: 3px 6px;
        font-size: 0.75rem;
    }
    
    .question-controls .d-flex {
        gap: 4px;
    }
    
    .answer-box {
        padding: 16px;
    }
    
    .answer-box p {
        font-size: 0.9rem;
    }
}

/* --- Diseases Teaser Section (Compact Cards) --- */
.diseases-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5f0 100%);
}

.disease-card {
    background: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    height: 100%;
    position: relative;
    border: 1px solid rgba(34, 120, 85, 0.08);
}

.disease-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(34, 120, 85, 0.15);
    border-color: rgba(34, 120, 85, 0.2);
}

.disease-img {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.disease-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.disease-card:hover .disease-img img { transform: scale(1.08); }

.disease-content {
    padding: 20px;
    position: relative;
    padding-bottom: 55px;
}

.disease-content h5 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.disease-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 15px;
}

.disease-card-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 0;
    text-decoration: none;
    transition: var(--transition);
    position: absolute;
    bottom: 18px;
    right: 20px;
}

.disease-card-btn:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.disease-card-btn i {
    font-size: 0.75rem;
    transition: var(--transition);
}

.disease-card-btn:hover i { transform: translateX(3px); }

.disease-card-btn::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.disease-card-btn:hover::after { width: 100%; }

/* =========================================
   Stats Section - CLEAN & MATCHING THEME
========================================= */
.stats-section {
    background: linear-gradient(rgba(34, 120, 85, 0.92), rgba(34, 120, 85, 0.92)), 
                url('images/hero-section-background.jpg') no-repeat center center/cover;
    color: white;
    padding: 80px 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    transition: color 0.3s ease;
}

.stat-item:hover i {
    color: var(--accent-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.stat-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
========================================= */

/* Tablet (768px to 991px) */
@media (max-width: 991.98px) {
    .stats-section {
        padding: 60px 0;
    }
    
    .stat-item {
        padding: 25px 15px;
        margin-bottom: 20px;
    }
    
    .stat-item i {
        font-size: 3rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-title {
        font-size: 1.1rem;
    }
}

/* Mobile (576px to 767px) */
@media (max-width: 767.98px) {
    .stats-section {
        padding: 50px 0;
        background-attachment: scroll;
    }
    
    .stat-item {
        padding: 30px 20px;
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stat-item i {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2.8rem;
        margin-bottom: 8px;
    }
    
    .stat-title {
        font-size: 1rem;
        letter-spacing: 0.8px;
    }
}

/* Small Mobile (< 576px) */
@media (max-width: 575.98px) {
    .stats-section {
        padding: 40px 0;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-item i {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-title {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }
}
/* --- Homeopathic Approach --- */
.approach-section { background-color: var(--light-color); }

.approach-card {
    background: var(--white-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(34, 120, 85, 0.08);
    margin-bottom: 20px;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.approach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(34, 120, 85, 0.12);
    border-color: rgba(34, 120, 85, 0.15);
}

.approach-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light-trans));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.7rem;
    margin: 0 auto 20px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(34, 120, 85, 0.2);
}

.approach-card:hover .approach-icon {
    transform: rotateY(180deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(34, 120, 85, 0.3);
}

.approach-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-dark);
    line-height: 1.3;
}

.approach-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
    color: var(--text-color);
}

/* --- Clinic Info Card --- */
.clinic-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  height: 100%;
}

.clinic-icon {
  background-color: #e6f3ed;
  width: 60px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
  color: #19764b;
  flex-shrink: 0;
}

.info-row {
  display: flex;
  align-items: start;
  margin-bottom: 25px;
  gap: 15px;
}

.info-text h5 { margin: 0; font-weight: 600; }
.info-text p { margin: 5px 0 0; }

/* --- CTA Sections (Home) --- */
.appointment-cta {
  background: linear-gradient(rgba(34, 120, 86, 0.281), rgba(34, 120, 86, 0.715)), url('images/cta-background.jpg') no-repeat center center/cover;
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-btn {
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s;
  border: 2px solid white;
}

.cta-btn:hover {
  background-color: transparent;
  color: white;
}

/* ===================================================================
   5. ABOUT PAGE STYLES
=================================================================== */
.about-section {
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.about-img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s;
}

.about-img:hover { transform: scale(1.03); }

.dr-image { text-align: center; margin-bottom: 20px; }
.dr-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
}

.about-heading { color: #227855; }

.card-custom {
  position: relative;
  background-color: #227855;
  color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-custom:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card-custom img.card-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 90px;
  opacity: 0.3;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.card-custom:hover img.card-icon {
  transform: scale(1.1) rotate(4deg);
  opacity: 0.18;
}

.card-custom h5 { font-size: 1.5rem; margin-bottom: 1rem; }

/* About Feature Icons */
.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.about-feature .feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light-trans));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(34, 120, 85, 0.2);
    transition: var(--transition);
    /* Resetting default feature-icon margin */
    margin-bottom: 0;
}

.about-feature:hover .feature-icon {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 120, 85, 0.3);
}

.feature-content h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0;
}

.btn-read-biography {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 0;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.btn-read-biography:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.btn-read-biography i {
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-read-biography:hover i { transform: translateX(3px); }

.btn-read-biography::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.btn-read-biography:hover::after { width: 100%; }

/* ===================================================================
   6. DISEASE / TREATMENTS PAGE STYLES
=================================================================== */

.homo-what span {
  color: #227855;
  text-transform: uppercase;
  font-weight: bold;
}

/* --- Hero Section (Disease) --- */
.hero-section {
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 40px;
}

.hero-image {
  background: url('images/homeo-pic.png') center center/cover;
  min-height: 400px;
}

.hero-content { padding: 40px; }

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-weight: 700;
}

/* --- Timeline Section --- */
.timeline-section {
  position: relative;
  padding: 40px 0;
}

.timeline-section .timeline { position: relative; }

.timeline-section .timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1rem;
  width: 3px;
  height: 100%;
  background-color: var(--gray);
}

.timeline-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 50px;
}

.timeline-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.2rem;
  box-shadow: 0 0 0 5px var(--light-color);
}

.timeline-content {
  background: var(--white);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
}

.timeline-content:hover { transform: translateY(-5px); }

.timeline-content h5 { font-weight: 600; color: var(--primary-color); }

/* --- Accordion Section (Detailed) --- */
.page-header h1 { color: var(--bs-blue-dark); font-weight: 700; }
.page-header p { color: var(--bs-blue-light); font-size: 18px; }

.accordion-item {
  border-radius: 15px !important;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  margin-bottom: 20px;
}

.accordion-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--bs-card-hover-shadow);
}

.accordion-button {
  padding: 20px;
  background-color: white !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease;
}

.accordion-button:not(.collapsed) { color: var(--bs-blue-dark) !important; }
.accordion-button:hover { background-color: #f8f9fa !important; }
.accordion-button::after { display: none; }

.accordion-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bs-blue-dark);
  margin-right: 15px;
  flex-shrink: 0;
}

.header-text { flex-grow: 1; min-width: 0; margin-right: 15px; }

.header-text .heading {
  color: var(--bs-blue-dark);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.header-text .sub-heading {
  color: var(--bs-blue-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0;
  line-height: 1.3;
}

.accordion-icon {
  font-size: 18px;
  color: var(--bs-blue-dark);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-button:not(.collapsed) .accordion-icon { transform: rotate(180deg); }

.accordion-body { padding: 0 20px 20px; }

.divider {
  height: 2px;
  width: 40px;
  background: var(--bs-blue-light);
  margin: 15px 0;
  border-radius: 2px;
}

.description {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 15px;
}

.info-point i { color: var(--bs-blue-dark); font-size: 16px; }
.info-point p { font-size: 14px; margin-bottom: 8px; }

.image-tag {
  background: #ff6b6b;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.next-button {
  display: inline-flex;
  align-items: center;
  background: var(--bs-blue-dark);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.next-button:hover {
  background: #3a6399;
  color: white;
  transform: translateY(-2px);
}

/* --- Limitations & Considerations --- */
.considerations-section {
  background-color: var(--white);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
}

.consideration-card {
  background: var(--white);
  border: none;
  border-left: 5px solid;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition: var(--transition);
  padding: 25px;
  height: 100%;
}

.consideration-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.consideration-card.evidence { border-color: var(--accent-color); }
.consideration-card.holistic { border-color: var(--primary-light-trans); }
.consideration-card.pro { border-color: var(--secondary-color); }

.consideration-card h5 {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.consideration-card i { font-size: 1.2rem; margin-right: 15px; }

/* ===================================================================
   7. TESTIMONIAL PAGE STYLES
=================================================================== */

/* --- Testimonial Hero --- */
.testimonial-hero {
  background: linear-gradient(rgba(240, 240, 240, 0.416), rgba(216, 216, 216, 0.562)), url('images/patient-stories-banner.jpg') no-repeat center center/cover;
  color: var(--white-color);
  padding: 120px 0 80px;
  text-align: center;
}

.testimonial-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.testimonial-hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* --- Testimonial Cards --- */
.testimonial-card {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  margin-top: 40px;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(34, 120, 85, 0.2);
}

.testimonial-card:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 5rem;
  color: rgba(34, 120, 85, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
  z-index: 0;
}

.testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.testimonial-content { position: relative; z-index: 1; }
.testimonial-rating { color: #FFC107; margin: 10px 0; }
.testimonial-name { color: var(--primary-color); font-weight: 600; margin-bottom: 5px; }
.testimonial-meta { color: #6c757d; font-size: 0.9rem; margin-bottom: 15px; }

/* --- Full Experience --- */
.full-experience { background-color: #f8f9fa; padding: 80px 0; }

.experience-card {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.experience-card h3 { color: var(--primary-color); margin-bottom: 20px; }

/* --- Video Testimonials --- */
.video-testimonial {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 30px;
}

.video-testimonial .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0.8;
  transition: all 0.3s;
}

.video-testimonial:hover .play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* --- Before-After Section --- */
.before-after { padding: 80px 0; }

.ba-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.ba-img { height: 250px; object-fit: cover; }
.ba-content { padding: 20px; }
.ba-title { color: var(--primary-color); font-weight: 600; margin-bottom: 10px; }

/* --- Testimonial CTA --- */
.test-appointment-cta {
  background: linear-gradient(to right, #227855, #1e6a4f);
  color: #fff;
  padding: 60px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: 60px;
}

.test-appointment-cta .cta-title { font-size: 2rem; font-weight: 700; }
.test-appointment-cta p { font-size: 1.1rem; color: #e3f7ee; }

.test-appointment-cta .cta-btn {
  background-color: #ffffff;
  color: #227855;
  border: 2px solid #ffffff;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.test-appointment-cta .cta-btn:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

/* ===================================================================
   8. APPOINTMENT & CONTACT STYLES
=================================================================== */

/* --- Appointment Form --- */
.appointment-form {
  background-color: #227855;
  color: white;
  border-radius: 10px;
  max-width: 500px;
  padding: 20px;
  font-size: 15px;
  border: 1px solid white;
  margin: 40px auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.appointment-form h3 {
  text-align: center;
  text-decoration: underline;
  margin-bottom: 20px;
}

.appointment-form button {
  background-color: white;
  color: #227855;
  font-weight: bold;
  width: 100%;
  border: 1px solid white;
  padding: 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 16px;
  cursor: pointer;
}

.appointment-form button:hover {
  background-color: #f8f9fa;
  color: #227855;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.appointment-form button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.appointment-form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

label { font-weight: 600; }
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; }

/* --- Contact Page --- */
.clinic-time { text-align: center; padding: 2rem 0; }
.clinic-time h2 { color: #227855; font-weight: 600; }
.contact-container { padding: 40px 20px; }
.google-map { width: 100%; margin-bottom: 30px; }

.google-map iframe {
  width: 100%;
  height: 400px;
  border: 2px solid #227855;
  border-radius: 10px;
}

.contact-card-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.contact-card {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light-trans) 100%);
  border: 1px solid #ccc;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  font-size: 18px;
  line-height: 26px;
  box-shadow: inset 0 0 0 0 #98a869ae;
  transition: color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.contact-card:hover {
  box-shadow: inset 400px 0 0 0 #98a869;
  color: #fff;
}

.contact-card a {
  text-decoration: none;
  color: #ffffff;
  text-transform: capitalize;
}

.contact-card i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
}


/* ===================================================================
   9. GLOBAL RESPONSIVE UTILITIES
   (General layout shifts. Component specific shifts are above.)
=================================================================== */

/* --- Medium Devices (Tablets < 992px) --- */
@media (max-width: 991.98px) {
  .section-padding { padding: 60px 0; }
  
  /* Hero */
  .hero-slider { min-height: 80vh; }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.15rem; }
  .hero-btn, .btn-outline-light { padding: 13px 30px; font-size: 1.05rem; min-height: 50px; }
  
  /* Disease/Treatment Cards */
  .disease-img { height: 140px; }
  .disease-content { padding: 16px; padding-bottom: 50px; }
  .disease-content h5 { font-size: 1.05rem; margin-bottom: 10px; }
  .disease-content p { font-size: 0.85rem; line-height: 1.4; margin-bottom: 12px; }
  .disease-card-btn { bottom: 16px; right: 16px; font-size: 0.8rem; }
  
  /* Approach Cards */
  .approach-card { padding: 25px 15px; }
  .approach-icon { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 18px; }
  .approach-card h4 { font-size: 1.1rem; margin-bottom: 12px; }
  .approach-card p { font-size: 0.9rem; }
  
  /* Misc */
  .hero-content, .considerations-section { padding: 30px; }
  .hero-image { min-height: 300px; }
}

/* --- Timeline Desktop Layout (Min-Width Rule) --- */
@media (min-width: 992px) {
  .timeline-section .timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 38px;
  }
  .timeline-section .timeline::before {
    top: 50px;
    left: 0;
    width: 100%;
    height: 3px;
    transform: translateY(-50%);
  }
  .timeline-item {
    width: 100%;
    padding: 0 1rem;
    margin-bottom: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .timeline-icon {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    z-index: 10;
  }
  .timeline-content {
    position: relative;
    text-align: center;
    margin-top: 0;
  }
  .timeline-content::after { display: none; }
  
  /* Disease Card Desktop Tweak */
  .disease-img { height: 150px; } /* for 1199px down to 992px */
  .disease-content { padding: 18px; padding-bottom: 52px; }
}

/* --- Small Devices (Mobiles < 768px) --- */
@media (max-width: 767.98px) {
  .section-padding { padding: 40px 0; }
  
  /* Hero */
  .hero-slider { min-height: 70vh; }
  .hero-slide { background-size: cover; background-position: center center; }
  .hero-content { text-align: center; padding: 0 20px; }
  .hero-title { font-size: 2rem; margin-bottom: 1rem; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-btn, .btn-outline-light { width: 100%; padding: 12px 25px; font-size: 1rem; min-height: 48px; }
  .slider-arrows { padding: 0 15px; }
  .slider-arrow { width: 45px; height: 45px; font-size: 1.5rem; }
  .slider-controls { bottom: 25px; }
  
  /* Disease Cards */
  .disease-card { margin-bottom: 25px; max-width: 330px; margin-left: auto; margin-right: auto; }
  .disease-img { height: 130px; }
  .disease-content { padding: 15px; padding-bottom: 48px; }
  .view-all-btn { padding: 9px 25px; font-size: 0.9rem; }
  
  /* Approach Cards */
  .approach-card { margin-bottom: 25px; padding: 20px 15px; }
  .approach-icon { width: 55px; height: 55px; font-size: 1.4rem; margin-bottom: 15px; }
  
  /* About Page */
  .about-feature { flex-direction: column; text-align: center; margin-bottom: 20px; }
  .about-feature .feature-icon { margin-right: 0; margin-bottom: 15px; align-self: center; }
  .feature-content h5 { font-size: 1rem; }
  .feature-content p { font-size: 0.9rem; }
  .text-end { text-align: center !important; }
  .btn-read-biography { justify-content: center; width: 100%; padding: 12px 0; }
  .about-section .row.mt-4, .clinic-info-container { text-align: center; justify-content: center; }
  .about-section .icon-box { margin: 0 auto 10px; }
  .about-section .btn { display: block; margin: 20px auto 0; }
  .card-custom img.card-icon { width: 80px; }
  
  /* Appointment Form */
  .appointment-form { margin: 30px 15px; padding: 15px; }
  .appointment-form button { padding: 10px; font-size: 15px; }
  
  /* Contact */
  .clinic-time h2 { font-size: 20px; }
  .clinic-time p { font-size: 14px; }
  .contact-card { margin: 0; font-size: 16px; line-height: 24px; }
  .google-map iframe { height: 300px; }
  
  /* Testimonial & General */
  .testimonial-hero { padding: 80px 0 60px; }
  .testimonial-img { width: 80px; height: 80px; }
  .hero-image { min-height: 250px; }
  .timeline-item { padding-left: 2.5rem; }
  .timeline-icon { width: 40px; height: 40px; font-size: 1rem; }
  .timeline-content { padding: 20px; }
  .hero-title, .cta-title, .section-title, .stat-number, .testimonial-hero h1 { font-size: 2.2rem; }
  .hero-subtitle, .stat-title, .testimonial-hero p { font-size: 1rem; }
}

/* --- Extra Small Devices (< 576px) --- */
@media (max-width: 576px) {
  /* Hero */
  .hero-slider { min-height: 60vh; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-buttons { max-width: 100%; }
  .hero-btn, .btn-outline-light { padding: 11px 20px; font-size: 0.95rem; min-height: 46px; }
  .slider-arrow { width: 40px; height: 40px; font-size: 1.3rem; }
  
  /* Disease Cards */
  .disease-card { max-width: 300px; }
  .disease-img { height: 120px; }
  .disease-content h5 { font-size: 1rem; }
  .disease-content p { font-size: 0.82rem; }
  .disease-card-btn { font-size: 0.78rem; bottom: 15px; right: 15px; }
  
  /* Approach Cards */
  .approach-card { padding: 18px 15px; }
  .approach-card h4 { font-size: 1rem; }
  .approach-card p { font-size: 0.85rem; line-height: 1.4; }
  
  /* About/Components */
  .about-feature .feature-icon { width: 55px; height: 55px; font-size: 1.4rem; }
  .btn-read-biography { font-size: 0.95rem; padding: 10px 0; }
  .header-text .heading { font-size: 15px; }
  .header-text .sub-heading { font-size: 12px; }
  .about-icon-box { width: 60px; height: 60px; font-size: 1.8rem; margin: 0 auto; }
  .info-item { flex-direction: column; }
  
  /* Appointment */
  .appointment-form { margin: 20px 10px; padding: 12px; }
  .appointment-form h3 { font-size: 1.2rem; margin-bottom: 15px; }
  .appointment-form button { padding: 10px; font-size: 14px; }
}

/* --- Very Small Devices (< 375px) --- */
@media (max-width: 375px) {
  .hero-slider { min-height: 55vh; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-btn, .btn-outline-light { padding: 10px 18px; font-size: 0.9rem; min-height: 44px; }
}

/* ===================================================================
   MOBILE STICKY NAVIGATION FIX
   - Logo scrolls away (not sticky)
   - Buttons become sticky at top
   - Buttons maintain original size (no shrinking)
   - Smooth slide-down transition
=================================================================== */

@media (max-width: 767.98px) {
    
    /* 1. Reset the main Navbar wrapper so it doesn't fix to top */
    .navbar.sticky {
        position: relative !important; /* Keeps logo in flow to scroll away */
        box-shadow: none !important;
        animation: none !important;
        padding-top: 0.5rem !important; /* Maintain original padding */
        padding-bottom: 0.5rem !important;
        background-color: transparent !important; /* Avoid white block covering logo area */
    }

    /* 2. Target the buttons container to become fixed instead */
    .navbar.sticky .navbar-nav-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1020;
        background-color: #ffffff; /* White background for the sticky strip */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        
        /* Smooth Transition Effect */
        animation: slideDownMobile 0.4s ease-out forwards;
    }

    /* 3. Prevent the buttons from shrinking (override existing sticky styles) */
    .navbar.sticky .custom-btn {
        font-size: 13px !important;       /* Restore original mobile size */
        padding: 6px 10px !important;     /* Restore original mobile padding */
        margin: 2px 4px !important;       /* Restore original mobile margin */
        background-color: #227855;        /* Ensure color consistency */
        color: white;
    }
    
    .navbar.sticky .custom-btn:hover {
        background-color: white;
        color: #227855;
    }

    /* 4. Ensure the logo stays its original size while scrolling away */
    .navbar.sticky .nav-logo img {
        width: 160px !important; 
    }

    /* 5. Prevent body content jump since the main navbar isn't actually fixed */
    body.sticky-nav {
        padding-top: 0 !important;
    }

    /* Definition for the smooth slide-down animation */
    @keyframes slideDownMobile {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}