/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 83vh;
  font-family: 'Poppins', sans-serif;
}

.slides {
  display: flex;
  transition: transform 1s ease-in-out;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
}

/* Background image (full width now) */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;   /* full */
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  filter: brightness(0.7);
  transition: transform 1.5s ease, filter 1s ease;
}

.slide.active .hero-bg {
  transform: scale(1.05);
}

/* Left-side content */
.hero-content {
  position: relative;
  width: 50%;
  padding: 0 5%;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  color: #fff;
}

/* Dark overlay on left side only */
.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55); /* dark blur overlay */
  backdrop-filter: blur(6px);
  z-index: -1;
  border-radius: 0 20px 20px 0;
}

.text-box {
  padding: 20px;
  border-radius: 0;
  max-width: 90%;
  animation: fadeInUp 1s ease forwards;
}

.text-box h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 15px;
  line-height: 1.2;
}

.text-box p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.primary-btn {
  background: #2a7d44;
  color: #fff;
}

.primary-btn:hover {
  background: #256a3a;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.secondary-btn {
  background: transparent;
  color: #2a7d44;
  border: 2px solid #2a7d44;
}

.secondary-btn:hover {
  background: #2a7d44;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.slider-dots .dot {
  width: 14px;
  height: 14px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.slider-dots .dot.active {
  background: #2a7d44;
  transform: scale(1.3);
}

/* Animations */
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(30px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
  
  .hero-content {
    width: 100%;
    padding: 20px;
  }
  .hero-content::before {
    border-radius: 0;
  }
  .text-box {
    text-align: center;
  }
  .text-box h1 { font-size: 2rem; }
  .text-box p { font-size: 1rem; }
}


/* ========== ABOUT US TABS ========== */
.about-us-tabs {
  padding: 60px 10%;
  background: #fff;
  font-family: Arial, sans-serif;
}

.about-us-tabs .tab-menu {
  display: flex;
  justify-content: space-around;
  border-bottom: 2px solid #ddd;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.about-us-tabs .tab-link {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  transition: all 0.3s ease;
}

.about-us-tabs .tab-link.active {
  border-bottom: 3px solid #3D9970;
  color: #3D9970;
}

.about-us-tabs .tab-content {
  position: relative;
}

.about-us-tabs .tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.about-us-tabs .tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.about-us-tabs .tab-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-us-tabs .tab-text {
  flex: 1;
}

.about-us-tabs .tab-text h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.about-us-tabs .tab-text p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-us-tabs .tab-img {
  flex: 1;
}

/* 🎥 Responsive YouTube Video */
.about-us-tabs .video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.15);
}

.about-us-tabs .video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}

/* Buttons */
.about-us-tabs .btn {
  display: inline-block;
  padding: 12px 24px;
  background: #3D9970;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.about-us-tabs .btn:hover {
  background: #2e7b58;
}

/* Arrows */
.about-us-tabs .tab-arrows {
  text-align: center;
  margin-top: 20px;
}

.about-us-tabs .tab-arrows button {
  background: transparent;
  color: #333;
  border: none;
  font-size: 28px;
  margin: 0 20px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.about-us-tabs .tab-arrows button:hover {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .about-us-tabs .tab-menu {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 10px;
    border-bottom: none;
  }

  .about-us-tabs .tab-arrows {
    display: none;
  }

  .about-us-tabs .tab-link {
    flex: 0 0 auto;
    font-size: 16px;
    padding: 10px 16px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .about-us-tabs .tab-link.active {
    border-bottom: 2px solid #3D9970;
  }

  .about-us-tabs .tab-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .about-us-tabs .tab-text h2 {
    font-size: 24px;
  }

  .about-us-tabs .tab-text p {
    font-size: 16px;
  }

  .about-us-tabs .video-wrapper {
    border-radius: 8px;
  }
}


/* Why Choose Section */
.why-choose {
  background: linear-gradient(135deg, #f8fdf9, #eafaf1);
  padding: 10px;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 10px;
  font-weight: 700;
}

.section-header p {
  color: #444;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* Grid layout */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  perspective: 1200px; /* for 3D flip effect */
}

/* Card container */
.choose-item {
  background: transparent;
  border-radius: 15px;
}

/* Flip card */
.choose-card {
  position: relative;
  width: 100%;
  height: 300px; /* slightly taller for more content */
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
  border-radius: 15px;
}

.choose-item:hover .choose-card {
  transform: rotateY(180deg);
}

/* Front & Back */
.choose-front, .choose-back {
  position: absolute;  /* important for flip */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* match card height */
  border-radius: 15px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Front side */
.choose-front {
  background: #fff;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
}

.choose-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the box */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Title overlay on bottom */
.front-title {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 8px 0;
  z-index: 2;
  position: relative;
}

/* Back side */
.choose-back {
  background: #5d5d5dff; /* dark background for contrast */
  transform: rotateY(180deg);
  padding: 25px 20px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  overflow-y: auto; /* allow scrolling if needed */
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.18);
  box-sizing: border-box; /* ensure padding included in height */
}

/* Back text */
.choose-back p {
  font-size: 1rem;          /* readable font */
  color: #f1f1f1;           /* bright contrast */
  text-align: left;
  line-height: 1.7;         /* spacing for readability */
  margin: 0;
  padding: 0 5px;           /* small horizontal padding */
  font-family: 'Open Sans', sans-serif;
}

/* Hover effect for slight zoom on front image */
.choose-item:hover .choose-front img {
  transform: scale(1.05);
  transition: transform 0.6s;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .choose-card {
    height: 260px;
  }

  .front-title {
    font-size: 0.95rem;
    padding: 6px 0;
  }

  .choose-back p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* Programs Section */
.programs {
  background: #f0fdf8;
  padding: 20px 15px;
}

.programs .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.programs .section-header h2 {
  font-size: 2.2rem;
  color: #2e7d32;
  font-weight: 700;
}

.programs .section-header p {
  color: #444;
  font-size: 1rem;
  margin-top: 10px;
}

/* Row layout */
.program-row {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Large cards */
.program-card {
  position: relative;
  flex: 1 1 400px; /* responsive width */
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s, box-shadow 0.5s;
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  background-size: cover;
  background-position: center;
}

.program-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}

/* Overlay */
.program-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  transition: all 0.5s;
}

.program-card:hover .overlay {
  height: 60%;
}

.program-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.program-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .program-row {
    flex-direction: column;
    gap: 20px;
  }

  .program-card {
    height: 250px;
  }

  .program-card h3 {
    font-size: 1.3rem;
  }

  .program-card p {
    font-size: 0.9rem;
  }
}

/* Simple Consultation CTA */
.consultation-cta {
  text-align: center;
  padding: 10px 20px;
  background: #f8fff9; /* soft background */
}

.consultation-cta h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 15px;
  font-weight: 700;
}

.consultation-cta p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto 30px;
}

