:root {
  --active-link: #c5354f;
  --text-clr: #41404d;
}

body::-webkit-scrollbar {
  display: none;
}

p {
  margin-bottom: 0;
}

/* header */
.header {
  padding: 4rem 6rem;
  margin-bottom: 4rem;
  width: 100%;
}
.home {
  padding: 0 4rem;
}
.home > *:not(:last-child) {
  margin-bottom: 4rem;
}
@media all and (max-width: 780px) {
  .header {
    padding: 2rem 4rem;
    margin-bottom: 2rem;
  }
  .home {
    padding: 0 2rem;
  }
  .home > *:not(:last-child) {
    margin-bottom: 2rem;
  }
}
@media all and (max-width: 540px) {
  .header {
    padding: 1rem 2rem;
    margin-bottom: 1rem;
  }
  .home {
    padding: 0 1rem;
  }
  .home > *:not(:last-child) {
    margin-bottom: 1rem;
  }

  .contactUs form {
    padding: 0 1rem;
  }
}
/* navbar */
.navbar {
  box-shadow: 0 1px 16px 0px rgba(34, 62, 162, 0.122);
}
.navbar .nav-logo {
  background: var(--text-clr);
}
.navbar .nav-link.active {
  color: var(--active-link);
  position: relative;
}
.navbar .nav-link.active::before {
  position: absolute;
  content: "";
  height: 2px;
  width: 40%;
  background: var(--active-link);
  bottom: 0;
}
.nav {
  margin-bottom: 0;
}
.dropdown {
  position: static;
}
.dropdown-menu {
  margin: auto;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
}
.hospitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: white;
  width: 85%;
  margin: auto;
  border-radius: 1rem;
  box-shadow: 0 1px 20px 0 rgba(34, 62, 162, 0.122);
}
.hospital-lists {
  grid-column: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: start;
}
.hospital-lists p {
  margin-bottom: 0.25rem;
}
/* header */
.header {
  background: url("../images/header-bg.png");
  background-size: cover;
  background-repeat: no-repeat;
}
.header-text {
  margin-bottom: 4rem;
}
.header-ctn {
  display: flex;
  gap: 1rem;
}
.header-ctn .ctn-body {
  padding: 0.5rem 2rem;
  background: #fff;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.header-ctn .ctn-text a {
  color: var(--active-link);
  text-decoration: none;
}

