@import url("main.css");
/* Hero Section */
.hero {
  height: 70vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
  background: linear-gradient(135deg, #1f6725 0%, #27a666 50%, #1cad1c 100%);
  margin-top: 0; /* Remove margin since body has padding-top */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 93, 54, 0.03),
    rgba(255, 255, 255, 0.05)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  padding: 0 20px;
  animation: fadeInUp 0.6s ease-out;
}

.page-indicator {
  background: linear-gradient(
    135deg,
    rgba(10, 93, 54, 0.1),
    rgba(10, 93, 54, 0.05)
  );
  color: #0a5d36;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  animation: fadeInUp 0.6s ease-out both;
  box-shadow: 0 4px 15px rgba(10, 93, 54, 0.1);
  border: 1px solid rgba(10, 93, 54, 0.1);
}

.btn-primary {
  background: #0a5d36;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 93, 54, 0.3);
  transform: scale(1);
}

.btn-primary:hover {
  background: #000000;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  padding: 15px 30px;
  border: 2px solid #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  transform: scale(1);
}

.btn-secondary:hover {
  background: #ffffff;
  color: #0a5d36;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Programs Section */
.programs-section {
  background: #f8f9fa;
  padding: 100px 0;
  position: relative;
}


.section-header {
  text-align: center;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

.section-subtitle {
  color: #0a5d36;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.section-title {
  color: #333;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 25px;
}

.section-description {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 18px;
}

/* Program Cards */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 20px;
}

.program-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
}

.program-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.program-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.program-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 93, 54, 0.3), rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
}

.program-card:hover .program-image::before {
  background: linear-gradient(135deg, rgba(10, 93, 54, 0.1), rgba(0, 0, 0, 0));
}

.program-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 10px;
}

.program-title {
  color: #0a5d36;
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  flex: 1;
  line-height: 1.3;
}

.read-more-btn {
  background: transparent;
  color: #0a5d36;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #0a5d36;
  font-size: 16px;
  flex-shrink: 0;
}

.read-more-btn:hover,
.read-more-btn.active {
  background: #0a5d36;
  color: #ffffff;
  transform: scale(1.05) rotate(180deg);
}

.read-more-btn.active {
  transform: rotate(180deg);
}

.program-description {
  color: #555;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: auto;
  padding-bottom: 20px;
}

.program-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 0 25px;
}

.program-dropdown.active {
  max-height: 500px;
  padding: 25px;
}

.program-dropdown-content {
  color: #333;
  line-height: 1.7;
  font-size: 15px;
  overflow-y: auto;
  padding-right: 15px; /* Space for scrollbar */
}

.service-detailed-content {
  max-height: 200px; /* Adjust as needed */
  overflow-y: auto;
  padding-right: 15px; /* To avoid content hiding behind the scrollbar */
}

/* Custom Scrollbar for detailed content */
.service-detailed-content::-webkit-scrollbar {
  width: 6px;
}

.service-detailed-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.service-detailed-content::-webkit-scrollbar-thumb {
  background: #0a5d36;
  border-radius: 10px;
}

.service-detailed-content::-webkit-scrollbar-thumb:hover {
  background: #084a2c;
}

/* Custom Scrollbar */
.program-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.program-dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.program-dropdown-content::-webkit-scrollbar-thumb {
  background: #0a5d36;
  border-radius: 10px;
}

.program-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #084a2c;
}

.program-feature {
  background: #ffffff;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.program-feature:hover {
  border-color: #0a5d36;
  transform: none;
}

.program-feature h5 {
  color: #0a5d36;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.program-feature p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* Mission Section */
.mission-section {
  background: #ffffff;
  padding: 100px 0;
  text-align: center;
}

.mission-title {
  color: #0a5d36;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 25px;
}

.mission-description {
  color: #666;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.8;
  font-size: 18px;
}

.mission-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Responsive Design */
@media (max-width: 1024px) {

  .hero-content h1 {
    font-size: 3rem;
  }

  .program-image {
    width: 350px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 180px;
    margin-top: 70px;
  }

  .page-indicator {
    font-size: 14px;
    padding: 10px 20px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .program-card {
    flex-direction: column !important;
    position: relative;
  }

  .program-image {
    width: 100%;
    height: 250px;
  }

  .program-content {
    padding: 25px;
  }

  .program-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .program-title {
    font-size: 20px;
  }

  .read-more-btn {
    align-self: flex-end;
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .program-features {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 25px;
    font-size: 14px;
  }

  .section-title {
    font-size: 2rem;
  }

  .program-content {
    padding: 25px;
  }
}

/* Program Actions */
.program-actions {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  text-align: center;
  flex-shrink: 0; /* Prevent shrinking in flex container */
  position: relative;
  z-index: 10; /* Ensure it's above other content */
}

.book-appointment-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(10, 93, 54, 0.3);
  position: relative;
  overflow: hidden;
  margin: 10px 0; /* Add margin for better spacing */
  min-height: 50px; /* Ensure minimum height */
}

.book-appointment-btn:hover {
  background: #000000;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.book-appointment-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.book-appointment-btn:hover::before {
  left: 100%;
}

/* Responsive styles for book appointment button */
@media (max-width: 768px) {
  .program-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .book-appointment-btn {
    padding: 14px 28px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .program-actions {
    margin-top: 1rem;
    padding-top: 0.75rem;
  }

  .book-appointment-btn {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  /* Adjust scroll track for mobile */
  .program-dropdown-content {
    max-height: 500px;
    padding-right: 5px;
    padding-bottom: 30px; /* Extra padding for mobile */
  }

  .program-dropdown-content::-webkit-scrollbar {
    width: 6px;
  }
}
