/* training-search-section */

.training-search-section {
  width: 90%;
  margin: 0 auto;
  padding: 60px 0;
  .search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;

    h2 {
      font-size: 36px;
      color: #000000;
    }
    .search-box {
      display: flex;
      background-color: #fcf5e7;
      border-radius: 20px;
      justify-content: space-between;
      width: 22%;
      padding: 10px 20px;
      input {
        background-color: transparent;
        &::placeholder {
          color: #e1d5c9;
        }
      }
    }
  }
  .categories-container {
    background-color: #6f4f1e59;
    border-radius: 4px;
    padding: 15px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;

    &::-webkit-scrollbar {
      display: none;
    }
    .category-item {
      padding: 10px 20px;
      color: #6f4f1e;
      background-color: #ffffff;
      border-radius: 4px;
      font-size: 20px;
      min-width: 160px;
      text-align: center;
      cursor: pointer;
      white-space: nowrap;
    }
    .category-item.active {
      background-color: #6f4f1e;
      color: #ffffff;
    }
  }

  .training-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #ddba84;
    background-color: #fff;
    .image-box {
      width: 100%;
      height: 250px;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 4px;
      }
    }
    .top-details {
      display: flex;
      align-items: center;
      justify-content: space-between;
      .author-box {
        display: flex;
        align-items: center;
        gap: 10px;
        .profile-box {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
          }
        }
        .author {
          color: #777777;
          font-size: merri-700;
          font-size: 14px;
          line-height: 24px;
        }
      }
    }
    .title {
      font-size: 20px;
      font-family: merri-700;
      color: #212121;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .details-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      .icon-item {
        display: flex;
        align-items: center;
        gap: 5px;
        span {
          font-size: 15px;
          color: #6f4f1e;
        }
      }
    }
  }
  .more-btn {
    background-color: #6f4f1e;
    color: #fff;
    font-family: merri-700;
    width: 200px;
    text-align: center;
    border-radius: 20px;
    padding: 10px;
    margin-top: 20px;
  }
  .view-box {
    display: flex;
    align-items: center;
    gap: 5px;
    span {
      color: #6f4f1e;
      font-size: 14px;
      font-family: merri-700;
      line-height: 24px;
    }
  }
}

.training-details-section {
  width: 90%;
  margin: 0 auto;
  padding-top: 60px;

  .video-wrapper {
    .video-container {
      position: relative;
      display: inline-block;
      overflow: hidden;
      height: 343px;
      width: 100%;
      video {
        width: 100%;
        border-radius: 4px;
        cursor: pointer;
        height: 100%;
        object-fit: cover;
      }
      .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #21212180;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s;
      }

      .play-button {
        background: #d9d9d9;
        width: 71px;
        height: 71px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: 0.3s;
        img {
          margin-left: 6px;
        }
      }
    }
    .title {
      font-size: 36px;
      color: #212121;
      font-family: merrri-700;
    }
    .details {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 15px 0;

      .author-box {
        display: flex;
        align-items: center;
        gap: 10px;
        .profile-box {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
          }
        }
        .author {
          color: #777777;
          font-size: merri-700;
          font-size: 14px;
          line-height: 24px;
        }
      }

      .view-container {
        display: flex;
        width: 80%;
        justify-content: space-between;
        align-items: center;
        .student-count {
          color: #6f4f1e;
          font-size: 14px;
          font-family: merri-700;
          display: flex;
          align-items: center;
          gap: 5px;
        }
        .view-box {
          display: flex;
          align-items: center;
          gap: 5px;
          span {
            color: #6f4f1e;
            font-size: 14px;
            font-family: merri-700;
            line-height: 24px;
          }
        }
      }
    }
  }
  .video-details-wrapper {
    width: 100%;
    /* height: 100%; */
    display: flex;
    align-items: center;
    background-color: #fcf5e7;
    border-radius: 4px;

    .video-details {
      padding: 25px;
      width: 100%;
      .icon-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 15px 0;
        border-bottom: 1px solid #e1d5c9;
        .icon-box {
          display: flex;
          align-items: center;
          gap: 5px;
          img {
            width: 24px;
          }
          span {
            font-size: 20px;
            color: #6f4f1e;
          }
        }
        h5 {
          color: #bfa488;
          font-size: 20px;
        }
      }
    }
  }
}

.more-description-section {
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
  .tabs-container {
    width: 100%;
    max-width: 690px;
    background-color: #6f4f1e59;
    border-radius: 4px;
    padding: 10px 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: 20px;
    .tab-item {
      width: 166px;
      display: flex;
      justify-content: center;
      padding: 10px;
      border-radius: 4px;
      background-color: #fff;
      color: #6f4f1e;
      font-size: 20px;
      cursor: pointer;
    }
    .tab-item.active {
      background-color: #6f4f1e;
      color: #fff;
    }
  }
  .description-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 50px 0;
    h3 {
      color: #000000;
      font-size: 32px;
    }
    p {
      font-size: 14px;
      line-height: 24px;
      color: #000000a3;
    }
  }
}

@media only screen and (max-width: 900px) {
  .training-search-section {
    padding: 20px 0;
    .categories-container {
      padding: 10px;
      .category-item {
        padding: 7px 15px;
      }
    }
    .training-item {
      gap: 10px;
      padding: 10px;
      .image-box {
        height: 70px;
      }
      .top-details {
        justify-content: start;
        .author-box {
          gap: 5px;
          .profile-box {
            width: 25px;
            height: 25px;
          }
          .author {
            font-size: 10px;
          }
        }
      }
      .title {
        font-size: 14px;
      }
      .details-box {
        display: flex;
        align-items: start;
        justify-content: space-between;
        flex-direction: column;
        gap: 5px;
        .icon-item {
          display: flex;
          align-items: center;
          gap: 5px;
          span {
            font-size: 10px;
            color: #6f4f1e;
          }
        }
        img {
          width: 16px;
        }
      }
    }
    .view-box {
      gap: 5px;
      span {
        font-size: 10px;
        color: #6f4f1e;
      }
    }
  }
  .training-details-section {
    padding-top: 30px;
    .video-wrapper {
      .video-container {
        height: 170px;
      }
      .title {
        font-size: 26px;
      }
      .details {
        align-items: start;
        justify-content: space-between;
        flex-direction: column;
        gap: 10px;
        .view-container {
          width: 100%;
        }
      }
    }
    .video-details-wrapper {
      .video-details {
        padding: 15px;
        width: 100%;
        .icon-item {
          padding: 10px 0;
          .icon-box {
            img {
              width: 16px;
            }
            span {
              font-size: 16px;
            }
          }
          h5 {
            font-size: 15px;
          }
        }
      }
    }
  }

  .more-description-section {
    padding: 20px 0;
    .tabs-container {
      padding: 10px 15px;
      margin-bottom: 10px;
      .tab-item {
        padding: 5px;
        font-size: 12px;
      }
    }
    .description-item {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin: 20px 0;
      h3 {
        font-size: 24px;
      }
    }
  }
}
