/* type3 */
.wshop-type3-wrapper {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
  background: var(--c-primary);
  color: var(--c-neutral-000);
  padding: 2rem min(2rem, 3vw);
  border-radius: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.wshop-type3-wrapper::before {
  content: "";
  position: absolute;
  opacity: 0.5;
  background: var(--c-secondary);
  -webkit-filter: blur(65px);
  filter: blur(65px);
  right: 0;
  bottom: 0;
  width: 46%;
  height: 35%;
  z-index: -1;
  pointer-events: none;
}

.wshop-type3--media {
  width: 100%;
}

.wshop__title {
  font-size: var(--fs-20);
}

.wshop__subtitle {
  font-size: var(--fs-15);
}

.wshop-type3-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-block: 1.5rem;
}

.wshop-type3__desc {
  font-size: var(--fs-14);
}

.wshop-type3-icons li {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* font-size: var(--fs-16-min); */
  font-size: var(--fs-14);
  line-height: 1.5;
  flex-basis: min(167px, 100%);
  flex-grow: 1;
}

.wshop-type3-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  gap: 1.6rem;
}

.wshop-type3-icons li i {
  width: 4rem;
  height: 4rem;
  border-radius: 100vw;
  background-color: rgb(255 255 255 / 10%);
  display: block;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.wshop-type3-icons li b {
  font-size: var(--fs-13);
}

.wshop-type3-price {
  display: flex;
  flex: 1;
  font-size: var(--fs-18);
  line-height: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.price,
.sale {
  white-space: nowrap;
}

.wshop-type3-price b {
  font-size: var(--fs-12);
}

.on-sale {
  font-size: var(--fs-13);
  background: #f1206b;
  padding: 2px 6px 0px;
  border-radius: 15px;
  line-height: 1;
  margin: 0 6px;
  color: var(--c-neutral-000);
}

del.price {
  text-decoration: line-through;
  font-size: var(--fs-15);
  opacity: 0.8;
  width: 100%;
}

.wshop-type3__btn {
  height: 4.2rem;
  color: var(--c-primary);
  font-size: var(--fs-13);
  border-radius: 32px;
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 0.5rem;
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  min-width: 11rem;
  justify-content: center;
}

.wshop-type3-wrapper a:is(:hover, :focus-visible) {
  color: var(--c-secondary);
}

.wshop-type3__btn:is(:hover, :focus-visible) {
  color: var(--c-neutral-000) !important;
  border-color: var(--c-neutral-000);
}

.wshop-type3__btn i {
  font-size: 1.9rem;
}

.wshop-type3__btn .button__bg {
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--c-neutral-000);
  border-radius: 32px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
  z-index: -1;
}

.wshop-type3__btn:is(:hover, :focus-visible) .button__bg {
  transform: scale3d(1, 1, 1);
}

.wshop-type3__btn .button__bg::before,
.wshop-type3__btn .button__bg::after {
  content: "";
  position: absolute;
  background: var(--c-primary);
}

.wshop-type3__btn .button__bg::after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.wshop-type3__btn:hover .button__bg::after {
  opacity: 1;
  transition-duration: 0.01s;
  transition-delay: 0.3s;
}

.wshop-type3__btn .button__bg::before {
  width: 110%;
  height: 0;
  padding-bottom: 110%;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0) scale3d(0, 0, 1);
}

.wshop-type3__btn:hover .button__bg::before {
  transition: transform 0.4s cubic-bezier(0.1, 0, 0.3, 1);
  transform: translate3d(-50%, -50%, 0) scale3d(1, 1, 1);
}

/* type2 */
.wshop-type3-wrapper {
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
}

.wshop-wrapper {
  overflow: hidden;
  border-radius: 16px;
  height: -webkit-max-content;
  height: -moz-max-content;
  height: max-content;
}

.wshop-wrapper a:hover {
  color: var(--c-secondary);
}

.wshop-head {
  background: var(--c-primary);
  padding: min(2rem, 2vw);
  color: var(--c-neutral-000);
  position: relative;
  isolation: isolate;
}

.wshop-head::before {
  content: "";
  position: absolute;
  opacity: 0.3;
  background: var(--c-secondary);
  -webkit-filter: blur(65px);
  filter: blur(65px);
  right: 0;
  bottom: 0;
  width: 46%;
  height: 15rem;
  z-index: -1;
  pointer-events: none;
}

.wshop--title {
  display: flex;
  align-items: center;
  gap: min(1.6rem, 1vw);
}

.wshop--title .sep {
  width: 1px;
  height: 2.3rem;
  background-color: var(--c-neutral-000);
}

