@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 기본 초기화 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }
body { background-color: #fff; color: #333; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.inner { max-width: 1200px; margin: 0 auto; width: 100%; padding: 0 20px; }
.material-symbols-outlined { vertical-align: middle; }

/* 1. 헤더 영역 (유틸리티 바 & 검색창) */
.portal-header { border-bottom: 1px solid #ddd; background: #fff; }
.top-util { padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.top-util .inner { display: flex; justify-content: space-between; align-items: center; }

/* 로고 스타일 */
.logo-area .logo { font-size: 1.6rem; font-weight: 800; color: #112e51; display: flex; align-items: center; gap: 8px; letter-spacing: -1px; }
.logo-icon { color: #1a4da0; font-size: 2.2rem; }

/* 우측 유틸 메뉴 및 검색창 */
.util-area { display: flex; align-items: center; font-size: 0.85rem; color: #555; gap: 12px; }
.util-area a { display: flex; align-items: center; gap: 4px; }
.util-area a:hover { color: #112e51; font-weight: 600; }
.divider { color: #ccc; font-size: 0.8rem; }
.icon-sm { font-size: 1.1rem; }

.search-box { display: flex; align-items: center; border: 1px solid #bbb; border-radius: 20px; padding: 3px 15px; margin-left: 15px; background: #fff; transition: border 0.3s; }
.search-box:focus-within { border-color: #1a4da0; }
.search-box input { border: none; outline: none; padding: 6px 0; font-size: 0.85rem; width: 160px; }
.search-box button { background: none; border: none; cursor: pointer; color: #555; display: flex; align-items: center; }

/* GNB (메인 내비게이션) */
.gnb-area { padding: 12px 0; }
.gnb-area .inner { display: flex; justify-content: space-around; }
.gnb-area a { font-size: 1.1rem; font-weight: 600; color: #333; padding: 10px 20px; transition: color 0.2s; }
.gnb-area a:hover { color: #1a4da0; }

/* 2. 메인 배너 슬라이더 영역 */
.main-slider { 
    position: relative; 
    background: #0b1a30 url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=1920&q=80') center/cover; 
    height: 480px; display: flex; align-items: center; color: #fff; overflow: hidden; 
}
.main-slider::before { 
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%; 
    background: linear-gradient(to right, rgba(11,26,48,0.95) 20%, rgba(11,26,48,0.3) 100%); z-index: 1; 
}

.slide-item { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 80px; }
.sub-text { font-size: 1.3rem; font-weight: 400; margin-bottom: 10px; color: #e0eaff; }
.main-text { font-size: 3.2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; letter-spacing: -1.5px; }
.main-text span { color: #00e5ff; font-size: 3.5rem; }

.slide-bullets { margin-bottom: 35px; font-size: 1.1rem; }
.slide-bullets li { position: relative; padding-left: 15px; margin-bottom: 8px; color: #d0dcf0; font-weight: 300; }
.slide-bullets li::before { content: '✓'; position: absolute; left: 0; color: #00e5ff; font-weight: bold; }

.btn-more { display: inline-flex; align-items: center; background: #fff; color: #112e51; font-weight: 800; padding: 12px 30px; font-size: 1.05rem; transition: 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-more:hover { background: #f0f0f0; transform: translateY(-2px); }

/* 슬라이더 좌우 버튼 & 하단 컨트롤 */
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.25); border: none; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; transition: 0.3s; }
.slide-btn:hover { background: rgba(255,255,255,0.5); }
.slide-btn.prev { left: 3%; }
.slide-btn.next { right: 3%; }

.slide-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; background: rgba(0,0,0,0.6); border-radius: 20px; padding: 6px 18px; gap: 12px; }
.page-num { font-size: 0.95rem; font-weight: 600; letter-spacing: 2px; }
.pause-btn { background: #888; border: none; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; }

/* 3. 하단 2단 분할 게시판 */
.board-section { padding: 60px 0; background: #fdfdfd; }
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }

.board-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #222; padding-bottom: 15px; margin-bottom: 15px; }
.title-group { display: flex; align-items: baseline; gap: 15px; }
.title-group h3 { font-size: 1.4rem; color: #112e51; font-weight: 800; }
.title-group .sub-title { font-size: 0.95rem; color: #888; }
.btn-plus { color: #888; border: 1px solid #ddd; border-radius: 50%; width: 28px; height: 28px; display: flex; justify-content: center; align-items: center; transition: 0.2s; }
.btn-plus:hover { background: #f0f0f0; color: #112e51; border-color: #112e51; }

.board-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid #eee; font-size: 1.05rem; color: #444; }
.board-list li:last-child { border-bottom: none; }
.board-list li a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 20px; }
.board-list li a:hover { text-decoration: underline; color: #1a4da0; font-weight: 500; }
.board-list li .date { font-size: 0.95rem; color: #888; width: 90px; text-align: right; }


/* =========================================
   서브 페이지(Sub Page) 전용 스타일 추가
========================================= */
.sub-header-bg { background: #112e51; color: white; padding: 60px 0; text-align: center; margin-bottom: 50px; }
.sub-header-bg h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.sub-header-bg p { font-size: 1.1rem; color: #b0c4de; margin-top: 10px; }

.sub-content { max-width: 1000px; margin: 0 auto 80px; padding: 0 20px; }
.section-title { font-size: 1.8rem; color: #112e51; border-left: 5px solid #1a4da0; padding-left: 15px; margin-bottom: 25px; font-weight: 700; }

/* 3단 정보 박스 (about.html) */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.info-card { background: #f8f9fa; border: 1px solid #e9ecef; padding: 30px; border-radius: 8px; text-align: center; }
.info-card .material-symbols-outlined { font-size: 3rem; color: #1a4da0; margin-bottom: 15px; }
.info-card h4 { font-size: 1.2rem; margin-bottom: 10px; color: #333; }
.info-card p { font-size: 0.95rem; color: #666; word-break: keep-all; }

/* 데이터 테이블 (participate.html) */
.data-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; border-top: 2px solid #112e51; }
.data-table th, .data-table td { padding: 15px; border-bottom: 1px solid #ddd; text-align: left; }
.data-table th { background: #f4f6f9; color: #112e51; font-weight: 600; width: 25%; }
.data-table td { color: #444; line-height: 1.6; }

/* 투트랙 절차 박스 (process.html) */
.track-container { display: flex; gap: 30px; margin-bottom: 40px; }
.track-box { flex: 1; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.track-title { background: #1a4da0; color: white; padding: 15px; text-align: center; font-weight: bold; font-size: 1.2rem; }
.track-step { padding: 20px; border-bottom: 1px dashed #eee; display: flex; align-items: center; gap: 15px; }
.track-step:last-child { border-bottom: none; }
.step-badge { background: #eef2f9; color: #1a4da0; font-weight: bold; padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; }

/* 타임라인 (schedule.html) */
.timeline-wrap { position: relative; padding-left: 30px; border-left: 3px solid #1a4da0; margin-left: 20px; }
.time-node { position: relative; margin-bottom: 40px; }
.time-node::before { content: ''; position: absolute; left: -39px; top: 0; width: 15px; height: 15px; background: white; border: 4px solid #1a4da0; border-radius: 50%; }
.time-date { font-weight: bold; color: #e65100; font-size: 1.1rem; margin-bottom: 5px; }
.time-desc { background: #f8f9fa; padding: 15px 20px; border-radius: 5px; border: 1px solid #eee; margin-top: 10px; }

/* FAQ 리스트 (faq.html) */
.faq-wrap { border-top: 2px solid #112e51; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-q { padding: 20px 15px; font-weight: 600; cursor: pointer; display: flex; gap: 10px; align-items: center; color: #333; }
.faq-q::before { content: 'Q'; color: #1a4da0; font-size: 1.5rem; font-weight: 800; }
.faq-a { padding: 0 20px 20px 40px; color: #555; line-height: 1.7; display: block; }

/* =========================================
   메인 요약 정보 섹션 (게시판 대체)
========================================= */
.summary-section { padding: 80px 0; background: #f4f6f9; }
.summary-header { text-align: center; margin-bottom: 50px; }
.summary-header h2 { font-size: 2.2rem; color: #112e51; font-weight: 800; margin-bottom: 12px; letter-spacing: -1px; }
.summary-header p { font-size: 1.1rem; color: #666; }

/* 반응형 3단 그리드 (아이템 5개 배치 최적화) */
.summary-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}

/* 개별 요약 카드 디자인 */
.summary-card { 
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
    background: #fff; 
    padding: 30px; 
    border-radius: 12px; 
    border: 1px solid #e0e5ec; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: all 0.3s ease; 
    position: relative; 
    overflow: hidden;
}

.summary-card:hover { 
    transform: translateY(-8px); 
    border-color: #1a4da0; 
    box-shadow: 0 12px 30px rgba(26,77,160,0.1); 
}

.card-icon { 
    background: #eef2f9; 
    color: #1a4da0; 
    width: 65px; 
    height: 65px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    flex-shrink: 0; 
}
.card-icon span { font-size: 2rem; }

.card-content h3 { font-size: 1.3rem; color: #112e51; font-weight: 800; margin-bottom: 10px; }
.card-content p { font-size: 0.95rem; color: #555; line-height: 1.6; word-break: keep-all; }

/* 우측 하단 화살표 아이콘 */
.arrow-icon { position: absolute; right: 20px; bottom: 20px; color: #d0dcf0; transition: color 0.3s, transform 0.3s; }
.summary-card:hover .arrow-icon { color: #1a4da0; transform: translateX(5px); }

/* =========================================
   하단 푸터 (Footer) 전용 스타일
========================================= */
.portal-footer { background: #1a232f; color: #8a9cb0; padding: 45px 0; font-size: 0.95rem; border-top: 3px solid #112e51; }
.portal-footer .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 푸터 상단 링크 (이용약관 등) */
.footer-links { display: flex; gap: 25px; border-bottom: 1px solid #2a3746; padding-bottom: 20px; margin-bottom: 25px; }
.footer-links a { color: #b0c4de; text-decoration: none; transition: color 0.2s; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-links a.privacy { color: #00e5ff; font-weight: 800; } /* 개인정보처리방침 강조 */

/* 푸터 하단 정보 영역 */
.footer-info { display: flex; justify-content: space-between; align-items: flex-end; }
.info-text p { margin-bottom: 8px; line-height: 1.5; color: #7b8d9f; }
.info-text .divider { margin: 0 10px; color: #3a4756; }
.info-text .copyright { margin-top: 15px; font-size: 0.85rem; color: #5a6b7d; }

/* 우측 워터마크 느낌의 로고 */
.footer-logo { opacity: 0.1; }
.footer-logo .icon-large { font-size: 5rem; color: #fff; }

/* 모바일 대응 */
@media (max-width: 768px) {
    .footer-links { flex-wrap: wrap; gap: 15px; justify-content: center; }
    .footer-info { flex-direction: column; align-items: center; text-align: center; }
    .footer-logo { display: none; } /* 모바일에서는 로고 숨김 */
}

/* 모바일 및 태블릿 대응 */
@media (max-width: 1024px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .summary-section { padding: 50px 0; }
    .summary-grid { grid-template-columns: 1fr; gap: 15px; }
    .summary-card { padding: 25px; }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .info-grid, .track-container { grid-template-columns: 1fr; flex-direction: column; }
    .data-table th, .data-table td { display: block; width: 100%; }
    .data-table th { background: #eef2f9; }
}


/* 반응형 모바일 최적화 */
@media (max-width: 900px) {
    .board-grid { grid-template-columns: 1fr; gap: 40px; }
    .top-util .util-area { display: none; } /* 모바일에서 상단 유틸 메뉴 숨김 */
    .gnb-area { overflow-x: auto; white-space: nowrap; }
    .gnb-area .inner { justify-content: flex-start; gap: 15px; }
    .main-text { font-size: 2.2rem; }
    .main-text span { font-size: 2.4rem; }
    .slide-item { padding: 0 40px; }
    .slide-btn { display: none; }
}