/* ==========================================================================
   Training Station: Cyber Monday 2026 skin (from cyber-monday.css in the design)
   Loaded last on Hot Deals, the Lifetime page and the Cyber Monday sale / deal pages
   while CM26_ACTIVE is on (inc/cyber-monday.php), scoped to body.ts-cm26.
   ========================================================================== */
/* ==========================================================================
   CYBER MONDAY 2026 — theme for Hot Deals + Lifetime Prime Membership
   --------------------------------------------------------------------------
   Load LAST, after style / sections / components / shop|membership / buttons.
   The base stylesheets are the normal Training Station ones; this file only
   swaps the palette (orange → purple) and the artwork. Remove the <link> to
   this file and the pages fall back to the normal site look.

   Colours and sizes come from "Training Station Cyber Monday UI.pdf" (1440px).
   ========================================================================== */

body.ts-cm26{
  --cm-purple: #9619e7;               /* brand colour of the campaign */
  --cm-purple-deep: #5b0ea0;
  --cm-cyan: #00d0fe;                 /* "Guarantee" pill gradient start */
  --cm-ice: #e9fcff;                  /* card fill, light text on purple */
  --cm-mist: #f9fbfe;                 /* section bands */
  --cm-shadow: rgba(150, 25, 231, 0.18);

  /* base tokens → purple (everything built on them follows) */
  --ts-orange: var(--cm-purple);
  --ts-amber: #c98bff;                /* footer hover on dark: lighter so it stays readable */
  --ts-cream: var(--cm-mist);
  --ts-cream-2: #f3e8fd;
  --ts-cream-menu: #f3e8fd;
  --ts-gradient: linear-gradient(90deg, var(--cm-purple) 0%, var(--cm-purple) 100%);

  /* button hover waves: deep purple → navy, white text on top */
  --ts-btn-fill: linear-gradient(90deg, var(--cm-purple-deep) 0%, #23333e 100%);
}

/* keyboard focus ring (base one is orange) */
body.ts-cm26 :is(.ts-btn, .ts-search__btn, .ts-icon-btn, .prime-hero__cta):focus-visible{
  box-shadow: 0 0 0 3px rgba(150, 25, 231, 0.45);
}

/* hover shadows (base ones are orange) */
body.ts-cm26 .ts-course-card:hover,
body.ts-cm26 .prime-benefit:hover{
  box-shadow: 0 14px 26px var(--cm-shadow);
}

body.ts-cm26 .prime-cat:hover{
  box-shadow: 0 10px 20px rgba(150, 25, 231, 0.14);
}


/* ==========================================================================
   Chevron pattern behind the hero, certificate and guarantee blocks
   ========================================================================== */
body.ts-cm26 .ts-chevron-bg{
  background-image: url("../imgs/ts-cm-bg-chevron.svg");
}

@media (max-width: 767.98px) {
  body.ts-cm26 .ts-chevron-bg{
    background-image: url("../imgs/ts-cm-bg-chevron.svg"), url("../imgs/ts-cm-bg-chevron.svg");
  }
}


/* ==========================================================================
   Primary buttons: solid purple with white text
   (the design shows dark text here; white keeps it readable on purple)
   ========================================================================== */
body.ts-cm26 .ts-btn--gradient,
body.ts-cm26 .ts-btn--gradient:hover{
  color: #fff;
}


/* ==========================================================================
   HOT DEALS
   ========================================================================== */

/* ---- Banner: full artwork, phone crop below 768px ---- */
body.ts-cm26 .deals-banner{
  overflow: hidden;
  background: #fff;
}

body.ts-cm26 .deals-banner picture,
body.ts-cm26 .deals-banner img{
  display: block;
  width: 100%;
}

/* Whole COUPON / COPY pill is the click area.
   Pill in banner.webp (1272×495): x 505–756, y 289–338 */
body.ts-cm26 .deals-banner__copy{
  left: 49.57%;
  top: 63.33%;
  width: 19.73%;
  height: 9.9%;
  min-width: 48px;
  min-height: 32px;
  border-radius: 999px;
}

body.ts-cm26 .deals-banner__copy:focus-visible{
  outline: 3px solid var(--cm-purple);
  outline-offset: 2px;
}

/* ---- Organisations: white boxes, purple border, soft shadow ---- */
body.ts-cm26 .deals-organisations .ts-organisations__box{
  border-width: 4px;
}

/* ---- Trending courses ---- */
body.ts-cm26 .deals-trending{
  background: var(--cm-mist);
}

body.ts-cm26 .ts-course-card{
  --ts-fill: var(--cm-ice);
  border-width: 2px;
  border-radius: 38.6px 0 38.6px 0;
}

body.ts-cm26 .ts-course-card__title{
  font-weight: 400;                   /* Montserrat Regular in the design */
}

body.ts-cm26 .ts-course-card__title a:hover{
  color: var(--cm-purple);
}

body.ts-cm26 .ts-course-card__meta .bi{
  color: var(--cm-purple);
}

body.ts-cm26 .ts-card-divider{
  height: 2px;
}

body.ts-cm26 .ts-course-card__actions .ts-btn--outline{
  --ts-fill: #fff;
}

body.ts-cm26 .ts-trending__more{
  font-weight: 700;
  text-shadow: none;
}

/* ---- Certificate offer ---- */
body.ts-cm26 .ts-certificate__frame{
  border-width: 2px;
  border-radius: 50.6px 0 50.6px 0;
  box-shadow: 8px 10px 16px rgba(0, 0, 0, 0.22);
}

body.ts-cm26 .ts-certificate__frame img{
  border-radius: 38px 0 40px 0;
  box-shadow: none;
}

body.ts-cm26 .ts-certificate__title strong{
  color: var(--cm-purple);
}


/* ==========================================================================
   LIFETIME PRIME MEMBERSHIP
   ========================================================================== */

/* ---- Hero ---- */
body.ts-cm26 .prime-hero__title.ts-text-gradient{
  /* solid purple headline */
  background: none;
  color: var(--cm-purple);
}

body.ts-cm26 .prime-hero__price strong{
  color: var(--cm-ice);
  -webkit-text-stroke: 1px #23333e;
  paint-order: stroke fill;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.25);
}

