/*
 * ailhj-promo-banner.css
 * Promo Banner Widget styles
 */

/* ── Inner layout: left + right ── */
.ailhj-pb-inner {
    position: relative;
    z-index: 2;
    max-width: var(--mian-max-width);
    margin: 0 auto;
    padding: 56px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 180px;
}

/* ── Wrapper ── */
.ailhj-promo-banner {
    position: relative;
    background-color: var(--main-bg-color);
    overflow: hidden;
    width: 100%;
    background-size: 100% 394px;
    background-position: 50%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

/* ── Left ── */
.ailhj-pb-left {
    flex: 1;
    min-width: 0;
}

.ailhj-pb-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.50;
    color: #fff;
    margin: 0 0 12px;
}

/* Highlighted segment: brand gradient text */
.ailhj-pb-title .highlight {
        background: linear-gradient(180deg, #fff, #29a9ff);
        margin-left: 10px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ailhj-pb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ailhj-pb-btn {
    font-size: 18px;
    min-width: 180px;
    padding: 10px 20px;
    border-radius: 12px !important;
    justify-content: center;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ailhj-pb-btn .ailhj-arrow-icon {
    font-style: normal;
    display: inline-flex;
    align-items: center;
    position: relative;
    animation: ailhj-slide-arrow 0.7s ease-in-out infinite;
}
.ailhj-pb-btn .ailhj-arrow-icon {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.ailhj-pb-btn:hover .ailhj-arrow-icon {
    transform: translateX(4px);
}

/* ── Right: floating tags area (absolute, outside flex flow) ── */
.ailhj-pb-right {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ailhj-pb-tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 24px 9px 20px;
    color: #fff;
    white-space: nowrap;
    user-select: none;
    border-radius: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Semi-transparent border */
    border: 1px solid rgba(255, 255, 255, 0.25);
    /* Multi-angle gradient glow via layered backgrounds */
    background:
        radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at bottom right, rgba(1, 114, 255, 0.20) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(1, 114, 255, 0.08) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 24px rgba(1, 114, 255, 0.15);
    animation: ailhj-pb-float 2s ease-in-out infinite alternate;
    z-index: 3;
}

/* Fixed positions for each tag (based on ~1280px content width) */
.ailhj-pb-tag:nth-child(1) {
    left: 57%;
    top: 20%;
    animation-delay: 0s;
}

.ailhj-pb-tag:nth-child(2) {
    left: 78%;
    top: 28%;
    animation-delay: 0.5s;
}

.ailhj-pb-tag:nth-child(3) {
    left: 58%;
    top: 58%;
    animation-delay: 1s;
}

.ailhj-pb-tag:nth-child(4) {
    left: 75%;
    top: 60%;
    animation-delay: 1.5s;
}

.ailhj-pb-tag img {
    height: 26px;
    width: 26px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    margin-right: 6px;
}

.ailhj-pb-tag span {
    font-size: 18px;
    font-weight: 400;
}

@keyframes ailhj-pb-float {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

/* ── Deco image: scroll-triggered slide-in from top-right ── */
.ailhj-pb-deco {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    width: 2880px;
    height:  666.5px;
}

.ailhj-pb-deco img {
    position: absolute;
    background-position: 100% -150px;
    left: 66%;
    top: -150px;
    width: 830px;
    height: 666.5px;
    -webkit-transform: translateY(-500px) translateX(412px) scale(.5);
    transform: translateY(-500px) translateX(412px) scale(.5);
    -webkit-transition: all 2s ease;
    transition: all 2s ease;
}
.ailhj-pb-deco.is-visible img {
     -webkit-transform: translateY(0) translateX(0) scale(1);
    transform: translateY(0) translateX(0) scale(1);
}

@media (max-width: 992px) {
    .ailhj-pb-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .ailhj-pb-deco {
        width: 60%;
    }
}

@media (max-width: 992px) {
    .ailhj-promo-banner {
        display: none;
    }
}