.wshop--media {
  margin-bottom: 2rem;
}

.wshop-body {
  background: var(--c-neutral-100);
  padding: 2rem;
  display: grid;
  gap: 1.6rem;
  align-items: center;
  grid-template-columns: 1fr auto;
  z-index: 2;
  position: relative;
}

.section-bg-100 .wshop-body {
  background: var(--c-neutral-000);
}

.wshop-action {
  display: flex;
  background: rgb(var(--c-primary-rgb), 0.1);
  border-radius: 32px;
  padding: 1rem 2rem 1rem 1rem;
  align-items: center;
  -moz-column-gap: 1.8rem;
  column-gap: 1.8rem;
  row-gap: 1rem;
  flex-wrap: wrap;
}

.wshop__btn {
  border-radius: 32px;
  background: var(--c-neutral-000);
  border: 1px solid transparent;
  font-size: var(--fs-13);
  color: var(--c-neutral-000);
  padding: 1rem 1.5rem;
  height: 4.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  cursor: pointer;
  min-width: 11rem;
  justify-content: center;
}

.wshop__btn::before {
  content: "";
  background: linear-gradient(90deg, #602ee1 0%, #3f1e94 100%);
  width: 120%;
  left: -10%;
  transform: skew(30deg);
  transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
  position: absolute;
  top: 0;
  height: 101%;
  z-index: -1;
}

.wshop__btn:hover::before {
  transform: translate3d(100%, 0, 0);
}

.wshop__btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary) !important;
}

.wshop__btn i {
  font-size: 1.9rem;
}

.wshop-price {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wshop-price span.price,
.wshop-price .sale {
  color: var(--c-primary);
  font-size: var(--fs-18);
}

.wshop-price del.price {
  color: var(--c-neutral-600);
  opacity: 0.8;
}

.wshop-price b {
  font-size: var(--fs-12);
}

.wshop-icons {
  display: flex;
  -moz-column-gap: 3.2rem;
  column-gap: 3.2rem;
  align-items: center;
  color: var(--c-primary);
  flex-wrap: wrap;
  row-gap: 1rem;
}

.wshop-icons li i {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 100vw;
  background-color: rgba(var(--c-primary-rgb), 10%);
  display: block;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.wshop-icons li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-18);
  line-height: 1.5;
}

.wshop-icons li b {
  font-size: var(--fs-12);
}

/* topics  */
.section-workshop {
  container-type: inline-size;
}

.wshop-row {
  display: grid;
  gap: 2.4rem;
}

.wshop-row.right {
  grid-template-columns: 1fr 2.5fr;
}

.wshop-row.left {
  grid-template-columns: 2.5fr 1fr;
}

@container (max-width: 62em) {
  .wshop-row:is(.left, .right) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wchapters-wrapper {
  background: var(--c-neutral-000);
  border-radius: 16px;
  padding: 2.4rem 1.8rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* .wchapters-wrapper::before {
  content: "";
  background-image: linear-gradient(to top, #ffffff 4.5rem, #ffffff08);
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  right: 0;
  user-select: none;
  -moz-user-select: none;
  height: 4.5rem;
  z-index: 3;
  border-radius: 0 0 16px 16px;
} */
.wchapters {
  height: 100%;
  padding-left: 1rem;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 2rem;
}

.wchapters::-webkit-scrollbar {
  width: 5px;
}

.wchapters::-webkit-scrollbar-thumb {
  background: var(--c-primary);
  border: 1.5px solid #eee3ff;
  box-shadow: none;
}

.wchapters::-webkit-scrollbar-track {
  background: #7420f11f;
}

.wchapters li {
  position: relative;
}

.wchapters li:not(:last-child) {
  padding-bottom: 2.4rem;
}

.wchapters li:not(:last-child):after {
  content: "";
  height: 100%;
  position: absolute;
  border: 0.5px dashed rgba(var(--c-secondary-rgb), 0.3);
  display: block;
  right: 12.5px;
  top: 0px;
  z-index: 0;
}

.wchapter-item .count {
  width: 27px;
  height: 27px;
  flex: none;
  background: var(--c-primary);
  border-radius: 100vw;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-neutral-000);
  font-size: var(--fs-14);
  box-shadow: 0 0 0 1px rgba(var(--c-secondary-rgb), 0.6);
  z-index: 2;
}

.wchapter-item__title strong {
  font-size: var(--fs-15);
  color: var(--c-neutral-700);
}

.wchapter-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.wchapter-item__title {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  line-height: 1.7;
  font-size: var(--fs-13);
  color: var(--c-neutral-400);
}

.wchapters-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--c-primary);
}

