.hpp-popup {
    display: none; /* Initially hidden, shown by JavaScript */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.hpp-popup-content {
    display: flex;
    width: 100%; /* Increased width */
    max-width: 1140px; /* Increased max-width for a larger popup */
    height: 520px; /* Increased height for a larger popup */
    border-radius: 0px;
    border-top: 0px;
    border-bottom: 0px solid #fff;
    overflow: hidden;
    position: relative; /* Ensure the close button positions relative to this */
}

.hpp-popup-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    overflow: hidden;
}

.hpp-popup-left img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space */
    display: block; /* Ensures the image displays */
}

.hpp-popup-right {
    flex: 1;
    background: #fff;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* Ensure the close button positions correctly */
}

.hpp-popup-right h2 {
    color: #000;
    font-size: 36px;
    margin-bottom: 20px;
}

.hpp-popup-right p {
    color: #000;
    font-size: 16px;
    margin-bottom: 20px;
}

.hpp-button {
    display: inline-block;
    background: #00005a;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
}

.hpp-close {
    position: absolute;
    top: -10px;
    right: 0px;
    font-size: 44px;
    cursor: pointer;
    color: #fff;
    background: #00005a;
    border-radius: 0% 0% 0% 29%;
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Ensure it’s above other elements */
    transition: transform 0.3s ease; /* Smooth transition for the spin */
}

/* Mobile-responsive adjustments */
@media (max-width: 768px) {
    .hpp-popup-content {
        flex-direction: column; /* Stack left and right sections vertically */
        width: 90%; /* Reduce width for mobile */
        max-width: 500px; /* Smaller max-width */
        height: auto; /* Allow height to adjust based on content */
        min-height: 400px; /* Ensure minimum height */
    }

    .hpp-popup-left {
        flex: none; /* Remove flex growth */
        width: 100%;
        height: 200px; /* Fixed height for image section */
    }

    .hpp-popup-right {
        flex: none; /* Remove flex growth */
        width: 100%;
        padding: 15px; /* Slightly less padding */
    }

    .hpp-popup-right h2 {
        font-size: 24px; /* Smaller heading */
        margin-bottom: 15px;
    }

    .hpp-popup-right p {
        font-size: 14px; /* Smaller paragraph text */
        margin-bottom: 15px;
    }

    .hpp-button {
        padding: 8px 16px; /* Slightly smaller button */
        font-size: 14px; /* Adjust font size */
    }

    .hpp-close {
        top: 0;
        right: 0;
        font-size: 32px; /* Smaller close button */
        width: 50px;
        height: 50px;
    }
}