/* ===== CSS RESET & ROOT VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Global smooth scrolling and transition */
html {
  scroll-behavior: smooth;
}

:root {
  /* Colors */
  --primary: #2d7a5f;
  --secondary: #5ba88d;
  --accent: #f4a460;
  --dark: #1a3a2e;
  --light: #6b7c7a;
  --bg: #f8faf9;
  --white: #ffffff;
  --border: #e0e6e3;
  --success: #27ae60;
  --warning: #f39c12;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography */
  --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-main);
  line-height: var(--line-height-base);
  color: var(--dark);
  background: var(--bg);
}

html {
  scroll-behavior: smooth;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

/* .logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--light);
  font-weight: 400;
} */

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

.book-btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(45, 122, 95, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  margin: 3px 0;
  transition: 0.3s;
}

.page {
  display: none;
  padding-top: 80px;
  min-height: 100vh;
}

.page.active {
  display: block;
}

.hero {
  background: linear-gradient(
    135deg,
    rgba(45, 122, 95, 0.95),
    rgba(91, 168, 141, 0.9)
  );
  color: var(--white);
  padding: 100px 5% 80px;
  position: relative;
  overflow: hidden;
}

/* Hero Carousel Styling */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 0.4;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 122, 95, 0.7);
  z-index: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M30 30c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm-20 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z" fill="%23ffffff" fill-opacity="0.03"/%3E%3C/svg%3E');
  opacity: 0.5;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: slideInUp 0.8s ease-out;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: slideInUp 0.8s ease-out 0.1s backwards;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  animation: slideInUp 0.8s ease-out 0.2s backwards;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.hero-feature::before {
  content: "✓";
  background: rgba(255, 255, 255, 0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--primary);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.cta-btn.secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.hero-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stats-bar {
  background: var(--white);
  padding: 3rem 5%;
  margin-top: -40px;
  position: relative;
  z-index: 10;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.stat-label {
  color: var(--light);
  font-size: 1rem;
  margin-top: 0.5rem;
}

section {
  padding: 80px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--light);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.about-section {
  padding-top: 40px;
}

.about-section section {
  padding: 80px 5%;
}

.services-section {
  padding-top: 40px;
}

.service-category-title {
  text-align: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin: 3rem 0 2rem;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary);
  animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card p {
  color: var(--light);
  line-height: 1.7;
}

.doctor-profile {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.doctor-image {
  text-align: center;
}

.doctor-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid var(--primary);
  box-shadow: 0 10px 30px rgba(45, 122, 95, 0.2);
}

.doctor-details h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.doctor-credentials {
  color: var(--light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.doctor-bio {
  line-height: 1.8;
  margin-bottom: 2rem;
}

.doctor-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.doctor-stat {
  background: var(--bg);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
}

.doctor-stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.doctor-stat-label {
  font-size: 0.9rem;
  color: var(--light);
  margin-top: 0.5rem;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
  padding: var(--spacing-2xl) 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-category-title {
  text-align: center;
  color: var(--primary);
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
  font-weight: 600;
}

.gallery-category-subtitle {
  text-align: center;
  color: var(--light);
  margin-bottom: var(--spacing-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 350px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 0.6s ease-out;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 3rem 1.5rem 1.5rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.info-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.info-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(5px);
}

.info-item h4 {
  color: var(--dark);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.info-item p {
  color: var(--light);
  line-height: 1.7;
  margin: 0;
}

.get-directions-btn {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 1rem;
  text-align: center;
}

.get-directions-btn:hover {
  background: var(--dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.map-container {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
}

.map {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 500px;
  width: 100%;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.appointment-form {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 3rem auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.required {
  color: #e74c3c;
  margin-left: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: var(--font-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 122, 95, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 1rem 3rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
  width: 100%;
}

.submit-btn:hover {
  background: var(--dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.form-note {
  text-align: center;
  color: var(--light);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.3s;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--spacing-2xl) 5%;
  text-align: center;
}

footer .footer-content h3 {
  color: var(--secondary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.4rem;
}

footer p {
  margin-bottom: var(--spacing-sm);
}

footer .footer-details {
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

.footer-links {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  margin: 0 var(--spacing-md);
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.disclaimer {
  margin-top: var(--spacing-lg);
  color: #95a5a6;
  font-size: 0.85rem;
  line-height: 1.7;
}

footer .footer-copyright {
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  font-size: 0.9rem;
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonials-carousel-container {
  position: relative;
  max-width: 100%;
}

.testimonials-carousel {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  scroll-behavior: smooth;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.5rem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-nav:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: -30px;
}

.carousel-nav.next {
  right: -30px;
}

/* ===== ANIMATED COUNTER NUMBERS ===== */
.stat-number {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--primary);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 35px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary);
  transform: translateY(-5px);
  box-shadow: 0 10px 35px rgba(45, 122, 95, 0.3);
}

/* ===== FAQ ANIMATIONS ===== */
.faq-question {
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  max-height: 500px;
  padding: var(--spacing-md) var(--spacing-lg);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 968px) {
  :root {
    --spacing-2xl: 2.5rem;
    --spacing-xl: 2rem;
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    padding: 2rem 0;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    gap: 1rem;
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image {
    max-width: 100%;
  }

  .doctor-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-image img {
    width: 200px;
    height: 200px;
  }

  .doctor-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .gallery-item {
    height: 300px;
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 4%;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-category-title,
  .gallery-category-title {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .map {
    height: 400px;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(45, 122, 95, 0.02);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 1.5rem 0 1.5rem;
}

.faq-answer.open {
  max-height: 500px;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}


/* ===== COMMUNITY SECTION ===== */
.community-section {
  background: linear-gradient(
    135deg,
    rgba(45, 122, 95, 0.05),
    rgba(91, 168, 141, 0.05)
  );
  padding: var(--spacing-2xl) 5%;
  margin: 0;
}

.community-container {
  max-width: 1400px;
  margin: 0 auto;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.community-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--primary);
  animation: fadeInUp 0.6s ease-out;
}

.community-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.community-card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.2rem;
}

.community-card p {
  color: var(--light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background: var(--bg);
  padding: var(--spacing-2xl) 5%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-card {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-left: 5px solid var(--primary);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: #f39c12;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--dark);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.testimonial-meta {
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-sm);
  margin-top: auto;
}

.testimonial-name {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.testimonial-type {
  color: var(--light);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== EXTRA SMALL DEVICES (600px AND BELOW) ===== */
@media (max-width: 600px) {
  .nav-links {
    top: 60px;
  }

  header nav {
    padding: 0.75rem 3%;
  }

  /* .logo-text {
    font-size: 1rem;
  }

  .logo-text span {
    font-size: 0.7rem;
  } */

  .section-title {
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  section {
    padding: 50px 3%;
  }

  .hero {
    padding: 80px 3% 60px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .hero-text h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .testimonial-card {
    flex: 0 0 calc(50% - 1rem);
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-nav.prev {
    left: -20px;
  }

  .carousel-nav.next {
    right: -20px;
  }

  .stats-bar {
    padding: 2rem 3%;
    margin-top: -30px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.85rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .testimonial-card {
    padding: 1.2rem;
  }

  .testimonial-card {
    flex: 0 0 100%;
  }

  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .carousel-nav.prev {
    left: 0px;
  }

  .carousel-nav.next {
    right: 0px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .contact-info {
    padding: 1.5rem;
  }

  .info-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .info-item p {
    font-size: 0.9rem;
  }

  .appointment-form {
    padding: 1.5rem;
    margin: 2rem auto;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 16px;
  }

  .submit-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }

  .faq-question {
    padding: 1.2rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1.2rem;
  }

  .faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 1.2rem;
  }

  .gallery-item {
    height: 250px;
  }

  .map {
    height: 300px;
  }

  .floating-whatsapp {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.7rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  .footer-links a {
    margin: 0 0.75rem;
    font-size: 0.9rem;
  }

  .disclaimer p {
    font-size: 0.8rem;
  }
}



/* logo css */
/* ===== Header & Nav ===== */

/* ===== Clinic Logo ===== */
.clinic-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

/* Logo Icon */
.logo-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #ffffff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  /* cursor: pointer; */
}

/* Logo Text */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  /* cursor: pointer; */
}

/* Clinic Name */
.clinic-name {
  font-size: 32px;
  font-weight: 700;
  color: #2e7d32;
  letter-spacing: 0.6px;
}

/* Clinic Tagline */
.clinic-tagline {
  font-size: 15px;
  font-weight: 500;
  color: #555555;
}

/* Hover Animation */
.clinic-logo:hover .logo-icon {
  transform: scale(1.06);
}

/* ===== Nav Links ===== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #2e7d32;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #2e7d32;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .clinic-name {
    font-size: 22px;
  }

  .clinic-tagline {
    font-size: 13px;
  }

  .nav-links {
    gap: 16px;
  }
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 20px;
  border-left: 3px solid var(--secondary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--secondary);
  border-radius: 50%;
  border: 3px solid white;
}

.timeline-date {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  margin-bottom: 0.3rem;
}

.timeline-content p {
  margin-bottom: 0.3rem;
}