/* 기본 설정 (변수 사용으로 색상 관리 용이) */
:root {
    --primary-color: #0F84AA;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #232323;
    --white: #ffffff;
    --font-main: 'NexonLv2Gothic', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); color: var(--text-color); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* 유틸리티 클래스 */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.btn { display: inline-block; padding: 10px 20px; background: var(--primary-color); color: var(--white); border-radius: 4px; }
.btn:hover { background: #0b6a8a; }

/* 1. 헤더 */
.site-header { padding: 20px 0; border-bottom: 1px solid #ddd; }
.logo a { font-size: 24px; font-weight: bold; text-transform: uppercase; }
.main-nav a { font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }
.mobile-only { display: none; }

/* 2. 히어로 섹션 */
.hero { 
    height: 400px; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
    position: relative;
    color: var(--white);
}
.hero::after { /* 배경 어둡게 처리 */
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}
.hero-content { position: relative; z-index: 1; padding: 20px; background: rgba(0,0,0,0.6); border-radius: 8px; }
.hero .title { font-size: 3rem; margin-bottom: 10px; }

/* 3. 섹션 공통 */
section { padding: 60px 0; }
.intro { max-width: 700px; margin: 0 auto 50px; }
.intro h3 { margin-bottom: 20px; font-size: 1.8rem; }

/* 카드 디자인 */
.card { background: var(--white); padding: 30px; border: 1px solid #eee; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.card h4 { margin-bottom: 15px; color: var(--primary-color); }

/* 4. 강조 섹션 (가정예배) */
.highlight-section { background-attachment: fixed; background-size: cover; color: var(--text-color); }
.split-layout { display: flex; justify-content: flex-end; }
.text-box { background: rgba(255,255,255,0.9); padding: 40px; width: 100%; max-width: 600px; border-radius: 8px; }
.link-list li { margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 5px; }

/* 5. 푸터 */
.site-footer { background: var(--bg-dark); color: #999; padding-top: 60px; }
.site-footer h3, .site-footer h4 { color: var(--white); margin-bottom: 20px; }
.copyright { border-top: 1px solid #444; margin-top: 40px; padding: 20px 0; font-size: 0.9rem; }

/* 모바일 반응형 */
@media (max-width: 768px) {
    .main-nav { display: none; } /* JS로 토글 예정 */
    .mobile-only { display: block; background: none; border: none; font-size: 24px; cursor: pointer; }
    .hero { height: 300px; }
    .hero .title { font-size: 2rem; }
}

/* style.css 상단에 기존 코드 유지 후 아래 내용 추가/수정 */

/* --- 1. 네비게이션 (메뉴 구조 반영) --- */
.main-nav ul { gap: 15px; }
.main-nav a { font-size: 0.95rem; font-weight: 600; }

/* --- 2. 서브 페이지 공통 헤더 --- */
.page-header {
    background: #f4f4f4; padding: 40px 0; text-align: center; margin-bottom: 40px;
}
.page-header h2 { font-size: 2rem; color: var(--text-color); margin-bottom: 10px; }
.page-header p { color: #666; }

/* --- 3. 게시판/목록 스타일 (소식, 게시판, 자료실용) --- */
.board-list { width: 100%; border-top: 2px solid var(--text-color); }
.board-list li {
    display: flex; justify-content: space-between; padding: 15px 0;
    border-bottom: 1px solid #ddd; align-items: center;
}
.board-list .date { color: #888; font-size: 0.9rem; min-width: 100px; text-align: right; }
.board-list a:hover { text-decoration: underline; color: var(--primary-color); }

/* --- 4. 연대기 (Timeline) 스타일 --- */
.timeline { position: relative; padding-left: 20px; border-left: 2px solid #ddd; margin-left: 10px; }
.timeline-item { margin-bottom: 30px; position: relative; }
.timeline-item::before {
    content: ""; position: absolute; left: -26px; top: 5px;
    width: 10px; height: 10px; background: var(--primary-color); border-radius: 50%;
}
.timeline-year { font-weight: bold; color: var(--primary-color); margin-bottom: 5px; display: block; }

/* --- 5. 캘린더 (일정) 스타일 --- */
.event-card {
    display: flex; border: 1px solid #eee; border-radius: 8px; overflow: hidden; margin-bottom: 20px;
}
.event-date {
    background: var(--primary-color); color: white; padding: 20px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 80px;
}
.event-date .day { font-size: 1.5rem; font-weight: bold; }
.event-info { padding: 20px; flex-grow: 1; }

/* --- 6. 갤러리 그리드 --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.gallery-item { aspect-ratio: 1/1; overflow: hidden; border-radius: 4px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }