.home {
  h2, .h2 {
    margin-top: 0;
    margin-bottom: 0;
    @media (width >= 1024px) {
      font-size: 45px;
    }
  }
  .header-content {
    color: var(--light-color);
    text-align: left;
    display: flex;
    @media (width >= 1024px) {
      display: grid;
    }
    h2 {
      line-height: 1.03em;
      letter-spacing: -.014em;
      margin-bottom: .5em;
      @media (width >= 1024px) {
        font-size: 58px;
      }
      span {
        color: var(--secondary-alt);
        font-style: italic;
      }
    }
    .tag {
      display: inline-block;
      font-size: 14px;
      font-weight: var(--fw-semi-bold);
      color: rgb(from var(--light-color) r g b / 0.9);
      letter-spacing: .025em;
      border-radius: 100px;
      border: 1px solid rgb(from var(--light-color) r g b / 0.2);
      background-color: rgb(from var(--light-color) r g b / 0.12);
      backdrop-filter: blur(4px);
      padding: 9px 27px 9px 37px;
      position: relative;
      line-height: 1em;
      margin-bottom: 16px;
      &::before {
        content: '';
        position: absolute;
        left: 17px;
        top: 50%;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--secondary-color);
        transform: translateY(-50%);
      }
    }
    .header-text {
      font-size: 16px;
      text-align: center;
      @media (width >= 768px) {
        font-size: 18px;
      }
      @media (width >= 1024px) {
        text-align: left;
      }
    }
    .header-buttons {
      @media (width >= 768px) {
        display: flex;
        justify-content: flex-start;
      }
      .button {
        margin-bottom: 20px;
        border-radius: 8px;
        border: 1px solid rgb(from var(--light-color) r g b / 0.3);
        background-color: rgb(from var(--light-color) r g b / 0.1);
        backdrop-filter: blur(2px);
        margin-left: auto;
        margin-right: auto;
        @media (width >= 768px) {
          margin-right: 20px;
        }
        @media (width >= 1024px) {
          margin-bottom: 0;
        }
        &:hover {
          background-color: var(--primary-highlight);
          border-color: var(--primary-highlight);
        }
      }
      .has-icon {
        display: flex;
        align-items: center;
        width: fit-content;
        i {
          margin-right: 8px;
        }
      }
    }
    .home-header-stats {
      display: grid;
      grid-template-columns: auto auto auto;
      width: 100%;
      border-radius: 16px;
      border: 1px solid rgb(from var(--light-color) r g b / 0.15);
      background-color: rgb(from var(--light-color) r g b / 0.1);
      backdrop-filter: blur(6px);
      padding: 20px;
      @media (width >= 768px) {
        width: 403px;
        padding: 30px;
      }
      @media (width >= 1060px) {
        justify-self: flex-end;
      }
      .stat-each {
        text-align: center;
      }
      .header-stat-number {
        font-size: 32px;
        font-family: var(--secondary-font);
      }
      .header-stat-item {
        font-size: 13px;
        font-weight: var(--fw-medium);
        color: rgb(from var(--light-color) r g b / 0.6);
      }
    }
  }
}


/*=======================================
=            Home Attributes            =
=======================================*/

