#index_hero_section,
#index_services_section,
#index_about_section,
#index_testimonials_section,
#index_blog_section {
  max-width: 60%;
  margin-inline: auto;
  margin-block: 150px;
  font-family: "Inter", sans-serif;
}

#index_hero_section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 100px;
  /* background-color: aqua; */
}

#index_our_partner_section {
  margin-inline: auto;
  margin-block: 200px;
  font-family: "Inter", sans-serif;
}

#index_blog_section {
  margin-bottom: 100px;
}

#index_hero_left {
  width: 50%;
}

#index_hero_subtitle {
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
}

#index_hero_title {
  color: var(--primary-color);
  font-size: 45px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 110%;
}

#index_hero_info {
  font-size: clamp(16px, 2.5vw, 23px);
  color: var(--dark);
  margin: 35px 0px 65px 0px;
}

#index_book_appointment_btn,
#index_services_all_services,
#index_about_learn_more_btn,
#index_testimonials_btn,
#index_all_blogs {
  color: var(--light);
  background-color: var(--secondary-color);
  width: 35%;
  text-align: center;
  border-radius: 2px;
  text-transform: uppercase;
  font-size: clamp(13px, 1.5vw, 15px); /* fixed missing unit from original */
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  transition: 100ms all ease-in-out;
}

#index_book_appointment_btn:hover,
#index_services_all_services:hover,
#index_about_learn_more_btn:hover,
#index_testimonials_btn:hover,
#index_all_blogs:hover {
  background-color: var(--light);
  color: var(--secondary-color);
  outline: 1px solid var(--secondary-color);
}

#index_hero_right {
  width: 700px;
  /* height: 390px; or whatever fixed height you want */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#index_hero_right img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* or "contain" depending on your preference */
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

#index_hero_right img.fade-out {
  opacity: 0;
}

/* SERVICES SECTION */
#index_services_section {
  text-align: center;
}

#index_services_title,
#index_about_title,
#index_testimonials_section_title,
#index_our_partner_title,
#index_blog_title {
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  text-align: center;
}

#index_services_subtitle,
#index_about_subtitle,
#index_testimonials_section_subtitle,
#index_our_partner_subtitle,
#index_blog_subtitle,
#index_about_subtitle {
  font-size: 20px;
  text-transform: none;
  color: var(--dark);
  text-align: center;
  margin-top: 10px;
}

#index_services_list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  /* margin-top: 100px; */
  margin-block: 50px;
  margin-inline: auto;
}

.service_box {
  position: relative;
  overflow: hidden;
  width: 300px;
  height: 250px;
  text-align: center;
  margin: 15px;
  background-color: var(--white);
  cursor: pointer;

  /* Initial animation state */
  opacity: 0;
  transform: translateY(30px);
  border-radius: 2px;

  /* Transitions */
  transition: color 0.4s ease, background-color 0.4s ease, opacity 0.4s ease,
    transform 0.4s ease;
}

.service_box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 0;
  height: 0;
  background-color: var(--secondary-color);
  border-radius: 50%;
  /* transform: translate(-50%, -50%); */
  z-index: 0;
  transition: width 0.6s ease-in-out, height 0.6s ease-in-out;
}

/* Expand the radial background on hover */
.service_box:hover::before {
  width: 300%;
  height: 300%;
  color: var(--light);
}

.service_box .box_info {
  position: relative;
  z-index: 1;
  transition: color 150ms ease-in-out;
}

/* .service_box:hover .box_info {
  color: var(--light);
} */

/* .service_box:hover .service_icon img {
  filter: brightness(0) saturate(100%) invert(90%) sepia(10%) hue-rotate(20deg);
} */

/* When in view (triggered by JS/IntersectionObserver) */
.service_box.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effects */
.service_box:hover {
  /* background-color: var(--secondary-color); */
  color: var(--light);
  /* transition: width 0.9s ease, height 0.9s ease; */
}

/* Icon color change on hover */
.service_icon img {
  transition: filter 0.4s ease;
}

.service_box:hover .service_icon img {
  filter: brightness(0) saturate(100%) invert(90%) sepia(10%) hue-rotate(20deg);
}

.box_info {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.service_icon {
  width: 65px;
  margin-inline: auto;
}

.service_icon img {
  width: 100%;
}

/*   
filter: brightness(0) invert(1); makes white icon black
  background-color: var(--secondary-color);
  mix-blend-mode: multiply;
*/

.service_title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  width: 70%;
  margin-inline: auto;
  margin-top: 10px;
}

#index_services_all_services {
}

/* ANIMCATION */
.service_box {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* When in view */
.service_box.in-view {
  opacity: 1;
  transform: translateY(0);
}

#index_about_section {
  display: flex;
  justify-content: space-between;
  align-items: start;
  font-family: "Poppins", sans-serif;
  /* background-color: var(--white);
  padding: 10px; */
}

#index_about_left {
  width: 40%;
}

#index_about_left img {
  width: 100%;
  border-radius: 2px;
}

#index_about_right {
  width: 55%;
}

#index_about_title,
#index_about_subtitle {
  text-align: start;
}

