@charset "utf-8";

/* =========================== PAGE SETUP */
.pagecommon { position: relative; padding-bottom: 80px; font-size: 15px; color: #777; font-family: var(--k-font); }
/* 상단 여백 제거를 위해 padding-top: 0 */
.pagecommon .inner { max-width: var(--mainsize); margin: 0 auto; padding: 0 15px; }

/* 헤더 여백 최소화 */
.people_header { text-align: center; padding: 10px 0 40px; } 
.people_header .tit span { font-size: 14px; font-weight: 700; color: var(--primary); font-family: var(--e-font); letter-spacing: 1px; }
.people_header .tit p { margin: 8px 0 0; font-size: 32px; font-weight: 300; color: #111; }
.people_header .tit p b { font-weight: 700; }

/* --- 담임목사 타이틀 --- */
.lead_title_area { margin-bottom: 25px; }
.lead_title_area span { font-size: 15px; font-weight: 700; color: var(--primary); font-family: var(--e-font); }
.lead_title_area p { margin: 8px 0 0 !important; font-size: 35px !important; font-weight: 300 !important; color: #111 !important; }

/* --- 레이아웃 가로 배치 --- */
.lead_flex_container { display: flex; gap: 40px; align-items: flex-start; }
.lead_left_photo { flex: 0 0 240px; text-align: center; }
.lead_photo_box img { width: 100%; border-radius: 8px; box-shadow: 5px 5px 15px rgba(0,0,0,0.05); border: 1px solid #eee; }
.lead_left_photo .name { margin-top: 15px; font-size: 20px; color: #111; }

.history_intro { 
    margin-top: 20px; line-height: 1.6; color: #666; font-size: 13px; 
    padding: 15px; background: #f8f8f8; border-left: 3px solid var(--primary); border-radius: 0 5px 5px 0;
}

/* 학력/경력 영역 */
.lead_right_info { flex: 1; position: relative; border-top: 1px solid #e1e1e1; }
.lead_right_info.cont:after { position: absolute; content: ''; top: 0; left: 110px; width: 1px; height: 100%; background: #e1e1e1; }

#history1008 .info_item { display: flex; padding: 15px 30px; border-bottom: 1px solid #e1e1e1; align-items: flex-start; }
#history1008 .info_item:nth-child(even) { background: #fcfcfc; }
#history1008 .info_item p { position: relative; width: 100px; margin-right: 40px; font-size: 19px; font-weight: 700; color: #111; flex-shrink: 0; line-height: 1.2; }
#history1008 .info_item p:after { position: absolute; content: ''; z-index: 10; top: 8px; right: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

.detail_list { list-style: none; padding: 0; margin: 0; }
.detail_list li { font-size: 14px; color: #555; margin-bottom: 5px; line-height: 1.5; text-align: left; }

/* --- 스태프 그리드 (5열) --- */
.staff_section { margin-top: 60px; }
.category_title { font-size: 19px; color: #111; margin-bottom: 20px; border-bottom: 1px solid #e1e1e1; }
.category_title span { border-bottom: 2px solid var(--primary); padding-bottom: 8px; display: inline-block; margin-bottom: -1.5px; font-weight: 700; }

.staff_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.img_wrap { overflow: hidden; border-radius: 6px; aspect-ratio: 3/3.8; background: #f0f0f0; width: 100%; border: 1px solid #eee; }
.img_wrap img { width: 100%; height: 100%; object-fit: cover; }
.info_wrap { padding: 10px 0; text-align: center; }
.info_wrap .name { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 5px; }
.roles span { font-size: 11px; color: var(--primary); background: #f2f5fa; padding: 1px 6px; border-radius: 3px; margin: 1px; display: inline-block; border: 1px solid #e2e8f0; }

/* 반응형 */
@media(max-width:991px){
    .lead_flex_container { display: block; }
    .lead_left_photo { width: 100%; max-width: 240px; margin: 0 auto 30px; }
    .staff_grid { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:480px){
    .lead_right_info.cont:after { display: none; }
    #history1008 .info_item p { width: 70px; margin-right: 20px; font-size: 17px; }
    .staff_grid { grid-template-columns: repeat(2, 1fr); }
}