/* === Basic CSS Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden; /* Prevents accidental horizontal scrolling */
  height: 100%;
  scroll-behavior: smooth;
}

.bottom-footer a {
  color: #fff !important;
}

/* ================================================= */
/* FINAL FIX: Move Arrows Outside of the Card Area   */
/* ================================================= */
@media (min-width: 769px) {
  /* This targets the main wrapper for the carousel */
  #services .carousel-wrapper {
    /* 1. Widen the wrapper to make room for arrows on the sides */
    max-width: 1060px; /* Increased to provide exactly 940px content space (1060px - 120px padding = 940px for 3×300px cards + 2×20px gaps) */
    
    /* 2. Add 60px of padding on the left/right for the arrows to sit in */
    padding: 0 60px;
    box-sizing: border-box; /* Ensures padding is included in the total width */

    margin: 0 auto;
    position: relative;
  }

  /* The scrollable area no longer needs extra padding or specific width */
  #services .carousel {
    overflow: hidden; /* This correctly hides the 4th card now */
  }

  /* 3. This positions the "previous" arrow in the new empty space */
  #services .carousel-btn.prev {
    left: 10px; /* Position arrow within the left padding */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }

  /* 4. This positions the "next" arrow in the new empty space */
  #services .carousel-btn.next {
    right: 5px; /* Increased space between arrow and cards */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
}


@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 18px;
    }
    .btn {
        font-size: 13px;
        padding: 8px 14px;
    }
    .about-img {
        width: 90px;
    }
    .about-text-col h2 {
        font-size: 16px;
    }
    .about-text-col h3 {
        font-size: 12px;
    }
    .about-text-col p {
        font-size: 11px;
    }
    .treatments-title {
        font-size: 15px;
    }
    .treatment-card {
        max-width: 98vw;
        padding: 0 0 10px 0;
    }
    .treatment-img {
        height: 70px;
    }
    .treatment-card h3 {
        font-size: 12px;
    }
    .treatment-card p {
        font-size: 10px;
    }
}
/* Our Treatments Section */
/* .treatments {
    padding: 60px 5% 50px 5%;
    background: #f7fbe9;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(60, 120, 60, 0.07);
    margin-bottom: 40px;
    margin-top: 0;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.treatments-subtitle {
    color: #8e44ad;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-align: center;
}
.treatments-title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 32px;
    text-align: center;
}
.treatments-grid {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
    width: 100%;
    max-width: 1200px;
}
.treatment-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px 0 rgba(60, 120, 60, 0.09);
    padding: 0 0 24px 0;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.treatment-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(60, 120, 60, 0.13);
}
.treatment-img {
    width: 100%;
    height: 180px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
    margin-bottom: 18px;
}
.treatment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.treatment-card h3 {
    color: #8e44ad;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-align: center;
}
.treatment-card p {
    color: #444;
    font-size: 16px;
    text-align: center;
    margin: 0 18px;
}
.treatments-btn {
    background: #8e44ad;
    color: #fff;
    font-size: 20px;
    padding: 14px 38px;
    border-radius: 30px;
    margin-top: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px 0 rgba(60, 120, 60, 0.09);
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}
.treatments-btn:hover {
    background: #6c3483;
} */

/* Treatments Section */
.treatments {
  background: #f9fbe7;
  padding: 60px 20px;
  text-align: center;
}

.section-subtitle {
  color: #7b2cbf;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 40px;
}


/* Treatments Section */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; /* default for all other pages */
  justify-items: center;
  margin-bottom: 30px;
}



@media (min-width: 769px) {
  .treatments .treatment-grid {
    gap: 8px; /* slightly smaller gap for desktop screens */
  }
}
/* Increase the width of homepage treatment cards */
.treatments:not(.all-treatments) .treatment-card {
  max-width: 350px; /* Increased from 300px. You can adjust this value. */
}

/* .treatment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; 
  justify-items: center;
  margin-bottom: 30px;
} */

/* --- Layout for "View All Treatments" Page --- */

