/* search-section */
.search-section {
  padding: 50px 0;
  width: 90%;
  margin: 0 auto;

  .search-box {
    width: 100%;
    max-width: 925px;
    margin: 0 auto;
    background-color: #fcf5e7;
    display: flex;
    gap: 10px;
    border-radius: 20px;
    padding: 10px 15px;
    align-items: center;
    margin-bottom: 20px;

    select {
      width: 150px;
      color: #003954;
      background-color: transparent;
      border: none;

      &:focus-visible {
        outline: none;
      }
    }

    .line {
      width: 1px;
      background-color: #e1d5c9;
      height: 30px;
    }
form{
        width: 100%;
}
    .input-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
/*       width: 800px; */

      input {
        width: 100%;
        background-color: transparent;
        color: #003954;

        &::placeholder {
          color: #e1d5c9;
        }
      }
    }
  }

  .alphabet-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    .alphabet-box {
      display: flex;
      gap: 5px;
      align-items: center;
      overflow-x: auto;
      white-space: nowrap;
      scroll-behavior: smooth;
      overflow-y: hidden;
      white-space: nowrap;
      scroll-behavior: smooth;
      max-width: 77vw;
      overflow-x: auto;
      white-space: nowrap;
      scroll-behavior: smooth;
      a {
        color: #003954;
        font-size: 14px;
        text-decoration: none;
        display: inline-block;
      }

      .circle {
        width: 6px;
        height: 6px;
        background-color: #6f4f1e;
        border-radius: 50%;
        display: inline-block;
      }
    }
    button {
      border: none;
      cursor: pointer;
      position: absolute;
      background-color: transparent;
      display: none;
    }

    #prevBtn {
      left: 0;
    }

    #nextBtn {
      right: 0;
    }
    .alphabet-box::-webkit-scrollbar {
      display: none;
    }
  }
}

/* banner section */
.banner-section {
  width: 100%;
  .banner {
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    height: 422px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: merri-700;
    font-size: 64px;
    position: relative;
    background-position-y: center;
    h1 {
      z-index: 2;
    }
    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #00000040;
    }
  }
}

/* most read section */
.most-read {
  width: 90%;
  margin: 0 auto;
  /* padding: 70px 0; */

  .title {
    font-size: 24px;
    color: #212121;
    font-family: merri-700;
    margin-top: 50px;
  }

  .daily-hadiths {
    display: flex;
    flex-direction: column;
    justify-content: start;
    background-color: #fff8eb;
    color: #212121;
    position: relative;
    height: 100%;

    h3 {
      font-family: merri-700;
      font-size: 24px;
      position: absolute;
      top: 60px;
      width: 100%;
      text-align: center;
    }

    p {
      font-family: merri-300;
      padding: 15px;
    }
  }
}

.book-card {
  border: 1px solid #ddba84;
  border-radius: 4px;

  .image-box {
    display: inline-block;
    width: 100%;
    height: 250px;

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

  .card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 7px 7px;

    h4 {
      color: #212121;
      font-family: merri-700;
      font-size: 16px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .icons {
      display: flex;
      align-items: center;
      justify-content: space-between;

      .icon-item {
        display: flex;
        gap: 5px;
        align-items: center;

        span {
          color: #6f4f1e;
          font-size: 14px;
          font-family: merri-700;
        }
      }
    }

    .download-btn {
      font-family: merri-700;
      color: #fff;
      background-color: #6f4f1e;
      padding: 5px;
      border-radius: 20px;
      border: none;
      letter-spacing: 1.5px;
      width: 100%;
    }
  }
}

.more-btn {
  background-color: #6f4f1e;
  border: none;
  color: #fff;
  font-family: merri-700;
  letter-spacing: 1.2px;
  padding: 7px 50px;
  border-radius: 20px;
  display: inline-block;
}

/* audio-book-section */
.audio-book-section {
  background-color: #fff8eb;

  .left-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;
    /* padding: 60px 0; */

    span {
      color: #b1c4e7;
      font-family: lato-700;
    }

    h2 {
      color: #212121;
      font-family: merri-700;
      font-size: 44px;
    }

    p {
      color: #212121;
      font-family: merri-300;
    }
  }

  .audio-book-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .audio-book-card {
      background-color: #fff;
      box-shadow: 0px 4px 40px 0px #00000029;
      display: flex;
      gap: 1rem;
      border-radius: 20px;
      padding: 20px;
      align-items: center;

      .image-box {
        min-width: 170px;
        display: inline-block;
        height: 240px;

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

      .card-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: start;

        .free {
          border-radius: 6px;
          background-color: #ccae69;
          color: #fff;
          padding: 2px 8px;
          font-size: 14px;
          font-family: lato-700;
        }

        h3 {
          font-size: 20px;
          color: #212121;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          width:90%;
        }

        p {
          color: #212121;
          font-family: merri-300;
        }

        .listen-btn {
          display: flex;
          gap: 5px;
          align-items: center;

          p {
            color: #6f4f1e;
            font-size: 20px;
            font-family: merri-700;
          }
        }
      }
    }
  }
}

