/******************************************************************************
 *
 *  Diagnosis Page Styles
 *
 ******************************************************************************/
.main-content {
  padding-top: 90px;
}

.diagnosis-hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  padding: 80px 0;
}

.diagnosis-hero__image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url('/images/diagnosis/diagnosis-hero.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

.diagnosis-hero__content {
  width: 35%;
  min-width: 260px;
  padding: 3rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  display: grid;
  gap: 2rem;
}

.diagnosis-hero__did-you-know {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
}

.diagnosis-hero__did-you-know-content {
  display: grid;
  gap: 1rem;
  text-align: left;
  align-content: flex-start;
}

.diagnosis-hero__did-you-know-heading, .diagnosis-hero__did-you-know-heading a {
  font-size: 20px;
}

.cause-section {
  background-image: linear-gradient(to right, var(--background-primary), var(--background-secondary), var(--page-background));
  background-image: url('/images/diagnosis/diagnosis-bg.jpg');
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  position: relative;
  z-index: -1;
}

.cause-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}

.what-section .wrapper, .cause-section .wrapper, .when-section .wrapper {
  padding: 3rem;
  display: grid;
  gap: 3rem;
}

.cause-section .wrapper {
  position: relative;
}

.what-section__heading, .cause-section__heading, .when-section__heading {
  text-align: center;
}

.what-section__content, .cause-section__content, .when-section__content {
  display: grid;
  gap: 3rem;
  grid-template-columns: 2fr 3fr;
  grid-template-areas: "a b";
}

.cause-section__content {
  grid-template-columns: 3fr 2fr;
  grid-template-areas: "b a";
}

.what-section__feature, .cause-section__feature, .when-section__feature {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-area: a;
}

.what-section__feature-img, .cause-section__feature-img, .when-section__feature-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}

.what-section__text-container, .cause-section__text-container, .when-section__text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  grid-area: b;
}

.what-section__list, .cause-section__list, .when-section__list {
  padding-left: 2rem;
  margin: auto;
  display: grid;
  gap: 0.5rem;
}

@media screen and (max-width: 1280px) {
  .diagnosis-hero__content {
    width: 50%;
  }
}

@media screen and (max-width: 1024px) {
  .diagnosis-hero__content {
    width: 60%;
  }

  .what-section__content, .cause-section__content, .when-section__content {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b";
    gap: 2rem;
  }

  .what-section__feature-img, .cause-section__feature-img, .when-section__feature-img {
    width: 70%;
  }
}

@media screen and (max-width: 768px) {
  .diagnosis-hero__content {
    padding: 2rem;
  }

  .what-section .wrapper, .cause-section .wrapper, .when-section .wrapper {
    padding: 3rem 0;
    gap: 2rem;
  }

  .what-section__feature-img, .cause-section__feature-img, .when-section__feature-img {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .diagnosis-hero {
    padding: 50px 0;
  }

  .diagnosis-hero__did-you-know {
    grid-template-columns: 1fr;
  }

  .diagnosis-hero__icon-container img {
    width: 80px;
  }

  .diagnosis-hero__content {
    width: 80%;
  }

  .diagnosis-hero__did-you-know-content {
    text-align: center;
  }
}
