/* Responsive partner course banner. Its text and CTA stay editable HTML layers. */
#partner-promo-slot {
    position: relative;
    z-index: 50;
    isolation: isolate;
    background: #4b0000;
}

.partner-promo {
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 40px 32px;
    box-sizing: border-box;
}

.partner-promo__frame {
    position: relative;
    aspect-ratio: 3 / 1;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(244, 220, 162, 0.95);
    border-radius: 8px;
    background: #310303;
    box-shadow:
        0 0 0 5px rgba(76, 12, 12, 0.86),
        0 0 0 6px rgba(205, 161, 83, 0.28),
        0 18px 38px rgba(0, 0, 0, 0.34);
}

.partner-promo__media,
.partner-promo__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.partner-promo__media {
    position: absolute;
    inset: 0;
}

.partner-promo__media img {
    object-fit: cover;
    object-position: center;
}

.partner-promo__frame::before,
.partner-promo__frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.partner-promo__frame::before {
    inset: 16px;
    z-index: 2;
    border: 1px solid rgba(244, 211, 137, 0.66);
    border-radius: 4px;
    box-shadow: inset 0 0 18px rgba(36, 1, 1, 0.24);
}

.partner-promo__frame::after {
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(28, 1, 1, 0.6) 0%, rgba(53, 5, 3, 0.28) 52%, rgba(30, 0, 0, 0.05) 84%),
        linear-gradient(0deg, rgba(23, 0, 0, 0.38), transparent 42%);
}

.partner-promo__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    color: #fff0cb;
    font-family: "Century Gothic", "CenturyGothic", "TildaSans", Arial, sans-serif;
    text-shadow: 0 2px 14px rgba(20, 0, 0, 0.76);
}

.partner-promo__label,
.partner-promo__title,
.partner-promo__benefits,
.partner-promo__footer,
.partner-promo__code {
    margin: 0;
}

.partner-promo__label {
    position: absolute;
    top: 16%;
    left: 8%;
    color: #e8c77d;
    font-size: clamp(10px, 0.9vw, 13px);
    font-weight: 700;
    letter-spacing: 0.19em;
}

.partner-promo__title {
    position: absolute;
    top: 25%;
    left: 8%;
    width: 43%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.015em;
}

.partner-promo__title-accent {
    color: #e6c27c;
    font-size: 0.88em;
    font-weight: 400;
    letter-spacing: 0.07em;
}

.partner-promo__benefits {
    position: absolute;
    top: 22%;
    left: 53%;
    width: 27%;
    padding: 0;
    list-style: none;
    color: #f3dfb7;
    font-size: clamp(13px, 1.15vw, 17px);
    line-height: 1.35;
}

.partner-promo__benefits li {
    position: relative;
    padding-left: 22px;
}

.partner-promo__benefits li + li {
    margin-top: 10px;
}

.partner-promo__benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #e7be6b;
    font-size: 1.2em;
    font-weight: 700;
    animation: partner-promo-gold-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes partner-promo-gold-pulse {
    from {
        filter:
            drop-shadow(0 0 2px rgba(255, 247, 229, 0.88))
            drop-shadow(0 0 6px rgba(255, 213, 107, 0.72))
            drop-shadow(0 0 11px rgba(255, 153, 0, 0.48));
    }
    to {
        filter:
            drop-shadow(0 0 1px rgba(255, 247, 229, 0.7))
            drop-shadow(0 0 3px rgba(255, 213, 107, 0.5))
            drop-shadow(0 0 6px rgba(255, 153, 0, 0.3));
    }
}

.partner-promo__footer {
    position: absolute;
    bottom: 10%;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 14px;
}

