:root {
  --primary: #002f4f;
  --secondary: #3caf51;
  --white: #ffffff;
  --black: #000000;
  --lite_bg: #f1f6ff;
}
img {
  vertical-align: bottom;
}
body {
  overflow-x: hidden;
}
a {
  text-decoration: none;
  transition: all 0.5s ease;
  display: inline-block;
}
* {
  padding: 0;
  margin: 0;
  font-family: "Public Sans", sans-serif;
  scroll-behavior: smooth;
  box-sizing: border-box;
}
.doctor_bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 5px;
}
.topbar_section {
  display: flex;
}
.nav_logo_img {
  max-width: 100px;
}
.topbar_left {
  width: 50%;
  background-color: var(--primary);
  padding: 15px;
  padding-left: calc(50% - 590px);
  display: flex;
  gap: 10px;
  color: var(--white);
  align-items: center;
}
.topbar_right {
  width: 50%;
  background-color: var(--secondary);
  text-align: end;
  padding: 15px;
  padding-right: calc(50% - 590px);
}
.social_icon {
  transition: all 0.5s ease;
}
.social_icon:hover {
  transform: scale(1.2);
}
.topbar_right {
  color: var(--white);
  font-weight: 700;
}
.container {
  max-width: 1210px;
  margin: 0 auto;
  padding: 0 15px;
}
.hero_section {
  padding: 30px 0 0;
  color: var(--white);
  position: relative;
}
.hero_top_heading {
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  position: relative;
}
.hero_top_heading::after {
  content: "";
  width: 120px;
  height: 2px;
  background-color: var(--secondary);
  position: absolute;
  left: 0;
  bottom: -16px;
}
.hero_heading {
  margin: 40px 0;
  font-size: 54px;
  font-weight: 900;
  max-width: 481px;
}
.hero_container {
  position: relative;
}
.hero_btn {
  padding: 14px 30px;
  border-radius: 5px;
  background-color: var(--secondary);
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: all 0.5s ease-in;
}
.hero_bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}
.hero_btn:hover {
  background-color: var(--black);
}
/* Navbar */
.hero_nav {
  position: relative;
  margin-bottom: 125px;
}
.sm_container {
  max-width: 1010px;
  margin: 0 auto;
  padding: 0 15px;
}
.hero_nav_container {
  background-color: #ffffffd5;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  padding: 16px;
  align-items: center;
}

/* Menus */
.menus {
  display: flex;
  align-items: center;
  gap: 50px;
}
.menu {
  color: var(--black);
  font-size: 16px;
  font-weight: 600;
}
.menu:hover {
  color: var(--secondary);
}

/* Hamburger Menu */
.menu_toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.menu_toggle span {
  width: 30px;
  height: 3px;
  background-color: var(--black);
  border-radius: 2px;
}

/* Responsive styles */

