.rp-tab-slider {
        display: flex;
        background: transparent;
        /* margin: 70px auto; */
        padding: 0;
        /* width: 991px; */
    }
    
    .rp-step {
        height: 400px;
        padding: 15px;
        border-right: 1px solid white;
        transition: 0.8s;
        position: relative;
        overflow: hidden;
        list-style: none;
        background-color: #222;
    }

    /* === OVERLAY ADDED HERE === */
    .rp-step::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(40, 42, 116, 0.7);
        opacity: 1;
        transition: background-color 0.6s ease;
        z-index: 1;
    }

    /* ACTIVE STEP OVERLAY COLOR */
    .rp-step.active::before {
        background-color: rgba(154, 202, 60, 0.7);
    }

    /* Ensure content is above overlay */
    .rp-step > * {
        position: relative;
        z-index: 2;
    }

    .rp-detail {
        width: 85%;
        height: 100%;
        position: absolute;
        right: 0;
        top: 0;
        color: #faf8f8;
        opacity: 0;
        padding: 30px;
        box-sizing: border-box;
        transition: 0.8s;
        transform: translateY(100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .rp-detail * {
        color: white;
    }
    
    .rp-detail p {
        font-size: 1.2em;
        line-height: 1.5em;
    }
    
    .rp-step.active {
        width: 70% !important;
    }
    
    .rp-step.active .rp-detail {
        width: 100%;
    }

    .rp-step.active .rp-detail {
        opacity: 1;
        transition-delay: 0.6s;
        transform: none;
        text-shadow: 0px 0px 1px #000;
    }
    
    .rp-step span {
        writing-mode: vertical-rl;
        font-size: 20px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        text-transform: uppercase;
        letter-spacing: 4px;
        width: 40px;
        transform: rotate(180deg);
        font-weight: 700;
        cursor: pointer;
        position: absolute;
        left: 0;
        right: 0;
        margin: 0 auto;
        text-shadow: 0px 0px 2px #222;
        transition: all 0.5s ease;
        z-index: 3;
    }

    /* === ACTIVE STEP LABEL FULL BACKGROUND === */
    .rp-step.active span {
        background-color: #282A74;
        width: 100%;
        left: 0;
        right: 0;
        transform: none;
        writing-mode: horizontal-tb;
        font-size: 22px;
        text-align: center;
        padding: 10px 0;
        top: 0;
        height: auto;
        text-shadow: none;
    }
    
    /* STEP/DETAIL BORDER COLORS */
    
    .rp-tab-slider .rp-step {
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }

    .rp-tab-slider .rp-step:nth-child(1) {
        border-top: 10px solid red;
        background-image: url(https://stock.imgix.net/10068?bri=-30);
    }
    
    .rp-tab-slider .rp-step:nth-child(2) {
        border-top: 10px solid orangered;
        background-image: url(https://stock.imgix.net/8441?bri=-30);
    }
    
    .rp-tab-slider .rp-step:nth-child(3) {
        border-top: 10px solid orange;
        background-image: url(https://stock.imgix.net/6919?bri=-30);
    }
    
    .rp-tab-slider .rp-step:nth-child(4) {
        border-top: 10px solid yellow;
        background-image: url(https://stock.imgix.net/4505?bri=-30);
    }
    
    .rp-tab-slider .rp-step:nth-child(5) {
        border-top: 10px solid yellowgreen;
        background-image: url(https://stock.imgix.net/7947?bri=-30);
    }
    
    /* Responsive styles */
    @media (max-width: 1024px) {
        .rp-tab-slider {
            flex-direction: column;
            width: 100%;
        }
        .rp-step {
            width: initial !important;
            height: auto;
            border-right: none;
            border-bottom: 1px solid white;
            padding: 3px;
        }
        .rp-detail p {
            font-size: 1em;
            line-height: normal;
            margin: 0;
        }
        .rp-detail h2 {
            font-size: 22px;
            line-height: normal;
        }
        .rp-step.active {
            width: auto !important;
        }
        .rp-step span {
            writing-mode: horizontal-tb;
            font-size: 16px;
            width: auto;
            transform: none;
            font-weight: 400;
            position: static;
            margin: 5px auto;
            letter-spacing: normal;
        }
        .rp-step.active span {
            background-color: #282A74;
            width: 100%;
            display: block;
            padding: 8px 0;
        }
        .rp-detail {
            position: relative;
            width: auto;
            opacity: 0;
            transform: none;
            visibility: hidden;
            transition: 0.3s;
            height: 0;
            position: absolute;
            right: -11em;
            text-align: center;
            padding: 5px;
        }
        .rp-step.active .rp-detail {
            transform: none;
            opacity: 1;
            visibility: visible;
            height: auto;
            position: relative;
            right: 0;
        }
    }