.w-90 {
  width: 90%;
  margin: 0 auto;
}

/* daily-story-section */
.daily-story-section {
  .shape {
    width: 500px;
    height: 500px;
    overflow: hidden;
    position: relative;
    background-color: #ddba84;
    border-radius: 10px;
    clip-path: polygon(
      50% 0,
      70% 30%,
      100% 50%,
      70% 70%,
      50% 100%,
      30% 70%,
      0 50%,
      30% 30%
    );
    border: 30px solid #ddba84;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      background-color: #483a2140;
      clip-path: inherit;
      z-index: 1;
      border-radius: 10px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      clip-path: inherit;
      position: relative;
      z-index: 0;
      border-radius: 10px;
    }
  }

  .story-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: start;

    h2 {
      color: #212121;
      font-size: 40px;
    }

    p {
      font-size: 14px;
      color: #000000a3;
    }
  }
}

/* form-section */
.form-section {
  .question-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    line-height: 138%;
    letter-spacing: 0.3px;

    h2 {
      color: #252525;
      font-family: merri-700;
      font-size: 52px;
    }

    h3 {
      color: #6f4f1e;
      font-family: merri-700;
      font-size: 52px;
    }
  }

  .form {
    font-family: poppins-400;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;

    input,
    textarea {
      width: 100%;
      border-radius: 10px;
      padding: 15px 25px;
      font-size: 18px;

      &::placeholder {
        color: #94959b;
        font-size: 18px;
      }
    }

    textarea {
      resize: none;
    }

    .phone-group {
      display: flex;
      gap: 10px;

      select {
        outline: none;
        border-radius: 10px;
        font-size: 18px;
        border-color: #fff;
        color: #94959b;
        padding: 15px;
      }
    }

    .send-btn {
      color: #fff;
      background-color: #6f4f1e;
      font-family: merri-700;
      padding: 7px;
      border: none;
      border-radius: 20px;
    }
  }
}

/* faq-section */

.faq-section {
  width: 90%;
  margin: 0 auto;
  padding: 50px 0;

  h2 {
    color: #292929;
    font-size: 40px;
    font-family: merri-700;
    text-align: center;
  }

  .faq-container {
    padding: 40px 0;

    .accordion-item {
      background-color: #fff;
      border-radius: 24px;
      padding: 20px 25px;
      .question {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        h4 {
          color: #292929;
          font-size: 18px;
          font-family: merri-500;
          width: 90%;
        }
        .toggle-btn {
          width: 24px;
          height: 24px;
          border-radius: 50%;
          background-color: #6f4f1e;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #fff;
          font-size: 18px;
        }
      }
      .answer {
        color: #292929;
        line-height: 160%;
        max-height: 0;
        overflow: hidden;
        /* padding: 0 10px; */
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
      }
    }
    .accordion-item.active .answer {
      max-height: 100px;
      padding-top: 10px;
    }
  }
}

