/* overflow-x:clip prevents horizontal scrollbar without creating a scroll container that clips negative margins in RTL */
.rewards-page {
    overflow-x: clip;
}

.rewards-page .rewards-hero {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    min-height: clamp(390px, 43vw, 590px);
    margin: 0 0 clamp(32px, 5vw, 72px);
    overflow: hidden;
    /* hero is always in viewport — bypass scroll-reveal hidden state */
    opacity: 1;
    transform: none;
    animation: none;
}

.rewards-page .rewards-hero::before,
.rewards-page .rewards-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rewards-page .rewards-hero::before,
.rewards-page .rewards-hero::after {
    display: none;
}

.rewards-page .rewards-hero--slider {
    background: #fdf9f6;
}

.rewards-page .rewards-hero__slide[hidden] {
    display: none;
}

.rewards-page .rewards-hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility .65s ease;
}

.rewards-page .rewards-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    animation: rewards-hero-slide-in .65s cubic-bezier(.16, 1, .3, 1) both;
}

.rewards-page .rewards-hero__media,
.rewards-page .rewards-hero__overlay,
.rewards-page .rewards-hero__content {
    position: absolute;
    inset: 0;
}

.rewards-page .rewards-hero__media {
    z-index: 0;
}

.rewards-page .rewards-hero__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.rewards-page .rewards-hero__overlay {
    z-index: 1;
    pointer-events: none;
    background: none;
}

.rewards-page .rewards-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: min(1320px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    padding-block: clamp(24px, 4vw, 56px);
    box-sizing: border-box;
}

.rewards-page .rewards-hero .hero-grid {
    position: relative;
    z-index: 2;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    min-height: inherit;
}

.rewards-page .rewards-hero .hero-copy {
    position: relative;
    z-index: 2;
    width: min(52%, 640px);
    max-width: 640px;
    padding: 0;
    text-align: right;
    pointer-events: auto;
}

.rewards-page .rewards-hero .hero-badge {
    display: none;
}

.rewards-page .rewards-hero .hero-title {
    margin: 0;
    color: var(--rewards-blue);
    font-size: clamp(2.3rem, 4.4vw, 4.8rem);
    line-height: 1.12;
    font-weight: 700;
}

.rewards-page .rewards-hero .hero-subtitle {
    margin: 12px 0;
    max-width: 590px;
    color: var(--rewards-orange);
    font-size: clamp(1.7rem, 3.2vw, 3.55rem);
    line-height: 1.15;
    font-weight: 700;
}

.rewards-page .rewards-hero .hero-description {
    max-width: 600px;
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.4vw, 1.35rem);
    line-height: 1.6;
}

.rewards-page .rewards-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.rewards-page .rewards-hero .hero-cta,
.rewards-page .rewards-hero .hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.rewards-page .rewards-hero .hero-cta {
    min-width: 142px;
    border: 1px solid var(--rewards-orange);
    background: var(--rewards-orange);
    color: #fff;
}

.rewards-page .rewards-hero .hero-cta::after {
    content: '←';
    margin-inline-start: 9px;
    transition: transform .2s ease;
}

.rewards-page .rewards-hero .hero-cta:hover,
.rewards-page .rewards-hero .hero-secondary:hover {
    transform: translateY(-1px);
}

.rewards-page .rewards-hero .hero-cta:hover::after {
    transform: translateX(-4px);
}

.rewards-page .rewards-hero .hero-secondary {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(0, 89, 136, .14);
    color: var(--rewards-blue);
}

.rewards-hero__controls {
    position: absolute;
    z-index: 8;
    right: clamp(16px, 3vw, 26px);
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.rewards-hero__arrow,
.rewards-hero__dots button {
    border: 0;
    cursor: pointer;
}

.rewards-hero__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: var(--rewards-blue);
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(12, 35, 64, .14);
}

.rewards-hero__dots {
    display: flex;
    gap: 7px;
}

.rewards-hero__dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    background: rgba(12, 35, 64, .24);
    transition: width .25s ease, background .25s ease;
}

.rewards-hero__dots button.is-active {
    width: 26px;
    background: var(--rewards-orange);
}

