/* Warriors Academy — full-width insert / CTA band (photo + tint, copy left, action right) */

.inserts_band {
    --insert-accent: var(--color-orange, #e87722);
    position: relative;
    width: 100%;
    margin: 0;
    padding-block: clamp(48px, 6vw, 64px);
    padding-inline: 0;
    box-sizing: border-box;
    overflow: hidden;
    isolation: isolate;
    color: var(--color-text-inverse, #fff);
    background-color: var(--color-ink, #121820);
}

/* Layers ----------------------------------------------------------------- */
.inserts_band_media {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform: scale(1.06);
    animation: insertKenburns 22s ease-in-out infinite alternate;
}

.inserts_band_tint {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

/* extra readable gradient + a warm orange bloom from the right */
.inserts_band_glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 160% at 82% 50%, rgba(var(--color-orange-rgb, 232, 119, 34), 0.28) 0%, transparent 55%),
        linear-gradient(90deg, rgba(10, 12, 16, 0.82) 0%, rgba(10, 12, 16, 0.5) 42%, rgba(10, 12, 16, 0.15) 100%);
    pointer-events: none;
}

/* thin animated accent line along the top */
.inserts_band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2;
    background: linear-gradient(90deg,
        transparent, var(--insert-accent) 30%,
        var(--color-orange-bright, #f08832) 50%,
        var(--insert-accent) 70%, transparent);
    background-size: 200% 100%;
    animation: insertAccentSlide 6s ease-in-out infinite;
}

/* Layout --------------------------------------------------------------- */
.inserts_band_inner {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-inline: 0;
    padding-inline: var(--section-edge-pad, clamp(20px, 3.5vw, 48px));
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
}

.inserts_band_copy {
    flex: 1 1 380px;
    min-width: 0;
}

.inserts_band_actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

/* Copy --------------------------------------------------------------- */
.inserts_band .insert_header,
.inserts_band .insert_description {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.inserts_band .insert_header {
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: clamp(1.5rem, 3.4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--color-text-inverse, #fff);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.inserts_band .insert_description {
    margin-top: clamp(8px, 1.4vw, 14px);
    font-family: var(--font-body, "Source Sans 3", sans-serif);
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Buttons --------------------------------------------------------------- */
.inserts_band .insert_btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    padding: 6px 24px;
    border-radius: 999px;
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.inserts_band .insert_btn_icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.inserts_band .insert_btn > span {
    position: relative;
    z-index: 1;
}

/* glossy sweep */
.inserts_band .insert_btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -85%;
    width: 55%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(100deg,
        transparent, rgba(255, 255, 255, 0.45) 50%, transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.inserts_band .insert_btn:hover::before,
.inserts_band .insert_btn:focus-visible::before {
    animation: insertBtnGloss 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.inserts_band .insert_btn:hover .insert_btn_icon,
.inserts_band .insert_btn:focus-visible .insert_btn_icon {
    transform: translateX(4px);
}

.inserts_band .insert_btn_primary {
    background: linear-gradient(135deg, var(--color-orange-bright, #f08832), var(--color-orange-deep, #c05a28));
    border: 2px solid transparent;
    color: var(--color-text-inverse, #fff);
    box-shadow: 0 12px 28px rgba(var(--color-orange-rgb, 232, 119, 34), 0.42);
}

.inserts_band .insert_btn_primary:hover,
.inserts_band .insert_btn_primary:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(var(--color-orange-rgb, 232, 119, 34), 0.55);
    outline: none;
}

.inserts_band .insert_btn_ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: var(--color-text-inverse, #fff);
    backdrop-filter: blur(4px);
}

.inserts_band .insert_btn_ghost:hover,
.inserts_band .insert_btn_ghost:focus-visible {
    transform: translateY(-3px);
    border-color: var(--color-text-inverse, #fff);
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

/* Animations --------------------------------------------------------------- */
@keyframes insertKenburns {
    from { transform: scale(1.06) translate(0, 0); }
    to { transform: scale(1.14) translate(-1.5%, -1%); }
}

@keyframes insertAccentSlide {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes insertBtnGloss {
    from { left: -85%; }
    to { left: 130%; }
}

/* Responsive --------------------------------------------------------------- */
@media screen and (max-width: 900px) {
    .inserts_band_inner {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(16px, 3vw, 24px);
    }

    /* In column mode flex-basis becomes a height — reset it so blocks hug content */
    .inserts_band_copy {
        flex: 0 0 auto;
        width: 100%;
    }

    .inserts_band_actions {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media screen and (max-width: 767px) {
    .inserts_band_inner {
        align-items: center;
        text-align: center;
    }

    .inserts_band_copy {
        text-align: center;
    }

    .inserts_band .insert_header,
    .inserts_band .insert_description {
        text-align: center;
    }

    .inserts_band_actions {
        justify-content: center;
    }
}

@media screen and (max-width: 560px) {
    .inserts_band_inner {
        align-items: center;
        text-align: center;
    }

    .inserts_band .insert_header,
    .inserts_band .insert_description {
        text-align: center;
    }

    .inserts_band_actions {
        justify-content: center;
    }

    .inserts_band .insert_btn {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inserts_band_media,
    .inserts_band::before,
    .inserts_band .insert_btn,
    .inserts_band .insert_btn_icon {
        animation: none;
        transition: none;
    }

    .inserts_band .insert_btn::before {
        display: none;
    }

    .inserts_band .insert_btn:hover,
    .inserts_band .insert_btn:focus-visible {
        transform: none;
    }
}
