@import url("https://fonts.googleapis.com/css?family=Hind:300,400&display=swap");

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2bb573;
  --primary-bg-color: #f9f9f9;
}

.header {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  background: #0b0012;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-contain .subject-details {
  width: 70%;
  padding: 1rem 0;

  h1 {
    font-weight: 900;
    font-size: 2rem;
    padding-bottom: 1rem;
  }

  p {
    font-size: 1.4rem;
    font-weight: 500;
  }
}



.nav-contain .rating--container {
  display: flex;
  align-items: center;
  gap: 6px;

  .seller {
    background: #96e0f3;
    padding: 2px 1rem;
    color: #000;
    border-radius: 6px;
    font-size: 12px;
  }

  a {
    text-decoration: none;
  }
}

.nav-contain .rating--container a .star-rating-model {


  .num-only {
    color: orange;
    font-weight: 700;
  }

  .starts-svg {
    fill: orange;
  }

  .rate {
    color: #c0c4fc;
    text-decoration: underline;
  }

}

.artur-contain {
  display: flex;
  margin-top: 1rem;

  div {
    font-weight: 600;
  }

  a {
    color: #c0c4fc;
  }
}

.update-info {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-wrap: nowrap;
  text-wrap-mode: nowrap;
  gap: 4px;
  margin-top: 1rem;

  .lang-info,
  .clp-lead__element-item {
    margin-left: 6px;
  }

  .clp-lead__element-item {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .clp-lead__element-item button {
    background: transparent;
    border: none;
    color: #c0c4fc;
    text-decoration: underline;
  }

  i {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    padding-right: 4px;
  }

  .ud-btn-label {
    color: #934cfd;
  }
}

/* Main Section */
.main-container {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 4rem;
  padding: 4rem 0;

}

.multimedia-section,
.learn-details,
.acardion-section {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 2rem;

}

.learn-section {
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 1.5rem;

  h4 {
    font-weight: 700;
  }

  ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
    padding: 0;
    margin: 0;

    li {
      display: flex;
      list-style-type: none;
      gap: 1rem;

    }
  }
}

.explorer-topic h3 {
  font-weight: 700;
  padding-bottom: 1remr;

}

.explorer-btn {
  display: flex;
  align-items: center;
  gap: 1rem;

  a {
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;

    &:hover {
      background: rgba(0, 0, 0, 0.05);
    }
  }
}

.course-incloudes {
  margin-top: 2rem;

  h3 {
    font-weight: 700;
  }

  ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 4rem;
    padding: 0;
    margin: 0;
    margin-top: 1.5rem;

    li {
      display: flex;
      list-style-type: none;
      gap: 1rem;

    }
  }
}

.requirements {
  margin-top: 1.5rem;

  h3 {
    font-weight: 700;
    padding: 0;
    margin: 0;
  }

  ul {
    /* margin: 0; */
    padding: 0;
    padding-left: 1rem;
    margin-top: 1rem;

    li {
      margin-bottom: 0.6rem;
    }
  }
}

.description {
  height: 300px;
  overflow: hidden;
  margin-top: 1.5rem;
  transition: all .4s ease-in-out;

  h3 {
    font-weight: 700;
    padding: 0;
    margin: 0;
  }

  ul {
    margin-top: 0.5rem;

    li {
      margin-bottom: 0.6rem;
    }
  }
}

.description-dropdown {
  height: auto;
  overflow: none;
  margin-top: 1.5rem;
  transition: all .4s ease-in-out;

  h3 {
    font-weight: 700;
    padding: 0;
    margin: 0;
  }

  ul {
    margin-top: 0.5rem;

    li {
      margin-bottom: 0.6rem;
    }
  }
}

button {
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: #6d28d2;
  font-weight: 700;
  transition: all 0.3s linear;


  .angle-up {
    transition: all 0.3s linear;
    width: 20px;
    height: 20px;
    transform-origin: center center;

    svg {
      width: 20px;
      height: 20px;
      fill: #6d28d2;
    }
  }

  .angle-up-down {
    rotate: 180deg;
  }

  &:hover,
  &:active,
  &:focus,
  &:visited {
    background: #d8bfff;
  }

}

