.hp6-banner-section {
    position: relative;
    z-index: 10;
}

#hp6-banner-container {
    background-image: url('../Images/home/frameproduct.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible !important;
    /* Crucial for the pop-out effect */
}

.hp6-side-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.hp6-icon-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hp6-icon-box .icon {
    width: 32px;
    height: 32px;
    color: white;
    flex-shrink: 0;
}

.hp6-icon-box .text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 240px;
}

/* Curved alignment for Left side items */
.hp6-side-content.left .hp6-icon-box:nth-child(1),
.hp6-side-content.left .hp6-icon-box:nth-child(3) {
    margin-left: -10px;
}

.hp6-side-content.left .hp6-icon-box:nth-child(2) {
    margin-left: 90px;
    /* Offset to the right compared to top/bottom */
}

/* Curved alignment for Right side items */
.hp6-side-content.right .hp6-icon-box {
    flex-direction: row-reverse;
    text-align: right;
}

.hp6-side-content.right .hp6-icon-box:nth-child(1),
.hp6-side-content.right .hp6-icon-box:nth-child(3) {
    margin-right: -10px;
}

.hp6-side-content.right .hp6-icon-box:nth-child(2) {
    margin-right: 90px;
    /* Offset to the left compared to top/bottom */
}

.hp6-popout-image {
    position: absolute;
    bottom: -1px;
    /* Align with bottom edge */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 120%;
    /* Significantly taller than the container */
    max-width: none;
    z-index: 25;
    pointer-events: none;
    /* Allow interaction with button behind if any */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    object-fit: contain;
    object-position: bottom;

    /* Animation initial state */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hp6-popout-image.animate {
    opacity: 1;
}

@media (max-width: 1023px) {
    #hp6-banner-container {
        padding: 40px 20px 100px 20px;
        /* Added significant bottom padding */
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        background-color: #000;
        /* Fallback for black banner look */
        border-radius: 40px;
        /* Match the user's HTML change */
    }

    #hp6-banner-container>div.grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 25px;
        padding: 0;
    }

    /* Image Wrapper */
    #hp6-banner-container>div.grid>div:nth-child(2) {
        order: -1;
        /* Move image to top */
        min-height: auto;
    }

    .hp6-popout-image {
        position: relative;
        /* Static for mobile stack */
        height: auto;
        width: 100%;
        max-width: 350px;
        top: 0;
        left: 0;
        transform: none;
        opacity: 0;
        margin: 0 auto;
        display: block;
        transition: opacity 1s ease-in-out;
    }

    .hp6-popout-image.animate {
        opacity: 1;
    }

    .hp6-side-content {
        gap: 15px;
    }

    .hp6-side-content.left .hp6-icon-box,
    .hp6-side-content.right .hp6-icon-box {
        margin: 0 !important;
        flex-direction: row !important;
        text-align: left !important;
        justify-content: flex-start;
    }

    .hp6-side-content.right {
        order: 1;
    }

    .hp6-side-content.left {
        order: 0;
    }

    .hp6-buy-now-btn {
        position: absolute;
        /* Revert to absolute but relative to the tall container */
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        width: auto;
        white-space: nowrap;
    }
}

.hp6-buy-now-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #C53771;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 30;
}

.hp6-buy-now-btn:hover {
    background-color: #a0285a;
    transform: translateX(-50%) scale(1.05);
}