#newsletter_pop_up {
    background-color: #FFFFFF;
    z-index: 999;
    top: 5% !important;
    position: fixed !important;
    text-align: center;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow-y: auto; /* Ensure scrolling if content overflows */
    background-size: contain; /* Adjust to cover the entire container */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the background image */
}

.b-close {
    color: #000;
    font-size: 15px;
    right: 10px;
    top: 10px;
    position: absolute;
    width: 30px;
    height: 30px;
    line-height: 30px;#newsletter_pop_up {
        background-color: #FFFFFF;
        z-index: 999;
        position: fixed !important;
        top: 5%; /* Adjust as needed to center vertically */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Adjust for horizontal centering */
        text-align: center;
        padding: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border-radius: 20px;
        overflow-y: auto; /* Ensure scrolling if content overflows */
        background-size: cover; /* Adjust to cover the entire container */
        background-position: center; /* Center the background image */
        background-repeat: no-repeat; /* Do not repeat the background image */
        width: 90vw; /* 90% of the screen width */
        max-width: 500px; /* Maximum width */
        height: auto; /* Adjustable height */        
    }
    
    .b-close {
        color: #000;
        font-size: 15px;
        right: 10px;
        top: 10px;
        position: absolute;
        width: 30px;
        height: 30px;
        line-height: 30px;
        cursor: pointer;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.5);
        text-align: center;
    }
    
    .b-close:hover {
        background-color: rgba(0, 0, 0, 0.8);
        color: #FFF;
    }
    
    @media only screen and (max-width: 640px) {
        #newsletter_pop_up {
            top: 5% !important;
            padding: 5px;
            height: auto;
        }
    
        .popup-image {
            width: 100%;
        }
    }
    
    cursor: pointer;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.b-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFF;
}

@media only screen and (max-width: 640px) {
    #newsletter_pop_up {
        max-width: 95%;
        top: 5% !important;
        padding: 5px;
        height: auto;
    }

    .popup-image {
        width: 100%;
    }
}

@media only screen and (max-width: 480px) {
    #newsletter_pop_up {
        top: 5% !important;
        padding: 5px;
        max-height: 90%;
        overflow-y: auto; /* Ensure scrolling if content overflows */
    }

    .b-close {
        font-size: 12px;
        width: 25px;
        height: 25px;
        line-height: 25px;
    }
}