@media only screen and (max-width: 1200px) {
  .search-section {
    padding: 20px 0;
    .search-box {
      gap: 7px;
      padding: 7px 10px;
      select {
        font-size: 14px;
      }
      .line {
        height: 20px;
      }
      .input-box {
        input {
          &::placeholder {
            color: transparent;
          }
        }
      }
    }
  }

  /* banner section */
  .banner-section {
    .banner {
      height: 250px;
      font-size: 40px;
    }
  }

  /* most read section */
  .most-read {
    /* width: 90%; */
    /* margin: 0 auto; */
    /* padding: 30px 0; */
    .title {
      font-size: 20px;
      margin-top: 15px;
      /* margin-left: 20px; */
    }

    .daily-hadiths {
      h3 {
        font-family: merri-700;
        font-size: 24px;
        position: absolute;
        top: 60px;
        width: 100%;
        text-align: center;
      }

      p {
        padding: 30px;
      }
    }
  }

  /* book card */
  .book-card {
    /* border: none; */
    .image-box {
      height: 215px;
    }
    .card-content {
      h4 {
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      }
      .icons {
        display: flex;
        align-items: center;
        justify-content: space-between;
        .icon-item {
          flex-direction: column;
          gap: 3px;
          span {
            font-size: 12px;
          }
        }
      }
    }
  }

  /* audio-book-section */
  .audio-book-section {
    .left-content {
      gap: 0.5rem;
      h2 {
        font-size: 24px;
      }
      p {
        font-size: 12px;
      }
    }

    .audio-book-container {
      .audio-book-card {
        gap: 0.4rem;
        padding: 15px;

        .image-box {
          height: 150px;
          min-width: 94px;
          /* width: 48%; */
        }

        .card-content {
          gap: 0.4rem;

          h3 {
            font-size: 16px;
          }

          p {
            font-size: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            width:90%;
          }

          .listen-btn {
            p {
              font-size: 16px;
            }
          }
        }
      }
    }
  }

  /* daily-story-section */
  .daily-story-section {
    .shape {
      width: 325px;
      height: 325px;
      border: 15px solid #ddba84;
    }

    .story-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      h2 {
        font-size: 32px;
      }
      p {
        font-size: 12px;
      }
    }
  }

  /* form-section */
  .form-section {
    .question-box {
      align-items: center;
      h2 {
        font-size: 36px;
      }

      h3 {
        font-size: 32px;
        text-align: center;
      }
    }

    .form {
      gap: 0.8rem;

      input,
      textarea {
        padding: 10px 20px;
      }

      .phone-group {
        gap: 7px;

        select {
          font-size: 16px;
          padding: 10px;
        }
      }
    }
  }

  .faq-section {
    padding: 30px 0;
    h2 {
      font-size: 32px;
    }

    .faq-container {
      padding: 20px 0;

      .accordion-item {
        background-color: #fff;
        border-radius: 24px;
        padding: 20px 25px;
        .question {
          display: flex;
          align-items: center;
          justify-content: space-between;
          cursor: pointer;
          gap: 5px;
          h2 {
            color: #292929;
            font-size: 18px;
            font-family: merri-500;
          }
          .toggle-btn {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: #6f4f1e;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fff;
            font-size: 18px;
          }
        }
        .answer {
          color: #292929;
          line-height: 160%;
          max-height: 0;
          overflow: hidden;
          transition: max-height 0.3s ease-out, padding 0.3s ease-out;
        }
      }
      .accordion-item.active .answer {
        max-height: 100px;
        padding-top: 10px;
      }
    }
  }
}

@media only screen and (max-width: 800px) {
  .banner-section {
    .banner {
      height: 156px;
      font-size: 32px;
    }
  }
  .most-read {
    width: 100%;
    /* margin: 0 auto; */
    /* padding: 30px 0; */
    .title {
      font-size: 20px;
      margin-top: 15px;
      margin-left: 20px;
    }
    .pad-x {
      padding-left: 20px;
      padding-right: 20px;
    }
  }
}