#index_about_subtitle {
  margin-top: 0px;
}

#index_about_info {
  /* width: 90%; */
  /* background-color: red; */
  margin-block: 30px;
  font-size: 19px;
  line-height: 150%;
}

#index_about_learn_more_btn {
  margin-top: 30px !important;
}

#index_testimonials_section_box {
  display: flex;
  overflow-y: scroll;
  justify-content: space-between;
  margin-top: 100px;
  align-items: center;
}

.testimonials_box {
  width: 30%;
  /* background-color: var(--white); */
  border-radius: 2px;
  padding: 20px 10px;
  text-align: center;
  font-family: "Poppins", sans-serif;
  margin-bottom: 30px;
}

.testimonials_box {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonials_box.in-view {
  opacity: 1;
  transform: translateY(0);
}

.testimonials_stars {
  display: flex;
  justify-content: center;
  align-items: center;
}

.testimonials_star {
  width: 25px;
}

.testimonials_star img {
  width: 100%;
}

.testimonials_text {
  margin-top: 10px;
  margin-bottom: 25px;
}

.testimonials_author {
  font-weight: 600;
}

#index_testimonials_btn,
#index_all_blogs {
  display: flex;
  justify-content: center;
  margin-inline: auto;
  width: 250px;
  margin-top: 30px;
}

/* #index_our_partners_logo {
  margin-block: 100px;
  justify-content: center;
  align-items: center;
  display: flex;
  background-color: var(--primary-color);
  padding-block: 35px;
  margin-top: 50px;
}

.our_partner {
  width: 200px;
  margin-inline: 50px;
  cursor: pointer;
  transition: 1s ease-in-out all;
}

.our_partner img {
  width: 100%;
} */

#index_our_partners_logo {
  max-width: 80%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 20px;
  align-items: center;
  justify-items: center;
  padding: 20px;
}

.our_partner {
  /* background-color: red; */
  /* width: 500px; */
  /* height: 300px; */
  align-items: center;
}

#index_our_partners_logo .our_partner img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

#index_blog_box {
  margin-block: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog_box {
  width: 30%;
  margin-inline: 10px;
  text-align: center;
  background-color: var(--primary-color);
  transition: background-color 100ms ease-in-out;
  cursor: pointer;
  border-radius: 2px;
  padding-bottom: 5px;
}

.blog_box:hover {
  background-color: var(--secondary-color);
}

.blog_img {
  width: 100%;
}

.blog_box img {
  width: 100%;
  object-fit: cover;
}

.blog_title {
  margin-block: 20px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
  padding: 5px;
  text-decoration: none;
}

/* @media (max-width: 480px)  */
@media (max-width: 1024px) {
  #index_hero_section,
  #index_services_section {
    display: block;
    max-width: 100%;
    margin-top: 60px;
  }

  #index_hero_section,
  #index_services_section,
  #index_about_section,
  #index_testimonials_section,
  #index_blog_section {
    margin-block: 100px;
  }

  #index_hero_section {
    display: flex;
    flex-direction: column-reverse;
    margin-top: 0px;
  }

  #index_hero_left {
    width: 100%;
    margin-inline: auto;
    padding-inline: 20px;
    text-align: center;
  }
  #index_hero_subtitle {
    font-size: 15px;
  }

  #index_hero_title {
    font-size: 25px;
  }

  #index_hero_info {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 25px;
  }

  #index_book_appointment_btn {
    width: 50%;
    padding: 10px 20px;
  }

  #index_hero_right {
    /* display: none; */
    width: 70%;
    /* background-color: red; */
    margin-inline: auto;
    /* margin-bottom: 50px; */
  }

  /* SERVICES SECTIONS */
  #index_services_title {
    font-size: 23px;
  }

  #index_services_subtitle {
    font-size: 16px;
  }

  #index_services_list {
    margin-block: 30px;
  }

  .service_box {
    width: 150px;
    height: 100px;
    margin: 5px;
  }

  .service_icon {
    width: 30px;
  }

  .service_title {
    font-size: 13px;
  }

  #index_about_section {
    display: block;
    max-width: 90%;
  }

  #index_about_left {
    width: 100%;
    width: 80%;
    margin-inline: auto;
  }

  #index_about_left img {
    margin-inline: auto;
  }

  #index_about_right {
    width: 100%;
    text-align: center;
  }

  #index_about_title,
  #index_about_subtitle {
    text-align: center;
  }

  #index_testimonials_section {
    max-width: 90%;
    margin-bottom: 0px;
  }

  #index_testimonials_section_box {
    display: block;
    width: 100%;
    margin-block: 10px;
  }

  .testimonials_box {
    width: 100%;
  }

  #index_our_partners_logo {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .our_partner {
    max-width: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .our_partner img {
    width: 100%;
    margin-block: 15px;
    margin-inline: auto;
  }

  #index_blog_box {
    display: block;
  }

  .blog_box {
    width: 100%;
    margin-block: 30px;
  }

  .blog_title {
    padding-bottom: 20px;
  }

  #index_our_partner_section {
    margin-block: 100px;
  }
}
