.mymesra-rewards {
    --mesra-purple: #763f98;
    --mesra-orange: #FDB924;
    color: #ffffff;
    box-sizing: border-box;
}

.mymesra-rewards .rewards-wrap {
    min-height: 0;
}

.mymesra-rewards .hero-left {
    min-height: 420px;
    background-position: left center;
    min-width: 0;
}

.mymesra-rewards .hero-left-inner {
    padding-bottom: 90px;
    padding-left: 125px;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
}

.mymesra-rewards .mesra-logo {
    width: 390px;
    max-width: 100%;
    height: auto;
}

.mymesra-rewards .hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 77px;
    text-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
    margin: 0;
    white-space: normal;
    word-break: normal;
}

.mymesra-rewards .cta-row {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    transition: opacity 0.25s ease;
    width: auto;
}

.mymesra-rewards a.cta-row {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
}

.mymesra-rewards .cta-row,
.mymesra-rewards .cta-row:visited {
    color: #fff !important;
}

.mymesra-rewards .cta-row:hover,
.mymesra-rewards .cta-row:focus,
.mymesra-rewards .cta-row:active {
    color: #fff !important;
    text-decoration: none;
    opacity: 0.5;
}

.mymesra-rewards .cta-row img {
    width: 34px;
    height: 34px;
    display: block;
}

.mymesra-rewards .right-card {
    overflow: hidden;
}

.mymesra-rewards .right-top-img {
    width: 100%;
    object-fit: cover;
    display: block;
    height: 400px;
}

.mymesra-rewards .right-panel {
    padding: 40px 32px 50px;
}

.theme-purple {
    --bg-color: var(--mesra-purple);
}

.theme-orange .right-title,
.theme-orange .right-sub,
.theme-orange .cta-text{
    color: black;
}

.theme-orange {
    --bg-color: var(--mesra-orange);
}

/* Splide slide backgrounds */
.mymesra-rewards .right-splide .splide__slide {
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Pagination backgrounds */
.theme-purple .dots.splide__pagination {
    background: var(--mesra-purple);
}

.theme-orange .dots.splide__pagination {
    background: var(--mesra-orange);
}

/* Active pagination bullet */
.dots .splide__pagination__page.is-active {
    background: rgba(255,255,255,.95);
}

.mymesra-rewards .right-panel .cta-row {
    align-self: center;
    width: auto;
}

.mymesra-rewards .right-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 44px;
    margin: 0;
}

.mymesra-rewards .right-sub {
    font-size: 24px;
    font-weight: 500;
    line-height: 29px;
    margin: 0;
}

.mymesra-rewards .dots {
    gap: 14px;
    padding-bottom: 30px;
}

/* Splide pagination bullets */
.mymesra-rewards .dots .splide__pagination__page {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    margin: 0 7px;
    border: none;
    padding: 0;
    transition: background 0.3s ease;
}

.mymesra-rewards .dots .splide__pagination__page.is-active {
    background: rgba(255, 255, 255, 0.95);
    transform: none;
}

/* Splide container and track */
.mymesra-rewards .right-splide,
.mymesra-rewards .right-splide .splide__track,
.mymesra-rewards .right-splide .splide__list {
    background: transparent;
}

.mymesra-rewards .right-splide {
    width: 100%;
    height: auto;
    position: relative;
}

.mymesra-rewards .right-splide .splide__track,
.mymesra-rewards .right-splide .splide__list,
.mymesra-rewards .right-splide .splide__slide {
    height: auto;
}

/* Reset Splide default list styles */
.mymesra-rewards .right-splide .splide__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mymesra-rewards .splide__pagination {
    position: static !important;
}

.mymesra-rewards .cta-text {
    margin: 0;
    font-size: 24px;
}

@media (max-width: 768.8px) {
    .mymesra-rewards .hero-left {
        background-position: left bottom;
        min-height: 1000px;
    }

    .mymesra-rewards .hero-left-inner {
        padding-top: 60px;
        padding-left: 32px;
        padding-bottom: 0;
        max-width: 370px;
    }

    .mymesra-rewards .hero-title {
        font-size: 40px;
        line-height: 48px;
        align-self: flex-start;
    }

    .mymesra-rewards .right-panel {
        padding: 30px 32px 30px;
        gap: 20px;
    }

    .mymesra-rewards .right-title {
        font-size: 34px;
        line-height: 41px;
    }
}

@media (min-width: 768px) {
    .mymesra-rewards .rewards-wrap {
        min-height: 680px;
    }

    .mymesra-rewards .right-card {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .mymesra-rewards .right-top-img {
        flex: 1.2 1 0;
        min-height: 240px;
        width: 100%;
        object-fit: cover;
    }

    .mymesra-rewards .right-title {
        font-size: 40px;
    }

    .mymesra-rewards .right-sub {
        font-size: 18px;
    }

    .mymesra-rewards .right-panel {
        flex: 0.8 1 0;
        position: relative;
        gap: 40px;
    }

    .mymesra-rewards .dots {
        bottom: 20px;
        margin-top: 0;
    }
}

@media (min-width: 992px) {
    .mymesra-rewards .right-sub {
        font-size: 24px;
    }
}