/* Desktop: 4 cards per row */
@media (min-width: 1024px) {
  .treatments.all-treatments .treatment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablet: 2 cards per row */
@media (min-width: 768px) and (max-width: 1023px) {
  .treatments.all-treatments .treatment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 card per row */
@media (max-width: 767px) {
  .treatments.all-treatments .treatment-grid {
    grid-template-columns: 1fr;
  }
}


.treatment-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 300px;   /* keep all cards same width */
  min-height: 360px;  /* keeps uniform height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.treatment-card:hover {
  transform: translateY(-5px);
}

/* .treatment-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
} */
.treatment-card img {
  width: 100%;
  height: 180px;        /* fixed image height */
  object-fit: cover;    /* crop to fit nicely */
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Title */
.treatment-card h3 {
  color: #5a189a;
  margin-bottom: 10px;
  font-size: 1.2rem;
  min-height: 50px;   /* equal spacing for titles */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Paragraph */
.treatment-card p {
  font-size: 0.95rem;
  color: #444;
  flex-grow: 1;          /* pushes button to bottom if added */
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-btn {
  background: #556b2f;
  color: #fff;
  padding: 12px 25px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.view-btn:hover {
  background: #3c4d1d;
}

.hidden {
  display: none;
}

/* Sanskrit heading font */
.sanskrit-heading {
    font-family: 'Tiro Devanagari Sanskrit', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #2a1a0a;
    overflow: hidden;
    white-space: pre-line;
    min-height: 2.5em;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.sanskrit-heading.typewriter {
    width: 0;
    animation: typewriter 2.5s steps(40, end) 0.2s 1 normal both;
    white-space: nowrap;
    overflow: hidden;
}
/* Apply Merriweather to everything */
body {
    font-family: 'Merriweather', serif;
    color: #333;
    line-height: 1.6;
}

/* You can still tweak weights for headings if needed */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #222;
}
p, span, li {
    font-weight: 400;
}



/* Navbar */
header {
  background: #eeffde;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  position: -webkit-sticky; /* Safari compatibility */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  transition: all 0.3s ease;
}

/* Enhanced sticky state */
header.sticky-active {
  background: rgba(238, 255, 222, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: auto;
  gap: 30px;
  position: relative;
}
.logo {
  background: #eeffde;
  border-radius: 8px;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 12px; /* space between logo image and clinic name */
}
.logo img {
  height: 70px;
  background: #eeffde;
  border-radius: 8px;
}
/* Backup spacing if older browsers do not support gap on flex */
.logo .clinic-name {
  margin-left: 6px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 1 rem; 
}

/* Ensure clinic name and nav links have consistent sizing */
.logo .clinic-name,
#mainNav a,
nav ul li a {
  font-size: 16px;
  line-height: 1.1;
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background: #e0f2be;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  z-index: 1002;
  margin-left: 10px;
  transition: background 0.2s;
  position: relative;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Find the @media query for the navbar and REPLACE it with this */

@media (max-width: 900px) {
  .nav-container {
    flex-direction: row;
    gap: 10px;
  }
  nav ul {
    gap: 18px;
  }
  .logo img {
    height: 50px;
  }
  .hamburger {
    display: flex;
  }
  /* This selector is now more specific */
  #mainNav {
    position: absolute;
    top: 100%;
    right: 0;
    background: #eeffde;
    width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    z-index: 1001;
    display: none;
  }
  /* This selector is now more specific */
  #mainNav.open {
    display: block;
    animation: navDrop 0.25s ease;
  }
  /* This selector is now more specific */
  #mainNav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
    padding: 10px 0;
  }
  #mainNav ul li {
    width: 100%;
    padding: 0;
  }
  /* This selector is now more specific */
  #mainNav ul li a {
    display: block;
    width: 100%;
    padding: 12px 24px;
    color: #222;
    font-size: 1rem;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
  }
  #mainNav ul li:last-child a {
    border-bottom: none;
  }
  #mainNav ul li a:hover {
    background: #e0f2be;
  }
}

@media (max-width: 480px) {
  .nav-container {
    width: 100%;
    gap: 2px;
  }
  nav {
    width: 50vw;
    min-width: 120px;
    max-width: 240px;
    right: 0;
    left: auto;
    border-radius: 10px 0 0 10px;
  }
  nav ul li a {
    font-size: 0.98rem;
    padding: 10px 12px;
  }
  .logo img {
    height: 30px;
  }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
/* Responsive Hero Section */
/* REPLACE all of your old hero section styles with this block */

/* === Hero Section === */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 5%;
  background-color: #c4e4a8;
  gap: 40px;
  min-height: 80vh; /* Ensures the section has enough height */
}

/* Text content column */
.hero-content {
  flex: 1 1 55%; /* Allow this column to take up about 55% of the space */
  max-width: 600px; /* Set a max width for larger screens */
}

.hero-content h4 {
  font-weight: bold;
  font-size: 16px;
}

.hero-content h1 {
  color: #6a2e1c;
  font-size: 40px;
}

.hero-content p {
  margin: 20px 0;
  font-size: 18px;
}

.btn {
  display: inline-block;
  background: #2c3d10;
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  font-size: 18px;
}

/* Image column */
.hero-image-wrapper {
  flex: 1 1 45%; /* Allow this column to take up about 45% of the space */
  max-width: 500px; /* Set a max width for larger screens */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%; /* Make the image fill its container */
  max-width: 450px; /* A final safeguard for image size */
  height: auto; /* Maintain aspect ratio */
  display: block;
}

/* Responsive styles for tablets and smaller devices */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse; /* Stack image on top of text */
    text-align: center;
    padding: 40px 5%;
    min-height: auto;
  }
  .hero-content, .hero-image-wrapper {
    flex-basis: auto; /* Reset flex-basis for stacking */
    width: 100%;
    max-width: 550px; /* Control max width in stacked view */
  }
}