.wchapters-head a {
  display: flex;
  align-items: center;
  font-size: var(--fs-14-min);
  gap: 0.8rem;
  color: var(--c-primary);
  white-space: nowrap;
}

.wchapters-head a>i {
  font-size: 12px;
}

.wchapters-head a:is(:hover, :focus-visible) {
  color: var(--c-secondary);
}

.wchapters-head {
  display: flex;
  align-items: center;
  padding-bottom: 3.2rem;
  justify-content: space-between;
}

.wchapters-title i {
  width: 3.2rem;
  height: 3.2rem;
  background-color: rgba(var(--c-primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  font-size: 1.8rem;
  border-radius: 100vw;
  transition: 0.3s;
}

/* main */
.add-to-cart {
  transition: 0.3s;
}

.shop-course .add-to-cart b::before {
  content: "خرید دوره";
  font-family: var(--ff-main);
}

.shop-course.active .add-to-cart b::before {
  content: "حذف دوره";
  font-family: var(--ff-main);
}

.shop-course.active .wshop-type3__btn .button__bg,
.shop-course.active .wshop__btn::before {
  background: #b02828;
}

.shop-course.active .wshop__btn:hover::before {
  transform: translate3d(0%, 0, 0);
}

.shop-course.active .wshop-type3__btn {
  color: var(--c-neutral-000);
}

.shop-course.active .wshop__btn:hover {
  border-color: var(--c-neutral-000);
  color: var(--c-neutral-000) !important;
  background: #b02828;
  -webkit-filter: brightness(1.3);
  filter: brightness(1.3);
}

.shop-course.active .wshop-type3__btn .button__bg::before,
.shop-course.active .wshop-type3__btn .button__bg::after {
  content: "";
  position: absolute;
  background: #b02828;
}

/* dropdown topics */
.coursetopics--dropdown button {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-neutral-000);
  padding: 0.8rem 1.5rem;
  font-size: var(--fs-14);
  width: 100%;
  justify-content: space-between;
  background: var(--c-primary);
}

/* .coursetopics--dropdown button .icon-topic {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 100vw;
  background-color: var(--c-primary);
  color: var(--c-neutral-000);
  display: block;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
} */
.coursetopics--dropdown button i {
  font-size: 13px;
  transition: 0.3s;
}

.coursetopics--dropdown .wchapters-wrapper {
  background: transparent;
}

.coursetopics--dropdown.active button i {
  transform: rotateX(180deg);
}

/**************************/
/* BELOW 576px */
/**************************/
@media (width>=36em) {
  .wshop-head {
    background-image: url(../../imgs/pattern.svg);
    background-repeat: no-repeat;
    background-position: bottom left;
  }

  .type1 .wshop-head {
    background-size: auto 100%;
  }

  .type2 .wshop-head {
    background-size: 370px 80px;
  }

  .wchapters {
    max-height: 56rem;
  }

  .coursetopics--dropdown {
    display: none;
  }
}

/**************************/
/* ABOVE 768px */
/**************************/
@media (width>=48em) {}

/**************************/
/* ABOVE 992px */
/**************************/
@media (width>=62em) {

  .wshop-row.right .wshop-type3-wrapper,
  .wshop-row.right .wshop-wrapper {
    order: 5;
  }
}

/**************************/
/* ABOVE 1200px */
/**************************/
@media (width>=75em) {
  .desktop .wshop-type3--text {
    flex: 1;
  }

  .desktop .wshop-type3--media {
    flex: 0 0 auto;
    width: 57%;
  }
}

/**************************/
/* BELOW 1200px */
/**************************/
@media (max-width: 75em) {}

/**************************/
/* BELOW 992px */
/**************************/
@media (max-width: 62em) {
  .wshop-row:is(.left, .right) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/**************************/
/* BELOW 768px */
/**************************/
@media (max-width: 48em) {
	.wshop-type3-wrapper {
    flex-direction: column-reverse;
}
	
}

/**************************/
/* BELOW 576px */
/**************************/
@media (max-width: 36em) {
  .wshop-icons {
    justify-content: start;
  }

  .wshop-body {
    padding: 0;
    display: block;
  }

  .wshop-icons {
    padding: 1.5rem;
    display: grid;
  }

  .wshop-action {
    width: 100%;
    border-radius: 0;
    justify-content: space-between;
    padding: 1rem;
  }

  .wshop--title {
    flex-direction: column;
    justify-content: center;
  }

  .wshop--title .sep {
    display: none;
  }
}

.section-workshop.video-right .wshop-type3-wrapper {
  flex-direction: row-reverse;
}