.home-attributes {
  list-style: none;
  font-size: 14px;
  line-height: 1.57em;
  border-top: 1px solid var(--secondary-accent-alt);
  border-bottom: 1px solid var(--secondary-accent-alt);
  margin: 0;
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: left;
  @media (width >= 768px) {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  li {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 16px;
    @media (width >= 768px) {
      margin: 0 20px;
    }
    &:last-of-type {
      margin-bottom: 0;
    }
  }
  .attr-icon {
    color: var(--primary-color);
    margin-right: 10px;
  }
}

/* ---------------- Home Doctor --------------- */

.home-doctor {
  padding-top: 40px;
  padding-bottom: 20px;
  background-color: var(--secondary-highlight);
  overflow: hidden;

  @media (min-width: 1060px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    text-align: left;
    padding-top: 140px;
    padding-bottom: 60px;
    align-items: center;
  }

  .dr-photo {
    margin-bottom: 40px;
    text-align: center;
    @media (min-width: 1060px) {
      margin-bottom: 0;
    }

    img {
      display: inline-block;
      @media (max-width: 767px) {
        max-width: 100%;
      }
    }
  }

  .dr-content {
    /* h2 {
      font-size: 31px;
      line-height: 1em;
      margin-bottom: 0.5em;

      @media (min-width: 768px) {
        font-size: 60px;
        margin-bottom: 0.25em;
      }
    } */
  }
}

.home-about-heading {
  /* font-size: 22px; */
  /* line-height: 1.2em; */
  background-color: var(--secondary-accent);
  /* color: var(--light-color); */
  padding: 16px 20px;

  @media (min-width: 768px) {
    /* font-size: 35px; */
    padding: 20px;
  }

  @media (min-width: 1060px) {
    /* font-size: 60px; */
    padding: 30px 40px;
  }
}

.home-organizations {
  background-color: var(--secondary-highlight);
  @media (min-width: 1060px) {
    padding-bottom: 60px;
  }
  .organizations-sc-wrap {
    background-color: transparent;
    li {
      background-color: transparent;
    }
  }
}

/*==================================
=            Why Choose            =
==================================*/

.home-choose {
  background-color: var(--secondary-accent);
  padding-top: 20px;
  padding-bottom: 20px;
  @media (width >= 768px) {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  @media (width >= 1060px) {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  h2 {
    margin-bottom: .5em;
    span {
      display: block;
    }
  }
  .choose-reasons {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 38px;
    row-gap: 38px;
    margin-top: 30px;
    @media (width >= 1060px) {
      grid-template-columns: 1fr 1fr 1fr;
    }
  }
  .reason-each {
    background-color: var(--light-color);
    border: 1px solid var(--secondary-accent-alt);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: left;
    i {
      padding: 14px;
      background-color: var(--secondary-accent);
      border-radius: 12px;
      width: 54px;
      height: 54px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    h3 {
      font-size: 22px;
      font-weight: var(--fw-semi-bold);
    }
  }
}

/*=====================================
=            Home Approach            =
=====================================*/

.home-approach {
  background-color: var(--primary-color);
  color: var(--light-color);
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 70px;
  row-gap: 30px;
  padding-top: 20px;
  padding-bottom: 20px;
  align-items: center;
  @media (width >= 768px) {
    grid-template-columns: 1fr 1fr;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  @media (width >= 1060px) {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  h2 {
    color: var(--light-color);
    margin-bottom: .5em;
  }
  h3 {
    color: var(--light-color);
    display: inline;
    font-size: 22px;
    font-weight: var(--fw-semi-bold);
  }
  ol {
    list-style-type: none; 
    counter-reset: step-counter; 
    padding-left: 0;
    li {
      counter-increment: step-counter;
      margin-bottom: 34px;
      background-color: rgb(from var(--light-color) r g b / 0.06);
      border: 1px solid rgb(from var(--secondary-accent-alt) r g b / 0.1);
      border-radius: 15px;
      padding: 40px 30px;
      &:before {
        content: "Step " counter(step-counter, decimal-leading-zero) ": ";
        font-size: 22px;
        font-family: var(--secondary-font);
        font-weight: bold;
        color: var(--secondary-color); 
        margin-right: 8px; 
      }
    }
  }
  .callout {
    blockquote {
      color: var(--light-color);
    }
  }
}

/* -------------- Home Procedures ------------- */

.home-procedures {
  list-style: none;
  margin: 0;
  background-color: var(--secondary-accent);

  @media (width >= 768px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  @media (min-width: 1400px) {
    grid-template-columns: 1fr 1fr 1fr;
  }

  li {
    display: flex;
    background-position: center;
    background-size: cover;

    @media (min-width: 768px) {
      text-align: left;
    }

    @media (min-width: 1400px) {
      flex-basis: 0;
      flex-grow: 1;
    }
  }

  .procedure {
    display: flex;
    flex-direction: column;
    padding: 60vw 20px 20px;
    color: var(--light-color);
    background: linear-gradient(180deg,
      rgb(from var(--dark-color) r g b / 0),
      rgb(from var(--dark-color) r g b / 0.70)
    );

    @media (min-width: 768px) {
      padding: 10vw 20px 40px;
    }

    @media (min-width: 1400px) {
      padding: 10vw 60px 80px;
    }

    @media (min-width: 2000px) {
      padding: 10vw 160px 80px;
    }

    h3 {
      font-size: 30px;
      line-height: 1.2em;
      color: var(--light-color);

      @media (min-width: 768px) {
        font-size: 40px;
      }
    }

    .rpt-content {
      margin-bottom: 1em;
    }
  }
}

/* ------------- Home Testimonials ------------ */

.home-testimonials {
  background-color: var(--secondary-accent);
  padding-top: 50px;
  padding-bottom: 50px;
  position: relative;

  @media (min-width: 768px) {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  @media (min-width: 1060px) {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  h2 {
    margin-bottom: 0.5em;
  }

  .description {
    margin-bottom: 40px;
  }

  .more-btn {
    margin-top: 40px;
    @media (width >= 1060px) {
      margin-top: 140px;
    }
  }

  .testimonial-carousel {
    background-color: var(--light-color);
    border-radius: 16px;
    border: 1px solid var(--secondary-accent-alt);
    padding-bottom: 50px;

  }

  blockquote {
    /* color: var(--light-color); */
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    position: relative;
    z-index: 1;
    border: none;

    @media (min-width: 768px) {
      padding: 50px 70px 30px;
    }
    p {
      margin-bottom: 0;
    }
  }

  figcaption {
    color: var(--primary-color);
    font-size: 26px;
    font-family: var(--secondary-font);
    /* margin-top: 1em; */
  }


  .owl-nav {
    display: none;
  }
  .owl-dots {
    display: flex;
    justify-content: center;
    @media (width >= 1024px) {
      position: absolute;
      bottom: -80px;
      left: 50%;
      transform: translateX(-50%);
    }
    .owl-dot {
      width: 10px;
      height: 10px;
      background-color: var(--secondary-accent-alt);
      border-radius: 50%;
      margin: 10px;
      &.active {
        background-color: var(--secondary-color);
      }
    }
  }
}

/*----------  Front Blog  ----------*/

.front-blog {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: var(--primary-color);
  color: var(--light-color);

  @media (min-width: 768px) {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  @media (min-width: 1060px) {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .h2 {
    margin-top: 0;
    color: var(--light-color);
  }

  .latest-posts {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    @media (width >= 768px) {
      flex-direction: row;
    }

    li {
      /* box-shadow: 0px 5px 13px 0px rgba(0, 0, 0, 0.1); */
      text-align: left;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-radius: 15px;
      overflow: hidden;
      width: 350px;
      max-width: 100%;
      margin: 24px;
      border: 1px solid rgb(from var(--secondary-accent-alt) r g b / 0.1);
      background-color: rgb(from var(--light-color) r g b / 0.06);
      color: var(--light-color);
      &:nth-of-type(3) {
        display: none;

        /* @media (min-width: 768px) {
          display: flex;
        } */

        & + li {
          display: none;

          @media (min-width: 1060px) {
            display: flex;
          }
        }
      }
    }

    .post-thumb {
      width: 100%;
      height: 235px;
      background-size: cover;
      background-position: center;

      @media (min-width: 768px) {
        display: block;
      }
    }

    .excerpt {
      position: relative;
      padding: 30px 20px 45px;

      .f-blog-more {
        margin-top: 1em;
      }
      .button {
        min-width: 200px;
        /* position: absolute; */
        /* bottom: 0; */
        /* left: 50%; */
        width: fit-content;
        /* transform: translate(-50%, 50%); */
      }
    }

    .blog-title {
      margin-top: 0;
      font-size: 18px;
      line-height: 1.5em;
      font-weight: var(--fw-semi-bold);
      font-family: var(--primary-font);
      color: var(--light-color);
    }
  }
}