/* =================================== */
/* Introduction Page                   */
/* =================================== */

/* --- 섹션 1: Hero --- */
.intro-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://bebcon.kr/uploads/hosting/1757515232676-2025-09-10_23.39.26.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 90px 0;
    text-align: center;
}

.intro-hero h1 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: -20px;
    letter-spacing: -1px;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.intro-hero p {
    font-size: 1.4em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* --- 공통 섹션 스타일 --- */
.intro-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.intro-section:last-child {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.section-header p {
    font-size: 1.1em;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* --- 카드 레이아웃 (국가소개, 활동소개) --- */
.region-cards, .activity-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: white;
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius-base);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card .card-icon {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    background-color: #eef7ff;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.card h3 {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.card p {
    color: var(--text-color-light);
    line-height: 1.7;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

/* --- 섹션 3: 입국 절차 (수정됨) --- */
.entry-procedure {
    background-color: #f8f9fa;
}

.steps-container {
    display: flex; /* [수정] Flexbox로 변경하여 너비 계산 정밀도 향상 */
    align-items: stretch;
    gap: 20px;
}

.step {
    flex: 1; /* [수정] 모든 step 요소가 동일한 공간을 차지하도록 설정 */
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    text-align: center;
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-base);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 0; 
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.step-icon {
    font-size: 2.5em;
    color: white;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    margin-bottom: 25px;
}

.step h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.step p {
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: auto; 
    padding-bottom: 30px;
    flex-grow: 1;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #ccc;
}

.server-address {
    display: flex;
    width: 100%; 
}

#server-address-input {
    flex-grow: 1;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius-small, 4px) 0 0 var(--border-radius-small, 4px);
    padding: 10px 15px;
    font-weight: 600;
    background-color: #f8f9fa;
    text-align: center;
    font-size: 1rem;
    box-sizing: border-box;
    height: 48px;
    min-width: 0;
}

#copy-address-btn {
    flex-shrink: 0;
    border-radius: 0 var(--border-radius-small, 4px) var(--border-radius-small, 4px) 0;
    box-sizing: border-box;
    height: 48px;
    width: 48px;
    font-size: 1.1rem;
}

/* --- 섹션 5: FAQ --- */
.faq-section {
    background-color: #f8f9fa;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container details {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small, 4px);
    margin-bottom: 15px;
    transition: border-color 0.2s;
}

.faq-container details[open] {
    border-color: var(--primary-color);
}

.faq-container summary {
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.15em;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

.faq-container summary::-webkit-details-marker {
    display: none;
}

.faq-container details summary i {
    font-size: 1em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-container details[open] summary i {
    transform: rotate(45deg);
}

.faq-container details p {
    padding: 0 25px 25px;
    line-height: 1.8;
    color: var(--text-color-light);
    border-top: 1px solid var(--border-color);
    margin: 0;
    padding-top: 20px;
    /* [수정] 폰트 스택 통일 */
    font-family: "Pretendard GOV Variable", "Pretendard GOV", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

/* --- 반응형 (수정됨) --- */
@media (max-width: 860px) {
    .steps-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .step-arrow {
        display: none; 
    }
    .step {
        width: 100%;
        max-width: 500px; 
    }
    .server-address {
        /* [수정] 모바일에서 부모 너비에 맞추고 최대 너비를 지정합니다. */
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .intro-hero h1 {
        font-size: 2.5em;
        word-break: keep-all;
        max-width: 8em;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.3;
    }
    .intro-hero p {
        margin-top: 30px;
        font-size: 1.2em;
        word-break: keep-all;
        max-width: 12em;
        margin-left: auto;
        margin-right: auto;
    }
    .intro-section {
        padding: 60px 0;
    }
    .section-header h2 {
        font-size: 2em;
    }
}