.partner-promo__code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 5px 7px 5px 16px;
    border: 1px solid rgba(243, 213, 145, 0.8);
    border-radius: 4px;
    box-sizing: border-box;
    background: rgba(57, 9, 5, 0.56);
    color: #f7e5b8;
    font-size: clamp(10px, 0.86vw, 12px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.partner-promo__code-label {
    line-height: 1;
}

.partner-promo__code-value {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(255, 230, 162, 0.8);
    border-radius: 3px;
    background: linear-gradient(135deg, #6d2b15 0%, #9c5f28 52%, #663016 100%);
    box-shadow: inset 0 1px 0 rgba(255, 238, 190, 0.36), 0 2px 7px rgba(0, 0, 0, 0.22);
    color: #fff3d2;
    font: inherit;
    font-size: 1.3em;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    cursor: copy;
    transition: filter 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.partner-promo__code-value:hover,
.partner-promo__code-value:focus-visible {
    outline: none;
    filter: brightness(1.14);
    box-shadow: inset 0 1px 0 rgba(255, 245, 211, 0.58), 0 0 14px rgba(234, 188, 86, 0.45);
    transform: translateY(-1px);
}

.partner-promo__code-value.is-copied {
    background: linear-gradient(135deg, #8e6129 0%, #d6ac5d 52%, #936025 100%);
    color: #411407;
}

.partner-promo__code-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.partner-promo__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid #f5d993;
    border-radius: 5px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f5dc9d 0%, #cf9e55 58%, #af733b 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 250, 223, 0.8),
        0 5px 15px rgba(16, 0, 0, 0.34);
    color: #4b160b;
    font-family: inherit;
    font-size: clamp(10px, 0.9vw, 12px);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#partner-promo-slot .partner-promo__cta {
    color: #4b160b;
}

.partner-promo__cta:hover,
.partner-promo__cta:focus-visible {
    outline: none;
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 250, 223, 0.92),
        0 8px 20px rgba(248, 198, 98, 0.32),
        0 5px 15px rgba(16, 0, 0, 0.34);
}

.partner-promo__cta:active {
    transform: translateY(0);
}

@media screen and (max-width: 979px) {
    .partner-promo {
        padding: 28px 40px 32px;
    }
}

@media screen and (max-width: 639px) {
    .partner-promo {
        padding: 20px 20px 28px;
    }

    .partner-promo__frame {
        aspect-ratio: 4 / 5;
    }

    .partner-promo__frame::before {
        inset: 11px;
    }

    .partner-promo__frame::after {
        background:
            linear-gradient(90deg, rgba(33, 1, 1, 0.45) 0%, rgba(70, 8, 5, 0.28) 58%, rgba(74, 10, 6, 0.18) 78%, rgba(30, 0, 0, 0.05) 100%),
            linear-gradient(0deg, rgba(27, 0, 0, 0.48), rgba(43, 1, 1, 0.1) 52%, rgba(29, 0, 0, 0.34));
    }

    .partner-promo__label {
        top: 9%;
        left: 10%;
        padding-left: 20px;
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .partner-promo__title {
        top: 16%;
        left: 10%;
        width: 76%;
        padding-left: 20px;
        gap: 3px;
        font-size: clamp(20px, 6.3vw, 26px);
        line-height: 1.1;
    }

    .partner-promo__benefits {
        top: 46%;
        left: 10%;
        width: 72%;
        font-size: clamp(12px, 3.7vw, 15px);
        line-height: 1.3;
    }

    .partner-promo__benefits li {
        display: flex;
        align-items: center;
        gap: 9px;
        padding-left: 0;
    }

    .partner-promo__benefits li::before {
        position: static;
        flex: 0 0 auto;
        line-height: 1;
    }

    .partner-promo__benefits li + li {
        margin-top: 7px;
    }

    .partner-promo__footer {
        right: 13%;
        bottom: 6%;
        left: 10%;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 16px;
    }

    .partner-promo__code {
        min-height: 30px;
        padding: 5px 11px;
        font-size: 9px;
    }

    .partner-promo__code-value {
        min-height: 25px;
        padding: 0 8px;
    }

    .partner-promo__cta {
        min-height: 39px;
        padding: 0 14px;
        font-size: 9px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .partner-promo__cta,
    .partner-promo__code-value,
    .partner-promo__benefits li::before {
        transition: none;
        animation: none;
    }
}
