/* :root {
  --global-font: "Inter", sans-serif;
  --primary-color: #1a906b;
  --secondary-color: #ffd05a;
  --dark-color: #06241b;
  --black-color: #000000;
  --light-color: #ffffff;
  --gray-color: #6d737a;
  --gray-light-color: #e7e9eb;
} */

/* ****************************** */
/* ******* User Dashboard ******* */
/* ****************************** */
.dashboard {
  position: relative;
  padding: 150px 0;
  z-index: 1;
}

.dashboard::after {
  content: "";
  height: 300px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: rgba(26, 144, 107, 0.05);
}

.dashboard__header {
  background-color: var(--light-color);
  border-radius: 16px;
  border: 1px solid var(--gray-light-color);
  overflow: hidden;
  box-shadow: -4px -4px 44px 0 rgba(0, 0, 0, 0.08);
}

.dashboard__profile {
  padding: 40px;
  border-bottom: 1px solid var(--gray-light-color);
  gap: 24px;
}

.dashboard__profile-pic {
  height: 110px;
  width: 110px;
  border-radius: 50%;
  overflow: hidden;
}

.dashboard__profile-pic img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.dashboard__profile-name {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  font-family: var(--global-font);
  color: var(--dark-color);
  margin: 0 0 15px;
}

.dashboard__tab-header-wrap {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--light-color);
}

.dashboard__tab-header {
  gap: 1px;
  border: none;
}

.dashboard__tab-btn {
  flex: 1;
  position: relative;
  padding: 20px;
  background-color: transparent;
  border: none;
  font-size: 16px;
  color: var(--gray-color);
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.dashboard__tab-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0px;
  left: 0;
  background-color: var(--primary-color);
  transition: 0.3s;
}

.dashboard__tab-btn:hover,
.active-tab {
  color: var(--primary-color);
}

.dashboard__tab-btn:hover::after,
.active-tab.dashboard__tab-btn::after {
  width: 100%;
}

.dashboard__body__tab-content {
  margin-top: 60px;
}

.tab-content {
  display: none;
}

.tab-content__title,
.tab-content__block-count {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  font-family: var(--global-font);
  color: var(--dark-color);
  margin: 0 0 30px;
}

.tab-content__blocks,
.tab-content__block {
  gap: 24px;
}

.tab-content__block {
  flex: 1;
  padding: 24px;
  border-radius: 8px;
  background-color: #ffeee8;
}

.tab-content__block:nth-child(2) {
  background-color: #ebebff;
}

.tab-content__block:nth-child(3) {
  background-color: #1a8f6a26;
}

.tab-content__block:nth-child(4) {
  background-color: rgba(255, 208, 90, 0.2);
}

.tab-content__block-count {
  margin: 0 0 6px;
}

.tab-content__block-label {
  font-size: 14px;
  line-height: 1.3;
}

.tab-content__acc-blocks {
  gap: 24px;
}

.tab-content__acc-block {
  align-self: flex-start;
  border-radius: 16px;
  border: 1px solid var(--gray-light-color);
}

.user-profile {
  width: 368px;
  padding: 44px;
}

.tab-content__uploader {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.tab-content__uploader input {
  display: none;
}

.tab-content__uploader label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  font-family: var(--global-font);
  color: var(--light-color);
  gap: 8px;
  z-index: 1;
  padding: 12px;
  background-color: #00000080;
  cursor: pointer;
}

.tab-content__upload-preview img {
  width: 280px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.tab-content__upload-info {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--gray-color);
  margin: 22px 0 0;
  text-align: center;
}

.dashboard__form-fields-block {
  padding: 50px;
  flex: 1;
}

.dashboard__form-fields-block .form__submit,
.tab-content__security-block .form__submit {
  margin-top: 45px;
}

.tab-content__security-block,
.tab-content__courses-block,
.tab-content__wishlist-block {
  padding: 50px;
  border-radius: 16px;
  border: 1px solid var(--gray-light-color);
}