/* About Section */
/* About Section */

/* === About Doctor Section === */
.about-doctor-section {
  padding: 60px 20px;
  background-color: #fcfcfc;
}

.about-doctor-container {
  display: flex;
  align-items: center;
  max-width: 1050px;
  margin: auto;
  background-color: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  border-radius: 10px;
}

.doctor-info-text {
  flex: 1.1;
  padding: 40px 50px;
}

.doctor-icon {
  width: 60px;
  height: 60px;
  background-color: #e3f2fd;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  color: #1e88e5;
}

.doctor-name-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #333;
}

.doctor-degree {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  font-weight: 600;
}

.doctor-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 35px;
}

/* === Doctor Image and Badge === */
.doctor-image-wrapper {
  flex: 0.9;
  position: relative;
  align-self: stretch;
}

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

/* === Experience Badge === */
.experience-badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: #8b1e1e; /* deep red tone */
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.badge-icon {
  margin-right: 10px;
  color: #fff;
}

.badge-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}

.badge-text p {
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.9;
}

/* === Responsive === */
@media (max-width: 900px) {
  .about-doctor-container {
    flex-direction: column;
  }
  .doctor-info-text {
    padding: 40px 30px;
    text-align: center;
  }
  .doctor-icon {
    margin-left: auto;
    margin-right: auto;
  }
  .doctor-image-wrapper {
    padding: 20px;
  }
  .doctor-image {
    border-radius: 10px;
  }
  .experience-badge {
    bottom: 25px;
    left: 25px;
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .badge-text h3 {
    font-size: 1.1rem;
  }
  .badge-text p {
    font-size: 0.65rem;
  }
  .experience-badge {
    padding: 8px 12px;
  }
}

/* .about {
    padding: 50px 5%;
    background: linear-gradient(120deg, #e6f4d5 60%, #c4e4a8 100%);
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(60, 120, 60, 0.08);
    margin-bottom: 40px;
}
.about-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.about-img-col {
    flex: 1 1 320px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.about-img {
    width: 340px;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 6px 32px 0 rgba(60, 120, 60, 0.13);
    object-fit: cover;
    
    transform: translateX(-30px);
}
.about-text-col {
    flex: 1 1 380px;
    text-align: left;
    background: rgba(255,255,255,0.85);
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(60, 120, 60, 0.07);
}
.about-text-col h2 {
    margin-bottom: 10px;
    font-size: 28px;
    color: #2c3d10;
}
.about-text-col h3 {
    margin-bottom: 16px;
    font-size: 20px;
    color: #6a2e1c;
    font-weight: 600;
}
.about-text-col p {
    font-size: 16px;
    color: #333;
    margin-bottom: 0;
    line-height: 1.7;
} */

/* New styles for Doctor's contact info */
.doctor-contact {
    margin-top: 20px;
}
.doctor-contact p {
    line-height: 1.6;
    margin-bottom: 5px;
}
.doctor-contact a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.doctor-contact a:hover {
    color: #6a2e1c;
    text-decoration: underline;
}


/* What We Offer */
.offer {
    background-color: #d6e8c4;
    padding: 50px 5%;
    text-align: center;
}
.offer h4 {
    font-size: 14px;
    color: #6a2e1c;
    font-weight: bold;
}
.offer-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}
.offer-item {
    width: 200px;
    height: 150px;
    background: #d0e0c0;
    border-radius: 5px;
}


/* Services Section */
#services {
  padding: 60px 20px;
  background: #fdfdfd;
  text-align: center;
}

#services h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2e7d32;
  font-family: 'Merriweather', serif;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.carousel {
  display: flex;
  overflow-x: hidden;
  scroll-behavior: smooth;
  gap: 20px;
  padding: 10px;
}
/* --- Our Services Uniform Card Fix --- */
#services .service-card {
  flex-basis: 300px;
  flex-shrink: 0;
  width: 300px;
  height: 400px; /* Fixed consistent height */
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

/* Ensure image is uniform */
#services .service-card img {
  width: 100%;
  height: 160px;   /* fixed */
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
  flex-shrink: 0;
}

/* Title height fixed */
#services .service-card h3 {
  font-size: 1.2rem;
  color: #1b5e20;
  min-height: 50px; /* ensures equal space for 1-2 lines */
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Paragraph text aligned */
#services .service-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  margin: 0;
  padding: 0 4px;
  flex-grow: 1; /* stretch to fill available space */
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center;
  text-align: center;
}

/* .service-card {
  min-width: 0;
  max-width: 100vw;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
} */
.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* .service-card img {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 15px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #1b5e20;
}

.service-card p {
  font-size: 0.9rem;
  color: #555;
  padding-left: 4px;
  padding-right: 4px;
  word-break: break-word;
  white-space: normal;
  overflow-wrap: break-word;
} */

