/* ============================================================
   Homepage promo banner — scoped to #homeAdsSection only
   (no legacy .home-ads classes)
   ============================================================ */

/* Source banner size (Canva export) */
#homeAdsSection {
    --home-banner-w: 1860;
    --home-banner-h: 730;
    padding: 0 0 4rem;
    background: var(--paper);
}

#homeAdsSection .home-promos__header {
    margin-bottom: 1.5rem;
}

#homeAdsSection .home-promos__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

#homeAdsSection .home-promos__title {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.04em;
    margin: 0;
    line-height: 1.15;
}

#homeAdsSection .home-promos__frame {
    position: relative;
}

#homeAdsSection .home-promos-viewport {
    --promo-radius: 24px;
    position: relative;
    overflow: hidden;
    border-radius: var(--promo-radius);
    border: none;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
    transform: translateZ(0);
}

#homeAdsSection .home-promos-track {
    display: flex;
    transition: transform 0.7s var(--ease-out-expo);
}

/* ---- Slide ---- */
#homeAdsSection .home-promo-banner {
    --promo-bg: #2563EB;
    flex: 0 0 100%;
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: var(--promo-bg);
    min-height: 220px;
    border-radius: 0;
}

#homeAdsSection .home-promo-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 0;
}

#homeAdsSection .home-promo-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.1rem 4.5rem 2.35rem;
    min-height: 220px;
}

#homeAdsSection .home-promo-banner__content {
    flex: 1;
    min-width: 0;
}

#homeAdsSection .home-promo-banner__badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.28rem 0.65rem;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-pill);
}

#homeAdsSection .home-promo-banner__title {
    margin: 0 0 0.55rem;
    padding: 0;
    font-size: clamp(1.3rem, 2.8vw, 1.95rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 36rem;
}

#homeAdsSection .home-promo-banner__text {
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: 0.96rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    max-width: 34rem;
}

#homeAdsSection .home-promo-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.68rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--navy);
    background: #fff;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 16px rgba(8, 27, 58, 0.18);
    transition: transform 0.22s var(--ease-spring), box-shadow 0.22s ease;
}

#homeAdsSection .home-promo-banner__cta i {
    font-size: 0.72rem;
    transition: transform 0.22s ease;
}

#homeAdsSection a.home-promo-banner:hover .home-promo-banner__cta {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(8, 27, 58, 0.22);
}

#homeAdsSection a.home-promo-banner:hover .home-promo-banner__cta i {
    transform: translateX(3px);
}

#homeAdsSection .home-promo-banner__visual {
    flex-shrink: 0;
    width: 168px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(8, 27, 58, 0.2);
}

#homeAdsSection .home-promo-banner__visual img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#homeAdsSection .home-promo-banner__visual--empty {
    background: rgba(255, 255, 255, 0.12);
    border: 1px dashed rgba(255, 255, 255, 0.28);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 2.25rem;
}

#homeAdsSection .home-promo-banner--static {
    cursor: default;
}

/* ---- Progress ---- */
#homeAdsSection .home-promos-progress-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 3;
}

#homeAdsSection .home-promos-progress {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 0 2px 2px 0;
}

#homeAdsSection .home-promos-progress.is-running {
    animation: injob-promo-progress 10s linear forwards;
}

@keyframes injob-promo-progress {
    from { width: 0; }
    to { width: 100%; }
}

/* ---- Arrows (inside banner) ---- */
#homeAdsSection .home-promos-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: rgba(8, 27, 58, 0.35);
    backdrop-filter: blur(6px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

#homeAdsSection .home-promos-arrow:hover {
    background: rgba(8, 27, 58, 0.55);
    transform: translateY(-50%) scale(1.05);
}

#homeAdsSection .home-promos-arrow--prev {
    left: 1rem;
}

#homeAdsSection .home-promos-arrow--next {
    right: 1rem;
}

/* ---- Footer nav ---- */
#homeAdsSection .home-promos-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

#homeAdsSection .home-promos-counter {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
    min-width: 2.5rem;
    text-align: center;
}

#homeAdsSection .home-promos-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

#homeAdsSection .home-promos-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--border-strong);
    cursor: pointer;
    transition: width 0.3s ease, background 0.25s ease;
}

#homeAdsSection .home-promos-dot.active {
    width: 24px;
    background: var(--primary);
}

#homeAdsSection .home-promo-banner--image {
    min-height: clamp(160px, 28vw, 320px);
    background: #0f172a;
    line-height: 0;
}

#homeAdsSection .home-promo-banner--image::before {
    display: none;
}

#homeAdsSection .home-promo-banner--image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--home-banner-w) / var(--home-banner-h);
    object-fit: cover;
    object-position: center;
    border: none;
    border-radius: 0;
    vertical-align: top;
}

#homeAdsSection a.home-promo-banner--image:hover img {
    opacity: 0.96;
}

#homeAdsSection .home-promo-banner--image img {
    transition: opacity 0.25s ease;
}

@media (max-width: 768px) {
    #homeAdsSection {
        padding-bottom: 3rem;
    }

    #homeAdsSection .home-promo-banner__inner {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.35rem 2rem;
        gap: 1.15rem;
    }

    #homeAdsSection .home-promo-banner__title,
    #homeAdsSection .home-promo-banner__text {
        margin-left: auto;
        margin-right: auto;
    }

    #homeAdsSection .home-promo-banner__visual {
        order: -1;
        width: 100%;
        max-width: 200px;
        height: 110px;
    }

    #homeAdsSection .home-promos-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #homeAdsSection .home-promos-track {
        transition: none;
    }

    #homeAdsSection .home-promos-progress.is-running {
        animation: none;
        width: 100%;
        opacity: 0.4;
    }
}