.angle-up-down {
  rotate: 180deg;
}



/* ------------------------------- */


/* Acardion */

.acord-container {
  width: 100%;

  h2 {
    padding: 0 0 2rem 0;
  }
}

.accordion .accordion-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 0 1rem;
}

.accordion .accordion-item button[aria-expanded=true] {
  border-bottom: 1px solid #03b5d2;
}

.accordion button {
  position: relative;
  display: block;
  text-align: left;
  width: 100%;
  padding: 1em 0;
  color: #7288a2;
  font-size: 1.15rem;
  font-weight: 400;
  border: none;
  background: none;
  outline: none;
}

.accordion button:hover,
.accordion button:focus {
  cursor: pointer;
  color: #03b5d2;
}

.accordion button:hover::after,
.accordion button:focus::after {
  cursor: pointer;
  color: #03b5d2;
  border: 1px solid #03b5d2;
}

.accordion button .accordion-title {
  padding: 1em 1.5em 1em 0;
}

.accordion button .icon {
  display: inline-block;
  position: absolute;
  top: 18px;
  right: 0;
  width: 22px;
  height: 22px;
  border: 1px solid;
  border-radius: 22px;
}

.accordion button .icon::before {
  display: block;
  position: absolute;
  content: "";
  top: 9px;
  left: 5px;
  width: 10px;
  height: 2px;
  background: currentColor;
}

.accordion button .icon::after {
  display: block;
  position: absolute;
  content: "";
  top: 5px;
  left: 9px;
  width: 2px;
  height: 10px;
  background: currentColor;
}

.accordion button[aria-expanded=true] {
  color: #03b5d2;
}

.accordion button[aria-expanded=true] .icon::after {
  width: 0;
}

.accordion button[aria-expanded=true]+.accordion-content {
  opacity: 1;
  max-height: fit-content;
  transition: all 200ms linear;
  will-change: opacity, max-height;
}

.accordion .accordion-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 200ms linear, max-height 200ms linear;
  will-change: opacity, max-height;
}

.accordion .accordion-content ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: start;
  font-size: 1rem;
  font-weight: 300;
  margin: 2em 0;

  .video-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;

    a:nth-child(1) {
      text-decoration: none;
      color: rgba(0, 0, 0, 0.7);
      font-size: 0.9rem;
      font-weight: 600;

      &:hover {
        text-decoration: underline;
        color: #6d28d2;
      }

      span {
        padding-right: 0.5rem;
        cursor: text;
        color: #000;
        text-decoration: none;
      }
    }

    .video-time {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 2rem;

      a {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6d28d2;
        text-decoration: underline;

        span {
          color: #000;
        }
      }

      .time {
        font-weight: 400;
        color: #6e6e6e;
      }
    }
  }

}


/* Sale Card */

.sale-section {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;


  .sale-container {
    width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    /* padding: 1.5rem; */
    margin: 0 auto;
  }

}

.sale-container .ad-padding {
  padding: 1.5rem;
}

.sale-container .adversting {
  width: 100%;
  text-align: center;

  display: block;
  margin-bottom: 1.5rem;


  .ad-video video {
    width: 100%;
  }

  .adversting-info {
    display: none;
  }
}

.subscribe-part {
  h2 {
    font-size: 1.5rem;
    font-weight: bold;
  }

  p {
    font-size: 1.1rem;
    font-weight: 600;

    a {
      font-size: 0.9rem;
      font-weight: 600;
      color: #6d28d2;
    }
  }
}

.free-btn {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);

  .btn {
    width: 100%;
    background: #6d28d2;
    color: white;
    font-weight: 600;
    padding: 0.7rem 0;

    &:hover {
      background: #934cfd;
    }
  }

  p {
    color: rgba(0, 0, 0, 0.5);
    text-align: center;
    font-size: 0.9rem;
    padding: 0.7rem 0;
  }

  span {
    position: absolute;
    top: calc(100% - 14px);
    background: #fff;
    padding: 0 5px;
    color: rgba(0, 0, 0, 0.5);
    left: 50%;
    transform: translateX(-50%);
  }
}

