/* Black Friday promotional strip — sits above the navbar */
.bf-promo {
    --bf-black: #0a0a0b;
    --bf-grey: #1c1c1f;
    --bf-grey-line: #2e2e33;
    --bf-red: #ff1f4b;
    --bf-yellow: #ffd400;
    --bf-text: #ffffff;

    position: relative;
    z-index: 1031;
    overflow: hidden;
    color: var(--bf-text);
    font-family: 'Poppins', sans-serif;
    background:
        repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.025) 14px 28px),
        linear-gradient(90deg, var(--bf-black), var(--bf-grey) 50%, var(--bf-black));
    border-bottom: 2px solid var(--bf-red);
}

.bf-inner {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 8px 52px 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* ---------- One-line offer ---------- */
.bf-line {
    margin: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 14px;
    line-height: 1.3;
}

/* Slanted "BLACK FRIDAY" price-tag */
.bf-tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--bf-black);
    background: var(--bf-yellow);
    transform: skewX(-12deg);
    box-shadow: 3px 3px 0 var(--bf-red);
}

.bf-label {
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bf-red);
}

.bf-label::after {
    content: "\2022";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.35);
}

.bf-offer {
    font-weight: 700;
    white-space: nowrap;
}

.bf-courses {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bf-chip {
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: var(--bf-yellow);
    background: rgba(255, 212, 0, 0.06);
    border: 1.5px solid var(--bf-yellow);
    border-radius: 4px;
}

/* ---------- Countdown ---------- */
.bf-timer {
    flex: 0 0 auto;
    display: flex;
    gap: 4px;
}

.bf-unit {
    min-width: 38px;
    padding: 2px 6px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
    background: var(--bf-black);
    border: 1px solid var(--bf-grey-line);
    border-radius: 4px;
}

.bf-unit strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--bf-text);
    font-variant-numeric: tabular-nums;
}

.bf-unit small {
    font-size: 10px;
    color: var(--bf-red);
}

/* ---------- CTA ---------- */
.bf-cta {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 14px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: var(--bf-red);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(255, 31, 75, 0.35);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bf-cta svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.bf-cta:hover,
.bf-cta:focus-visible {
    color: var(--bf-black);
    background: var(--bf-yellow);
    transform: translateY(-1px);
}

.bf-cta:hover svg { transform: translateX(3px); }

.bf-cta:focus-visible {
    outline: 2px solid var(--bf-yellow);
    outline-offset: 3px;
}

/* ---------- Dismiss ---------- */
.bf-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    font-size: 19px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.bf-close:hover,
.bf-close:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.bf-promo.is-hidden { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .bf-inner { gap: 14px; }
    .bf-line { font-size: 13px; }
}

@media (max-width: 991.98px) {
    .bf-inner {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding: 10px 40px 10px 16px;
    }
    .bf-line {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .bf-inner { padding: 10px 34px 10px 12px; }
    .bf-line { font-size: 12.5px; gap: 5px 8px; }
    .bf-tag { font-size: 11.5px; padding: 2px 9px; }
    .bf-label::after { display: none; }
    .bf-chip { font-size: 10.5px; padding: 1px 7px; }
    .bf-unit { min-width: 32px; padding: 2px 4px; }
    .bf-unit strong { font-size: 12.5px; }
    .bf-cta { padding: 5px 12px; font-size: 12.5px; }
    .bf-close { top: 10px; right: 6px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bf-cta,
    .bf-cta svg { transition: none; }
}
