/* =========================================================
   Spooky Day Sale 2026
   Loaded on the Hot Deals page and the spooky-sale-2026 landing
   page (inc/enqueue.php). Section overrides are scoped to
   main.ce-spooky so the shared components keep their normal look
   on every other page.
   ========================================================= */

/* ===== Hero ===== */
#ce-spk-hero-sec {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background: #5b2f78 url(../imgs/spooky/ce-spk-hero-bg.webp) center / cover no-repeat;
}

#ce-spk-hero-sec > .container {
  position: relative;
  z-index: 1;
}

.ce-spk-hero-title {
  width: 100%;
  max-width: 560px;
  height: auto;
}

.ce-spk-hero-offer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ce-spk-hero-eyebrow {
  font-family: "Mystery Quest", var(--primary-font);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.1;
  color: var(--primary-color);
  letter-spacing: 1px;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.25rem;
}

.ce-spk-hero-offer {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* Coupon code + Copy button */
.ce-spk-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 340px;
  margin-top: 1.25rem;
  padding: 0.35rem 0.35rem 0.35rem 1.4rem;
  background: rgba(236, 232, 240, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.ce-spk-coupon-code {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: #1f1530;
}

.ce-spk-coupon-btn {
  min-width: 112px;
  padding: 0.55rem 1.6rem;
  border: 0;
  border-radius: 200px;
  background: #5b3e7c;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ce-spk-coupon-btn:hover,
.ce-spk-coupon-btn:focus-visible {
  background: #3f2a58;
}

.ce-spk-browse-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 200px;
  background: linear-gradient(90deg, #8c5cf5 0%, #4e3a8e 100%);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ce-spk-browse-btn:hover,
.ce-spk-browse-btn:focus {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991.98px) {
  #ce-spk-hero-sec {
    min-height: 0;
    padding: 2.5rem 0 3rem;
  }

  .ce-spk-hero-title {
    max-width: 420px;
  }
}

@media (max-width: 575.98px) {
  .ce-spk-hero-offer {
    max-width: 320px;
  }

  .ce-spk-coupon-code {
    font-size: 1.1rem;
  }
}

/* ===== Learn With Confidence ===== */
.ce-spooky #ce-accreditation-sec {
  background: #2a3b4a url(../imgs/spooky/ce-spk-accreditation-bg.webp) center / cover no-repeat;
}

.ce-spooky .ce-accreditation-title {
  color: var(--primary-color);
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.ce-spooky .ce-accreditation-card {
  background: var(--primary-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* ===== Our Popular Courses ===== */
.ce-spooky #ce-htd-ppcrs-sec {
  background: #7a3a1c url(../imgs/spooky/ce-spk-courses-bg.webp) center / cover no-repeat;
}

.ce-spooky .ce-htd-ppcrs-title {
  display: table;
  margin-inline: auto;
  padding: 0.35rem 1.1rem;
  border-radius: 10px;
  background: rgba(20, 12, 10, 0.78);
  color: var(--primary-color);
}

.ce-spooky .ce-htd-ppcrs-card {
  max-width: 880px;
  margin-inline: auto;
  padding: 0.5rem;
  background: rgba(122, 10, 10, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.ce-spooky .ce-htd-ppcrs-img-wrap {
  border-radius: 10px;
}

.ce-spooky .ce-htd-ppcrs-title-sm a {
  color: var(--primary-color);
  text-decoration: none;
}

.ce-spooky .ce-htd-ppcrs-badges {
  background: #e3e3e3;
}

.ce-spooky .ce-htd-ppcrs-badge-item {
  color: #3d3d3d;
}

/* ===== Why Learners Choose ===== */
.ce-spooky .ce-htd-why-section {
  background: #ece9e6 url(../imgs/spooky/ce-spk-why-bg.webp) center / cover no-repeat;
  color: var(--theme-color-2);
}

.ce-spooky .ce-htd-why-card {
  background: rgba(38, 42, 52, 0.88);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* ===== Get access to all courses (Lifetime CTA) ===== */
.ce-spooky #ce-lft-sec {
  background: #1f242c url(../imgs/spooky/ce-spk-lifetime-bg.webp) center / cover no-repeat;
}

.ce-spooky #ce-lft-sec .ce-cart-heading,
.ce-spooky #ce-lft-sec .ce-cart-desc {
  color: var(--primary-color);
}

.ce-spooky #ce-lft-sec .ce-lft-img {
  max-width: min(100%, 400px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
}

.ce-spooky #ce-lft-sec .ce-cart-btn {
  --_base: var(--primary-color);
  --_text-base: var(--theme-color-1);
  min-width: 220px;
  text-align: center;
  border-radius: 8px;
}

/* ===== Earn an Accredited Certificate ===== */
.ce-spooky #ce-cart-sec {
  background: var(--theme-color-14) url(../imgs/spooky/ce-spk-cert-bats.webp) right 1% top 1.5rem / auto 88% no-repeat;
}

.ce-spooky #ce-cart-sec .ce-cart-heading {
  font-size: var(--h3-font-size);
  max-width: 420px;
}

@media (min-width: 992px) {
  /* Keep the text clear of the bats on the right. */
  .ce-spooky #ce-cart-sec .col-lg-6:last-child {
    padding-right: 14%;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .ce-spooky #ce-cart-sec {
    background-size: auto 62%;
    background-position: right 0.5% top 1rem;
  }
}

/* ===== What our students say ===== */
.ce-spooky #ce-testi-sec {
  background: #c6d3ea url(../imgs/spooky/ce-spk-reviews-bg.webp) center / cover no-repeat;
}

@media (min-width: 992px) {
  .ce-spooky .ce-testi-title {
    text-align: left;
  }
}

@media (max-width: 991.98px) {
  .ce-spooky #ce-cart-sec {
    background-size: auto 220px;
    background-position: right 2% top 0.5rem;
  }
}
