/* ============================================
    LF — BLACK FRIDAY
    Campaign skin from "Learning Facility Black Friday UI.pdf".
    Loaded only while LF_BF_ACTIVE is on (inc/black-friday.php).

    body.lf-bf       every page: coded plan card, blog promo, cert order.
    body.lf-bf-page  home, Hot Deals, Lifetime: backgrounds and the gift /
                     ribbon decorations (.lf-bf-deco--*).
============================================ */

:root {
    --lf-bf-red:        #e3161b;
    --lf-bf-red-dark:   #a60c10;
    --lf-bf-gold:       #f7b718;
    --lf-bf-gold-dark:  #d98a06;
    --lf-bf-ink:        #0a0d1c;
    --lf-bf-lilac:      #efebfa;
    --lf-bf-night:      #1d0b33;
    --lf-bf-grad-chip:  linear-gradient(90deg, #4a2692 0%, #2b1752 100%);
}

/* ---- Page base ----------------------------------------------------- */
.lf-bf-page main {
    overflow-x: clip;
    background-color: var(--lf-bf-lilac);
}

.lf-bf-page main > section {
    position: relative;
}

.lf-bf-page main > section > .lf-container {
    position: relative;
    z-index: 2;
}

/* ---- Decorations --------------------------------------------------- */
.lf-bf-deco {
    position: absolute;
    z-index: 3;
    height: auto;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 991.98px) {
    .lf-bf-deco {
        display: none;
    }

    .lf-bf-deco--rev-tag {
        display: block;
    }
}

/* home */
.lf-bf-deco--hm-rib  { bottom: -2rem; right: -3rem; width: 14rem; }
.lf-bf-deco--hm-gift { bottom: -3rem; left: -2rem; width: 9rem; }

/* accreditation */
.lf-bf-deco--accri { top: -0.5rem; right: -1.5rem; width: 10rem; }

/* popular courses */
.lf-bf-deco--crs-rib { top: -0.5rem; left: -4rem; width: 12rem; transform: rotate(-150deg) scaleY(-1); }
.lf-bf-deco--crs-r1  { top: 6rem; right: 0.5rem; width: 5rem; }
.lf-bf-deco--crs-l1  { top: 45%; left: 0.25rem; width: 5rem; transform: rotate(-12deg); }
.lf-bf-deco--crs-l2  { bottom: 2rem; left: -0.5rem; width: 8rem; }
.lf-bf-deco--crs-r2  { bottom: -1rem; right: -1rem; width: 14rem; }

/* why learners choose us */
.lf-bf-deco--why-l { bottom: -0.5rem; left: -2rem; width: 13rem; }
.lf-bf-deco--why-r { bottom: 0; right: 0.5rem; width: 9rem; }

/* certificate CTA */
.lf-bf-deco--cert-l   { top: 40%; left: 1rem; width: 4.5rem; }
.lf-bf-deco--cert-rib { bottom: -1.5rem; left: -3rem; width: 11rem; transform: scaleX(-1); }

/* reviews */
.lf-bf-deco--rev-tag  { top: -0.5rem; right: 0.75rem; width: 6.5rem; transform: rotate(8deg); }
.lf-bf-deco--rev-gift { top: 0.75rem; left: 48%; width: 6rem; }
.lf-bf-deco--rev-l    { bottom: 2rem; left: 0.5rem; width: 4.5rem; }
.lf-bf-deco--rev-rib  { bottom: -1rem; right: -2rem; width: 13rem; }

@media (max-width: 991.98px) {
    .lf-bf-deco--rev-tag { top: 0.5rem; width: 4.5rem; }
}

/* FAQ */
.lf-bf-deco--faq-rib { top: 1rem; left: -2.5rem; width: 6rem; }

/* lifetime */
.lf-bf-deco--hl-gift  { top: 1rem; right: 4rem; width: 6rem; }
.lf-bf-deco--cat-r    { top: 1rem; right: 1rem; width: 5.5rem; }
.lf-bf-deco--cat-l    { bottom: 2.5rem; left: 1rem; width: 4.5rem; }
.lf-bf-deco--cat-rib  { bottom: -1rem; right: -2rem; width: 12rem; }
.lf-bf-deco--how-rib  { top: -1rem; left: -3rem; width: 13rem; transform: scaleY(-1) rotate(-10deg); }
.lf-bf-deco--how-l    { bottom: 0.5rem; left: 0; width: 7rem; }
.lf-bf-deco--how-r    { bottom: 0.5rem; right: 0; width: 7rem; }

/* ---- Buttons ------------------------------------------------------- */
.lf-bf-btn-red {
    border: 0;
    border-radius: var(--lf-radius-sm);
    background: linear-gradient(180deg, #f22a2e 0%, var(--lf-bf-red-dark) 100%);
    box-shadow: 0 6px 18px rgba(227, 22, 27, 0.35);
    color: var(--lf-white);
}

.lf-bf-btn-red:hover,
.lf-bf-btn-red:focus-visible {
    background: linear-gradient(180deg, var(--lf-bf-red) 0%, #870a0d 100%);
    color: var(--lf-white);
}

/* ============================================
    HOT DEALS HERO — .lf-bf-hd
============================================ */
.lf-hd-hi.lf-bf-hd {
    background-color: var(--lf-bf-night);
    background-image: url("../imgs/bf/lf-bf-deals-bg.webp");
    background-position: 70% 70%;
}

.lf-hd-hi.lf-bf-hd::before {
    background: linear-gradient(90deg, rgba(29, 11, 51, 0.65) 0%, rgba(29, 11, 51, 0.35) 100%);
    opacity: 1;
}

.lf-bf-hd .lf-hd-hi-left::before {
    background-color: rgba(18, 8, 34, 0.7);
    opacity: 1;
}

.lf-bf-hd-left {
    width: 100%;
    max-width: 23rem;
    margin-inline: auto;
}

.lf-bf-cpn {
    position: relative;
    padding: 1.5rem 1.25rem 1.25rem;
    border: 2px solid var(--lf-white);
    border-radius: var(--lf-radius-lg);
    background: radial-gradient(120% 90% at 50% 0%, #0f1630 0%, var(--lf-bf-ink) 70%);
    box-shadow: 0 0 0 3px rgba(227, 22, 27, 0.85), 0 14px 30px rgba(0, 0, 0, 0.5);
    color: var(--lf-white);
}

.lf-bf-cpn-label {
    margin-bottom: 0.25rem;
    font-size: 1.375rem;
}

.lf-bf-cpn-price {
    margin-bottom: 0.75rem;
    background: linear-gradient(180deg, #ffd34a 0%, var(--lf-bf-gold) 55%, var(--lf-bf-gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--lf-bf-gold);
    -webkit-text-fill-color: transparent;
    font-size: clamp(3rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

.lf-bf-cpn-regular {
    margin-bottom: 0.25rem;
    font-size: var(--lf-fs-normal);
}

.lf-bf-cpn-access {
    margin-bottom: 0;
    color: #a8f07a;
    font-weight: 700;
}

.lf-bf-cpn-access i {
    color: #39c45a;
}

.lf-bf-cpn-code {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.4rem 0.75rem 0.4rem 0.4rem;
    border-radius: var(--lf-radius-sm);
    background-color: var(--lf-white);
    color: var(--lf-bf-red);
}

.lf-bf-cpn-pct {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 1.9rem;
    border-radius: 0.375rem;
    background: linear-gradient(180deg, #f22a2e 0%, var(--lf-bf-red-dark) 100%);
    color: var(--lf-white);
    font-weight: 700;
}

.lf-bf-cpn-txt {
    flex: 1;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(227, 22, 27, 0.5);
    font-size: 1.0625rem;
    text-align: center;
}

.lf-bf-cpn-txt strong {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.lf-bf-hd-btn {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding-block: 0.75rem;
    font-size: 1.0625rem;
}

.lf-bf-hd-media {
    position: relative;
    width: 100%;
    max-width: 24rem;
    padding: 0.625rem;
    border-radius: var(--lf-radius-lg);
    background-color: var(--lf-white);
    box-shadow: 0 0 0 4px rgba(122, 77, 219, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lf-bf-hd-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--lf-radius);
}

.lf-bf-cd {
    bottom: -1.75rem;
    left: -1.5rem;
}

@media (max-width: 991.98px) {
    .lf-bf-hd .lf-hd-hi-right {
        padding-bottom: 4rem;
    }

    .lf-bf-cd {
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

/* ============================================
    LIFETIME PLAN CARD — .lf-bf-plan (coded, replaces the card artwork)
============================================ */
.lf-bf-plan {
    position: relative;
    max-width: 22rem;
    margin-inline: auto;
    padding: 1.5rem 3.5rem 1.5rem 1.5rem;
    border: 6px solid #3b2a2f;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, var(--lf-white) 0%, #f1f1f3 100%);
    box-shadow: inset 0 0 0 2px var(--lf-bf-red), 0 16px 34px rgba(10, 6, 25, 0.45);
    color: var(--lf-bf-ink);
    text-align: left;
}

.lf-bf-plan-ribbon {
    position: absolute;
    top: -1.1rem;
    right: -1.1rem;
    width: 8.5rem;
    height: auto;
    pointer-events: none;
}

.lf-bf-plan-title {
    margin-bottom: 0.25rem;
    color: var(--lf-bf-ink);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.05;
}

.lf-bf-plan-price {
    margin-bottom: 0.25rem;
    background: linear-gradient(180deg, #ffd34a 0%, var(--lf-bf-gold) 50%, var(--lf-bf-gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--lf-bf-gold);
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(2px 2px 0 #2a1a10);
    font-size: 4.25rem;
    font-weight: 700;
    line-height: 1;
}

.lf-bf-plan-regular {
    margin-bottom: 0.625rem;
    color: #555;
    font-size: var(--lf-fs-normal);
}

.lf-bf-plan-access {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--lf-radius-pill);
    background: linear-gradient(180deg, #f22a2e 0%, var(--lf-bf-red-dark) 100%);
    color: var(--lf-white);
    font-size: var(--lf-fs-sm);
    font-weight: 700;
}

/* Vertical "90% OFF" tab on the right edge */
.lf-bf-plan-off {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    padding: 0.75rem 0.3rem;
    border-radius: 0.375rem;
    background: linear-gradient(180deg, #ffcf3a 0%, var(--lf-bf-gold) 100%);
    color: var(--lf-bf-ink);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    transform: translateY(-40%);
    writing-mode: vertical-rl;
}

.lf-bf-plan-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

.lf-bf-plan-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    border: 0;
    border-radius: var(--lf-radius-sm);
    background: linear-gradient(90deg, var(--lf-purple) 0%, var(--lf-purple-deep) 100%);
    color: var(--lf-white);
}

.lf-bf-plan-btn:hover,
.lf-bf-plan-btn:focus-visible {
    background: var(--lf-purple-dark);
    color: var(--lf-white);
}

/* Lifetime hero variant: white frame, purple type, as drawn on p2 */
.lf-bf-lt-card {
    position: relative;
    max-width: 22rem;
    margin-inline: auto;
}

.lf-bf-lt-card .lf-bf-plan {
    border-color: var(--lf-white);
    box-shadow: 0 16px 34px rgba(10, 6, 25, 0.5);
}

.lf-bf-lt-card .lf-bf-plan-title,
.lf-bf-lt-card .lf-bf-plan-price {
    color: var(--lf-purple);
}

.lf-bf-lt-card .lf-bf-plan-price {
    background: none;
    -webkit-text-fill-color: var(--lf-purple);
    filter: none;
}

.lf-bf-lt-card .lf-bf-plan-access {
    padding: 0.2rem 0.75rem;
    border-radius: 0.3rem;
    font-size: var(--lf-fs-xs);
}

.lf-bf-deco--lt-tag {
    top: -2.5rem;
    left: -6.5rem;
    width: 7.5rem;
    transform: rotate(-12deg);
}

@media (max-width: 575.98px) {
    .lf-bf-plan-price {
        font-size: 3.5rem;
    }
}

/* ============================================
    HOME
============================================ */
.lf-bf-page .lf-hm-hi-media {
    border: 0;
    box-shadow: 0 0 0 4px rgba(122, 77, 219, 0.25), 0 18px 40px rgba(36, 22, 65, 0.25);
}

.lf-bf .lf-hm-hi-offer-label {
    color: var(--lf-bf-red);
    font-weight: 700;
}

.lf-bf-page .lf-hm-mem {
    background: linear-gradient(120deg, #7a4fc2 0%, #5a35a3 55%, #4a2692 100%);
}

/* ============================================
    HOT DEALS BODY
============================================ */
.lf-bf-page .lf-accri,
.lf-bf-page .lf-hd-why {
    background-color: var(--lf-bf-lilac);
}

/* Red bow on the corner of each popular course card */
.lf-bf-page .lf-crs .lf-crow > div {
    position: relative;
}

.lf-bf-page .lf-crs .lf-crow > div::after {
    content: "";
    position: absolute;
    top: -0.55rem;
    right: calc(var(--bs-gutter-x) * 0.5 - 0.6rem);
    z-index: 3;
    width: 3.75rem;
    height: 2.5rem;
    background: url("../imgs/bf/lf-bf-bow.webp") no-repeat top right / contain;
    pointer-events: none;
}

.lf-bf-page .lf-hd-mem {
    margin-inline: auto;
    background: linear-gradient(120deg, #7a4fc2 0%, #5a35a3 55%, #4a2692 100%);
}

.lf-bf-page .lf-hd-mem .lf-hd-mem-header {
    font-size: 2.25rem;
}

.lf-bf-page .lf-hd-mem-text {
    color: rgba(255, 255, 255, 0.85);
}

.lf-bf-page .lf-cert {
    background-color: var(--lf-bf-lilac);
}

.lf-bf-page .lf-cert-img {
    filter: drop-shadow(0 16px 24px rgba(36, 22, 65, 0.25));
}

.lf-bf-page .lf-rev {
    background: linear-gradient(180deg, #c3d1ec 0%, #d4def0 100%);
}

/* ============================================
    LIFETIME
============================================ */
.lf-bf-page .lf-lt-hi {
    background-color: var(--lf-bf-night);
    background-image: url("../imgs/bf/lf-bf-lt-hero.webp");
    background-position: center;
    background-size: cover;
}

.lf-bf-page .lf-lt-hi::after,
.lf-bf-page .lf-hd-mem::after {
    display: none;
}

.lf-bf-page .lf-lt-hl {
    background: #ece6fb url("../imgs/bf/lf-bf-lt-hl.webp") center / cover no-repeat;
}

.lf-bf-page .lf-lt-hl-item {
    border-color: var(--lf-purple);
    color: var(--lf-ink);
    font-weight: 700;
    font-size: var(--lf-fs-sm);
}

.lf-bf-page .lf-lt-hl-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: var(--lf-purple-deep);
    color: var(--lf-white);
    font-size: 0.875rem;
}

.lf-bf-page .lf-lt-hl .lf-btn-primary {
    border-radius: var(--lf-radius-sm);
    background: linear-gradient(90deg, var(--lf-purple) 0%, var(--lf-purple-deep) 100%);
}

.lf-bf-page .lf-lt-ben {
    background: var(--lf-bf-night) url("../imgs/bf/lf-bf-lt-ben.webp") center / cover no-repeat;
}

.lf-bf-page .lf-lt-ben .lf-eyebrow,
.lf-bf-page .lf-lt-ben-header {
    color: var(--lf-white);
}

.lf-bf-page .lf-lt-ben-card {
    background-color: #f2f2fa;
}

.lf-bf-page .lf-lt-ben-title {
    color: var(--lf-purple-deep);
    font-size: var(--lf-fs-normal);
}

.lf-bf-page .lf-lt-cat {
    background-color: var(--lf-bf-lilac);
    color: var(--lf-ink);
}

.lf-bf-page .lf-lt-cat-header {
    color: var(--lf-purple-deep);
}

.lf-bf-page .lf-lt-cat-wrap {
    --lf-expand-fade: var(--lf-bf-lilac);
}

.lf-bf-page .lf-lt-cat-chip {
    background: var(--lf-bf-grad-chip);
    color: var(--lf-white);
}

.lf-bf-page .lf-lt-cat-chip:hover {
    background: var(--lf-purple-dark);
    color: var(--lf-white);
}

.lf-bf-page .lf-lt-cat .lf-expand-toggle {
    color: var(--lf-purple);
}

.lf-bf-page .lf-faq {
    background-color: var(--lf-bf-lilac);
}

.lf-bf-page .lf-faq .lf-sec-header {
    color: var(--lf-purple);
}

/* Red bursts either side of the FAQ heading */
.lf-bf-page .lf-faq .lf-sec-header::before,
.lf-bf-page .lf-faq .lf-sec-header::after {
    content: "";
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    margin-inline: 0.75rem;
    background:
        linear-gradient(var(--lf-bf-red), var(--lf-bf-red)) center 0 / 100% 3px no-repeat,
        linear-gradient(var(--lf-bf-red), var(--lf-bf-red)) center 50% / 100% 3px no-repeat,
        linear-gradient(var(--lf-bf-red), var(--lf-bf-red)) center 100% / 100% 3px no-repeat;
    vertical-align: middle;
}

.lf-bf-page .lf-faq .lf-sec-header::before {
    transform: skewY(-25deg);
}

.lf-bf-page .lf-faq .lf-sec-header::after {
    transform: skewY(25deg);
}

.lf-bf-page .lf-faq-accordion {
    --bs-accordion-btn-color: var(--lf-white);
    --bs-accordion-active-color: var(--lf-white);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

.lf-bf-page .lf-faq-btn,
.lf-bf-page .lf-faq-btn:not(.collapsed) {
    border-radius: var(--lf-radius-sm);
    background: var(--lf-bf-grad-chip);
    box-shadow: none;
    color: var(--lf-white);
}

.lf-bf-page .lf-faq-item .accordion-collapse {
    margin-inline: 0.75rem;
    border-radius: 0 0 var(--lf-radius) var(--lf-radius);
    background: linear-gradient(180deg, #6a4ba8 0%, #4a2f80 100%);
}

.lf-bf-page .lf-faq-body {
    color: var(--lf-white);
    font-weight: 700;
}

.lf-bf-page .lf-faq-body a {
    color: var(--lf-bf-gold);
}

.lf-bf-page .lf-lt-how {
    background-color: #dbe6f8;
}

.lf-bf-page .lf-lt-how-header {
    color: var(--lf-blue-deep);
}

.lf-bf-page .lf-lt-how-card {
    padding: 0;
    overflow: hidden;
    border-color: rgba(227, 22, 27, 0.6);
    background-color: #f4f4fb;
}

.lf-bf-page .lf-lt-how-img {
    border-radius: 0;
}

.lf-bf-page .lf-lt-how-title {
    padding-inline: 1.25rem;
    color: var(--lf-purple);
}

.lf-bf-page .lf-lt-how-list {
    padding-bottom: 1.25rem;
    padding-left: 2.75rem;
    color: var(--lf-ink);
}

.lf-bf-page .lf-lt-how-step {
    background-color: var(--lf-bf-red);
}

.lf-bf-page .lf-lt-cta {
    background: var(--lf-bf-night) url("../imgs/bf/lf-bf-lt-cta.webp") center / cover no-repeat;
}

.lf-bf-page .lf-lt-cta .lf-btn-light {
    border-radius: var(--lf-radius-sm);
}

/* ============================================
    BLOG POST PROMO — .lf-bf-promo (coded, every blog post)
============================================ */
.lf-bf-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-height: 100%;
    padding: 2rem 1.75rem 0;
    overflow: hidden;
    border-radius: var(--lf-radius-lg);
    background: var(--lf-bf-night) url("../imgs/bf/lf-bf-lt-hero.webp") 30% center / cover no-repeat;
    color: var(--lf-white);
    text-decoration: none;
}

.lf-bf-promo:hover {
    color: var(--lf-white);
}

.lf-bf-promo .lf-bf-promo-tag {
    position: absolute;
    top: -0.5rem;
    right: 0.75rem;
    width: 5.5rem;
    height: auto;
    border-radius: 0;
    transform: rotate(8deg);
}

.lf-bf-promo-eyebrow {
    color: var(--lf-bf-gold);
    font-size: var(--lf-fs-xs);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lf-bf-promo-title {
    max-width: 75%;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.lf-bf-promo-for {
    margin-top: 0.5rem;
    padding: 0.15rem 0.75rem;
    border-radius: 0.3rem;
    background-color: var(--lf-bf-red);
    font-size: var(--lf-fs-xs);
    font-weight: 700;
    text-transform: uppercase;
}

.lf-bf-promo-price {
    color: var(--lf-bf-gold);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.lf-bf-promo-regular {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--lf-fs-sm);
}

.lf-bf-promo-count {
    margin-block: 1rem 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--lf-radius-sm);
    background-color: rgba(255, 255, 255, 0.08);
    font-size: var(--lf-fs-sm);
}

.lf-bf-promo-count strong {
    color: var(--lf-bf-gold);
    font-size: 1.375rem;
}

.lf-bf-promo-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    font-size: var(--lf-fs-sm);
}

.lf-bf-promo-list i {
    margin-right: 0.375rem;
    color: var(--lf-bf-gold);
}

.lf-bf-promo-btn {
    margin-top: 1.25rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--lf-radius-pill);
    background: linear-gradient(180deg, #f22a2e 0%, var(--lf-bf-red-dark) 100%);
    font-weight: 700;
}

.lf-bf-promo .lf-bf-promo-gifts {
    align-self: flex-end;
    width: 75%;
    height: auto;
    margin: 0.5rem -1.75rem 0 0;
    border-radius: 0;
}