body.ts-cm26 .prime-hero__timer{
  border-width: 3px;
}

/* ---- Benefits ---- */
body.ts-cm26 .prime-benefits{
  background: var(--cm-mist);
}

/* ---- Money-back guarantee: cyan → purple pill ---- */
body.ts-cm26 .prime-guarantee__pill{
  background: linear-gradient(90deg, var(--cm-cyan) 0%, var(--cm-purple) 100%);
}

/* ---- FAQ ---- */
body.ts-cm26 .prime-faq .ts-accordion--center{
  max-width: 622px;
}

body.ts-cm26 .ts-accordion__head{
  color: var(--cm-ice);
}

body.ts-cm26 .ts-accordion__body{
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--ts-gradient) border-box;
}

/* ---- Contact band ---- */
body.ts-cm26 .prime-contact{
  background: var(--cm-ice);
}

body.ts-cm26 .prime-contact__btn{
  height: 46px;
}

body.ts-cm26 .prime-contact__btn,
body.ts-cm26 .prime-contact__btn:hover{
  color: var(--cm-ice);
}


/* ==========================================================================
   Desktop layout measured from the 1440px artboard
   (scoped, so the base phone / tablet layouts stay as they are)
   ========================================================================== */
@media (min-width: 768px) {
  body.ts-cm26 .deals-banner{
    margin-top: 14px;                 /* white gap under the header, as in the design */
  }

  body.ts-cm26 .deals-certificate .ts-certificate__bg{
    top: 122px;                       /* chevron band starts 72px below the frame top */
  }

  body.ts-cm26 .deals-certificate .ts-certificate__title{
    margin-bottom: 60px;
  }
}

@media (min-width: 1200px) {
  body.ts-cm26 .prime-hero{
    padding-top: 10px;
  }

  body.ts-cm26 .prime-hero__content{
    position: relative;
    top: -10px;                       /* text block sits a little above centre in the design */
  }

  /* illustration: 449px wide at x 879 (reaches 28px past the content edge, as in the design) */
  body.ts-cm26 .prime-hero__media img{
    width: 449px;
    max-width: none;
    margin-left: 160px;
  }

  body.ts-cm26 .prime-benefits{
    padding-bottom: 80px;
  }

  body.ts-cm26 .prime-benefits__grid{
    row-gap: 60px;
  }

  body.ts-cm26 .prime-guarantee__media img{
    width: 312px;
    margin-left: 92px;
  }
}

@media (min-width: 1200px) and (max-width: 1299.98px) {
  /* keep the illustration inside the viewport on smaller desktops */
  body.ts-cm26 .prime-hero__media img{
    margin-left: 132px;
  }
}

/* ==========================================================================
   Phones
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Pill in banner-mobile.webp (851×495, cropped x 111–962) */
  body.ts-cm26 .deals-banner__copy{
    left: 61.05%;
    width: 29.5%;
  }

  body.ts-cm26 .ts-course-card{
    border-radius: 30px 0 30px 0;
  }

  body.ts-cm26 .ts-certificate__frame{
    border-radius: 40px 0 40px 0;
  }

  body.ts-cm26 .ts-certificate__frame img{
    border-radius: 30px 0 30px 0;
  }

  body.ts-cm26 .deals-certificate .ts-certificate__title{
    margin-bottom: 30px;
  }

  body.ts-cm26 .prime-hero__price strong{
    -webkit-text-stroke-width: 0.75px;
  }
}


/* ==========================================================================
   WordPress additions: Cyber Monday colours for the parts the design has no
   page for (lifetime counter-offer on the sale / deal pages, deal page accents)
   ========================================================================== */
.deals-main--cm {
  --bf-red: #9619e7;
  --bf-red-dark: #5b0ea0;
}

.deals-main--cm section {
  position: relative;
}

body.ts-cm26 .deals-banner .deals-banner__copy {
  border-radius: 999px;
}

.deals-main--cm .deals-counter {
  padding: 56px 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(150, 25, 231, 0.38) 0%, rgba(18, 8, 31, 0) 60%), #12081f;
  color: #fff;
}

.deals-main--cm .deals-counter__eyebrow,
.deals-main--cm .deals-counter__link:hover {
  color: #c98bff;
}

.deals-main--cm .deals-counter__btn {
  background: linear-gradient(180deg, #b04dff 0%, #5b0ea0 100%);
  box-shadow: 0 8px 22px rgba(150, 25, 231, 0.4);
}

.deals-main--cm .deals-counter__btn:hover,
.deals-main--cm .deals-counter__btn:focus-visible {
  box-shadow: 0 12px 26px rgba(150, 25, 231, 0.5);
}

/* Lifetime page: hero CTA + "save" badge in purple (the theme styles them red for Black Friday) */
.prime-main--cm .prime-hero__save b,
.prime-main--cm .prime-hero__save small {
  color: inherit;
}
