/* course top infos */

/* video player */
.video__box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

video {
  border-radius: 2rem;
}

.video__btn {
  background-color: var(--primery-color);
  border-radius: 100%;
  width: 4rem;
  height: 4rem;
}

.video__btn--play svg:last-child {
  display: none;
}

.video__btn--puase svg:first-child {
  display: none;
}

.video__controles-box {
  display: flex;
  flex-direction: column;
  align-items: end;
  margin-bottom: 5px !important;
}

.video__time-controles-box {
  width: 100%;
  padding: 0 7px;
  gap: 1rem;
}

.video__time {
  font-size: 1.2rem;
}

.video__time-line-box {
  background-color: #dddddd;
  width: 100%;
  height: 1rem;
  border-radius: 2rem;
}

.video__time-line {
  position: relative;
  width: 10%;
  height: 1rem;
  background-color: var(--primery-color);
  border-radius: 5rem;
}

.video__time-line::before {
  position: absolute;
  content: "";
  right: -2px;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 2rem;
  height: 2rem;
  background-color: #fff;
  border-radius: 100%;
  opacity: 0;
  transition: opacity 250ms linear;
}

.video__time-line-box:hover .video__time-line::before {
  opacity: 1;
}

.video__sount-and-screen-controles {
  width: 100%;
  padding: 0 7px;
}

.video--unmute > svg:nth-child(2) {
  display: none;
}

.video--mute > svg:nth-child(1) {
  display: none;
}

.video__volume-box {
  gap: 1rem;
}

.video__volume-box svg,
.video__screen-control svg,
.video__screen-control img {
  width: 2.5rem;
  height: 2.5rem;
}

.volumeLevel {
  width: 8rem;
  background-color: var(--primery-color);
  border-radius: 2rem;
  accent-color: var(--primery-color);
}

.video__screen--normal img {
  display: none;
}

.video__screen--fullscreen svg {
  display: none;
}

/* video player */

/* course top body */
.course__top-textbox {
  display: grid;
  gap: 2rem;
}

.course__title {
  font-family: dana-heavy;
  margin-top: 2rem;
}

.course__caption {
  font-size: 2rem;
  font-family: dana-regular;
}

/* course top body */
/* -------------------------------------------------------------------------- */

/* course btn and price box */

.course__priceStricked {
  color: #9d9d9d;
  text-decoration: line-through;
  font-size: 1.4rem;
}

.course__price {
  font-size: 3rem;
}

.course__btn {
  gap: 1rem;
  padding: 1rem;
  background-color: var(--primery-color);
  border-radius: 1rem;
}

.course__btnText {
  font-size: 2rem;
}

/* course btn and price box */
/* -------------------------------------------------------------------------- */

/* course top infos */
/* -------------------------------------------------------------------------- */

.teacherAndUserComment {
  display: grid;
  gap: 3rem;
  align-content: start;
}

/* teacher */
.teacher {
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 2rem;
  justify-content: space-around;
}

.teacher__profileImg {
  display: block;
  height: 15rem;
  width: 15rem;
  aspect-ratio: 16/9;
  border-radius: 100%;
  border: 5px solid var(--primery-color);
  margin: 0 auto;
}

.teacher__infoTop p {
  font-size: 1.8rem;
}

.teacher__info {
  display: grid;
  gap: 1rem;
}

.teacher__bio {
  overflow-y: scroll;
  height: 12rem;
}

.teacher__links {
  gap: 2rem;
}

.teacher__icon {
  padding: 0.8rem;
  border-radius: 100%;
  border: 2px solid var(--primery-color);
}

.teacher__icon svg path {
  stroke: var(--primery-color);
}

/* teacher */
/* -------------------------------------------------------------------------- */

/* user comment */
.userCommentRate {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  height: 7rem;
  padding-right: 2rem;
  font-size: 2rem;
}