.carousel-btn {
  background: #2e7d32;
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
  position: absolute;
  z-index: 10;
}
.carousel-btn:hover {
  background: #1b5e20;
}
.carousel-btn.prev {
  left: -50px;
}
.carousel-btn.next {
  right: -50px;
}

/* Our Products Section */
/* Our Products Section */
#products {
  padding: 60px 20px;
  background: #e6f5d5;   /* Updated background color */
  text-align: center;
}

#products h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}

.product-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  min-height: 420px; /* Increased height to accommodate price */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #27ae60;
  margin-bottom: 15px;
  padding: 8px 12px;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 6px;
  text-align: center;
  border: 1px solid rgba(39, 174, 96, 0.2);
}

.add-cart-btn {
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 10px 18px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-cart-btn:hover {
  background: #2ecc71;
}

/* Transform Section */
/* .transform-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0;
}

.transform-box {
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.transform-box h2 {
  font-size: 28px;
  font-weight: 700;
  color: #222;
  margin-bottom: 30px;
  line-height: 1.4;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.stat-item h3 {
  font-size: 32px;
  font-weight: 700;
  color: #9c27b0;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  text-transform: uppercase;
} */


/* .health-section {
  background: #f8f8f8; 
  padding: 60px 20px;
  text-align: center;
}

.health-section .container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.health-left {
  flex: 1 1 100%;
  margin-bottom: 20px;
}

.health-left h2 {
  font-size: 28px;
  font-weight: 600;
  color: #333;
}

.health-counter {
  flex: 1 1 45%;
  background: #fff;
  margin: 10px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.health-counter h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #666;
}

.health-counter .counter-number {
  font-size: 32px;
  font-weight: bold;
  color: #2e7d32; 
}


@media (max-width: 768px) {
  .health-section .container {
    flex-direction: column;
    text-align: center;
  }
  .health-counter {
    flex: 1 1 100%;
  }
} */

/* Section background + overlay */
.elementor-section {
  position: relative;
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f8f3e7, #fffdf8);
}

.elementor-background-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.05);
  z-index: 0;
}

.elementor-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Headings */
.elementor-heading-title,
.ekit-heading--title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Text content */
.elementor-widget-text-editor {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

/* Button */
.elementor-button {
  display: inline-block;
  padding: 12px 25px;
  background: #8b5e3c; /* coffee brown */
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.elementor-button:hover {
  background: #6e4528;
  transform: translateY(-3px);
}

/* Counter */
.elementor-counter {
  text-align: center;
  margin: 20px 0;
}

.elementor-counter-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.elementor-counter-number {
  font-size: 2rem;
  font-weight: bold;
  color: #8b5e3c;
}

/* Wellness Call-to-Action Section */
.wellness-section {
  background: linear-gradient(135deg, #f8f3e7, #fffdf8);
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 1100px;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.1);
}

.wellness-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #2c2c2c;
}

.wellness-section p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 12px 28px;
  background: #8b5e3c;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: #6e4528;
  transform: translateY(-3px);
}

/* Stats */
.wellness-stats {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #8b5e3c;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 1rem;
  color: #333;
  font-weight: 500;
  text-transform: uppercase;
}


/* Testimonials Section */
.testimonial-section {
  background: #e6f5d5 url("images/ayurveda-bg.jpg") no-repeat center/cover;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.testimonial-subtitle {
  color: #a855f7;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.testimonial-title {
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: #222;
}

.testimonial-box {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.15);
  max-width: 850px;
  width: 850px;
  height: 280px;
  margin: 0 auto;
  padding: 40px 50px;
  text-align: left;
  box-sizing: border-box;
}

.testimonial-content {
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.testimonial-content .role {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 10px;
}

.stars {
  color: #fbbf24; /* gold stars */
  margin-bottom: 15px;
}

.testimonial-content p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  margin: 0;
}

