.overlay-course-banner {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: var(--height);
}
.scroll-x {
  overflow-x: auto;
}

.min-width-160 {
  min-width: 160px;
}

.sticky-course-banner {
  position: sticky;
  z-index: 1;
  top: 82px;
  right: 0;
  background-color: var(--bg-services);
  // height: 500px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: top 0.3s ease;
  &.active {
    top: 66px;
  }
}
.sticky-course {
  &__content {
    padding: 1.5rem;
    background-color: var(--bg-services);
  }
  &__details {
    line-height: 1.7;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color);
    b {
      margin-right: 4px;
    }
    ul {
      list-style: none;
      margin-left: 1rem;
    }
  }
  &__icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    color: var(--icon-services);
    &.small {
      width: 14px;
      height: 14px;
    }
  }
  &__img {
    position: relative;
    padding-bottom: 56.2%;
    img {
      display: block;
      position: absolute;
      object-fit: cover;
      width: 100%;
      height: 100%;
      border-radius: 8px 8px 0 0;
    }
    video {
      display: block;
      position: absolute;
      object-fit: cover;
      width: 100%;
      height: 100%;
      border-radius: 8px 8px 0 0;
    }
  }
  &__overlay {
    position: absolute;
    z-index: 5;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  &__overlay-button {
    // background-color: red;
    // padding: 1rem;
    // cursor: pointer;
    padding: 0.7rem;
    background-color: transparent;
    border-radius: 50%;
    border: 4px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    transition: border 0.3s ease-in;
    &:hover {
      border: 4px solid rgba(255, 255, 255, 0.5);
    }
  }
  &__overlay-icon {
    color: white;
    height: 45px;
    width: 45px;
    margin-left: 5%;
  }
  &__button {
    width: 100%;
    padding: 1rem 0;
    border-radius: 4px;
    border: 0;
    margin-bottom: 0.5rem;
    // background: linear-gradient(0deg, #2493c8, #01aafc);
    box-shadow: 0 2px 6px rgba(#2493c8, 0.3);
    color: white;
    font-size: 1rem;
    --color-top: #01aafc;
    --color-bot: #2493c8;
    background: linear-gradient(var(--color-bot), var(--color-top));
    transition: --color-top 0.3s, --color-bot 0.3s;
    &:hover {
      --color-top: #2493c8;
      --color-bot: #01aafc;
    }
  }
  // &__schedule {
  // font-size: 14px;
  // color: var(--text-color);
  // line-height: 1.7;
  // font-weight: 500;
  // }
  /*   &__schedule-table {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    table-layout: fixed;
    tr {
      box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.05);
      background-color: var(--bg-services);
      td {
        padding: 0.5rem 1.5rem;
        text-align: center;
        &:first-child {
          border-radius: 5px 0 0 5px;
        }
        &:last-child {
          border-radius: 0 5px 5px 0;
          color: var(--icon-services);
        }
      }
    }
    img {
      width: 30px;
      height: 30px;
    }
  } */
}

.ed-course-detail {
  padding: 2rem 0;
  &__title {
    font-size: 46px;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
    font-weight: 600;
    &::before {
      content: '';
      position: absolute;
      width: 100px;
      height: 4px;
      bottom: 0;
      border-radius: 8px;
      background-color: currentColor;
    }
  }
  &__description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 2;
    padding-top: 1rem;
    color: white;
  }
  &__teacher {
    align-items: center;
    color: white;
    margin-top: 0.5rem;
    img {
      width: 25px;
      height: 25px;
      margin-right: 0.5rem;
      border-radius: 50%;
    }
  }
  &__icon {
    color: white;
    width: 16px;
    height: 16px;
    &.big {
      width: 25px;
      height: 25px;
    }
  }
  &__button-share {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
  }
}
/* HORARIO */
.schedule__content {
  background-color: var(--bg-services);
}
// @media (max-width: 1200px) {
// }

@media (max-width: 1024px) {
  .sticky-course {
    margin-top: 1rem;
    position: relative;
    display: flex;
    flex-direction: row;
    &__img {
      position: relative;
      width: 100%;
      img {
        border-radius: 8px 0px 0px 8px;
      }
      video {
        border-radius: 8px 0px 0px 8px;
      }
    }
    &__content {
      border-radius: 0px 8px 8px 0px;
    }
  }
}

@media (max-width: 768px) {
  .ed-course-detail__title {
    font-size: 32px;
  }
  .sticky-course {
    &__img {
      width: 50%;
      img {
        border-radius: 8px 0px 0px 8px;
      }
      video {
        border-radius: 8px 0px 0px 8px;
      }
    }
    &__content {
      width: 50%;
      border-radius: 0px 8px 8px 0px;
    }
    &__schedule-table {
      width: 100%;
      tr td {
        // min-width: 170px;
        padding: 0.5rem;
      }
    }
  }
  .sticky-course-banner {
    position: sticky;
    width: 100%;
    margin-top: 1rem;
    &.active {
      top: 66px;
    }
  }
}

@media (max-width: 640px) {
  .ed-course-detail__title {
    font-size: 32px;
  }
  .sticky-course {
    flex-direction: column;
    &__img {
      width: 100%;
      img {
        border-radius: 8px 8px 0 0;
      }
    }
    &__content {
      width: 100%;
      border-radius: 0 0 8px 8px;
    }
  }
}