.consult-btn {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s ease;
}

.consult-btn:hover {
  background: #1b5e20;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
  .consultation-cta h2 {
    font-size: 1.6rem;
  }
  .consultation-cta p {
    font-size: 1rem;
  }
  .consult-btn {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
  }
}



/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, #eafaf1, #d0f0e2);
  padding: 10px 15px;
  margin: 60px auto;
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.testimonials .section-header h2 {
  font-size: 2.2rem;
  color: #2e7d32;
  font-weight: 700;
}

.testimonials .section-header p {
  font-size: 1rem;
  color: #333;
  margin-top: 10px;
}

/* Testimonials Grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* Testimonial Card */
.testimonial-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.18);
}

.testimonial-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-card span {
  font-weight: 600;
  color: #2e7d32;
  text-align: right;
}

/* Button */
.testimonial-btn {
  text-align: center;
  margin-top: 30px;
}

.testimonial-btn .btn {
  padding: 12px 30px;
  border-radius: 8px;
  background-color: #2e7d32;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.testimonial-btn .btn:hover {
  background-color: #1b4f1f;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .testimonial-card p {
    font-size: 0.95rem;
  }

  .testimonial-card span {
    font-size: 0.9rem;
  }
}



/* Final CTA Section */
.final-cta {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  overflow: hidden;
  min-height: 45vh; /* makes section tall enough */
  display: flex;
  justify-content: center;
  align-items: center;
}

.final-cta .video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

.final-cta .cta-container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.55); /* transparent overlay for readability */
  padding: 25px;
  border-radius: 12px;
}

.final-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.final-cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Buttons */
.final-cta .cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.final-cta .btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.call-btn {
  background-color: #2e7d32;
  color: #fff;
}

.call-btn:hover {
  background-color: #1b5e20;
}

.whatsapp-btn {
  background-color: #25d366;
  color: #fff;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

/* Mobile */
@media (max-width: 768px) {
  .final-cta {
    padding: 60px 15px;
    min-height: 60vh;
  }
  .final-cta h2 {
    font-size: 1.8rem;
  }
  .final-cta p {
    font-size: 1rem;
  }
  .final-cta .cta-container {
    padding: 25px;
  }
}
/* Consultation Popup Styles */
.popup-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.popup-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideDown 0.4s ease-out;
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: #333;
}

.popup-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #2c3e50;
  text-align: center;
}

.popup-form .form-group {
  margin-bottom: 20px;
}

.popup-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.popup-form input[type="text"],
.popup-form input[type="tel"],
.popup-form input[type="email"],
.popup-form input[type="date"],
.popup-form input[type="time"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.popup-form input:focus {
  outline: none;
  border-color: #009688;
}

.popup-form button {
  width: 100%;
  padding: 15px;
  background-color: #009688;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
}

.popup-form button:hover {
  background-color: #00796b;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.form-row .form-group {
  flex: 1;
  min-width: 150px; /* Minimum width for date/time fields */
}

.error-message {
  color: #dc3545; /* Red for error messages */
  font-size: 12px;
  margin-top: 5px;
  display: none; /* Hidden by default */
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  text-align: center;
  margin-top: 20px;
  display: none; /* Hidden by default */
}

/* Responsive adjustments for popup */
@media (max-width: 576px) {
  .popup-content {
    padding: 20px;
  }

  .popup-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .popup-close {
    font-size: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* Animations */
@keyframes slideDown {
  0% { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}