.comment__inputBox {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  height: 20rem;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.user__comment .comment__body {
  gap: 3rem;
}

.userCommentText {
  width: 100%;
  height: 12rem;
  resize: none;
  font-size: 2rem;
  overflow-y: hidden;
}

.userCommentBtn {
  width: 100%;
  padding: 2rem;
  background-color: var(--primery-color);
  border-radius: 2rem;
  font-size: 2rem;
}

/* user commnet */
/* -------------------------------------------------------------------------- */

/* course status */
.course__status {
  display: flex;
  flex-direction: column;
  background-color: var(--main-dark-color);
  border-radius: 2rem;
  align-items: center;
  padding: 3rem 2rem;
  justify-content: space-around;
}

.studentsCount__box {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 5rem;
  margin-bottom: 5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.students__count {
  display: flex;
  justify-content: center;
  font-size: 4rem;
}

.studentsBottomBox {
  gap: 0.5rem;
}

.course__completeStatus {
  width: 100%;
  padding: 1rem;
  border: 3px solid #00975b;
  border-radius: 2rem;
  color: #00975b;
  text-align: center;
}

/* course status */
/* -------------------------------------------------------------------------- */

/* course features */
.course__features {
  display: grid;
  gap: 3rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.course__feature {
  border-radius: 2rem;
  padding: 2rem 1rem;
}

.course__featureTextBox {
  display: flex;
  flex-direction: column;
}

.course__featureTitle {
  color: var(--course-feature-title);
}

.course__featureCaption {
  font-size: 1.4rem;
}

/* course features */
/* -------------------------------------------------------------------------- */

/* video search input */

.input__box {
  background-color: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(50px);
  padding: 1.5rem 2rem 1.5rem 1.5rem;
  height: 10rem !important;
  border-radius: 10rem;
  border: 3px solid var(--accent-color);
}

.videoSearchInput {
  width: 50%;
  height: 100%;
}

.searchBtn {
  background-color: var(--accent-color);
  border-radius: 5rem;
  width: 40%;
  height: 100%;
}

/* video search input */
/* -------------------------------------------------------------------------- */

/* chpaters */
.course__chaptersAndSearch,
.chapters {
  display: grid;
  gap: 3rem;
}

/* chpaters */
.chapters {
  display: grid;
  gap: 3rem;
}

.chapter__body {
  display: none;
}

.chapter__head {
  background-color: var(--main-dark-color);
  border-radius: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 50px);
  height: 10rem;
  padding: 1rem 2rem;
}

.chapter__mainInfo {
  grid-column: 1/3;
  gap: 5px;
}

.chapter__number {
  width: 3rem;
  height: 3rem;
  border: 3px solid white;
  border-radius: 1rem;
  padding-top: 5px;
  font-size: 1.8rem;
}

.chapter__title {
  font-size: 1.8rem;
  width: 100%;
}

.chapter__otherInfo {
  display: flex;
  align-items: start;
  grid-column: 1/4;
  grid-row: 2/3;
}

.chapter__lessonCount {
  padding-left: 2rem;
  margin-left: 2rem;
  position: relative;
}

.chapter__lessonCount::after {
  position: absolute;
  content: "";
  width: 1rem;
  height: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 100%;
  top: 0;
  bottom: 0;
  right: 0;
  left: -6rem;
  margin: auto;
}

.chapter__head svg {
  grid-column: 3/4;
  grid-row: 1/2;
  align-self: center;
  justify-self: end;
}

.chapter__otherInfoText {
  font-size: 1.4rem;
}

.chapter--active .chapter__head {
  border-radius: 2rem 2rem 0 0;
}

.chapter--active .chapter__body {
  display: block;
}

.chapter--active .chapter__head svg {
  rotate: 180deg;
}

/* chapter body  */
.chapter__body {
  background-color: #292d34;
  border-radius: 0 0 2rem 2rem;
}

.chapter__itemLink {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: 1.5rem;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.chapter__itemLinkBox {
  gap: 1rem;
}

.chapter__itemNumber {
  width: 2rem;
  height: 2rem;
  background-color: #4b93ff;
  padding-top: 5px;
  border-radius: 0.5rem;
}

.chapter__itemLinkTitle {
  font-size: 1.6rem;
  font-family: dana-light;
  width: 15rem !important;
}

.chpater__itemLinkStatus {
  gap: 1rem;
  justify-content: space-between;
  width: 100%;
}

.chapter__itemTime {
  border: 2px solid #4b93ff;
  padding: 2px 1.5rem;
  color: #4b93ff;
  border-radius: 3rem;
  font-size: 1.4rem;
}

.chapter__itemCheckbox {
  width: 3rem;
  height: 3rem;
  border: 2px solid #4b93ff;
  border-radius: 2rem;
}

.chapter__itemCompleted {
  display: none;
  width: 3rem;
  height: 3rem;
}

.chpter__otherInfoAndIcon {
  gap: 1rem;
}

.chapter--active .chapter__itemLink:last-child {
  border: none;
}

/* chapter body */
/* -------------------------------------------------------------------------- */

/* chpaters */
/* -------------------------------------------------------------------------- */

/* chapter body */
/* -------------------------------------------------------------------------- */

/* chpaters */
/* -------------------------------------------------------------------------- */

/* comments */

.comment {
  border-radius: 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
  padding: 1rem;
}

.comment__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.comment__profile {
  gap: 2rem;
}

.comment__profile img {
  width: 10rem;
  height: 10rem;
  border-radius: 2rem;
  display: block;
}

.commnet__userRole {
  font-size: 1.6rem;
  color: #7a7a7a;
}

.comment__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment__rate {
  gap: 1rem;
}

.comment__caption {
  font-size: 1.8rem;
  color: #7a7a7a;
}

.answerd_comment {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: var(--main-dark-color);
  border-radius: 2rem;
  padding: 2rem;
}

.answerd_comment .comment:last-child {
  background-color: #262839 !important;
}
.answerd_comment .comment:last-child svg {
  rotate: 180deg;
}

/* comments */
/* -------------------------------------------------------------------------- */
