#homePopupWrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);/* your custom color */
    z-index: 99999;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#homePopup {
    background: #fff;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    margin: 10% auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    animation: fadeIn 0.3s ease-in-out;
    align-items: center;
    flex-wrap: nowrap; /* prevent wrap on desktop */
}

/* Sections */
#homePopup .left,
#homePopup .right {
    flex: 1 1 50%;
}

/* Content */
#homePopup h2 {
    margin-top: 0;
    font-size: 22px;
}

#homePopup p {
    margin-bottom: 10px;
}

#homePopup a.read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #098894;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

#homePopup a.read-more:hover {
    background: #024d55;
}

/* Image */
#homePopup img {
    width: 100%;
    height: auto;
    max-height: 280px;
    border-radius: 8px;
    object-fit: cover;
}

/* Close button */
#homePopupClose {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Mobile Layout */
@media (max-width: 900px) {
    #homePopup {
        flex-direction: column;
        align-items: flex-start;
    }

    #homePopup .left {
        order: 1;
        width: 100%;
    }

    #homePopup .right {
        order: 2;
        width: 100%;
        margin-top: 15px;
    }

    #homePopup img {
        max-height: none;
        height: auto;
    }
}
