/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    position: relative;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f9ff 100%);
    border-radius: 20px;
    max-width: 1000px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-close:hover {
    background: #fff;
    color: #333;
    transform: rotate(90deg);
}

.popup-content {
    display: flex;
    align-items: center;
    padding: 60px 50px;
    gap: 40px;
}

.popup-image {
    flex: 0 0 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.popup-description {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-badge {
    display: inline-block;
    align-self: flex-start;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.popup-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a365d;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popup-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    line-height: 1.3;
}

.popup-text {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 8px 0;
}

.popup-btn {
    align-self: flex-start;
    padding: 16px 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    margin-top: 12px;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.5);
}

.popup-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-overlay {
        align-items: flex-start;
        overflow-y: auto;
        padding: 20px 0;
    }

    .popup-container {
        max-width: 95%;
        margin: auto;
    }

    .popup-content {
        flex-direction: column;
        padding: 50px 30px 30px;
        gap: 30px;
    }

    .popup-image {
        flex: none;
        width: 100%;
        max-width: 180px;
    }

    .popup-description {
        text-align: center;
        align-items: center;
    }

    .popup-title {
        font-size: 1.8rem;
    }

    .popup-subtitle {
        font-size: 1.3rem;
    }

    .popup-text {
        font-size: 1rem;
    }

    .popup-badge {
        align-self: center;
    }

    .popup-btn {
        align-self: center;
    }
}