body {
  font-family: "Merriweather", serif;
  background-color: #f9f6f1;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.8;
}
header {
  background: linear-gradient(135deg, #4a6356, #2c4033);
  color: white;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.header-main {
  font-size:18px;
  margin: 0;
}

.header-main a{
  text-decoration: none;
  color: #f9f6f1;
}

nav ul {
  list-style: none;
  padding: 0;
  text-align: center;
  background: #4a6356;

  margin: 0;
  padding: 15px 0;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  display: flex; 
  gap: 20px; 
  justify-content: center; 
  flex-wrap: wrap;
}

nav ul li {
  display: inline;
  margin: 0 20px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}
.hero-text {
text-align: center;
  color: white;
  font-size: 24px;
  margin-top: -40px;
}
section, article {
  max-width: 1000px;
  margin: 50px auto;
  padding: 50px;
  background: white;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s ease-in-out;

}
.service-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-box {
  padding: 20px;
  background: #d8e0dc;
  border-radius: 10px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.cta {
  text-align: center;
  margin-top: 40px;
}
.cta a {
  display: inline-block;
  background: #5a6d57;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 18px;
  text-decoration: none;
}
.cta a:hover {
  background: #495b45;
}
.testimonials {
  background: #ece8e1;
  padding: 50px;
  text-align: center;
}
.testimonial-box {
  max-width: 800px;
  margin: auto;
  font-style: italic;
}
.contact-apps-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
.contact-apps-icons a img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease-in-out;
  padding: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}
.contact-apps-icons a img:hover {
  transform: scale(1.15);
}

#counselling h2 {
  color: #2c4033;
  font-size: 28px;
  margin-bottom: 20px;
}
#counselling h3 {
  color: #5a6d57;
  font-size: 22px;
  margin-top: 30px;
}
#counselling ul {
  list-style: none;
  padding: 0;
}
#counselling ul li {
  background: #e5ece7;
  margin: 10px 0;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
}

.testimonial-slider {
  position: relative;
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 150px; /* Ensures enough space for text */
}

.testimonial-box {
  text-align: center;
  font-style: italic;
  padding: 20px;
  width: 100%;
  opacity: 0;
  position: absolute;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.testimonial-box.active {
  opacity: 1;
  position: relative;
  z-index: 2;
}

.prev-testimonial,
.next-testimonial {
  background-color: #5a6d57;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  z-index: 3; /* Ensures the buttons are above the text */
}

.prev-testimonial {
  left: 0px; /* Adjusted for better spacing */
}

.next-testimonial {
  right: 0px; /* Adjusted for better spacing */
}

.prev-testimonial:hover,
.next-testimonial:hover {
  background-color: #495b45;
}

.boxed-image {
    width: 35%; 
    height: 35%; 
    display: block; 
    margin: 0 auto; 
    border-radius:14px
}

.wide-image {
    width: 55%; 
    height: 55%; 
    display: block; 
    margin: 0 auto; 
    border-radius:14px;
}

@media only screen and (max-device-width: 500px) {
  .testimonial-box {
    width: 65%;
  }
  .service-container {
    display: grid;
    gap: 20px;
    width: auto;
    grid-template-columns: auto;
  }
}
        
@media only screen and (max-width: 430px) {
  section {
    padding: 20px;
  }

  nav ul {
    gap: 5px;            
  }

  header p {
    margin-bottom: 0px;
  }

  .boxed-image {
    width: 70%; 
    height: 70%; 
  }

  .wide-image {
    width: 100%; 
    height: 100%; 
    display: block; 
    margin: 0 auto; 
    border-radius:14px;
  } 

}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
}
footer {
  text-align: center;
  padding: 35px;
  background: #2c4033;
  color: white;
  font-size: 14px;
  margin-top: 50px;
  box-shadow: 0px -6px 15px rgba(0, 0, 0, 0.2);
}
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #4a6356;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  padding: 10px 0;
  z-index: 1000;
}

.dropdown-menu li {
  display: block;
  padding: 5px 20px;
}

.dropdown-menu li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  display: block;
}

/* Show on hover (desktop) */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile touch support: show on click (optional JS toggle later) */

    

/* Prevent off-screen overflow on mobile */
@media screen and (max-width: 600px) {
  .dropdown-menu {
    left: auto;
    right: 0;
    width: max-content;
    max-width: 85vw;
  }
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.contact-apps-icons a {
    line-height: 1;
}

#counselling {
    background: #ffffff;
    padding: 40px;
    margin: 50px auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}  

.ntf-container {
    max-width: 700px;
    margin: auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ntf-container h1 {
    font-size: 90px;
    color: #5a6d57;
    margin-bottom: 10px;
    margin-block-start:0px;
}

.ntf-container a.button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #5a6d57;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
}

.ntf-container a.button:hover {
    transform: translateY(-2px);
}

#therapeutic-contract section h1 {
  font-size: 1.6em;
}

#therapeutic-contract section h2 {
  font-size: 1.2em;
}
