/* ===== Single Course Hero Section ===== */
.ce-snglcrs-info-card {
  padding: 0;
}

/* ===== Course Pricing Card ===== */
.ce-snglcrs-card {
  position: relative;
  background: var(--bg-gradient-primary_15);
  box-shadow: 0 10px 30px rgba(22, 60, 102, 0.12);
  border-radius: 56px;
  padding: 4rem 1.75rem 1.75rem;
  text-align: center;
  width: 100%;
  height: 100%;
}

/* Discount ribbon badge */
.ce-snglcrs-off-badge {
  position: absolute;
  top: 5px;
  right: 35px;
  background: var(--theme-color-3);
  color: var(--primary-color);
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(222, 64, 73, 0.35);
}

.ce-snglcrs-title {
  color: var(--theme-color-2);
  font-size: var(--h4-font-size);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* Feature list */
.ce-snglcrs-features {
  margin: 0 0 1.5rem;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.ce-snglcrs-features li {
  position: relative;
  color: var(--theme-color-2);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding-left: 1.1rem;
  margin-bottom: 0.6rem;
}

.ce-snglcrs-features li:last-child {
  margin-bottom: 0;
}

.ce-snglcrs-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--theme-color-2);
}

/* Price */
.ce-snglcrs-price {
  margin-bottom: 0.5rem;
}

.ce-snglcrs-price-old {
  color: #b7bfd1;
  text-decoration: line-through;
  font-size: var(--h3-font-size);
  font-weight: 700;
  margin-right: 0.6rem;
}

.ce-snglcrs-price-new {
  color: var(--theme-color-2);
  font-size: var(--h2-font-size);
  font-weight: 800;
}

/* Guarantee */
.ce-snglcrs-guarantee {
  color: var(--theme-color-6);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.ce-snglcrs-guarantee i {
  margin-right: 0.25rem;
}

/* Buttons */
.ce-snglcrs-btn-take {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 0.5rem;
}

.ce-snglcrs-btn-gift {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 0.5rem;
}

/* ===== Responsive ===== */
@media (max-width: 575.98px) {
  .ce-snglcrs-card {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  .ce-snglcrs-price-new {
    font-size: 2rem;
  }

  .ce-snglcrs-price-old {
    font-size: 1.35rem;
  }
}

/* overview */
.ce-snglcrs-overview-sec {
  background: var(--theme-color-10);
}

.ce-snglcrs-overview-content-box {
  max-height: 885px;
  overflow: hidden;
  transition:
    max-height 0.5s ease-out,
    box-shadow 0.5s ease-out,
    padding-bottom 0.5s ease-out;
  padding-bottom: 50px;
  background-color: var(--primary-color);
}

.ce-snglcrs-overview-content-box.ce-snglcrs-overview-expanded {
  max-height: 6000px;
  box-shadow: inset 0 25vh 20px -20px var(--primary-color);
  padding-bottom: 50px;
}

@media (min-width: 992px) {
  .ce-snglcrs-overview-content-box.ce-snglcrs-overview-expanded {
    max-height: 2000px;
  }
}

.ce-snglcrs-overview-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30vh;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ce-snglcrs-overview-expanded + .ce-snglcrs-overview-fade-overlay {
  opacity: 0;
}

.ce-snglcrs-overview-show-more-btn {
  bottom: 15px;
  z-index: 10;
  background-color: var(--primary-color);
  padding: 5px 10px !important;
  border-radius: 0.25rem;
}

/* side bar */
.ce-snglcrs-overview-pricing-card {
  border: 2px solid var(--theme-color-3);
  box-shadow: 0 10px 30px rgba(48, 66, 121, 0.08);
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-illustration-box {
  background: var(--bg-gradient-theme-9_10);
  border: 2px solid var(--theme-color-5);
  min-height: 140px;
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-avatar-icon {
  color: var(--theme-color-2);
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-deco-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-price-old {
  color: #a9b3c6;
  text-decoration: line-through;
  font-weight: 600;
  font-size: var(--h5-font-size);
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-price-new {
  color: var(--theme-color-5);
  font-weight: 800;
  font-size: var(--h2-font-size);
  line-height: 1;
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-save-text {
  color: #2b2b2b;
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-save-text strong {
  color: var(--theme-color-2);
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-buy-now-btn {
  width: 100%;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.2rem;
}

.ce-snglcrs-overview-pricing-card .ce-snglcrs-overview-guarantee-text {
  color: #6b7280;
  font-size: 0.8rem;
}

/* =========================================================
   Tutor LMS enrol / price box override
   Tutor paints ".tutor-card.tutor-card-md.tutor-sidebar-card"
   with background #fcfaff and border 1px solid #3e64de (plus
   a matching box-shadow ring). Those clash with our pricing
   card. Specificity here is high enough to beat Tutor's
   plugin CSS without using !important.
========================================================= */
.ce-snglcrs-card .ce-snglcrs-entry .tutor-card,
.ce-snglcrs-card .ce-snglcrs-entry .tutor-card.tutor-card-md,
.ce-snglcrs-card .ce-snglcrs-entry .tutor-card.tutor-card-md.tutor-sidebar-card,
.ce-snglcrs-card .tutor-card.tutor-card-md.tutor-sidebar-card {
  background: transparent;
  background-color: transparent;
  border: 0;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
}

/* Keep the inner card body transparent too (Tutor tints it grey). */
.ce-snglcrs-card .ce-snglcrs-entry .tutor-card .tutor-card-body,
.ce-snglcrs-card .tutor-card.tutor-sidebar-card .tutor-card-body {
  background: transparent;
  background-color: transparent;
  padding: 0;
}