/* Courses Tab-Content */
.tab-content__course.style-01.card {
  margin-bottom: 60px;
  position: relative;
  gap: 24px;
  overflow: visible;
  box-shadow: none;
  border: none;
}

.tab-content__course:not(:last-child)::after {
  content: "";
  height: 1px;
  width: 100%;
  position: absolute;
  background-color: var(--gray-light-color);
  bottom: -30px;
  left: 0;
}

.tab-content__course .card__figure {
  align-self: stretch;
  max-width: 245px;
  width: 245px;
  border-radius: 8px;
  overflow: hidden;
}

.tab-content__course .card__figure img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.tab-content__course.style-01 .card__context {
  padding: 0;
  max-width: 385px;
}

.tab-content__course.style-01 .card__dsc {
  margin: 0;
}

.tab-content__course.style-01 .card__figure .card__base {
  padding: 6px 20px;
  top: 24px;
  border-radius: 4px;
}

.tab-content__course .card__btns {
  flex: 1;
  justify-content: flex-end;
}

.user-dashboard-main .tab-content__course .card__btn,
.user-dashboard-main .tab-content__course:hover .card__btn {
  background-color: var(--primary-color);
}

.user-dashboard-main .tab-content__course:hover .card__btn:hover {
  background-color: var(--dark-color);
}

.user-dashboard-main .tab-content__course .card__btn.bg-dark,
.user-dashboard-main .tab-content__course:hover .card__btn.bg-dark {
  background-color: var(--dark-color);
}

.user-dashboard-main .tab-content__course .card__btn.disable,
.user-dashboard-main .tab-content__course:hover .card__btn.disable {
  background-color: var(--gray-color);
}

.user-dashboard-main .tab-content__course:hover .card__btn.bg-dark:hover {
  background-color: var(--primary-color);
}

.tab-content__course.style-01.card:last-child {
  margin: 0;
  border: none;
}

/* Purchese Histroy Tab-content */
.tab-content__histry-block {
  border-radius: 16px;
  border: 1px solid var(--gray-light-color);
}

.tab-content__histry-item {
  gap: 50px;
  padding: 30px;
  border-bottom: 1px solid var(--gray-light-color);
}

.tab-content__histry-item:last-child {
  border: none;
}

.tab-content__histry-date {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
  font-family: var(--global-font);
  color: var(--dark-color);
  margin: 0 0 15px;
}

.tab-content__histry-info {
  gap: 16px;
}

.tab-content__histry-info p {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
  color: var(--gray-color);
}

.tab-content__histry-info p span {
  font-weight: 500;
  color: var(--primary-color);
  margin-right: 6px;
}

.tab-content__histry-item__right .download-btn {
  padding: 12px;
}

.tab-content__block-icon {
  width: 60px;
}

.tab-content__block-context {
  flex: 1;
}

@media (max-width: 1300px) {
  .tab-content__blocks,
  .tab-content__block {
    gap: 15px;
  }

  .tab-content__block {
    padding: 15px;
  }
}