/* services */
.services {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}
.services .services-heroImage {
  /* width: 100%; */
  
}
.services-heroImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}
.services .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media all and (max-width: 500px) {
  .services .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-list {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid#e2e2e2;
  /* padding: 0rem 2rem; */
  border-radius: 1rem;
}

/* Our Medical Specialists */
.medical-specialists {
  text-align: center;
}
.medical-sliderImage {
  display: flex;
  flex-direction: column;
}
.medical-sliderImage img {
  border: 1rem solid #fff;
  border-radius: 100%;
  box-shadow: 0 1px 16px 0 rgba(34, 62, 162, 0.122);
  margin-bottom: 2rem;
}
.medical-crousel .slick-slide {
  display: flex;
  align-items: center;
  justify-content: space-around;
  transition: all 0.4s ease-in-out;
}
.medical-crousel .slick-slide,
.medical-crousel
  .slick-slide[aria-hidden="true"]:not(.slick-cloned)
  ~ .slick-cloned[aria-hidden="true"] {
  transform: scale(0.8, 0.8);
  transition: all 0.4s ease-in-out;
}
.slick-next,
.slick-prev {
  z-index: 5;
}

.slick-next:before,
.slick-prev:before {
  color: #000;
  font-size: 26px;
}
.slick-dots li button::before {
  font-size: 0.5rem;
}
.slick-arrow,
.slick-dots {
  position: absolute;
}
.slick-dots {
  top: 95%;
}
.slick-prev {
  top: 100%;
  left: 30%;
}
.slick-next {
  top: 100%;
  right: 30%;
}
.slick-prev::before {
  font-size: 22px;
  content: "ᐸ";
}
.slick-next::before {
  font-size: 22px;
  content: "ᐳ";
}

@media (max-width: 540px) {
  .header-ctn .ctn-body {
    width: 100%;
    padding: 0.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  .header-ctn {
    justify-content: space-between;
  }
  .header-ctn .ctn-text a {
    color: var(--active-link);
  }
  .services {
    flex-direction: column;
  }
  .services-grid {
    justify-content: center;
    align-items: center;
    justify-content: center;
  }
  .slick-prev {
    left: 15%;
  }
  .slick-next {
    right: 15%;
  }
}

/* our branches */
.branches {
  text-align: center;
}

.branches .slick-track {
  display: flex;
  padding: 1rem 0;
  gap: 2rem;
}
.branches .slick-slide {
  box-shadow: 0px 4px 16px 0 rgba(34, 62, 162, 0.122);
  padding: 2rem;
  width: 100%;
  border-radius: 1rem;
  margin-top: 1rem;
}
.branches-image img {
  max-width: 100%;
}
.branches .slick-dots {
  top: 106%;
}
.branches .slick-prev {
  top: 110%;
  left: 30%;
}
.branches .slick-next {
  top: 110%;
  right: 30%;
}

@media (max-width: 980px) {
  .hospitals {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .services {
    flex-direction: column;
    gap: 2rem;
  }
  .services-heroImage {
    height: 20rem;
  }
  .services-lists {
    text-align: center;
  }
  .medical-crousel .slick-next{
    right: 20%;
  }
  .medical-crousel .slick-prev{
    left: 20%;
  }
  .branches .slick-next{
    right: 20%;
  }
  .branches .slick-prev{
    left: 20%;
  }
}
@media all and (max-width: 540px) {
  .branches .slick-track {
    gap: 0;
  }
  .branches .slick-slide {
    padding: 1rem;
  }
  .branches-details p {
    margin-bottom: 0.8rem;
  }
  .branches .slick-prev {
    left: 25%;
  }
  .branches .slick-next {
    right: 25%;
  }
  .branches .slick-dots {
    top: 105%;
  }
  .medical-crousel .slick-dots {
    top: 96%;
  }
  .services .services-list{
    padding: 0 1.5rem;
  }
}
/* why choose us  */
.whyChooseUs {
  /* border: 4px solid red; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  /* padding: 2rem; */
  font-size: 1rem;
}

.whyChooseUs .text {
  width: 60%;
}

@media all and (max-width: 1100px) {
  .whyChooseUs {
    flex-direction: column;
    gap: 2rem;
  }

  .whyChooseUs .text,
  .whyChooseUs .image {
    width: 100%;
  }
}

.whyChooseUs .text .heading {
  /* border: 1px solid red; */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.whyChooseUs .grid-container {
  /* border: 2px solid blue; */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media all and (max-width: 430px) {
  .whyChooseUs {
    gap: 0;
  }

  .whyChooseUs .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.whyChooseUs .userData {
  /* border: 1px solid green; */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 1rem;
  border-radius: 1rem;
}

.whyChooseUs .image img {
  width: 100%;
  height: auto;
}

@media all and (max-width: 768px) {
  * {
    font-size: small;
  }

  .whyChooseUs .text {
    margin-bottom: 2rem;
  }
}

/* Contact us  */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --btnColor: #c5354f;
}

.contactUs #submit {
  background-color: var(--btnColor);
  color: white;
  border: none;
}

.contactUs {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

form .NameAndPhone {
  display: flex;
  /* border: 1px solid black; */
  padding: 0;
  justify-content: space-between;
  gap: 1rem;
}

form .NameAndPhone input {
  width: 100%;
}

.contactUs img {
  width: 100%;
  height: auto;
}

@media all and (max-width: 768px) {
  .contactUs {
    flex-direction: column;
  }
}

/* footer  */
footer {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: black;
  color: white;
}

footer img {
  background: none;
}



footer .locationBox {
  background-color: #252525;
  border-radius: 1rem;
  height: fit-content;

  /* color: #41404D; */
}

@media all and (max-width: 575px) {
  footer .locationBox {
    text-align: start;
  }
}

footer .locationBox p {
  margin: auto 0 auto 0;
}

footer .locationBox .label {
  background: none;
}

footer .locationBox .element {
  background: none;
  display: flex;
  align-items: center;
}

footer .locationBox .element p {
  background: none;
}

footer .footerElement {
  text-align: center;
  border-top: 1px solid white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  /* border: 1px solid white; */
}

@media all and (max-width: 500px) {
  footer .footerElement {
    flex-direction: column;
  }
}

footer .footerHead {
  border-bottom: 1px solid white;
}

footer .footerHead .social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

footer .footerHead .social img {
  height: 1.5rem;
}

footer .otherLinks {
  height: 100%;
}

footer .otherLinks p,
.otherLinks button {
  font-size: 0.9rem;
  line-height: 1rem;
}

footer .quickLinks, footer .doctor_details, footer .facilities {
  width: fit-content;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

footer .otherLinks .facilities > div {
  height: 10rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
}

footer .quickLinks > div {
  width: fit-content;
}

footer .quickLinks .btns {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* margin-bottom: 1rem; */
}

footer .quickLinks .btns a {
  width: 100%;
}

footer #footerLastElement {
  display: flex;
  justify-content: center;
}

@media all and (max-width: 990px) {
  footer .otherLinks {
    justify-content: space-between !important;
  }
}

@media all and (max-width: 575px)
{
  footer {
    text-align: center;
  }

  footer .otherLinks {
    flex-direction: column;
    gap: 2rem;
  }

  footer .otherLinks > div {
    width: 100% !important;
    justify-content: space-around !important;
  }

  footer .quickLinks .btns {
    display: inline-flex;
  }

  footer .facilities > div {
    justify-content: space-around;
  }

}