/* Base Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.041); /* Extremely transparent background */
    backdrop-filter: blur(15px); /* Stronger blur effect */
    -webkit-backdrop-filter: blur(15px); /* For Safari compatibility */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

/* Box Container */
.popup-box {
    position: relative;
    width: 50%; /* Better default width */
    max-width: 600px;
    background: rgba(255, 255, 255, 0.582);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.308);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 24px;
    color: #f7f7f7; /* White text */
    z-index: 1; /* Ensure it's clickable */
    width: 55px;
    height: 40px;
    background: rgba(0, 0, 0, 0.137); /* More transparent black background */
    border: none;
    border-radius: 10px 100px / 120px;
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    transition: all 0.3s ease; /* Smooth hover effect */
}
.popup-close:hover {
    transform: translateY(-2px); /* Slight upward movement */
    background: rgba(0, 0, 0, 0.5); /* Slightly darker background on hover */
}

/* Content Layout */
.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Image Area */
.popup-img-area {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
.popup-img-area img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Text Area */
.popup-text-area {
    padding: 15px;
}
.popup-text-area h2 {
    font-size: 24px;
    color: #222;
    margin-bottom: 10px;
}
.popup-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* Button */
.cta-button {
    padding: 12px 30px; /* Padding for clickable area */
    background: #242424; /* Dark background */
    color: white; /* White text */
    border: none; /* No border */
    border-radius: 25px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    font-size: 16px; /* Readable text size */
    transition: all 0.3s ease; /* Smooth transitions */
    width: fit-content; /* Only as wide as the content */
    align-self: left; /* Align to the start of the text area */
}
.cta-button:hover {
    background: #2e89ad; /* Bright blue on hover */
    transform: translateY(-2px); /* Slight upward movement */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Shadow for depth */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .popup-box {
        width: 90%;
        max-width: 400px;
    }
    .popup-img-area {
        max-height: 150px;
    }
    .popup-text-area h2 {
        font-size: 20px;
    }
    .popup-text {
        font-size: 14px;
    }
}