.rewards-hero__halo,
.rewards-hero__line {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.rewards-hero__halo {
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .7);
}

.rewards-hero__halo--one {
    width: 310px;
    height: 310px;
    top: -120px;
    right: 18%;
    animation: rewards-hero-float 7s ease-in-out infinite;
}

.rewards-hero__halo--two {
    width: 130px;
    height: 130px;
    bottom: 56px;
    right: 42%;
    border-color: rgba(0, 166, 255, .2);
    animation: rewards-hero-float 5s ease-in-out -1.8s infinite reverse;
}

.rewards-hero__line {
    width: 150px;
    height: 1px;
    top: 31%;
    right: 3%;
    background: linear-gradient(90deg, transparent, rgba(239, 107, 59, .65), transparent);
    transform: rotate(-30deg);
    animation: rewards-hero-shimmer 4s ease-in-out infinite;
}

@keyframes rewards-hero-slide-in {
    from { opacity: 0; transform: scale(1.018); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rewards-hero-copy-in {
    from { opacity: 0; transform: translate3d(34px, 0, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes rewards-hero-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -13px, 0); }
}

@keyframes rewards-hero-shimmer {
    0%, 100% { opacity: .25; }
    50% { opacity: 1; }
}

@media (max-width: 1024px) {
    .rewards-page .rewards-hero {
        min-height: clamp(360px, 46vw, 470px);
    }

    .rewards-page .rewards-hero .hero-grid {
        width: min(900px, calc(100% - 36px));
    }

    .rewards-page .rewards-hero .hero-copy {
        width: min(100%, 500px);
        padding: 24px 20px;
    }

    .rewards-page .rewards-hero .hero-title {
        font-size: clamp(1.7rem, 4.6vw, 2.7rem);
    }

    .rewards-page .rewards-hero .hero-subtitle {
        font-size: clamp(1.05rem, 3vw, 1.45rem);
    }
}

@media (max-width: 640px) {
    .rewards-page .rewards-portal-page,
    .rewards-page .portal-shell {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: clip;
    }

    .rewards-page .rewards-hero {
        width: calc(100% - 24px);
        min-height: 0;
        height: auto;
        aspect-ratio: 1.02 / 1;
        margin-bottom: 28px;
        border-radius: 20px;
    }

    .rewards-page .rewards-hero__content,
    .rewards-page .rewards-hero .hero-grid {
        width: 100%;
        padding-inline: 14px;
        box-sizing: border-box;
    }

    .rewards-page .rewards-hero__content {
        align-items: flex-end;
        padding-bottom: 18px;
    }

    .rewards-page .rewards-hero .hero-copy {
        width: 100%;
        max-width: none;
        margin-inline-start: 0;
        padding: 18px 16px;
    }

    .rewards-page .rewards-hero .hero-badge {
        margin-bottom: 10px;
        font-size: .72rem;
        padding: 7px 10px;
    }

    .rewards-page .rewards-hero .hero-title {
        font-size: clamp(1.15rem, 5.2vw, 1.55rem);
        line-height: 1.16;
    }

    .rewards-page .rewards-hero .hero-subtitle {
        margin: 7px 0 0;
        font-size: clamp(.95rem, 4.2vw, 1.15rem);
        line-height: 1.16;
    }

    .rewards-page .rewards-hero .hero-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        font-size: .9rem;
    }

    .rewards-page .rewards-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
        margin-top: 16px;
    }

    .rewards-page .rewards-hero .hero-cta,
    .rewards-page .rewards-hero .hero-secondary {
        width: 100%;
    }

    .rewards-hero__halo--one {
        right: -40px;
    }

    .rewards-hero__halo--two,
    .rewards-hero__line {
        display: none;
    }

    .rewards-hero__controls {
        right: 12px;
        bottom: 12px;
        transform: scale(.8);
        transform-origin: bottom right;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rewards-page .rewards-hero .hero-copy,
    .rewards-page .rewards-hero__slide,
    .rewards-hero__halo,
    .rewards-hero__line {
        animation: none;
    }

    .rewards-page .rewards-hero .hero-cta,
    .rewards-page .rewards-hero .hero-cta::after,
    .rewards-page .rewards-hero .hero-secondary {
        transition: none;
    }
}
