@use "../abstracts" as *;

.course-details {
  position: relative;
  padding: rem(100) 0;

  @media (max-width: 1399px) {
    padding: rem(90) 0;
  }

  @media (max-width: 1199px) {
    padding: rem(80) 0;
  }

  @media (max-width: 991px) {
    padding: rem(70) 0;
  }

  @media (max-width: 767px) {
    padding: rem(60) 0;
  }

  @media (max-width: 575px) {
    padding: rem(50) 0;
  }

  &__main-thumb {
    position: relative;
    border-radius: rem(20);
    overflow: hidden;
    margin-bottom: rem(40);

    @media (max-width: 767px) {
      margin-bottom: rem(30);
    }

    img {
      width: 100%;
      height: auto;
      display: block;
    }

    .price-tag {
      position: absolute;
      bottom: rem(0);
      left: rem(0);
      background: #fff;
      padding: rem(15) rem(20);
      text-align: center;
      z-index: 2;
      border-top-left-radius: 15px;
      border-bottom-right-radius: 15px;

      @media (max-width: 575px) {
        padding: rem(10) rem(15);
      }

      div {
        font-family: $font-family-base;
        font-weight: 700;
        font-size: 24px;
        line-height: 26px;
        letter-spacing: -2%;
        text-align: center;
        text-transform: capitalize;
        margin: 0;

        @media (max-width: 575px) {
          font-size: 20px;
        }
      }

      span {
        font-family: $font-family-base;
        font-weight: 700;
        font-size: 14px;
        line-height: 26px;
        letter-spacing: 0%;
        text-align: center;
        text-transform: uppercase;
        display: block;
        color: #878C8F;

        @media (max-width: 575px) {
          font-size: 12px;
          line-height: 22px;
        }
      }
    }
  }

  &__content {
    padding-right: rem(30);

    @media (max-width: 991px) {
      padding-right: 0;
      margin-bottom: rem(40);
    }
  }

  &__title {
    font-family: $font-family-base;
    font-weight: 700;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: -2%;
    margin-bottom: 30px;
    color: #191825;

    @media (max-width: 1199px) {
      font-size: 26px;
    }

    @media (max-width: 767px) {
      font-size: 24px;
      margin-bottom: 20px;
    }

    @media (max-width: 575px) {
      font-size: 22px;
    }
  }

  &__text {
    font-family: $font-family-base;
    font-weight: 500;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: rem(30);
    color: #878C8F;

    @media (max-width: 767px) {
      font-size: 15px;
      line-height: 26px;
      margin-bottom: rem(20);
    }
  }

  &__sub-title {
    font-family: $font-family-base;
    font-weight: 700;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0%;
    margin-bottom: 30px;
    color: #191825;

    @media (max-width: 1199px) {
      font-size: 26px;
    }

    @media (max-width: 767px) {
      font-size: 24px;
      margin-bottom: 20px;
    }
  }

  // Feature Section
  &__features {
    margin: rem(40) 0;

    @media (max-width: 767px) {
      margin: rem(30) 0 10px;
    }

    &-img {
      border-radius: rem(15);
      overflow: hidden;
      margin-bottom: rem(20);

      img {
        width: 100%;
        height: auto;
      }
    }
  }

  &__list {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
      margin-bottom: rem(20);
      color: #878C8F;
      font-family: $font-family-base;
      font-weight: 500;
      font-size: 16px;
      line-height: 28px;

      @media (max-width: 767px) {
        font-size: 15px;
        margin-bottom: rem(15);
      }

      i {
        position: absolute;
        left: 0;
        top: rem(4);
        color: $color-primary;
        font-size: rem(16);
      }
    }
  }

  // Resource Cards
  &__resources {
    margin: rem(50) 0;

    @media (max-width: 767px) {
      margin: rem(30) 0;
    }
  }

  &__card {
    background: #EFF3FA;
    padding: 30px;
    border-radius: rem(15);
    height: 100%;
    transition: all 0.3s ease;

    @media (max-width: 1199px) {
      padding: 25px;
    }

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 rem(20) rem(40) rgba(0, 0, 0, 0.05);
    }

    div {
      font-family: $font-family-base;
      font-weight: 700;
      font-size: 30px;
      line-height: 100%;
      letter-spacing: 0%;
      color: #191825;
      margin-bottom: 21px;
      display: flex;
      align-items: center;
      gap: 20px;

      @media (max-width: 1199px) {
        font-size: 24px;
        gap: 15px;
      }

      @media (max-width: 575px) {
        font-size: 20px;
      }
    }

    p {
      font-family: $font-family-base;
      font-weight: 500;
      font-size: 16px;
      line-height: 28px;
      letter-spacing: 0%;
      margin-bottom: rem(30);
      color: #878C8F;

      @media (max-width: 767px) {
        font-size: 15px;
        line-height: 26px;
        margin-bottom: rem(20);
      }
    }
  }

  // Enroll Banner
  &__enroll {
    margin-top: rem(50);
    padding-top: rem(30);
    border-top: rem(1) solid #eee;

    @media (max-width: 767px) {
      margin-top: rem(5);
      padding-top: rem(10);
    }
  }

  // Common Organic Button Style
  .organic-btn {
    display: inline-flex;
    align-items: center;
    background: $color-primary;
    color: #fff;
    font-size: rem(14);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: rem(1);
    border-radius: rem(35);
    height: rem(65);
    padding: 0 rem(5) 0 rem(30);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;

    @media (max-width: 575px) {
      height: rem(55);
      padding: 0 rem(5) 0 rem(20);
      font-size: rem(12);
    }

    .btn-text {
      flex: 1;
      margin-right: rem(20);
    }

    .btn-icon {
      background: #000;
      width: rem(80);
      height: rem(55);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 40% 60% 40% 60% / 50%;
      font-size: rem(18);
      transition: all 0.3s ease;

      @media (max-width: 575px) {
        width: rem(60);
        height: rem(45);
        font-size: rem(16);
      }
    }

    &:hover {
      background: $color-heading;

      .btn-icon {
        background: $color-primary;
      }
    }

    &--small {
      height: rem(55);
      padding-left: rem(20);

      .btn-icon {
        width: rem(60);
        height: rem(45);
      }
    }
  }

  // Sidebar Styling
  &__sidebar {
    padding-left: rem(20);

    @media (max-width: 991px) {
      padding-left: 0;
    }
  }

  &__widget {
    background: #f1f3f9;
    padding: rem(40);
    border-radius: rem(8);
    margin-bottom: rem(40);

    &:last-child {
      margin-bottom: 0;
    }

    @media (max-width: 1199px) {
      padding: rem(30);
    }

    @media (max-width: 575px) {
      padding: rem(25);
    }

    &-title {
      font-family: $font-family-base;
      font-weight: 700;
      font-size: 24px;
      line-height: 28px;
      letter-spacing: -2%;
      color: $color-heading;
      margin-bottom: 25px;

      @media (max-width: 575px) {
        font-size: 20px;
        margin-bottom: 20px;
      }
    }
  }

  // Project Info Widget
  &__info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 rem(30) 0;

    li {
      background: #fff;
      padding: rem(19) rem(25);
      border-radius: rem(8);
      margin-bottom: rem(15);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: rem(15);
      font-weight: 500;

      @media (max-width: 575px) {
        padding: rem(12) rem(15);
        font-size: rem(14);
      }

      .label {
        color: $color-heading;
        font-weight: 700;
      }

      .value {
        color: $color-text2;
      }
    }
  }

  // Reviews Widget
  &__reviews-card {
    background: #fff;
    padding: rem(30);
    border-radius: rem(15);
    margin-bottom: rem(30);

    @media (max-width: 575px) {
      padding: rem(20);
    }

    .stars-box {
      display: flex;
      align-items: center;
      gap: rem(10);
      margin-bottom: rem(20);

      .stars {
        color: #0073E6;
        font-size: rem(16);
        display: flex;
        gap: rem(4);
      }

      .count {
        color: $color-heading;
        font-family: $font-family-base;
        font-weight: 500;
        font-size: 18px;
        line-height: 1;
        letter-spacing: -2%;

        @media (max-width: 575px) {
          font-size: 16px;
        }
      }
    }

    .review-text {
      font-family: $font-family-base;
      font-weight: 500;
      font-size: 16px;
      line-height: 28px;
      letter-spacing: 0%;
      color: #878C8F;
      margin: 0;

      @media (max-width: 575px) {
        font-size: 14px;
        line-height: 24px;
      }
    }
  }
}