.pricing {
  width: 100%;
  margin-top: 1.5rem;

  .prices {
    font-size: 1.7rem;
    font-weight: 900;
    text-decoration: underline;
    padding-bottom: 1rem;
  }

  .add-cart {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1rem;
    margin-top: 1rem;

    .add-to-cart {
      border: 1px solid #6d28d2;
      width: 100%;
      padding: 1rem 0;

    }

    .hearth {
      border: 1px solid #6d28d2;
      font-size: 1.5rem;
      padding: 1rem 1rem;
    }
  }

  .buy-now {
    border: 1px solid #6d28d2;
    width: 100%;
    padding: 1rem 0;
    margin-top: 1rem;
  }

  p {
    padding-top: 1rem;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    text-align: center;
  }
}

.share {
  width: 100%;
  margin-top: 1.5rem;

  h4 {
    font-weight: 700;
  }

  .share-icons {
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 1rem;
    margin-top: 1rem;

    i {
      font-size: 2rem;
    }
  }
}

.click-for-sale {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 20px;
  right: 5rem;
  z-index: 1000;


  a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6d28d2;
    font-size: 2rem;
    font-weight: 800;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    border: 5px solid #6d28d2;
    border-radius: 30px;
    padding: 0.3rem 1.5rem;
    animation: light 1s linear infinite;

    &:hover {
      background: #bf9af754;
    }

  }
}

@keyframes light {
  0% {
    border-color: #6d28d2;
    color: #6d28d2;
  }

  40%,
  70% {
    border-color: #c035f7;
    color: #c035f7;
  }

  100% {
    border-color: #6d28d2;
    color: #6d28d2;
  }

}

.click-for-sale span {
  rotate: 90deg;
  animation: sale 1s ease-in-out infinite;
}

@keyframes sale {
  0% {
    transform: translateX(0)
  }

  50% {
    transform: translateX(20px)
  }

  100% {
    transform: translateX(0)
  }
}


/* Respansive */
@media (max-width: 1200px) {
  .nav-contain .subject-details {
    h1 {
      font-weight: 900;
      font-size: 1.4rem;
      padding-bottom: 0.7rem;
    }

    p {
      font-size: 1rem;
      font-weight: 500;
    }
  }

  .click-for-sale {
    bottom: 20%;
    a {
      font-size: 1rem;
    }

    span {
      width: 1rem;

      img {
        width: 4rem;
      }
    }
  }
}

@media (max-width: 1000px) {
  .nav-contain .subject-details {
    width: 100%;

    h1 {
      font-weight: 900;
      font-size: 1.4rem;
      padding-bottom: 0.7rem;
      text-align: center;

    }

    p {
      font-size: 1rem;
      font-weight: 500;
      text-align: center;
    }

    .rating--container {
      justify-content: center;
    }

    .artur-contain {
      justify-content: center;
    }

    .update-info {
      justify-content: center;
    }
  }

  .main-container {
    flex-direction: column;
  }

  .multimedia-section,
  .learn-details,
  .acardion-section {
    width: 100%;
  }

  .click-for-sale {
    display: none;
  }
}

@media (max-width: 768px) {
  .sale-section .sale-container {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    margin: 0 auto;
  }
}

@media (max-width: 567px) {
  .nav-contain .subject-details {
    width: 100%;

    h1 {
      font-weight: 900;
      font-size: 1.4rem;
      padding-bottom: 0.7rem;
      text-align: center;

    }

    p {
      font-size: 1rem;
      font-weight: 500;
      text-align: center;
    }

    .rating--container {
      justify-content: center;
    }

    .artur-contain {
      justify-content: center;
    }

    .update-info {
      display: none;
    }
  }
}