.hero {
    position: relative;
}

.hero-bg-half {
    position: absolute;
    top: 0;
    width: 100%;
    height: 780px;
    background: linear-gradient(0deg, #FFF 14.96%, rgba(255, 255, 255, 0.00) 72.83%);
    border-bottom-right-radius: 140px;
    border-bottom-left-radius: 140px;
    z-index: 0;
}

.hero-content > * {
    width: auto;
    max-width: 100%;
    z-index: 3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.left-wing img {
    width: 250px;
    position: absolute;
    top: 310px; /* center vertically */
    left: 48%; /* center horizontally */
    transform: translate(-250%, -70%); /* move away from center to your desired offset */
    z-index: 11;
}

.right-wing img {
    width: 250px;
    position: absolute;
    bottom: 25%;
    left: 52%;
    transform: translate(150%, 10%);
    z-index: 1;
}

.title {
    padding: 0 20px;
}

.top-sub {
    background-color: #DFE5FA;
    padding: 6px 20px;
    border-radius: 60px;
    text-align: center;
    margin: 140px auto 4px auto;
}

.top-sub small {
    font-family: 'BoldFont', sans-serif;
}

.sub-title {
    text-align: center;
    margin: 20px 30px 50px;
    max-width: 740px;
}


.sub-title p {
    font-size: 20px;
}

/* ------------------------ Slider ------------------------------ */

.hero-slider {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding-top: 30px;
    justify-content: center;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.8s ease-in-out;
    width: auto;
}

.hero-card-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    overflow: visible;
    margin: 0 6px;
}

.hero-card-wrapper.large {
    width: 400px;
}

.hero-card {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-label {
    position: absolute;
    padding: 8px 32px 8px 14px;
    border-radius: 14px;
    font-size: 14px;
    color: white;
    max-width: 280px;
    overflow: visible;
    z-index: 2;
    backdrop-filter: blur(3px);
}

.hero-label img.icon {
    position: absolute;
    top: -62px;
    right: 5px;
    width: 60px;
}

.hero-label h5 {
    text-align: start;
    font-size: 14px;
    color: white;
}

.hero-label p {
    text-align: start;
    color: white;
    font-size: 12px;
}

.hero-label.buy {
    left: -75px;
    bottom: 110px;
    background: rgba(222, 122, 154, 0.80);
}

.hero-label.win {
    left: -60px;
    bottom: 35px;
    color: black;
    background: rgba(210, 218, 253, 0.80) url('../assets/images/confetti-splash.png') no-repeat right;
    background-size: 145px;
}

.hero-label.win p {
    color: black;
}

.hero-label.win h5 {
    color: black;
}

.hero-label.success {
    left: -150px;
    bottom: 85px;
    background: rgba(96, 149, 160, 0.70);
}

/* Main image animations (already added) */
.hidden-left,
.hidden-bottom,
.hidden-right {
    opacity: 0;
    transition: all 1s ease;
}

.hidden-left {
    transform: translateX(-100px);
}

.hidden-bottom {
    transform: translateY(230px);
}

.hidden-right {
    transform: translateX(100px);
}

.slide-in-left,
.slide-in-bottom,
.slide-in-right {
    opacity: 1;
    transform: translate(0, 0);
}

/* Sub-image always comes from left */
.hidden-left-sub {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 2s ease;
}

.slide-in-left-sub {
    opacity: 1;
    transform: translateX(0);
}

.wrap-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.wrap-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.bars, .mob {
    display: none;
}

@media (max-width: 1120px) {
    .hero-bg-half {
        height: 680px;
        border-bottom-right-radius: 60px;
        border-bottom-left-radius: 60px;
    }

    .hero-card-wrapper {
        width: 220px;
        margin: 0 4px;
    }

    .hero-card-wrapper.large {
        width: 290px;
    }

    .hero-slider {
        padding-bottom: 25px;
    }

    .hero-label {
        padding: 6px 12px 6px 10px;
        font-size: 12px;
    }

    .hero-label img.icon {
        top: -55px;
        width: 50px;
    }

    .hero-label h5 {
        font-size: 12px;
    }

    .hero-label p {
        font-size: 10px;
    }

    .hero-label.buy {
        left: -50px;
        bottom: 85px;
    }

    .hero-label.win {
        left: -50px;
        bottom: 30px;
        background-size: 110px;
    }

    .hero-label.success {
        left: -105px;
        bottom: 55px;
    }

}

@media screen and (max-width: 850px) {
    .hero {
        margin-top: 100px;
    }

    .hero-bg-half {
        height: 510px;
        border-bottom-right-radius: 60px;
        border-bottom-left-radius: 60px;
    }

    .hero-slider {
        padding-bottom: 25px;
    }

    .top-sub {
        margin-top: 10px;
    }

    .left-wing {
        display: none;
    }

    .right-wing {
        display: none;
    }

    .hero .container {
        width: 100%;
    }

    .carousel-wrapper {
        width: 300%;
    }

    .hero-card-wrapper {
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-card-wrapper.large {
        width: 100%;
    }

    .hero-card {
        width: 95%; /* wider */
        height: 320px; /* taller */
        position: relative;
    }

    .hero-card img {
        object-fit: contain;
    }

    .hero-label {
        position: absolute;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        padding: 8px 16px;
        border-radius: 12px;
        font-size: 12px;
        text-align: center;
        z-index: 2;
        backdrop-filter: blur(4px);
    }

    .hero-label img.icon {
        display: none;
    }

    .hero-label h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .hero-label p {
        font-size: 11px;
        margin: 0;
    }

    .hero-label.buy,
    .hero-label.win,
    .hero-label.success {
        left: 33%; /* Make sure it stays centered */
        bottom: -25px;
        /*transform: translateX(-50%);*/
        background-size: cover;
        background-position: center;
    }
}