@media (max-width: 1200px) {
  .user-profile {
    width: 280px;
    padding: 20px;
  }

  .tab-content__course.style-01.card {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .tab-content__course .card__btns {
    flex: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1080px) {
  .dashboard {
    padding: 120px 0;
  }

  .dashboard::after {
    height: 250px;
  }

  .tab-content__blocks {
    flex-wrap: wrap;
  }

  .tab-content__block-label {
    white-space: nowrap;
  }

  .dashboard__form-fields-block {
    padding: 30px;
  }

  .tab-content__acc-blocks {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .dashboard {
    padding: 90px 0;
  }

  .dashboard::after {
    height: 220px;
  }

  .dashboard__profile {
    padding: 30px;
  }

  .dashboard__profile-pic {
    height: 90px;
    width: 90px;
  }

  .dashboard__profile-name {
    font-size: 22px;
  }

  .dashboard__body__tab-content {
    margin-top: 50px;
  }

  .tab-content__title,
  .tab-content__block-count {
    font-size: 22px;
  }

  .user-profile {
    width: 250px;
    padding: 15px;
  }

  .tab-content__acc-blocks {
    gap: 15px;
  }

  .dashboard__form-fields-block {
    padding: 24px;
  }

  .dashboard .form__row {
    margin-bottom: 15px;
  }

  .dashboard__form-fields-block .form__submit,
  .tab-content__security-block .form__submit {
    margin-top: 30px;
  }

  .tab-content__security-block,
  .tab-content__courses-block,
  .tab-content__wishlist-block {
    padding: 30px;
  }

  .tab-content__course.style-01 .card__context {
    max-width: 350px;
  }
}

@media (max-width: 767px) {
  .dashboard {
    padding: 60px 0;
  }

  .dashboard::after {
    height: 170px;
  }

  .dashboard__profile {
    padding: 24px;
    gap: 20px;
  }

  .dashboard__profile-pic {
    height: 70px;
    width: 70px;
  }

  .dashboard__profile-name {
    font-size: 20px;
    margin: 0 0 10px;
  }

  .dashboard__tab-btn {
    padding: 15px;
    font-size: 15px;
  }

  .dashboard__body__tab-content {
    margin-top: 40px;
  }

  .tab-content__title {
    margin-bottom: 20px;
  }

  .tab-content__title,
  .tab-content__block-count {
    font-size: 20px;
  }

  .tab-content__acc-blocks {
    flex-direction: column;
  }

  .dashboard__form-fields-block {
    padding: 15px;
  }

  .dashboard__form-fields-block .form__submit,
  .tab-content__security-block .form__submit {
    margin-top: 20px;
  }

  .tab-content__security-block,
  .tab-content__courses-block,
  .tab-content__wishlist-block {
    padding: 20px;
  }

  .tab-content__courses-block {
    max-width: 500px;
    margin: 0 auto;
  }

  .tab-content__course.style-01 .card__context {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .tab-content__histry-item__right .download-btn {
    padding: 6px;
  }

  .tab-content__histry-item__right .download-btn svg {
    height: 18px;
    width: 18px;
  }

  .tab-content__histry-item {
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
  }

  .tab-content__histry-info {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* .dashboard__tab-header-wrap {
    scrollbar-width: none;
  } */
}

.rate{
  float: left;
}

.rate:not(:checked) > input {
  position:absolute;
  top:-9999px;
}

.rate:not(:checked) > label {
  float:right;
  width:1em;
  overflow:hidden;
  white-space:nowrap;
  cursor:pointer;
  font-size:30px;
  color:#ccc;
}

.rate:not(:checked) > label:before {
  content: '★ ';
}

.rate > input:checked ~ label {
  color: #ffc700;
}

.rate:not(:checked) > label:hover,
.rate:not(:checked) > label:hover ~ label {
  color: #deb217;
}

.rate > input:checked + label:hover,
.rate > input:checked + label:hover ~ label,
.rate > input:checked ~ label:hover,
.rate > input:checked ~ label:hover ~ label,
.rate > label:hover ~ input:checked ~ label {
  color: #c59b08;
}

.rate-now-modal {
  height: 100vh;
  width: 100vw;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999999;
  background: rgba(0, 0, 0, .5);
}

.rate-now-modal form{
  padding: 30px;
  background: #ffffff;
  border-radius: 7px;
  position: relative;
  width: 80%;
  max-width: 400px;
}

.rate-now-modal form button{
  font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    font-family: var(--global-font);
    display: inline-block;
    color: var(--light-color);
    padding: 14px 34px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
}

.btn-wrap {
  overflow: hidden;
  clear: both;
  padding-top: 12px;
}

span.modal-close {
  position: absolute;
  top: -10px;
  right: -12px;
  height: 26px;
  width: 26px;
  background: #ffffff;
  box-shadow: 0 0 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}