.science-health {
  background: var(--background);
  display: block;
  padding: var(--PT) 0px 0px;

  .custom-text-boxup {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: var(--box-width);
    margin: 0 auto;
    text-align: center;

    h2 {
      font-size: var(--heading-size);
      font-weight: 300;
      line-height: var(--heading-line-height, 1.7);
      letter-spacing: 0.1em;
    }

    h3 {
      font-size: var(--subheading-size);
      font-weight: 300;
      line-height: var(--subheading-line-height, 1.25);
    }

    p {
      font-size: var(--content-size);
      font-weight: 300;
      line-height: var(--content-size-line-height, 1.4);
      margin-left: auto;
      margin-right: auto;
    }
  }

  .science-health-tabs {
    margin-top: var(--tab-top);

    .science-health-tabs-list {
      display: flex;
      justify-content: space-between;
      list-style: none;
      margin: 0;
      padding: 0;

      li {
        display: inline-block;
        max-width: 33rem;
        text-align: center;

        svg {
          height: 5rem;
        }

        a {
          border: 1px solid transparent;
          border-radius: 1rem;
          box-sizing: border-box;
          display: block;
          padding: 2rem;
          transition: all 0.3s ease-in-out;

          * {
            pointer-events: none;
          }

          svg path {
            opacity: 0.4;
            stroke: var(--color);
            transition: all 0.3s ease-in-out;
          }

          h5,
          h4 {
            color: var(--color);
            display: inline-block;
            opacity: 0.4;
            position: relative;
            transition: all 0.3s ease-in-out;

            &::before {
              bottom: 0px;
              background: #d0debb;
              content: "";
              height: 1px;
              position: absolute;
              transform: scaleX(0);
              width: 100%;
            }
          }

          span {
            display: block;
          }

          h5 {
            font-size: var(--tab-subheading);
            font-weight: 300;
            letter-spacing: var(--tab-subheading-spacing);
            line-height: var(--tab-subheading-line-height);
            margin-bottom: 10px;
          }

          h4 {
            font-size: var(--tab-heading);
            font-weight: 300;
            letter-spacing: var(--tab-heading-spacing, 0);
            line-height: var(--tab-heading-line-height, 1.4);
          }

          &.active {
            border-color: var(--color);

            svg path {
              opacity: 1;
            }

            h5,
            h4 {
              opacity: 1;

              &::before {
                transform: scaleX(1);
              }
            }
          }

          &:hover svg path {
            opacity: 1;
          }

          &:hover h5,
          &:hover h4 {
            opacity: 1;
          }
        }
      }
    }
  }

  .tab-content-wrap {
    margin-top: 55px;

    .tab-content {
      display: none;
      position: relative;
      z-index: 1;

      .tab-content__inner {
        align-items: center;
        display: flex;
        justify-content: space-between;
      }

      &.active {
        -webkit-animation: fadeInUp 0.8s;
        animation: fadeInUp 0.8s;
        display: block;
        -webkit-transition: margin 0.2s ease-in-out;
        transition: margin 0.2s ease-in-out;
      }
    }

    .col-40 {
      width: calc(40% - 25px);

      .custom-img-box {
        margin-bottom: -40px;
        max-width: 600px;
        overflow: unset;
        position: relative;
        z-index: 1;

        img {
          object-fit: cover;
          height: 450px;
          width: 100%;
        }

        .circleiconcell {
          display: inline-block;
          left: 50%;
          position: absolute;
          top: 50%;
          translate: -50% -50%;

          svg path {
            stroke: #fff !important;
          }
        }
      }
    }

    .col-60 {
      align-items: flex-end;
      display: flex;
      justify-content: flex-end;
      padding-right: 177px;
      width: calc(60% - 70px);

      .custom-text-box {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 530px;

        h4 {
          font-size: 25px;
          font-weight: 400;
          line-height: 150%;
        }

        p,
        a {
          color: var(--color);
          font-family: var(--font-body-family-light);
          font-size: 20px;
          font-weight: var(--font-body-weight-light);
          line-height: 160%;

          span {
            font-family: var(--font-heading-family);
            font-style: italic;
            font-weight: 700;
          }
        }

        a {
          color: inherit;
          font-size: 1.8rem;
          text-decoration: underline;
          transition: all 0.3s ease-in-out;

          &:hover {
            color: #d0debb;
            transition: all 0.3s ease-in-out;
          }
        }
      }

      .custom-text-new {
        display: none;
        text-align: center;

        h5 {
          font-size: 14px;
          letter-spacing: 0.1em;
          line-height: 170%;
        }

        h4 {
          font-size: 25px;
          letter-spacing: 0px;
          line-height: 140%;
        }
      }
    }
  }

  @media (width <=1440px) {
    .tab-content-wrap .col-40 .custom-img-box img {
      height: 450px;
      object-fit: cover;
    }
  }

  @media (width <=1280px) {
    .tab-content-wrap .col-40 .custom-img-box img {
      height: 400px;
    }

    .tab-content-wrap .col-60 {
      width: calc(60% - 40px);

      .custom-text-box {
        max-width: 330px;

        h5 {
          font-size: 22px;
          line-height: 150%;
        }

        p,
        p a {
          font-size: 16px;
          line-height: 160%;
        }
      }

      .custom-text-new h4 {
        font-size: 22px;
        line-height: 140%;
      }

      .custom-text-new h5 {
        font-size: 11px;
        letter-spacing: 0.15em;
        line-height: 104%;
      }
    }
  }

  @media (width <=992px) {
    .tab-content-wrap {
      margin-top: 45px;

      .col-40 {
        max-width: 350px;
        width: calc(51% - 25px);
      }

      .col-60 {
        padding-right: 40px;
        width: calc(53% - 40px);
      }
    }
  }

  @media (width <=900px) {
    .science-health-tabs .science-health-tabs-list li a {
      padding: 0px;
      border: 0px;
    }
  }

  @media (width <=767px) {
    .custom-text-boxup h3 {
      margin-left: auto;
      margin-right: auto;
      max-width: 340px;
    }

    .science-health-tabs .science-health-tabs-list li {
      margin: 0 auto;

      a h5,
      a h4 {
        display: none;
      }
    }


    .tab-content-wrap .tab-content {
      padding: 0px 40px;

      .tab-content__inner {
        flex-direction: column;
      }
    }

    .tab-content-wrap .col-40 {
      margin-top: 30px;
      max-width: 100%;
      order: 2;
      width: 100%;

      .custom-img-box {
        margin-bottom: -200px;
        max-width: 100%;

        img {
          height: 400px;
        }

        .circleiconcell svg {
          max-width: 100px;
        }
      }
    }

    .tab-content-wrap .col-60 {
      display: block;
      order: 1;
      padding-right: 0px;
      width: 100%;

      .custom-text-new {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
      }

      .custom-text-box {
        max-width: 100%;

        h4 {
          font-size: 23px;
        }
      }
    }
  }

  @media (width <=600px) {
    .tab-content-wrap .col-40 .custom-img-box {
      margin-bottom: -142px;
    }

    .tab-content-wrap .col-40 .custom-img-box img {
      height: 284px;
    }
  }
}

@keyframes fadeInUp {
  0% {
    display: none;
    top: 40px;
    opacity: 0;
  }

  100% {
    display: block;
    top: 0;
    opacity: 1;
  }
}