/* 팝업 스타일 개선 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.popup-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.9));
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(46, 139, 87, 0.15);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: popup-fade-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(46, 139, 87, 0.2);
}

@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(221, 221, 221, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: linear-gradient(to right, rgba(46, 139, 87, 0.9), rgba(70, 130, 180, 0.8));
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.popup-header h2 {
    margin: 0;
    color: white;
    font-size: 1.7rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popup-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.popup-close:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-content {
    padding: 2.5rem;
}

.popup-section {
    margin-bottom: 2rem;
}

.popup-section:last-child {
    margin-bottom: 0;
}

.popup-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.popup-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.popup-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.popup-section li {
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 0.5rem;
}

.popup-section li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.popup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.popup-feature {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.popup-feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.popup-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.popup-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.popup-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(221, 221, 221, 0.5);
}

.popup-cta .btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.popup-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 팝업 활성화 시 스크롤 방지 */
body.popup-open {
    overflow: hidden;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .popup-container {
        max-width: 95%;
    }
    
    .popup-header {
        padding: 1rem 1.5rem;
    }
    
    .popup-content {
        padding: 1.5rem;
    }
    
    .popup-grid {
        grid-template-columns: 1fr;
    }
}
