body {
  font-family: "Rubik", sans-serif;
}

html {
  scroll-behavior: smooth;
}

.main-hero-banner {
  min-height: 100vh;
  background-image: url("../assets/images/main-hero-banner.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.testimonial-banner {
  min-height: 100vh;
  background-image: url("../assets/images/testimonials-banner.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.section-container {
  padding-left: 8%;
  padding-right: 8%;
  color: white;
  margin-left: auto;
  margin-right: auto;
}

.section-container-left {
  padding-left: 7rem;
  color: white;
}

.capitol-section {
  padding-top: 7rem;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 equal columns */
  gap: 20px;
}

.capitol-section h2 {
  font-size: 36px;
  font-weight: bold;
}

.capitol-section p {
  font-size: 18px;
  line-height: 34px;
}

.column {
  flex: 1;
}

.sticky-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 7rem;
  color: #404040;
}

.img-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 37px;
  color: #0c3255;
  margin-top: 0.5rem;
}

.items-column p {
  font-weight: 400;
  font-size: 16px;
  line-height: 31px;
}

.sticky-h3 {
  font-weight: 500;
  font-size: 36px;
  line-height: 37px;
  color: #0c3255;
}

.section-container {
  flex-direction: row;
  align-items: flex-start;
}

.sticky-header {
  flex: 2;
  position: sticky;
  top: 6rem;
  align-self: flex-start;

  p {
    font-weight: 400;
    font-size: 24px;
    line-height: 37px;
  }
}

.items-column {
  flex: 3;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sticky-card {
  border-radius: 8px;
  box-shadow: 0px 8px 25px 0px #0c508f24;
  padding: 2rem 4rem 2rem 4rem;
}

.team-header {
  display: flex;

  h3 {
    color: #0c3255;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 36px;
    line-height: 37px;
    letter-spacing: 0%;
    flex: 1.5;
  }

  p {
    font-weight: 400;
    font-size: 18px;
    line-height: 34px;
    letter-spacing: 0%;
    color: #404040;
    flex: 3;
  }
}

.review-cards {
  display: flex;
  padding-top: 4rem;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.review-card {
  flex: 0 1 calc(33.333% - 1.5rem);
}

.review-h4 {
  font-weight: 600;
  font-style: SemiBold;
  font-size: 24px;
  line-height: 26px;
  letter-spacing: 0%;
  color: #0c3255;
}

.review-description {
  font-weight: 400;
  font-style: Italic;
  font-size: 16px;
  line-height: 27px;
  letter-spacing: 0%;
  color: #404040;
}

.assistant-info {
  font-weight: 400;
  font-style: Italic;
  font-size: 16px;
  line-height: 27px;
  letter-spacing: 0%;
  color: #404040;
}

.review-link {
  font-weight: 400;
  font-style: Italic;
  font-size: 16px;
  line-height: 27px;
  letter-spacing: 0%;
  color: #404040 !important;
}

/* Pop-Up */
.popup-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.popup-overlay.active {
  display: flex;
}

.popup-column {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr; /* 2 equal columns */
  gap: 3rem;
}

.popup-content {
  background: white;
  padding: 2rem;
  width: 90%;
  border-radius: 8px;
  position: relative;
}

.doctor-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 157%;
  letter-spacing: 0%;
  color: #404040;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #5f616c;
}

.testimonial-carousel {
  overflow-x: hidden;
  width: 60%;
  margin: 8rem;
  padding-top: 6rem;
}

.testimonial-header {
  display: flex;

  p {
    font-weight: 600;
    font-style: SemiBold;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #ffffff;
  }
}

.testimonial-header p {
  font-weight: 600;
  font-style: SemiBold;
  font-size: 36px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #ffffff;
}

.embla--testimonial {
  padding-top: 2rem;
}

.mobile-controls {
  display: none;
}

.testimonial-card {
  border-radius: 8px;
  padding: 2rem;
  background: white;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0%;
  color: #404040;
  margin: 0;
  flex-grow: 1;
}

.testimonial-card h4 {
  font-weight: 600;
  font-style: SemiBold;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: 0%;
  color: #0c3255;
  margin-top: 1rem;
  margin-bottom: 0;
}

.affiliated-text {
  font-weight: 600;
  font-size: 36px;
  line-height: 37px;
  letter-spacing: 0%;
  color: #0c3255;
}

.section-divider {
  font-weight: 600;
  font-size: 31px;
  letter-spacing: 0%;
  background-color: #0c3255;
  color: white;
  text-align: center;
  margin-top: 6rem;
}

.contact-header {
  font-weight: 600 !important;
  font-size: 26px !important;
  line-height: 32px;
  color: #ffffff;
}

/* Mobile */
@media (max-width: 768px) {
  .capitol-section {
    display: block;
    padding-top: 3rem;

    p {
      padding-top: 2rem;
    }
  }

  .sticky-section {
    display: block;
    padding-top: 3rem;

    .sticky-header {
      flex: 1;
      position: relative;
      top: 0;
    }

    .sticky-card {
      padding: 1rem 2rem 1rem 2rem;
    }
  }

  .team-header {
    display: block;
    padding-top: 2rem;

    p {
      padding-top: 2rem;
    }
  }

  .review-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* spacing between cards */
  }

  .popup-column {
    display: block;
    gap: 0;
    grid-template-columns: none;
    padding: 1rem;
  }

  .popup-column .review-card,
  .popup-column .doctor-description {
    width: 100%;
  }

  .popup-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .doctor-description {
    padding-top: 2rem;
  }

  .testimonial-carousel {
    width: 100%;
    padding: 2rem !important;

    .testimonial-header {
      padding-top: 2rem;
    }

    .testimonial-card {
      max-width: 300px;
    }

    .desktop-controls {
      display: none;
    }

    .mobile-controls {
      display: flex;
      padding-top: 1rem;
    }
  }

  .section-divider {
    text-align: left;
  }
}

@media (max-width: 1000px) {
  .section-container {
    padding-left: 4%;
    padding-right: 4%;
  }

  .testimonial-carousel {
    width: 100%;
    padding: 4rem;
    margin: 0;

    .testimonial-card {
      min-height: 400px;
    }
  }

  .team-member-image {
    width: 1200px;
  }

  .main-hero-banner {
    background-image: url("../assets/images/main-hero-banner-mobile.png");
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
  }

  .testimonial-banner {
    background-image: url("../assets/images/testimonials-banner-mobile.png");
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
  }
}