.showcases {
  position: relative;
  padding-top: 60px;
}
.showcase_container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 45px 70px 0;
  background-color: var(--white);
  flex-wrap: wrap;
}
.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--black);
  font-weight: 600;
  font-size: 20px;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.274);
}
.showcase span span {
  color: var(--secondary);
}
.card_section {
  padding: 120px 0 70px;
}
.card_container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.card {
  width: calc(100% / 3);
  color: var(--white);
  padding: 70px 44px 44px;
}
.card_1 {
  background-image: url(./assets/welcome.webp);
  background-size: cover;
  background-repeat: no-repeat;
}
.card_main {
  background-image: url(./assets/opening_bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
}
.card_3 {
  background-image: url(./assets/apointment.webp);
  background-size: cover;
  background-repeat: no-repeat;
}
.card_heading {
  font-size: 26px;
  font-weight: bold;
}
.card_desc {
  margin: 20px 0 30px;
}
.card_info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dds {
  margin-bottom: 20px;
}
.card_main img {
  display: inline-block;
  margin-bottom: 25px;
}
.card_timetable {
  margin-top: 20px;
  list-style: none;
}
.card_time {
  display: flex;
  justify-content: space-between;
  padding-bottom: 5px;
  border-bottom: 1px dotted var(--white);
}
.card_time:not(:last-child) {
  margin-bottom: 20px;
}
form {
  margin-top: 20px;
}
.input {
  font-size: 16px;
  padding: 10px 17px;
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--white);
  border-radius: 10px;
  outline: none;
  margin-bottom: 25px;
  color: var(--white);
}
.input::placeholder {
  color: var(--white);
}
.ssd {
  height: 80px;
}
.submit_btn {
  cursor: pointer;
  width: 100%;
  color: var(--secondary);
  font-weight: 600;
  padding: 10px;
  border: none;
  border-radius: 10px;
  transition: all 0.5s ease;
}
.submit_btn:hover {
  box-shadow: 5px 10px 5px var(--primary);
}
.space {
  display: block;
  height: 10px;
}
.info_cotainer {
  display: flex;
  align-items: center;
  gap: 64px;
}
.info_right,
.info_left {
  width: 100%;
}
.info_right img {
  width: 100%;
}
.subheading {
  font-size: 54px;
}
.subheading span {
  color: var(--secondary);
}
.desc {
  margin: 24px 0 40px;
}
.wwd_section {
  position: relative;
  z-index: 99;
}
.wwd_container {
  background-color: var(--lite_bg);
  padding: 100px;
  text-align: center;
}
.heading {
  font-size: 54px;
  position: relative;
}
.heading:before {
  content: "";
  width: 100px;
  height: 2px;
  background-color: var(--secondary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -20px;
}
.heading_sub {
  margin: 20px 0 60px;
  font-size: 16px;
}
.wwds {
  display: flex;
  gap: 60px 40px;
  flex-wrap: wrap;
}
.wwd {
  padding: 48px 30px 56px;
  text-align: center;
  width: calc((100% / 3) - 30px);
  background-color: var(--white);
  border-radius: 10px;
  position: relative;
}
.wwd span {
  display: block;
  font-weight: 600;
  font-size: 24px;
}
.wwd img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.marketing_section {
  background-image: url(./assets/blue_bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 460px 0 100px;

  margin-top: -380px;
}
.markeing_container {
  display: flex;
  align-items: center;
  gap: 30px;
}
.marketing_left,
.marketing_right {
  width: 100%;
}
.marketing_icons {
  display: flex;
  gap: 30px;
  align-items: center;
}
.icon_border {
  width: 100px;
  height: 2px;
  background-color: var(--secondary);
}
.sm_heading {
  margin: 20px 0 50px;
  font-size: 44px;
}

.call_btn {
  display: flex;
  gap: 10px;
  width: fit-content;
}
.sdfg span {
  display: block;
  color: var(--white);
}
.dde {
  color: var(--secondary) !important;
  font-size: 20px;
  font-weight: 700;
}
.call_btn:hover {
  gap: 20px;
}
.doctor_section {
  padding: 100px 0;
}
.texts {
  text-align: center;
  max-width: 727px;
  margin: 0 auto;
}
.doctors {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.marketing_right img {
  width: 100%;
}
.doctor {
  width: calc(25% - 15px);
  padding: 30px;
  border-radius: 10px;
  background-color: var(--secondary);
  color: var(--white);
}
.doctor_top {
  display: flex;
  align-items: center;
  gap: 20px;
}
.doctor_designation,
.doctor_from {
  font-size: 16px;
  font-style: italic;
}
.doctor_middle {
  margin: 25px 0 35px;
}
.doctor_name {
  font-size: 24px;
}
.doctor_day {
  display: block;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
}
.gallery_img {
  width: 25%;
}
.gallery_section {
  padding: 100px 0;
  background-image: url(./assets/blue_bg_2.webp);
  background-repeat: no-repeat;
  background-size: cover;
}
.location_section {
  padding: 100px 0;
}
.location_container {
  position: relative;
}
.map {
  width: 100%;
  height: 400px;
}
.location_text {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%);
  font-weight: 20px;
  padding: 17px;
  background-color: var(--secondary);
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 10px;
}
.wt {
  color: var(--white);
}
.footer_section {
  padding: 100px 0;
  background-image: url(./assets/blue_bg_3.webp);
  background-repeat: no-repeat;
  background-size: cover;
}
.footer_container {
  display: flex;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
}
.footer_right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.footer_desc {
  max-width: 475px;
  font-size: 14px;
  color: var(--white);
}

.footer_menus,
.footer_socials {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer_menu {
  color: var(--white);
}
.footer_menu:hover {
  color: var(--secondary);
}
.footer_bottom {
  background-color: var(--black);
  color: var(--white);
  text-align: center;
  padding: 12px;
}
.footer_bottom span {
  font-size: 12px;
}
.backtotop {
  display: block;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.5s ease;
}

.backtotopimg {
  width: 50px;
  height: 50px;
}

@media (max-width: 991px) {
  .topbar_right {
    padding-right: 0;
  }
  .card_container {
    gap: 20px;
  }
  .hero_nav_container {
    position: relative;
  }
  .menus {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffffd5;
    width: 100%;
    text-align: right;
    padding: 20px;
    border-radius: 0 0 5px 5px;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    gap: 10px;
  }

  /* Show the menu when the active class is added */
  .menus.active {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .menu_toggle {
    display: flex;
  }

  .menu {
    padding: 15px 0;
    width: 100%; /* Make the links take full width */
    text-align: center; /* Center the text */
    font-size: 18px; /* Larger font for better readability */
    border-bottom: 1px solid var(--lite_bg); /* Add bottom border to separate items */
  }
  .menu:last-child {
    border-bottom: none; /* Remove border from the last item */
  }

  .nav_logo_img {
    max-width: 150px;
  }

  /* Fix Call Menu */
  .menu img {
    vertical-align: middle;
    margin-right: 8px;
  }
  .topbar_section {
    flex-direction: column-reverse;
  }
  .topbar_left,
  .topbar_right {
    width: 100%;
    text-align: center;
    overflow: hidden;
  }
  .topbar_left {
    justify-content: center;
  }
  .hero_nav {
    margin-bottom: 30px;
  }
  .showcase {
    width: calc(50% - 5px);
  }
  .card {
    width: 100%;
  }
  .info_right {
    display: none;
  }
  .wwd {
    width: calc(50% - 30px);
  }
  .markeing_container {
    flex-direction: column-reverse;
  }
  .doctor {
    width: calc(50% - 10px);
  }
  .gallery_img {
    width: 50%;
  }
  .footer_container,
  .footer_right {
    flex-direction: column;
  }
  .info_left {
    padding-bottom: 30px;
  }
  .showcase_container {
    padding: 30px 30px 0;
  }
  .location_text {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 756px) {
  .hero_heading,
  .hero_heading,
  .heading,
  .sm_heading,
  .subheading {
    font-size: 43px;
  }
  .wwd_container {
    padding: 30px;
  }
}
@media (max-width: 540px) {
  .showcase,
  .wwd,
  .doctor {
    width: 100%;
  }
  .hero_container {
    background-color: #0000006b;
    text-align: center;
    padding: 20px 0;
  }
  .hero_top_heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .hero_heading,
  .hero_heading,
  .heading,
  .sm_heading,
  .subheading {
    font-size: 35px;
  }
}
