/* Homepage Popup Styles */
#homepage-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
	
	background: rgba(10 94 150 / 0.85);
	border-radius: 0 0 8px 8px;
	border: 1px solid var(--grey);
	box-shadow: 0px 21px 17.9px -16px rgba(0, 0, 0, 0.25);
	transition: all 0.3s ease;
	
}

#homepage-popup {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#homepage-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#homepage-popup-close:hover {
    color: #333;
    background-color: #f0f0f0;
}

#homepage-popup-content {
    padding: 50px 40px 40px 40px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

#homepage-popup-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

#homepage-popup-content p {
    margin: 0 0 15px 0;
    line-height: 1.5;
    color: #333;
}

#homepage-popup-content h1,
#homepage-popup-content h2,
#homepage-popup-content h3 {
    color: #333;
    margin: 0 0 15px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    #homepage-popup {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
    
    #homepage-popup-content {
        padding: 25px 15px 15px 15px;
    }
    
    #homepage-popup-close {
        top: 5px;
        right: 10px;
        font-size: 20px;
    }
}

/* Animation for closing */
#homepage-popup-overlay.closing {
    animation: popupFadeOut 0.2s ease-in forwards;
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}