/* 기본 초기화 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.header { position: absolute; top: 0; left: 0; width: 100%; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.2); }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 20px; }
.logo img { height: 100px;
/*  filter: grayscale(100%) invert(0); */
    mix-blend-mode: screen;} /* 로고를 흰색으로 */
.gnb ul { display: flex; gap: 60px; }
.gnb a { color: #fff; font-size: 1.1rem; font-weight: 500; transition: color 0.3s; }
.gnb a:hover { color: #dcfce7; } /* 호버시 연한 그린 */
.highlight-link { color: #fee2e2 !important; font-weight: 700; } /* 힐링센터는 연한 레드로 강조 */

/* 메인 비디오 영역 */
.hero-visual { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(0.4); }
.hero-content { text-align: center; color: #fff; z-index: 1; padding: 0 20px; }
.verse-text { font-family: 'Nanum Myeongjo', serif; font-size: 2.8rem; font-weight: 800; line-height: 1.5; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); min-height: 130px; }
.verse-ref { font-size: 1.2rem; margin-top: 20px; color: #ccc; }
.slogan { margin-top: 50px; font-size: 1.5rem; font-weight: 700; color: #e0f2fe; opacity: 0; transform: translateY(20px); animation: fadeInUp 1s forwards; animation-delay: 5s; }
.cursor { display: inline-block; width: 3px; height: 1em; background-color: #fff; margin-left: 5px; vertical-align: bottom; animation: blink 1s infinite; }

/* 퀵 메뉴 영역 (요청하신 그라데이션 적용 부분) */
/* 블루(#e0f2fe) -> 그린(#dcfce7) -> 레드(#fee2e2) 파스텔톤 그라데이션 */
.quick-menu-section { background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 50%, #fee2e2 100%); padding: 60px 0; }
.quick-inner { display: flex; justify-content: center; gap: 30px; max-width: 1200px; margin: 0 auto; flex-wrap: wrap; }
.quick-item { background: #fff; width: 220px; padding: 30px 20px; text-align: center; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: transform 0.3s; }
.quick-item:hover { transform: translateY(-10px); }
.quick-item .img-box { width: 100px; height: 80px; margin: 0 auto 20px; border-radius: 50%; background: #f8f9fa; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.quick-item img { max-width: 60%; max-height: 60%; object-fit: contain; }
.quick-item p { font-size: 1.1rem; font-weight: 700; color: #333; }
.quick-item.highlight p { color: #e65c5c; }

/* 담임목사님 & 유튜브 영역 */
.pastor-sermon-section { padding: 100px 20px; background-color: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.pastor-sermon-section .container { display: flex; gap: 60px; flex-wrap: wrap; }
.pastor-wrap { flex: 1; min-width: 300px; text-align: center; }
.pastor-img { width: 240px; height: 290px; margin: 0 auto 25px; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.pastor-img img { width: 100%; height: 100%; object-fit: cover; }
.pastor-info h3 { font-size: 1.8rem; margin-bottom: 5px; }
.pastor-info .subtitle { color: #888; font-size: 1rem; margin-bottom: 20px; }
.pastor-info .greeting { font-size: 1.1rem; line-height: 1.8; color: #555; }

.sermon-wrap { flex: 1.5; min-width: 400px; }
.section-title { font-size: 1.8rem; margin-bottom: 25px; font-weight: 700; border-bottom: 2px solid #222; padding-bottom: 10px; display: inline-block; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 15px; background: #000; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.btn-right { text-align: right; margin-top: 15px; }
.btn-youtube { display: inline-block; padding: 10px 20px; background-color: #f1f1f1; border-radius: 30px; font-size: 0.95rem; font-weight: 700; transition: background 0.3s; }
.btn-youtube:hover { background-color: #e2e2e2; }

/* 섬기는 사람들 영역 */
.ministers-section { 
    padding: 80px 20px; 
    background-color: #fafafa; 
}

.section-title-center { 
    text-align: center; 
    font-size: 2rem; 
    margin-bottom: 50px; 
    font-weight: 700; 
    color: #1e293b;
}

/* [수정됨] 줄 단위 배치 스타일 */
.ministers-row {
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    gap: 40px; /* 카드 사이 간격 */
    margin-bottom: 40px; /* 윗줄과 아랫줄 사이 간격 */
    flex-wrap: wrap; /* 모바일에서 좁아지면 줄바꿈 허용 */
}

/* 카드 스타일 */
.minister-card { 
    text-align: center; 
    width: 220px; 
}

.minister-card img { 
    width: 220px; 
    height: 280px; 
    object-fit: cover; 
    border-radius: 15px; 
    margin-bottom: 15px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08); 
    transition: transform 0.3s; /* 마우스 올렸을 때 효과 추가 */
}

.minister-card img:hover {
    transform: translateY(-5px); /* 살짝 떠오르는 효과 */
}

.minister-card h4 { 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: #333; 
    margin: 0;
}

/* [모바일 반응형] 화면이 좁을 때 (스마트폰) */
@media screen and (max-width: 768px) {
    .ministers-row {
        gap: 20px; /* 모바일에서는 간격 좁힘 */
        margin-bottom: 20px;
    }
    .minister-card {
        width: 45%; /* 모바일에서는 한 줄에 2명씩 나오게 */
    }
    .minister-card img {
        width: 100%; /* 카드 너비에 맞춤 */
        height: auto;
        aspect-ratio: 3/4; /* 비율 유지 */
    }
}

/* 푸터 영역 */
.footer { background-color: #222; color: #999; padding: 50px 20px; border-top: 5px solid #dcfce7; /* 상단에 연한 그린 포인트 */ }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 50px; align-items: center; flex-wrap: wrap; }
.footer-logo img { height: 60px; filter: grayscale(100%) opacity(50%); }
.footer-info p { margin-bottom: 8px; font-size: 0.95rem; }
.copyright { margin-top: 20px; font-size: 0.85rem; color: #666; }
/* =========================================
   주일설교 썸네일 & 재생 버튼 스타일
========================================= */
.sermon-link {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.sermon-img {
    width: 99%; height: 98%;
    object-fit: cover; /* 이미지가 잘리지 않고 꽉 차게 */
    transition: transform 0.4s ease;
}

/* 마우스 올렸을 때 이미지 살짝 확대되는 효과 */
.sermon-link:hover .sermon-img {
    transform: scale(1.05);
}

/* 중앙 빨간색 재생 버튼 */
.play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; height: 70px;
    background-color: rgba(214, 25, 25, 0.85); /* 유튜브 빨간색 반투명 */
    color: #fff;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    padding-left: 5px; /* 화살표 시각적 중앙 정렬 */
    transition: background-color 0.3s ease;
    z-index: 2;
}

/* 마우스 올렸을 때 재생 버튼 쨍한 빨간색으로 변경 */
.sermon-link:hover .play-icon {
    background-color: rgba(255, 0, 0, 1);
}
/* =========================================
   서브 페이지 공통 스타일 
========================================= */
.header.sub-header { position: relative; background-color: linear-gradient(135deg, #0c4a6e 0%, #065f46 50%, #7f1d1d 100%); border-bottom: none; }
.sub-title-bg { background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%); padding: 60px 20px; text-align: center; }
.sub-title-bg h2 { font-size: 2.5rem; color: #222; font-family: 'Nanum Myeongjo', serif; font-weight: 800; }
.content-area { max-width: 1000px; margin: 60px auto; padding: 0 20px; min-height: 400px; }

/* 예배안내 표 스타일 */
.worship-table { width: 100%; border-collapse: collapse; margin-top: 20px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.worship-table th, .worship-table td { border: 1px solid #ddd; padding: 18px; font-size: 1.1rem; }
.worship-table th { background-color: #f1f5f9; font-weight: 700; color: #333; }
.worship-table tr:hover { background-color: #f8fafc; }

/* 힐링센터 스타일 */
.healing-hero img { width: 100%; border-radius: 15px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 40px; }
.healing-intro { text-align: center; margin-bottom: 50px; }
.healing-intro h3 { font-size: 2rem; margin-bottom: 15px; font-family: 'Nanum Myeongjo', serif; }
.healing-intro p { font-size: 1.1rem; color: #555; line-height: 1.8; }

.director-card { display: flex; align-items: center; gap: 40px; background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.08); margin-bottom: 50px; flex-wrap: wrap; }
.director-card img { width: 180px; height: 240px; object-fit: cover; border-radius: 10px; }
.director-info h4 { font-size: 1.5rem; color: #222; margin-bottom: 10px; }
.director-info .role { color: #e65c5c; font-weight: bold; margin-bottom: 15px; display: inline-block; }

.healing-services { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.service-box { flex: 1; min-width: 200px; background: #334155; color: #fff; padding: 25px; text-align: center; border-radius: 10px; font-weight: 700; font-size: 1.2rem; transition: background 0.3s; }
.service-box:hover { background: #475569; }

/* 오시는 길 지도 스타일 */
.map-wrap { border-radius: 15px; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin-bottom: 30px; }
.address-box { text-align: center; background: #f8f9fa; padding: 40px; border-radius: 15px; border: 1px solid #e2e8f0; }
.address-box h3 { font-size: 1.5rem; color: #222; margin-bottom: 15px; }
.address-box p { font-size: 1.2rem; color: #555; }
/* =========================================
   예배안내 - 주보 영역 스타일 
========================================= */
.bulletin-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed #e2e8f0; /* 표와 주보 사이 점선 구분선 */
    text-align: center;
}

.bulletin-title {
    font-size: 1.8rem;
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 800;
    margin-bottom: 30px;
    color: #222;
}

.bulletin-container {
    max-width: 800px; /* 주보 최대 크기 제한 */
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* 부드러운 그림자 */
}

.bulletin-img {
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    margin-bottom: 25px;
}

/* 주보 다운로드 버튼 */
.btn-download {
    display: inline-block;
    padding: 15px 30px;
    background-color: #334155;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(51, 65, 85, 0.3);
}

.btn-download:hover {
    background-color: #0f172a;
    transform: translateY(-3px); /* 마우스 올리면 살짝 위로 뜹니다 */
}
/* ==========================================================================
   [새로 추가] 힐링센터 하단 기능 - 자가진단 & 상담신청 (포근한 디자인 적용)
========================================================================== */

/* 1. 자가진단 테스트 섹션 (기존 분위기와 어울리는 부드러운 디자인) */
.healing-test-section-cozy {
    margin-top: 80px;
    padding: 40px;
    background: linear-gradient(135deg, #f9faff 0%, #f0f7ff 100%); /* 아주 연한 하늘색 그라데이션 */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* 은은한 그림자 */
}

/* 탭 버튼 스타일 */
.cozy-tabs { display: flex; gap: 15px; justify-content: center; margin-bottom: 35px; flex-wrap: wrap; }
.cozy-tab-btn {
    background: #fff; color: #555; border: 2px solid #e0e7ff; padding: 12px 30px;
    font-size: 1.05rem; font-weight: bold; border-radius: 30px; cursor: pointer; transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.cozy-tab-btn:hover { background: #f0f4ff; border-color: #d0dcff; transform: translateY(-2px); }
.cozy-tab-btn.active {
    background: #dbeafe; /* 연한 파란색 강조 */
    color: #1e40af;
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* 테스트 콘텐츠 영역 */
.cozy-test-content { display: none; background: #fff; padding: 35px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); animation: softFadeIn 0.5s ease-out; }
.cozy-test-content.active { display: block; }
@keyframes softFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.cozy-test-title { font-size: 1.7rem; font-family: 'Nanum Myeongjo', serif; margin-bottom: 15px; color: #222; }
.cozy-test-desc { color: #666; margin-bottom: 30px; line-height: 1.7; font-size: 1.05rem; }

/* 설문지 테이블 (부드러운 느낌) */
.cozy-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid #edf2f7; }
.cozy-table th { background: #f1f5f9; padding: 18px; color: #334155; font-weight: 700; border-bottom: 1px solid #e2e8f0; }
.cozy-table td { padding: 18px; border-bottom: 1px solid #edf2f7; background: #fff; transition: background 0.2s; }
.cozy-table td:first-child { text-align: left; font-weight: 500; color: #1e293b; }
.cozy-table tr:last-child td { border-bottom: none; }
.cozy-table tr:hover td { background-color: #fafcff; }
.cozy-table input[type="radio"] {
    appearance: none; width: 20px; height: 20px; border: 2px solid #cbd5e1; border-radius: 50%;
    cursor: pointer; display: inline-block; position: relative; top: 4px; transition: 0.2s;
}
.cozy-table input[type="radio"]:checked { border-color: #3b82f6; background-color: #3b82f6; box-shadow: inset 0 0 0 3px #fff; }

/* 결과 버튼 및 결과창 */
.btn-cozy-result {
    display: block; width: 220px; margin: 40px auto 0; padding: 15px;
    background: linear-gradient(to right, #4f83ff, #6c9aff); /* 부드러운 파란색 그라데이션 */
    color: #fff; border: none; font-size: 1.1rem; font-weight: bold; border-radius: 30px; cursor: pointer;
    transition: 0.3s; box-shadow: 0 8px 20px rgba(79, 131, 255, 0.25);
}
.btn-cozy-result:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(79, 131, 255, 0.35); }
.cozy-result-box {
    display: none; margin-top: 35px; padding: 30px; background: #ecfdf5; border: 2px solid #a7f3d0;
    border-radius: 15px; text-align: center; animation: softFadeIn 0.5s ease-out;
}
.cozy-result-box h4 { font-size: 1.4rem; color: #047857; margin-bottom: 10px; }
.cozy-result-box p { font-size: 1.1rem; color: #065f46; line-height: 1.6; }


/* 2. 마음상담 신청 섹션 (따뜻한 메모지 컨셉) */
.inquiry-section-memo {
    margin-top: 80px;
    padding: 60px 40px;
    background-color: #fffdeb; /* 연한 상아색 (종이 느낌) */
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05), inset 0 0 60px rgba(255,255,220,0.5); /* 입체감 및 안쪽 광원 */
    border: 1px solid #f0ead6; /* 종이 테두리 느낌 */
    position: relative;
}
/* 메모지 상단 테이프 장식 (선택사항 - 필요 없으면 지워도 됨) */
.inquiry-section-memo::before {
    content: ''; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 35px; background-color: rgba(255,255,255,0.7);
    border: 1px solid #e0e0e0; transform: translateX(-50%) rotate(-2deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); opacity: 0.8;
}

.inquiry-title-memo {
    text-align: center; font-size: 1.8rem; font-family: 'Nanum Myeongjo', serif; color: #5a4d41; margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}
.inquiry-desc-memo {
    text-align: center; color: #8c8175; margin-bottom: 40px; font-size: 1.05rem;
}

.inquiry-form-memo { max-width: 650px; margin: 0 auto; }
.form-group-memo { margin-bottom: 25px; }
.form-label-memo { display: block; margin-bottom: 10px; font-weight: bold; color: #6d6359; font-size: 1.05rem; }

/* 입력 필드 (손글씨 쓰기 좋은 느낌) */
.form-control-memo {
    width: 100%; padding: 18px;
    background: #fff; border: 2px solid #eaddc5; /* 부드러운 갈색 테두리 */
    border-radius: 12px; font-size: 1.05rem; color: #4a4a4a;
    transition: 0.3s; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
    font-family: 'Noto Sans KR', sans-serif; /* 깔끔한 폰트 유지 */
}
.form-control-memo:focus { outline: none; border-color: #c2b091; background: #fff; box-shadow: 0 0 0 4px rgba(194, 176, 145, 0.2); }
.form-control-memo::placeholder { color: #b0a79e; }

/* 문의 내용 칸 크게 */
textarea.form-control-memo {
    height: 250px; /* 높이를 넉넉하게 */
    resize: vertical; line-height: 1.6;
    background-image: linear-gradient(transparent, transparent 39px, #f0ead6 39px, #f0ead6 40px); /* 연한 줄 노트 느낌 */
    background-size: 100% 40px; background-attachment: local;
}

/* 신청하기 버튼 (따뜻한 느낌) */
.btn-submit-memo {
    width: 100%; padding: 18px;
    background: linear-gradient(to right, #d4a373, #b5835a); /* 따뜻한 갈색 그라데이션 */
    color: #fff; border: none; font-size: 1.2rem; font-weight: bold; border-radius: 12px;
    cursor: pointer; transition: 0.3s; box-shadow: 0 8px 20px rgba(181, 131, 90, 0.25);
}
.btn-submit-memo:hover {
    background: linear-gradient(to right, #c79265, #a8724b);
    transform: translateY(-3px); box-shadow: 0 12px 25px rgba(181, 131, 90, 0.35);
}
/* =========================================
   [새로 추가] 교회소개 (인사말) 영역 스타일
========================================= */
.about-section {
    max-width: 900px; /* 글을 읽기 가장 편안한 너비로 제한 */
    margin: 60px auto 100px;
}

/* 상단 목사님 배너 이미지 */
.about-hero {
    width: 100%;
    height: 350px;
    margin-bottom: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* 인사말 전체 컨테이너 */
.about-greeting {
    background: #fff;
    padding: 0 20px;
}

/* 인사말 헤더 (할렐루야, 성경구절, 환영제목) */
.greeting-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f5f9;
}
.hallelujah {
    font-size: 2.5rem;
    color: #1e40af; /* 깊은 파란색으로 강조 */
    font-family: 'Nanum Myeongjo', serif;
    font-weight: 800;
    margin-bottom: 20px;
}
.greeting-header .verse {
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.6;
    font-family: 'Nanum Myeongjo', serif;
    margin-bottom: 30px;
    font-style: italic;
}
.verse-ref { font-size: 0.9rem; color: #94a3b8; display: block; margin-top: 10px; font-style: normal; }
.welcome-title {
    font-size: 1.6rem;
    color: #222;
    line-height: 1.5;
    font-weight: 700;
}

/* 인사말 본문 (여백과 줄간격 조정으로 가독성 극대화) */
.greeting-body p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 25px;
    text-align: justify; /* 양쪽 정렬로 깔끔하게 */
    word-break: keep-all; /* 단어 단위로 줄바꿈 */
}

/* 인사말 하단 서명 부분 */
.greeting-footer {
    margin-top: 60px;
    text-align: right;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}
.greeting-footer p {
    font-size: 1.2rem;
    color: #1e293b;
    font-weight: 500;
    margin-bottom: 15px;
}
.pastor-sign {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}
.pastor-sign .church-name { font-size: 1.1rem; color: #64748b; }
.pastor-sign .pastor-title { font-size: 1.1rem; color: #333; }
.pastor-sign .pastor-name { font-size: 1.8rem; font-family: 'Nanum Myeongjo', serif; font-weight: 800; color: #000; }
/* =========================================
   [새로 추가] 말씀/찬양 (유튜브 영상) 스타일
========================================= */
.sermon-category-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.sermon-tab-btn { background: #fff; border: 2px solid #e2e8f0; padding: 12px 25px; border-radius: 30px; font-size: 1.1rem; font-weight: bold; color: #475569; cursor: pointer; transition: 0.3s; }
.sermon-tab-btn:hover { border-color: #94a3b8; background: #f8fafc; }
.sermon-tab-btn.active { background: #1e293b; color: #fff; border-color: #1e293b; box-shadow: 0 5px 15px rgba(30,41,59,0.2); }

.sermon-content-area { display: none; animation: softFadeIn 0.5s ease-out; }
.sermon-content-area.active { display: block; }

/* 유튜브 영상 반응형 컨테이너 (16:9 비율 유지) */
.video-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); background: #000; margin-bottom: 30px; }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.sermon-info { text-align: center; margin-bottom: 60px; }
.sermon-info h3 { font-size: 1.5rem; color: #222; margin-bottom: 10px; font-family: 'Nanum Myeongjo', serif; font-weight: 800; }
.sermon-info p { color: #64748b; font-size: 1.05rem; }

/* =========================================
   [새로 추가] 교회소식 (게시판 상세) 스타일
========================================= */
.news-board-wrap { background: #fff; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #e2e8f0; }

.news-header-box { padding: 30px 40px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.news-header-box h3 { font-size: 1.8rem; color: #1e293b; margin-bottom: 20px; font-weight: 700; }

.news-meta-table { width: 100%; border-collapse: collapse; font-size: 1rem; color: #475569; }
.news-meta-table th { text-align: left; padding: 10px 0; width: 80px; font-weight: bold; color: #334155; }
.news-meta-table td { padding: 10px 0; }
.news-meta-table tr { border-bottom: 1px dashed #cbd5e1; }
.news-meta-table tr:last-child { border-bottom: none; }

.news-body-content { padding: 50px 40px; min-height: 300px; font-size: 1.1rem; color: #333; line-height: 1.8; }
.news-body-content ol { padding-left: 20px; margin-bottom: 30px; }
.news-body-content li { margin-bottom: 10px; }
.news-point-title { font-weight: bold; color: #0f172a; margin-top: 25px; display: block; }

.news-footer-btns { padding: 20px 40px; background: #f8fafc; border-top: 1px solid #e2e8f0; text-align: right; }
.btn-list { display: inline-block; padding: 10px 25px; background: #fff; border: 1px solid #cbd5e1; border-radius: 5px; color: #475569; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-list:hover { background: #f1f5f9; color: #0f172a; }

.news-prev-next { padding: 20px 40px; background: #fff; border-top: 1px solid #e2e8f0; }
.nav-link-item { display: flex; padding: 10px 0; color: #64748b; font-size: 0.95rem; border-bottom: 1px dashed #f1f5f9; }
.nav-link-item:hover { color: #3b82f6; }
.nav-label { font-weight: bold; width: 60px; color: #94a3b8; }
/* 전체 레이아웃 */
.healing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}

/* 1. 인사말 섹션 */
.director-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.director-img {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.director-img img {
    width: 90%;
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.name-tag {
    margin-top: 15px;
}

.name-tag h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.director-message {
    flex: 2;
    min-width: 300px;
}

.director-message h3 {
    font-size: 1.6rem;
    color: #006b5e; /* 힐링 느낌의 짙은 녹색 */
    margin-bottom: 20px;
    line-height: 1.4;
}

.director-message .greeting-lead {
    font-weight: bold;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.director-message p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
}

/* 2. 센터 소개 (카드형) */
.center-intro {
    margin-bottom: 80px;
    background-color: #f9fbfb;
    padding: 40px;
    border-radius: 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.program-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card .icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00b894;
    margin-bottom: 15px;
}

.program-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2d3436;
}

.program-card p {
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.6;
}

/* 3. 갤러리 (그리드 레이아웃) */
.gallery-section {
    margin-bottom: 80px;
}

.gallery-section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4열 */
/*     grid-template-rows: repeat(2, 200px); /* 2행 */ */
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height:auto%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* 첫 번째 사진을 크게 배치 (2행 2열 차지) */
.main-photo {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .main-photo {
        grid-column: 1 / 3;
        height: 250px;
    }
}

/* 4. 상담 시간표 */
.info-section {
    text-align: center;
}

.info-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.table-container {
    overflow-x: auto; /* 모바일에서 표 짤림 방지 */
}

.time-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.time-table th, .time-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: center;
}

.time-table th {
    background-color: #006b5e;
    color: white;
    font-weight: 500;
}

.time-table td {
    color: #555;
}

.closed {
    color: #e74c3c;
    font-weight: bold;
}
/* =========================================
   [모바일 반응형] style.css 맨 아래에 추가하세요
   대상: 태블릿 (768px 이하) + 스마트폰 (480px 이하)
========================================= */

@media screen and (max-width: 768px) {

    /* ── 헤더 ── */
    .header-inner {
        flex-direction: column;   /* 로고 위, 메뉴 아래로 세로 배치 */
        padding: 12px 16px;
        gap: 8px;
    }

    .logo img {
        height: 60px;             /* 로고 크기 줄이기 */
    }

    .gnb ul {
        gap: 12px;                /* 메뉴 간격 줄이기 (60px → 12px) */
        flex-wrap: wrap;          /* 메뉴가 넘치면 줄바꿈 */
        justify-content: center;
    }

    .gnb a {
        font-size: 0.85rem;       /* 글자 크기 줄이기 */
    }

    /* ── 히어로 (메인 비디오 영역) ── */
    .hero-visual {
        height: 100svh;           /* 모바일 주소창 높이 고려 */
    }

    .verse-text {
        font-size: 1.6rem;        /* 2.8rem → 1.6rem */
        min-height: 80px;
        word-break: keep-all;
    }

    .verse-ref {
        font-size: 0.95rem;
        margin-top: 12px;
    }

    .slogan {
        font-size: 1.0rem;
        margin-top: 24px;
    }

    /* ── 퀵 메뉴 ── */
    .quick-inner {
        gap: 16px;
        padding: 0 16px;
    }

    .quick-item {
        width: calc(50% - 8px);   /* 한 줄에 2개씩 */
        padding: 20px 12px;
    }

    /* ── 담임목사 + 유튜브 영역 ── */
    .pastor-sermon-section {
        padding: 60px 16px;
    }

    .pastor-sermon-section .container {
        flex-direction: column;
        gap: 40px;
    }

    .pastor-wrap,
    .sermon-wrap {
        min-width: unset;
        width: 100%;
    }

    /* ── 섬기는 사람들 ── */
    .ministers-section {
        padding: 60px 16px;
    }

    /* ── 푸터 ── */
    .footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    /* ── 서브페이지 공통 ── */
    .sub-title-bg h2 {
        font-size: 1.8rem;
    }

    .content-area {
        margin: 30px auto;
        padding: 0 16px;
    }

    /* ── 예배 시간표 ── */
    .worship-table th,
    .worship-table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }

    /* ── 교회소개 ── */
    .about-hero {
        height: 220px;
    }

    .hallelujah {
        font-size: 1.8rem;
    }

    .welcome-title {
        font-size: 1.2rem;
    }

    .greeting-body p {
        font-size: 1rem;
    }

    /* ── 힐링센터 ── */
    .director-section {
        flex-direction: column;
    }

    .director-img {
        min-width: unset;
    }

    .director-message {
        min-width: unset;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .main-photo {
        grid-column: 1 / 3;
    }

    /* ── 교회소식 게시판 ── */
    .news-header-box {
        padding: 20px 16px;
    }

    .news-body-content {
        padding: 30px 16px;
    }

    .news-footer-btns,
    .news-prev-next {
        padding: 16px;
    }
}

/* ── 스마트폰 (480px 이하) 추가 보정 ── */
@media screen and (max-width: 480px) {

    .gnb ul {
        gap: 8px;
    }

    .gnb a {
        font-size: 0.78rem;
    }

    /* 힐링센터 메뉴가 너무 길 때 줄바꿈 처리 */
    .highlight-link {
        font-size: 0.75rem !important;
    }

    .verse-text {
        font-size: 1.35rem;
    }

    .quick-item {
        width: 100%;              /* 스마트폰에서는 1열로 */
    }

    .section-title-center {
        font-size: 1.5rem;
    }

    .minister-card {
        width: 45%;
    }
}
/* 애니메이션 */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
    .healing-shortcut-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        padding: 10px 20px;
        background-color: #fee2e2;
        color: #e65c5c;
        font-weight: 700;
        font-size: 0.95rem;
        border-radius: 30px;
        box-shadow: 0 5px 15px rgba(230, 92, 92, 0.15);
        transition: all 0.3s;
    }
    .healing-shortcut-btn:hover {
        background-color: #fecaca;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(230, 92, 92, 0.25);
    }
    .healing-shortcut-btn .emoji-combo {
        font-size: 1.1rem;
    }
.menu-divider {
    margin: 0 2px;
    opacity: 0.6;
    font-weight: 400;
}
.news-gallery-tabs { display: flex; gap: 15px; justify-content: center; margin-bottom: 40px; }
.ng-tab-btn { background: #fff; border: 2px solid #e2e8f0; padding: 12px 30px; border-radius: 30px; font-size: 1.05rem; font-weight: bold; color: #475569; cursor: pointer; transition: 0.3s; }
.ng-tab-btn:hover { border-color: #94a3b8; }
.ng-tab-btn.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.ng-tab-content { display: none; }
.ng-tab-content.active { display: block; animation: softFadeIn 0.5s ease-out; }

.gallery-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.06); transition: transform 0.3s; cursor: pointer; }
.gallery-card:hover { transform: translateY(-6px); }
.gallery-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-card-body { padding: 14px 16px; }
.gallery-card-num { font-size: 0.78rem; color: #94a3b8; font-weight: 700; margin-bottom: 4px; }
.gallery-card-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gallery-card-desc { font-size: 0.85rem; color: #64748b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-loading { text-align: center; color: #94a3b8; padding: 60px 0; grid-column: 1/-1; }

@media screen and (max-width: 768px) {
    .gallery-list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* 사진 크게 보기 모달 */
.gallery-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2000; justify-content: center; align-items: center; padding: 20px; }
.gallery-modal-overlay.active { display: flex; }
.gallery-modal { max-width: 900px; width: 100%; background: #fff; border-radius: 15px; overflow: hidden; }
.gallery-modal img { width: 100%; max-height: 65vh; object-fit: contain; background: #000; }
.gallery-modal-info { padding: 20px 25px; }
.gallery-modal-info h4 { font-size: 1.3rem; margin-bottom: 8px; color: #1e293b; }
.gallery-modal-info p { color: #555; line-height: 1.7; }
.gallery-modal-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 2rem; cursor: pointer; }