/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: #333;
}

/* Section Styles */
section {
    padding: 80px 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a3353;
    margin-bottom: 12px;
    opacity: 0;
}

.section-title.animate {
    animation: fadeInOnlyBlur 0.6s ease-out forwards;
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    opacity: 0;
}

.section-subtitle.animate {
    animation: fadeInOnlyBlur 0.6s ease-out 0.1s forwards;
}

/* FAQ 섹션은 애니메이션 없이 바로 표시 */
.faq-section .section-title,
.faq-section .section-subtitle {
    opacity: 1;
}

/* 흐릿했다가 명료해지는 페이드인 애니메이션 */
@keyframes fadeInOnlyBlur {
    0% {
        opacity: 0;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 20px 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a3353;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 36px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* 스크롤바 스타일 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.modal-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a3353;
    margin: 24px 0 12px 0;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-body ul,
.modal-body ol {
    margin: 12px 0 16px 20px;
    padding-left: 20px;
}

.modal-body li {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }

    .modal-content {
        width: 95%;
        margin: 0 auto;
        height: 90vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-body h3 {
        font-size: 16px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 14px;
    }
}

/* 초소형 모바일 (Z폴드 외부 화면) */
@media (max-width: 400px) {
    .modal-content {
        width: 95%;
        padding: 20px 15px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .button-group button,
    .btn-group .btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .modal-body p,
    .modal-body li {
        font-size: 13px;
    }
}

/* Updated: 2025-01-20 - 슬라이드 제거, 블러 페이드인만 적용 */