@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #BF1E2E;
  --primary-color-dark: #93222D;
  --primary-color-light: #EBEEF1;
  --secondary-color: #53565B;
  --text-dark: #333333;
  --text-light: #767268;
  --white: #ffffff;
  --max-width: 1200px;
}

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

img {
  width: 100%;
  display: flex;
}

body {
  font-family: "Poppins", sans-serif;
  width: 100%;
  background-color: #fff;
}


.navbar {
  margin: 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.nav {
  position: fixed;
  top: 10px;
  left: 150px;
  right: 150px;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
  z-index: 1000;
  border-radius: 10px;
  justify-content: space-between;
}

.nav.scrolled {
  background-color: hsla(0, 0%, 100%, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.nav,
.nav .nav-links {
  display: flex;
  align-items: center;
}

a {
  text-decoration: none;
}

.logo {
  max-width: 70px;
  display: inline-block;
}

.logo img {
  width: 80%;
}

.nav .nav-links {
  column-gap: 20px;
  list-style: none;
}

.nav .nav-links a {
  transition: all 0.2s linear;
  color: #000;
  text-decoration: none;
}

.nav .nav-links a:hover {
  color: var(--primary-color);
}

.nav .nav-links .active {
  color: var(--primary-color);
}

.nav .navOpenBtn,
.nav .navCloseBtn {
  display: none;
}

.contact1 {
  display: none;
}

.contact2 {
  list-style: none;
  padding: 10px 15px;
  background-color: var(--primary-color);
  border-radius: 25px;
  color: #fff;
}

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


@media screen and (max-width: 1024px) {
  .navbar {
      margin: 0 40px;
  }

  .nav {
      left: 40px;
      right: 40px;
      padding: 10px 20px;
  }

  .nav .nav-links {
      column-gap: 15px;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
      margin: 0 20px;
  }

  .nav {
      left: 20px;
      right: 20px;
      padding: 5px 15px;
      flex-wrap: wrap;
      justify-content: space-between;
  }

  .nav .logo {
      display: flex;
      flex: 1 1 100%;
      text-align: center;
      justify-content: center;
  }

  .nav .navOpenBtn,
  .nav .navCloseBtn {
      display: block;
  }

  .contact1 {
      display: block;
  }

  .contact2 {
      display: none;
  }

  .nav .nav-links {
      position: fixed;
      top: 0;
      left: -100%;
      height: 100%;
      max-width: 280px;
      width: 100%;
      padding-top: 100px;
      row-gap: 30px;
      flex-direction: column;
      background-color: var(--primary-color-light);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      transition: all 0.4s ease;
      z-index: 100;
  }

  .nav.openNav .nav-links {
      left: 0;
  }

  .nav .navOpenBtn {
      color: #000;
      font-size: 20px;
      cursor: pointer;
  }

  .nav .navCloseBtn {
      position: absolute;
      top: 20px;
      right: 20px;
      color: #000;
      font-size: 20px;
      cursor: pointer;
  }

}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 7rem 1rem 4rem 1rem;
}

.section__header {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.doctors__header__content p {
  /* max-width: 600px; */
  color: var(--text-light);
}

.doctors__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: end;
  margin-top: 20px;
}

.doctors__nav span {
  padding: 5px 15px;
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: var(--primary-color-light);
  cursor: pointer;
}

.doctors__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.doctors__card {
  position: relative;
  text-align: center;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
}

.doctors__card__image {
  position: relative;
  overflow: hidden;
}

.doctors__card h4 {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.doctors__card p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.team-hover {
  position: absolute; /* Position it relative to the parent */
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
  padding: 10px 26px;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.4s ease;
}

.doctors__card:hover .team-hover {
  opacity: 1; /* Show on hover */
}

.team-hover p {
  font-size: 12px;
  color: #fff;
}


.accordion{
  /* max-width: 530px;
  box-shadow:  0 0 4px rgba(0,0,0,0.2);
  margin: 0 15px; */
  width: 100%;
  background: #FFF;
  padding: 15px;
  border-radius: 8px;
}
.accordion .accordion-content{
  margin: 10px 0;
  border-radius: 4px;
  background: var(--primary-color-light);
  border: 1px solid var(--secondary-color);
  overflow: hidden;
}

.accordion-content.open{
  padding-bottom: 10px;
}
.accordion-content header{
  display: flex;
  min-height: 50px;
  padding: 0 15px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s linear;
}
.accordion-content.open header{
  min-height: 35px;
}
.accordion-content header .title{
  font-size: 18px;
  color: var(--text-dark);
}
.accordion-content header i{
  font-size: 15px;
  color: var(--text-dark);
}
.accordion-content .description{
  height: 0;
  font-size: 15px;
  color: var(--text-light);
  font-weight: 400;
  padding: 0 15px;
  transition: all 0.2s linear;
}

.footer {
  background-color: var(--primary-color-light);
}

.footer__container {
  display: grid;
  grid-template-columns: 400px repeat(2, 1fr);
  gap: 2rem;
}


.footer__logo {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
  margin-bottom: 1rem;
}

.footer__logo img {
  width: 15%;
}

.footer__logo h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  align-items: center;
}

.footer__col h3 span {
  color: var(--secondary-color);
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.footer__col p a {
  color: var(--text-dark);
  cursor: pointer;
  transition: 0.3s;
}

.footer__col p a:hover {
  color: var(--primary-color);
}

.footer__col p {
  margin-bottom: 1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: 0.3s;
}

.footer__col p:hover {
  color: var(--primary-color);
}

.footer__col i {
  color: var(--primary-color);
}

.footer__bar {
  background-color: var(--primary-color);
}


.footer__bar p {
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--white);
}

.whatsapp_float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 100;
}

.whatsapp-icon {
  margin-top: 16px;
}

@media screen and (max-width: 767px) {
  .whatsapp-icon {
    margin-top: 18px;
  }

  .whatsapp_float {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 10px;
    font-size: 22px;
  }
}

@media (width < 900px) {
  .doctors__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer__container {
    grid-template-columns: repeat(1, 1fr);
  }

  .footer__logo img {
    width: 10%;
  }
}

@media (width < 600px) {
  .doctors__header {
    flex-direction: column;
    text-align: center;
  }

  .doctors__grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .doctors__nav {
    justify-content: center;
  }

  .footer__bar__content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer__logo img {
    width: 15%;
  }
}