/* ==========================================================================
   Black Friday 2026: Hot Deals + Lifetime Membership (body.ta-bf).
   Added by inc/black-friday.php on those two pages only, after landing.css.
   Decorations are pseudo-elements on the shared sections, so the template
   parts stay untouched and the home page / course pages are unaffected.
   ========================================================================== */

.ta-bf {
  overflow-x: clip;
}

/* ---------- Hot deals hero ---------- */
.ta-bf .ta-deal-art { max-width: 600px; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .22)); }
.ta-bf .ta-deal-off { max-width: 3.6rem; }

/* ---------- Learn With Confidence: gifts both sides ---------- */
.ta-bf .ta-trust { position: relative; }
.ta-bf .ta-trust::before,
.ta-bf .ta-trust::after {
  content: ''; position: absolute; bottom: -18px; pointer-events: none; z-index: 1;
  background-repeat: no-repeat;
}
.ta-bf .ta-trust::before {
  left: 0; width: 140px; height: 120px;
  background-image: url('../img/bf/ta-bf-gift-gold.webp'), url('../img/bf/ta-bf-gift-black.webp');
  background-size: 80px auto, 92px auto;
  background-position: 46px 0, 0 100%;
}
.ta-bf .ta-trust::after {
  right: 0; width: 110px; height: 110px;
  background-image: url('../img/bf/ta-bf-bag.webp'), url('../img/bf/ta-bf-gift-black.webp');
  background-size: 54px auto, 84px auto;
  background-position: 100% 0, 0 100%;
}
.ta-bf .ta-trust .container-xxl { position: relative; z-index: 2; }

/* ---------- Course cards: Black Friday corner ribbon ---------- */
.ta-bf .ta-card { position: relative; }
.ta-bf .ta-card::after {
  content: ''; position: absolute; top: 0; right: 0; width: 74px; height: 70px; z-index: 2; pointer-events: none;
  background: url('../img/bf/ta-bf-corner.webp') right top / contain no-repeat;
}

/* ---------- Why learners choose ---------- */
.ta-bf .ta-why-choose { position: relative; }
.ta-bf .ta-why-choose::before,
.ta-bf .ta-why-choose::after { content: ''; position: absolute; pointer-events: none; background-repeat: no-repeat; background-size: contain; }
.ta-bf .ta-why-choose::before { left: 0; top: 0; width: 90px; height: 100px; background-image: url('../img/bf/ta-bf-ribbon-gold-sm.webp'); }
.ta-bf .ta-why-choose::after { right: 0; top: -20px; width: 100px; height: 112px; background-image: url('../img/bf/ta-bf-gift-gold.webp'); }
.ta-bf .ta-why-choose .container-xxl { position: relative; z-index: 1; }

/* ---------- Reviews ---------- */
.ta-bf .ta-reviews { position: relative; }
.ta-bf .ta-reviews::before,
.ta-bf .ta-reviews::after { content: ''; position: absolute; pointer-events: none; background-repeat: no-repeat; }
.ta-bf .ta-reviews::before {
  left: 0; top: 0; bottom: 0; width: 120px;
  background-image: url('../img/bf/ta-bf-ribbon-red-sm.webp'), url('../img/bf/ta-bf-gift-black.webp');
  background-size: 70px auto, 100px auto;
  background-position: 0 10px, 0 calc(100% - 10px);
}
.ta-bf .ta-reviews::after {
  right: 0; top: 0; bottom: 0; width: 110px;
  background-image: url('../img/bf/ta-bf-ribbon-red-sm.webp'), url('../img/bf/ta-bf-ribbon-gold-sm.webp');
  background-size: 70px auto, 64px auto;
  background-position: 100% 30px, 100% calc(100% - 30px);
}
.ta-bf .ta-reviews .container-xxl { position: relative; z-index: 1; }

/* ---------- Certificate (hot deals) ---------- */
.ta-bf .ta-cert-img { height: auto; max-width: 480px; }
.ta-bf .ta-cert-section { position: relative; }
.ta-bf .ta-cert-section::before,
.ta-bf .ta-cert-section::after { content: ''; position: absolute; pointer-events: none; background-repeat: no-repeat; background-size: contain; }
.ta-bf .ta-cert-section::before { left: 0; top: 0; width: 90px; height: 122px; background-image: url('../img/bf/ta-bf-bag.webp'); }
.ta-bf .ta-cert-section::after { right: 0; bottom: 20px; width: 100px; height: 95px; background-image: url('../img/bf/ta-bf-gift-black.webp'); }

/* ---------- Lifetime hero: Black Friday tag + bunting on the graduate frame ---------- */
.ta-bf .ta-life-hero .ta-grad-frame { max-width: 470px; }
.ta-bf .ta-bf-tag {
  position: absolute; left: -26%; top: -32%; width: 30%; height: auto; z-index: 3;
  transform: rotate(-6deg); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3));
}
.ta-bf .ta-bf-bunting {
  position: absolute; left: 1%; top: 2%; width: 34%; height: auto; z-index: 1; pointer-events: none;
}
.ta-bf .ta-life-hero .ta-grad-person { z-index: 2; }

/* ---------- Lifetime body: decorations beside the column ---------- */
.ta-bf .ta-two-col-main > .ta-block { position: relative; }
.ta-bf .ta-cert-box::before {
  content: ''; position: absolute; left: -100px; top: -30px; width: 80px; height: 110px; pointer-events: none;
  background: url('../img/bf/ta-bf-bag.webp') center / contain no-repeat;
}
.ta-bf .ta-two-col-main > .ta-soft-box:last-child::after {
  content: ''; position: absolute; right: -40px; top: -60px; width: 100px; height: 112px; pointer-events: none; z-index: 2;
  background: url('../img/bf/ta-bf-gift-gold.webp') center / contain no-repeat;
}

/* Side decorations only where there is room */
@media (max-width: 1399.98px) {
  .ta-bf .ta-cert-box::before { display: none; }
}
@media (max-width: 991.98px) {
  .ta-bf .ta-bf-tag { left: 1%; top: -26%; width: 24%; }
  .ta-bf .ta-trust::before,
  .ta-bf .ta-trust::after { opacity: .5; transform: scale(.75); transform-origin: bottom; }
  .ta-bf .ta-why-choose::before,
  .ta-bf .ta-why-choose::after,
  .ta-bf .ta-cert-section::before,
  .ta-bf .ta-cert-section::after { opacity: .35; }
}
@media (max-width: 767.98px) {
  .ta-bf .ta-trust::before,
  .ta-bf .ta-trust::after,
  .ta-bf .ta-reviews::before,
  .ta-bf .ta-reviews::after,
  .ta-bf .ta-why-choose::after,
  .ta-bf .ta-cert-section::after,
  .ta-bf .ta-two-col-main > .ta-soft-box:last-child::after { display: none; }
  .ta-bf .ta-card::after { width: 64px; height: 60px; }
}

/* Black Friday landing page: lifetime counter-offer under the hero */
.ta-bf-counter-eyebrow { margin: 0 0 .6rem; color: var(--ta-purple); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ta-bf-counter .ta-muted { max-width: 420px; }