.next-btn {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  background: #7b2cbf;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}
.next-btn:hover {
  background: #5a189a;
}

.prev-btn {
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  background: #7b2cbf;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}
.prev-btn:hover { 
  background: #5a189a;
}

/* Testimonial Responsive Styles */
@media (max-width: 768px) {
  .testimonial-box {
    width: 90%;
    max-width: 90%;
    height: 320px;
    padding: 30px 25px;
  }
  
  .testimonial-content {
    height: 260px;
  }
  
  .testimonial-content h3 {
    font-size: 1.1rem;
  }
  
  .testimonial-content p {
    font-size: 1rem;
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }
  
  .prev-btn {
    left: -20px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  
  .next-btn {
    right: -20px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .testimonial-box {
    width: 95%;
    max-width: 95%;
    height: 350px;
    padding: 25px 20px;
  }
  
  .testimonial-content {
    height: 300px;
  }
  
  .testimonial-content h3 {
    font-size: 1rem;
  }
  
  .testimonial-content .role {
    font-size: 0.8rem;
  }
  
  .testimonial-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }
  
  .prev-btn {
    left: -15px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .next-btn {
    right: -15px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .testimonial-title {
    font-size: 1.5rem;
  }
  
  .testimonial-subtitle {
    font-size: 0.9rem;
  }
}



/* Gallery Section */
.gallery-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f5f9f0; /* soft background that matches other sections */
}

.gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.gallery-wrapper {
  width: 90%; /* only 3 images visible */
  overflow: hidden;
  scroll-snap-type: x mandatory; /* Add smooth snap scrolling */
}

.gallery-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px; /* ADD THIS LINE */
}

.gallery-images img {
  width: calc(100% / 3); /* 3 images at a time */
  height: 280px; /* Fixed height to maintain consistency */
  object-fit: cover; /* Maintain aspect ratio and cover the area */
  border-radius: 10px;
  margin: 0; /* Remove margins for better alignment */
  flex-shrink: 0;
  scroll-snap-align: start; /* Ensure images snap to start position */
}

.gallery-btn {
  background: #4CAF50;
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-btn:hover {
  background: #45a049;
}

/* Find this rule in your style.css file */
.gallery-carousel {
    display: flex;
    overflow-x: auto; /* Keep this */
    scroll-snap-type: x mandatory; /* Keep this */
    -webkit-overflow-scrolling: touch; /* Keep this */
    scrollbar-width: none; /* Keep this */
    gap: 30px; /* ADD THIS LINE to create space between images */
    padding: 20px 0; /* Add some padding if needed for visual balance */
}
/* Responsive gallery styles */
@media (max-width: 768px) {
  .gallery-images img {
    width: 100%; /* Show 1 image at a time on mobile */
    height: 250px; /* Increased height for better mobile view */
    margin: 0; /* Ensure no margins on mobile for perfect alignment */
  }
  .gallery-wrapper {
    width: 90%; /* Better width for mobile alignment */
  }
  .gallery-images {
    gap: 0; /* Remove any gaps between images on mobile */
  }
  .gallery-btn {
    font-size: 20px;
    padding: 8px 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gallery-container {
    gap: 15px; /* Add some space between buttons and gallery */
  }
}

@media (max-width: 480px) {
  .gallery-images img {
    width: 100%; /* Show 1 image at a time on small mobile */
    height: 200px; /* Smaller height for very small screens */
    margin: 0; /* Ensure no margins for perfect alignment */
  }
  .gallery-wrapper {
    width: 85%; /* Better width for small mobile alignment */
  }
  .gallery-images {
    gap: 0; /* Remove any gaps between images on small mobile */
  }
  .gallery-btn {
    font-size: 18px;
    padding: 6px 10px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gallery-container {
    gap: 10px; /* Smaller gap on very small screens */
  }
}


/* Panchakarma Section */


/* Panchakarma Section General Styling */
.panchakarma-section {
    background-color: #f8f6f2;
    padding: 80px 20px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #3a5a40;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 18px;
    color: #6c757d;
}

.panchakarma-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px; /* Increased gap */
    max-width: 1200px; /* Increased overall width */
    margin: auto;
}

/* Circle Diagram Styling */
.circle-diagram {
    position: relative;
    width: 500px; /* Increased size */
    height: 500px; /* Increased size */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -30px; /* Shifts diagram to the left */
}

.center-circle {
    position: absolute;
    width: 160px; /* Increased size */
    height: 160px; /* Increased size */
    background: #3a5a40;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px; /* Increased font size */
    box-shadow: 0 0 25px rgba(58, 90, 64, 0.4);
    z-index: 2;
    text-align: center;
}

.outer-circle {
    position: absolute;
    width: 140px;
    height: 140px;
    background: #ffffff;
    border: 2px solid #588157;
    color: #3a5a40;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    /* UPDATE THIS LINE */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Positioning for the larger outer circles */
.top { transform: translate(0, -180px); }
.right { transform: translate(155px, -55px); }
.bottom-right { transform: translate(95px, 140px); }
.bottom-left { transform: translate(-95px, 140px); }
.left { transform: translate(-155px, -55px); }

/* Information Box Styling */
.info-box {
    flex-basis: 500px; /* Increased size */
    text-align: left;
    background: #ffffff;
    padding: 30px; /* Increased padding */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #588157;
    min-height: 280px; /* Increased minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-box h3 {
    font-size: 26px; /* Increased font size */
    color: #3a5a40;
    margin: 0 0 15px 0;
}

.info-box p {
    font-size: 16px; /* Increased font size */
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Blink effect */
@keyframes blink {
  0%   { background-color: #fff; color: #2c3d10; }
  50%  { background-color: #2c3d10; color: #fff; }
  100% { background-color: #fff; color: #2c3d10; }
}

/* Highlight style for the active circle (Appearance only) */
.outer-circle.blinking {
  background-color: #4cb04f;
  color: #ffffff;
  border-color: #4cb04f;
  box-shadow: 0 0 15px rgba(76, 176, 79, 0.5);
}

/* --- Combine transforms to keep circles in place when blinking --- */
.top.blinking { transform: translate(0, -180px) scale(1.05); }
.right.blinking { transform: translate(155px, -55px) scale(1.05); }
.bottom-right.blinking { transform: translate(95px, 140px) scale(1.05); }
.bottom-left.blinking { transform: translate(-95px, 140px) scale(1.05); }
.left.blinking { transform: translate(-155px, -55px) scale(1.05); }




/* FAQ + Appointment Section */

/* FAQ + Appointment Section */
.faq-appointment-section {
    background: #fdfdfc;
    padding: 60px 20px; /* Reduced padding */
    font-family: 'Poppins', sans-serif;
}

.faq-appointment-section .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px; /* Reduced max-width */
    margin: auto;
    gap: 40px; /* Reduced gap */
    flex-wrap: wrap; 
}

/* FAQ Styles */
.faq {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.faq h2 {
    font-size: 28px; /* Reduced font size */
    margin-bottom: 25px; /* Reduced margin */
    color: #004d00;
    font-weight: 600;
}

.accordion-item {
    margin-bottom: 10px; /* Reduced margin */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 15px 20px; /* Reduced padding */
    background: #006400;
    color: white;
    font-weight: 500;
    font-size: 15px; /* Reduced font size */
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: #004d00;
}

.accordion-header .icon {
    font-size: 22px; /* Reduced font size */
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-header.active .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: white;
    color: #444;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.accordion-content p {
    padding: 15px 0; /* Reduced padding */
    margin: 0;
    border-top: 1px solid #e0e0e0;
    line-height: 1.6;
}


/* Appointment Form Styles */
.appointment-form {
    background: white;
    padding: 30px; /* Reduced padding */
    border-radius: 12px;
    box-shadow: 0px 5px 25px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 300px;
    max-width: 420px;
}

.appointment-form h2 {
    text-align: center;
    margin-bottom: 20px; /* Reduced margin */
    color: #d92d20;
    font-size: 24px; /* Reduced font size */
    font-weight: 600;
}

.appointment-form form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Reduced gap */
}

.appointment-form input,
.appointment-form textarea {
    padding: 12px; /* Reduced padding */
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px; /* Reduced font size */
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Poppins', sans-serif;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
    border-color: #006400;
    box-shadow: 0 0 5px rgba(0, 100, 0, 0.2);
}

.appointment-form textarea {
    resize: vertical;
    height: 100px;
}

.appointment-form button {
    background: #006400;
    color: white;
    padding: 12px; /* Reduced padding */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px; /* Reduced font size */
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.appointment-form button:hover {
    background: #d92d20;
    transform: translateY(-2px);
}



/* Active Accordion Header */
.accordion-header.active {
  background: #efeef0; /* Attractive purple shade like in screenshot */
  color: white;
}

/* Smooth accordion open/close */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-content.open {
  padding: 15px;
  max-height: 300px; /* Adjust if you expect longer answers */
}


/* === COMPLETE FOOTER STYLES (REPLACE OLD CSS) === */
.site-footer {
  font-family: "Merriweather", serif;
  font-size: 15px;
  background-color: #f0fdf0;
  color: #333;
}

/* ===== Main Footer Area ===== */
.footer-main {
  padding: 50px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

/* ===== Footer Columns ===== */
.footer-column {
  flex: 1 1 220px;
  min-width: 180px;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2e7d32;
}

/* ===== Logo Section ===== */
.footer-about {
  text-align: center;
  flex: 1 1 100%;
}

.footer-logo {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
}

.footer-clinic-name {
  font-weight: bold;
  color: #333;
  font-size: 16px;
  margin-bottom: 15px;
}

/* ===== Navigation Links ===== */
.footer-nav a {
  display: block;
  color: #555;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #2e7d32;
}

/* ===== Social Icons ===== */
.footer-social-icons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.footer-social-icons a {
  display: inline-block;
  color: #555;
}

.footer-social-icons a svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social-icons a:hover {
  color: #2e7d32;
  transform: scale(1.1);
}

/* ===== Contact Info ===== */
.footer-contact-info p {
  margin: 0 0 8px 0;
  line-height: 1.6;
  color: #555;
}

.footer-contact-info p strong {
  color: #333;
}

/* ===== Bottom Bar ===== */
.footer-bottom-bar {
  background-color: #006400;
  color: #fff;
  text-align: center;
  padding: 15px 20px;
}

.footer-bottom-bar p {
  margin: 0;
  font-size: 14px;
}

.footer-bottom-bar a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.footer-bottom-bar a:hover {
  text-decoration: underline;
}

/* ===== Responsive Fixes ===== */

/* Medium Screens (Tablets) */
@media (max-width: 992px) {
  .footer-container {
    justify-content: center;
    text-align: center;
  }
  .footer-column {
    flex: 1 1 45%;
  }
  .footer-social-icons {
    justify-content: center;
  }
}

/* Small Screens (Mobiles) */
@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .footer-column {
    flex: 1 1 100%;
    padding: 0;
  }

  .footer-about {
    margin-bottom: 20px;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-nav a {
    font-size: 15px;
  }

  .footer-contact-info {
    font-size: 14px;
  }

  .footer-bottom-bar {
    font-size: 13px;
  }
}


.tagline {
  font-weight: bold;
  line-height: 1.4;
}

.social-icons img {
  width: 30px;
  height: 30px;
  margin: 5px;
  background-color: #8bc34a;
  border-radius: 50%;
  padding: 5px;
}

.contact-info li {
  margin-bottom: 10px;
}




/* =================================== */
/* Responsive Styles for Mobile        */
/* =================================== */
@media (max-width: 768px) {
  /* Adjust section padding for smaller screens */
  .panchakarma-section {
    padding: 60px 15px;
  }

  /* Reduce title font sizes */
  .section-title h2 {
    font-size: 28px;
  }
  .section-title p {
    font-size: 16px;
  }

  /* Stack the diagram and info box vertically */
  .panchakarma-container {
    flex-direction: column;
    gap: 40px;
  }

  /* --- Key Fixes for the Diagram --- */

  /* 1. Scale down the main diagram container */
  .circle-diagram {
    width: 350px; /* Reduced from 500px */
    height: 350px; /* Reduced from 500px */
    margin-left: 0; /* Reset the negative margin */
  }

  /* 2. Scale down the center circle */
  .center-circle {
    width: 130px; /* Reduced from 160px */
    height: 130px; /* Reduced from 160px */
    font-size: 16px; /* Reduced from 18px */
  }

  /* 3. Scale down the outer circles */
  .outer-circle {
    width: 110px; /* Reduced from 140px */
    height: 110px; /* Reduced from 140px */
    font-size: 14px; /* Reduced from 16px */
    padding: 5px; /* Add padding to prevent text overflow */
  }

  /* 4. Adjust positions for the new, smaller container */
  .top {
    transform: translate(0, -125px);
  }
  .right {
    transform: translate(130px, -40px);
  }
  .bottom-right {
    transform: translate(75px, 100px);
  }
  .bottom-left {
    transform: translate(-75px, 100px);
  }
  .left {
    transform: translate(-130px, -40px);
  }

  /* 5. Fix blinking animation transforms for mobile to prevent overlapping */
  .top.blinking { 
    transform: translate(0, -125px) scale(1.05); 
  }
  .right.blinking { 
    transform: translate(130px, -40px) scale(1.05); 
  }
  .bottom-right.blinking { 
    transform: translate(75px, 100px) scale(1.05); 
  }
  .bottom-left.blinking { 
    transform: translate(-75px, 100px) scale(1.05); 
  }
  .left.blinking { 
    transform: translate(-130px, -40px) scale(1.05); 
  }

  /* 6. Adjust info box for mobile */
  .info-box {
    flex-basis: 100%;
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    min-height: 200px;
  }

  .info-box h3 {
    font-size: 22px;
  }

  .info-box p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Very small mobile screens optimization */
@media (max-width: 480px) {
  .panchakarma-section {
    padding: 40px 10px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  /* Further scale down the diagram for very small screens */
  .circle-diagram {
    width: 280px;
    height: 280px;
  }

  .center-circle {
    width: 100px;
    height: 100px;
    font-size: 13px;
  }

  .outer-circle {
    width: 85px;
    height: 85px;
    font-size: 11px;
    padding: 3px;
  }

  /* Adjust positions for very small screens */
  .top {
    transform: translate(0, -95px);
  }
  .right {
    transform: translate(100px, -30px);
  }
  .bottom-right {
    transform: translate(60px, 80px);
  }
  .bottom-left {
    transform: translate(-60px, 80px);
  }
  .left {
    transform: translate(-100px, -30px);
  }

  /* Fix blinking transforms for very small screens */
  .top.blinking { 
    transform: translate(0, -95px) scale(1.05); 
  }
  .right.blinking { 
    transform: translate(100px, -30px) scale(1.05); 
  }
  .bottom-right.blinking { 
    transform: translate(60px, 80px) scale(1.05); 
  }
  .bottom-left.blinking { 
    transform: translate(-60px, 80px) scale(1.05); 
  }
  .left.blinking { 
    transform: translate(-100px, -30px) scale(1.05); 
  }

  .info-box {
    padding: 15px;
    min-height: 180px;
  }

  .info-box h3 {
    font-size: 18px;
  }

  .info-box p {
    font-size: 13px;
  }
}

/* ================================================= */
/* Desktop Services Carousel Buttons - Updated for Better Spacing */
/* ================================================= */
@media (min-width: 769px) {
  /* Arrows are now positioned in the main styles above */
  /* This section ensures no conflicts with mobile styles */
}

/* =============================================== */
/* NEW: Responsive Services Carousel for Mobile    */
/* =============================================== */
@media (max-width: 768px) {
  #services .carousel {
    /* Enable smooth scrolling and snapping on mobile */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0; /* Remove gap to prevent showing other cards */
    padding: 10px 0; /* Remove horizontal padding */
    
    /* Hide the scrollbar for a cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
  
  #services .carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
  }

  #services .service-card {
    /* Make each card take up full viewport width minus some margin */
    flex-basis: calc(100vw - 60px); /* Account for container padding */
    width: calc(100vw - 60px);
    min-width: calc(100vw - 60px); /* Prevent shrinking */
    scroll-snap-align: center; /* Snap cards to the center */
    margin: 0 10px; /* Small margin to prevent edge touching */
  }

  /* Adjust button appearance for mobile */
  #services .carousel-btn {
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 12px;
    font-size: 1.8rem;
    background-color: rgba(46, 125, 50, 0.75); /* Slightly transparent */
  }

  #services .carousel-btn.prev {
    left: 5px; /* Position button on the left edge */
  }

  #services .carousel-btn.next {
    right: 5px; /* Position button on the right edge */
  }
}

/* Mobile styles for very small screens */
@media (max-width: 480px) {
  #services .service-card {
    /* Make cards even more responsive on very small screens */
    flex-basis: calc(100vw - 40px); /* Less padding on small screens */
    width: calc(100vw - 40px);
    min-width: calc(100vw - 40px);
    margin: 0 5px; /* Smaller margin */
    height: 380px; /* Slightly smaller height for small screens */
  }
  
  #services .carousel-btn {
    font-size: 1.5rem;
    padding: 6px 10px;
  }
}


/* === YouTube Section Styles (Carousel Version) === */
.youtube-section {
    padding: 60px 20px;
    background-color: #f9fbe7;
    text-align: center;
}

/* Wrapper for the carousel and buttons */
/* Find this rule and REPLACE it */
.youtube-section .carousel-wrapper {
    position: relative;
    max-width: 1050px; /* Widen to make room for arrows */
    margin: 40px auto 0;
    padding: 0 50px; /* Add 50px of space on the left and right */
    box-sizing: border-box; /* Ensures padding is included in the total width */
}

/* The scrollable container */
.youtube-section .carousel {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 10px 0; /* Add padding to prevent cards from touching the edges */
}

/* Individual youtube card styles */
.youtube-section .youtube-card {
    flex: 0 0 300px; /* Do not grow, do not shrink, base width of 300px */
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.youtube-section .youtube-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.youtube-thumbnail {
    position: relative;
}

.youtube-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

.youtube-timestamp {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 3px 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
}

.youtube-info {
    padding: 15px;
    text-align: left;
    flex-grow: 1;
}

.youtube-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.youtube-info p {
    font-size: 0.9rem;
    color: #666;
}

/* Styles for the "More Videos" card */
.more-videos-card {
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #f0f7e4;
    border: 2px dashed #556b2f;
}

.youtube-icon-wrapper {
    color: #c4302b;
    margin-bottom: 15px;
}

.more-videos-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
}

.more-videos-link {
    font-size: 1rem;
    color: #2e7d32;
    font-weight: bold;
    text-decoration: underline;
}

/* Carousel Buttons */
.youtube-section .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #2e7d32;
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}
.youtube-section .carousel-btn:hover {
    background: #1b5e20;
}
.youtube-section .carousel-btn.prev {
    left: -25px;
}
.youtube-section .carousel-btn.next {
    right: -25px;
}

.youtube-video iframe {
  width: 100%;
  height: 180px;
  border-radius: 12px 12px 0 0;
}

/* Find the old @media query for the youtube-section and REPLACE it with this */

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    /* Widen the wrapper and remove padding for mobile view */
    .youtube-section .carousel-wrapper {
        max-width: 100%;
        padding: 0;
    }

    /* Enable smooth snapping and scrolling */
    .youtube-section .carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 10px; /* Add some padding so cards don't touch the edges */
    }

    /* Make each card take up most of the screen width */
    .youtube-section .youtube-card {
        scroll-snap-align: center;
        flex-basis: 100%; /* Show one card at a time */
        width: 100%;
    }

    /* --- Make Arrow Buttons Visible and Style Them for Mobile --- */
    .youtube-section .carousel-btn {
        display: block; /* Ensures buttons are visible */
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(46, 125, 50, 0.75); /* Semi-transparent background */
        font-size: 1.8rem;
        padding: 8px 12px;
        width: 45px;
        height: 45px;
    }

    .youtube-section .carousel-btn.prev {
        left: 5px; /* Position button on the left edge */
    }

    .youtube-section .carousel-btn.next {
        right: 5px; /* Position button on the right edge */
    }
}
