:root {
  --primary: #59a43f;
  --secondary: #1c5a07;
  --white: #ffffff;
  --black: #000000;
}
.container {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 15px;
}
img {
  vertical-align: bottom;
  transition: all 0.5s ease-in;
}
a {
  transition: all 0.5s ease-in;
  text-decoration: none;
  display: inline-block;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--black);
}
body {
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
/* Hide default buttons */
.swiper-button-next,
.swiper-button-prev {
  display: none;
}

/* Style the custom buttons */
.custom-swiper-button-next,
.custom-swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

.custom-swiper-button-next {
  right: 100px;
}

.custom-swiper-button-prev {
  left: 100px;
}

/* Style the SVG icons */
.custom-swiper-button-next svg,
.custom-swiper-button-prev svg {
  width: 40px;
  height: 40px;
  fill: #41b0b493;

  border-radius: 100%;
  background-color: var(--white);
}

/* Add hover effect */
.custom-swiper-button-next:hover svg,
.custom-swiper-button-prev:hover svg {
  fill: #ff6347; /* Change to desired hover color */
}
.swiper-container {
  overflow: hidden;
  position: relative;
  aspect-ratio: 12/5;
}

.topbar_section {
  background-color: var(--primary);
  padding: 23px;
}
.topbar_container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.current_time_and_date {
  font-weight: 600;
  color: var(--white);
  font-size: 20px;
}
.topbar_social {
  display: flex;
  gap: 10px;
}
.topbar_social a img:hover {
  transform: scale(1.2);
}
.slide_img {
  width: 100%;
}
.header_section {
  padding: 10px 0;
}
.header_container {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.header_a {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 400px;
}
.header_a span {
  font-size: 14px;
  color: var(--black);
  font-weight: 500;
  transition: all 0.5s ease;
}
.header_a span:hover {
  color: var(--primary);
}
.nav_section {
  background-color: var(--primary);
  padding: 16px;
}
.nav_container {
  display: flex;
  justify-content: center;
  gap: 50px;
}
.nav_a {
  font-size: 18px;
  color: var(--white);
  font-weight: 500;
  position: relative;
}
.nav_a:before {
  content: "";
  width: 0px;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  bottom: -5px;
  transition: all 0.5s ease-in;
}
.nav_a:hover::before {
  width: 50px;
}
.facilities_section {
  padding: 80px 0;
}
.facilities_top {
  text-align: center;
  margin-bottom: 50px;
}
.facilities {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.facility {
  width: calc((100% / 3) - 20px);
  display: flex;
  align-items: start;
  gap: 20px;
}
.facilities_top span {
  font-size: 18px;
}
.facilities_heading {
  font-size: 52px;
  color: var(--secondary);
  margin-bottom: 12px;
}
.facilities_desc {
  font-size: 16px;
}

.facility_name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.facility_desc {
  font-size: 14px;
}
.facility {
  padding: 12px;
  border-radius: 20px 0 20px 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  transition: all 0.5s ease-in-out;
}
.facility:hover {
  background-color: #58a43f36;
  cursor: cell;
  border-color: var(--primary);
}
.about_section {
  padding: 50px 0;
  background-image: linear-gradient(to right, #efffe0, #ffffff);
}
.sm_container {
  max-width: 990px;
  margin: 0 auto;
  padding: 0 15px;
}
.about_container {
  display: flex;
  gap: 60px;
  align-items: center;
}
.about_left,
.about_right {
  width: 50%;
}

.about_left {
  position: relative;
}

.about_img {
  z-index: 1; /* Base z-index */
  transition: transform 0.3s ease, z-index 0s ease 0.3s; /* Smooth transition */
}

.about_img_1 {
  padding-bottom: 50px;
  position: relative;
}

.about_img_2 {
  position: absolute;
  right: 0;
  bottom: 0;
}

.about_img:hover {
  transform: scale(1.1); /* Scale effect on hover */
  z-index: 100; /* Bring to front */
}

.about_img:not(:hover) {
  z-index: 1; /* Reset z-index for other images */
}
.about_heading_top {
  font-size: 18px;
  color: var(--primary);
}
.heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary);
}

.about_ul {
  list-style-type: none;
  padding: 0;
  margin: 50px 0 80px;
  font-size: 18px;
  font-weight: 500;
}
.about_li:not(:last-child) {
  margin-bottom: 10px;
}
.about_btn {
  font-size: 18px;
  padding: 6px 16px;
  position: relative;
  border: 2px solid #4b948e;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}
.btn_before {
  width: 100px;
  height: 4px;
  background-color: #ffbfd5;
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.5s ease-in;
}
.btn_after {
  width: 100px;
  height: 4px;
  background-color: #ffbfd5;
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.5s ease-in;
}
.about_btn:hover .btn_before,
.about_btn:hover .btn_after {
  width: 100%;
  box-shadow: 5px 5px 40px var(--secondary);
}
.heading_container {
  text-align: center;
}
.top_heading {
  font-size: 20px;
}
.main_heading {
  font-size: 40px;
  color: var(--primary);
}
.doctors {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}
.doctor_section {
  padding: 80px 0;
}
.doctor {
  width: calc((100% / 4) - 15px);
  text-align: center;
  background-color: var(--primary);
  padding: 32px 24px;
  transition: color 1s ease-in;
}
.doctor_name,
.doctor_designation,
.doctor_time span {
  color: var(--white);
}
.doctor_name {
  font-size: 24px;
}
.doctor_designation {
  font-size: 18px;
  margin: 12px 0 24px;
  display: inline-block;
}
.doctor_time span {
  font-size: 18px;
  font-weight: 600;
}
.doctor_time {
  position: relative;
}
.doctor_time::before {
  content: "";
  width: 120px;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
}
.doctor:hover {
  background-color: var(--secondary);
}
.gallery {
  padding: 50px 0;
  display: flex;
  flex-wrap: wrap;
}
.gallery_img {
  width: 25%;
}
.map {
  width: 100%;
  height: 450px;
}
.footer_section {
  padding: 60px 0;
  background-image: url(./assets/new/footer_bg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 50px;
}
.footer_container {
  display: flex;
  gap: 50px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer_left {
  max-width: 275px;
}
.footer_logo {
  width: 100%;
  max-width: 150px;
}
.footer_desc {
  margin-top: 30px;
  color: var(--white);
  font-size: 14px;
}
.footer_middle {
  max-width: 260px;
}
.footer_heading {
  margin-bottom: 32px;
  color: var(--white);
  font-size: 24px;
  position: relative;
}
.footer_heading span {
  position: absolute;
  width: 70px;
  height: 2px;
  background-color: var(--white);
  left: 0;
  bottom: -5px;
}
.footer_a {
  display: flex;
  align-items: start;
  gap: 5px;
}
.footer_a span {
  font-size: 14px;
  color: var(--white);
  transition: all 0.5s ease-out;
}
.footer_a:not(:last-child) {
  margin-bottom: 16px;
}
.footer_a span:hover {
  color: var(--primary);
}
.footer_right {
  max-width: 250px;
}
form {
  margin-top: 50px;
  display: flex;
  border-bottom: 2px solid var(--white);
}
.hero {
  background-image: url("./assets/new/hero_bg.webp");
  padding: 180px 0;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero_container {
  max-width: 515px;
  margin-left: auto;
}
.hero_heading {
  font-size: 96px;
  line-height: 85px;
  text-transform: uppercase;
  color: var(--primary);
}
.hero_sub {
  font-family: "Caramel", cursive;
  font-size: 126px;
  position: relative;
  top: -60px;
}
.email_input {
  flex: 1;
  background-color: transparent;
  padding: 5px;
  outline: none;
  border: none;
  color: var(--white);
}
.email_input::placeholder {
  color: #aeaeae;
}
.submit_btn {
  background-color: transparent;
  border: none;
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.5s ease;
  padding: 5px;
}
.submit_btn:hover {
  opacity: 1;
}
.header_logo {
  width: 100%;
  max-width: 100px;
}
@media screen and (max-width: 991px) {
  .topbar_container,
  .footer_container {
    flex-direction: column;
    align-items: center;
  }
  .header_container,
  .header_a {
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-wrap: balance;
  }
  .facilities_section {
    padding: 40px 0;
  }
  .facilities_heading {
    font-size: 40px;
  }
  .facility {
    width: calc(50% - 20px);
  }

  .about_left {
    display: none;
  }
  .about_right {
    width: 100%;
  }
  .doctor {
    width: calc(50% - 10px);
  }
  .gallery_img {
    width: 50%;
  }
  .footer_left,
  .footer_right,
  .footer_middle {
    width: 100%;
    max-width: none;
  }
  .hero {
    padding: 50px 0;
  }
  .hero_container {
    padding: 20px 10px;
    background-color: #ffffffb7;
    margin: 0 auto;
    text-align: center;
  }
  .hero_heading {
    font-size: 50px;
    line-height: 60px;
  }
  .hero_sub {
    position: static;
    font-size: 70px;
  }
}
@media screen and (max-width: 600px) {
  .nav_container {
    gap: 10px;
  }
  .custom-swiper-button-prev {
    left: 50px;
  }
  .custom-swiper-button-next {
    right: 50px;
  }
  .facilities_heading {
    font-size: 36px;
    text-wrap: balance;
  }
  .facility,
  .doctor {
    width: 100%;
  }
  .about_ul {
    margin: 40px 0;
  }
  .current_time_and_date {
    text-align: center;
    font-size: 14px;
  }
  .main_heading {
    font-size: 32px;
  }
}
