/* --- Pretendard 폰트 CDN 및 기본 설정 --- */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
    --color-primary: #4B70C3; 
    --color-secondary: #91C1D4; 
    --color-text-main: #1A1A1A; 
    --color-text-sub: #777777; 
    --color-bg-white: #FFFFFF;
    
    /* 기존 폰트 대신 세련되고 깔끔한 Pretendard 폰트 적용 */
    --font-family-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    
    --header-height: 80px; 
    --container-width: 1200px; 
}

/* 전체 바디 및 주요 태그에 폰트 일괄 적용 */
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-kr) !important;
    letter-spacing: -0.3px; /* 자간을 미세하게 조여주어 훨씬 예쁘고 정돈되어 보이게 만듭니다 */
}
/* --- 공통 초기화 및 변수 --- */
.main-page-wrapper {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
}
.main-page-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.text-center { text-align: center; }

/* 1. 히어로 섹션 스타일 */
.main-hero {
    position: relative;
    height: 550px;
    background: url('https://images.unsplash.com/photo-1544816155-12df9643f363?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 50px;
}
.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}
.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 25px;
}
.btn-hero-more {
    display: inline-block;
    background: #4B70C3;
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}
.btn-hero-more:hover { background: #3c5aa8; }

.hero-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}
.slide-bar {
    width: 80px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    position: relative;
}
.slide-progress {
    position: absolute;
    top: 0; left: 0; width: 33%; height: 100%;
    background: #fff;
}
.slide-btn {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
}

/* 2. 퀵 메뉴 5개 카드 섹션 */
.quick-menu-section {
    position: relative;
    margin-top: -45px;
    z-index: 10;
    margin-bottom: 60px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.quick-card {
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 15px 10px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: #fcfcfc;
}
.quick-icon {
    width: 45px; height: 45px;
    margin: 0 auto 12px auto;
    background-color: #f0f4fa;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background-size: 22px; background-position: center; background-repeat: no-repeat;
}
/* 임시 아이콘 표기 (이모지나 배경 아이콘 대체 가능) */
.cross-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234B70C3"><path d="M11 2v9H2v2h9v9h2v-9h9v-2h-9V2z"/></svg>'); }
.heart-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234B70C3"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>'); }
.map-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234B70C3"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>'); }
.family-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234B70C3"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>'); }
.sprout-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234B70C3"><path d="M17 8C8 10 5.9 16.17 3.82 21.31l1.86.66C7.62 17.5 9.5 13 17 12V8zm-2-6C9.48 2 5 6.48 5 12h2c0-4.41 3.59-8 8-8s8 3.59 8 8h2c0-5.52-4.48-10-10-10z"/></svg>'); }

.quick-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: #222; }
.quick-card p { font-size: 12px; color: #777; line-height: 1.3; }

/* 3. 환영 인사 & 비디오 섹션 */
.welcome-section {
    padding: 60px 0;
    background: #fff;
}
.welcome-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}
.welcome-text-area { flex: 1; }
.section-tag {
    font-size: 12px;
    font-weight: 700;
    color: #4B70C3;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}
.welcome-text-area h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #111;
}
.welcome-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}
.btn-welcome-detail {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-welcome-detail:hover {
    border-color: #4B70C3;
    color: #4B70C3;
}
.welcome-video-area { flex: 1; }
.video-card {
    width: 100%;
    height: 380px;
    background: url('https://cdn.pixabay.com/photo/2023/04/25/15/08/church-7950418_1280.jpg') center/cover no-repeat;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.video-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
}
.play-btn-circle {
    position: relative;
    z-index: 2;
    width: 60px; height: 60px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #4B70C3;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.video-caption {
    position: absolute;
    bottom: 0px; left: 20px; right: 20px;
    z-index: 2;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.video-caption span { font-size: 13px; opacity: 0.8; }
.video-caption strong { font-size: 15px; }

/* 4. 예배 안내 섹션 */
.worship-info-section {
    padding: 70px 0;
    background: #f8f9fa;
}
.section-header-center {
    text-align: center;
    margin-bottom: 40px;
}
.section-header-center .sub-title {
    font-size: 12px;
    font-weight: 700;
    color: #4B70C3;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}
.section-header-center h2 {
    font-size: 28px;
    font-weight: 700;
}
.worship-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}
.worship-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}
.worship-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.badge.blue {
    display: inline-block;
    background: #eef2fa;
    color: #4B70C3;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}
.worship-time {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}
.worship-time span { color: #777; font-size: 12px; margin-right: 4px; }
.worship-place { font-size: 13px; color: #777; }

.btn-more-box {
    display: inline-block;
    border: 1px solid #ccc;
    background: #fff;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

/* 5. 3단 레이아웃 섹션 */
.three-column-section {
    padding: 70px 0;
    background: #fff;
}
.three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.info-box-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 25px;
}
.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #222;
    padding-bottom: 12px;
}
.box-header h3 { font-size: 18px; font-weight: 700; }
.more-link { font-size: 13px; color: #888; text-decoration: none; }

/* 5-1 공지사항 리스트 */
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
}
.notice-list li a { color: #333; text-decoration: none; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-list li a:hover { color: #4B70C3; }
.notice-list li .date { color: #888; font-size: 13px; }

/* 5-2 최근 설교 카드 */
.latest-sermon-main { margin-bottom: 15px; }
.sermon-thumb-big {
    width: 100%; height: 140px;
    background: url('https://images.unsplash.com/photo-1507692049790-de58290a4334?auto=format&fit=crop&w=600&q=80') center/cover no-repeat;
    border-radius: 6px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.play-sm {
    width: 36px; height: 36px; background: rgba(0,0,0,0.6); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.sermon-info-box strong { font-size: 15px; display: block; margin-bottom: 4px; color: #222; }
.sermon-info-box p { font-size: 12px; color: #777; }
.sermon-mini-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #f2f2f2; padding-top: 10px; }
.sermon-mini-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mini-thumb { width: 50px; height: 35px; background: #ddd; border-radius: 4px; flex-shrink: 0; }
.mini-txt p { font-size: 13px; font-weight: 500; color: #333; margin: 0; }
.mini-txt small { font-size: 11px; color: #888; }

/* 5-3 주간 예배 안내 */
.weekly-duty-list { list-style: none; padding: 0; margin: 0; }
.weekly-duty-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
}
.duty-title strong { display: block; font-size: 14px; color: #222; margin-bottom: 2px; }
.duty-title span { font-size: 11px; color: #888; }
.duty-person { text-align: right; font-size: 13px; color: #555; }

/* 6. 교회 이야기 갤러리 섹션 */
.church-story-section {
    padding: 60px 0 80px 0;
    background: #f8f9fa;
}
.story-slider-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}
.story-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.story-img {
    height: 140px;
    background: url('https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=500&q=80') center/cover no-repeat;
    position: relative;
    display: flex; align-items: center; justify-content: center;
}
.story-card p {
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* 7. 하단 콜투액션(CTA) 배너 */
.bottom-cta-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 70px 0;
    color: #fff;
}
.cta-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(20, 35, 60, 0.85);
}
.cta-flex {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cta-text h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}
.cta-text p {
    font-size: 15px;
    opacity: 0.8;
}
.btn-cta-donation {
    display: inline-block;
    background: #4B70C3;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background 0.3s;
}
.btn-cta-donation:hover { background: #3c5aa8; }


/* --- 반응형 미디어쿼리 (태블릿 및 모바일 최적화) --- */
@media (max-width: 1024px) {
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    .worship-grid { grid-template-columns: repeat(3, 1fr); }
    .three-grid { grid-template-columns: 1fr; }
    .story-slider-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .main-hero { height: 420px; }
    .hero-title { font-size: 28px; }
    .hero-container { flex-direction: column; align-items: flex-start; gap: 20px; }
    
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome-flex { flex-direction: column; }
    .welcome-video-area { width: 100%; }
    .video-card { height: 320px; }
    
    .worship-grid { grid-template-columns: repeat(2, 1fr); }
    .story-slider-grid { grid-template-columns: repeat(2, 1fr); }
    
    .cta-flex { flex-direction: column; text-align: center; gap: 25px; }
    .cta-text h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    .quick-grid { grid-template-columns: 1fr; }
    .worship-grid { grid-template-columns: 1fr; }
    .story-slider-grid { grid-template-columns: 1fr; }
}

/* 공통 컨테이너 설정 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 1. 히어로 메인 비주얼 풀반응형 섹션 */
.main-hero {
    position: relative;
    width: 100%;
    height: 620px;
    background-color: #111;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-text-box {
    max-width: 700px;
    color: #ffffff;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-hero-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-hero-more:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* 슬라이드 컨트롤러 (하단 고정 배치) */
.hero-controls-container {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: flex-start;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.slide-bar {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.slide-progress {
    width: 0%;
    height: 100%;
    background: #ffffff;
    transition: width linear;
}

.slide-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.slide-btn:hover {
    background: #3b82f6;
}

/* 2. 퀵 메뉴 5개 카드 섹션 */
.quick-menu-section {
    position: relative;
    z-index: 20;
    margin-top: -50px; /* 히어로 섹션과 살짝 겹치도록 디자인 */
    padding-bottom: 60px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.quick-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.quick-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 각 카드 아이콘 배경 예시 (필요시 이미지 경로로 교체 가능) */
.cross-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%233b82f6" viewBox="0 0 24 24"><path d="M11 2h2v7h7v2h-7v7h-2v-7H4v-2h7V2z"/></svg>'); }
.heart-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%233b82f6" viewBox="0 0 24 24"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>'); }
.map-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%233b82f6" viewBox="0 0 24 24"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>'); }
.family-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%233b82f6" viewBox="0 0 24 24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>'); }
.sprout-icon { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="%233b82f6" viewBox="0 0 24 24"><path d="M12 3c-4.97 0-9 4.03-9 9 0 2.12.74 4.07 1.97 5.61L4.35 19h5.65v2h4v-2h5.65l-1.62-1.39C19.26 16.07 20 14.12 20 12c0-4.97-4.03-9-9-9zm0 14c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></svg>'); }

.quick-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.quick-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 반응형 미디어쿼리 (태블릿 및 모바일 최적화) */
@media(max-width: 1024px) {
    .quick-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-title {
        font-size: 38px;
    }
}

@media(max-width: 768px) {
    .main-hero {
        height: 500px;
    }
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-menu-section {
        margin-top: -30px;
    }
    .hero-title {
        font-size: 30px;
    }
    .hero-desc {
        font-size: 15px;
    }
}

@media(max-width: 480px) {
    .quick-grid {
        grid-template-columns: 1fr;
    }
}

/* PC 화면에서도 글자 영역이 고정된 박스 안에서만 바뀌도록 설정 */
.hero-text-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: max(20px, calc((100% - 1280px) / 2 + 20px)); /* 컨테이너 라인에 정확히 고정 */
    width: 100%;
    max-width: 650px; /* 고정된 최대 가로 폭 지정 */
    min-height: 240px; /* 글자 줄바꿈 등으로 흔들리지 않도록 최소 높이 고정 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    z-index: 5;
}

/* 개별 슬라이드 내의 텍스트가 페이드아웃/인 될 때 위치가 고정되도록 설정 */
.hero-slide .hero-container {
    position: relative; /* 텍스트 박스의 절대위치 기준점 설정 */
}

/* 제목 스타일 고정 */
.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    /* 글자가 바뀔 때 부드러운 효과를 원할 경우 추가 */
    transition: all 0.5s ease;
}

/* 본문 설명 스타일 고정 */
.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    min-height: 56px; /* 2줄 높이를 고정하여 아래 버튼이 흔들리지 않게 방지 */
}

/* 버튼 고정 */
.btn-hero-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start; /* 버튼 크기가 늘어나지 않도록 고정 */
    padding: 12px 28px;
    background: #4168a7;
    color: #ffffff;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-hero-more:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* 모바일 화면 최적화 및 폰트 크기 축소 */
@media(max-width: 768px) {
    /* 히어로 섹션 전체 높이 조절 */
    .main-hero {
        height: 480px;
    }

    /* 히어로 메인 타이틀 크기 축소 (기본 48px -> 30px) */
    .hero-title {
        font-size: 28px !important;
        line-height: 1.35;
        margin-bottom: 15px;
    }

    /* 히어로 본문 설명 크기 축소 (기본 18px -> 14px) */
    .hero-desc {
        font-size: 14px !important;
        line-height: 1.5;
        margin-bottom: 25px;
        min-height: auto; /* 모바일에서는 줄바꿈 유연하게 처리 */
    }

    /* 히어로 버튼 크기 및 여백 조정 */
    .btn-hero-more {
        padding: 10px 22px;
        font-size: 13px;
    }

    /* 퀵 메뉴 카드 타이틀 및 본문 크기 축소 */
    .quick-card {
        padding: 20px 15px;
    }

    .quick-card h3 {
        font-size: 16px !important;
        margin-bottom: 6px;
    }

    .quick-card p {
        font-size: 12px !important;
    }

    .quick-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 10px;
    }
}

/* 더 작은 화면(초소형 스마트폰) 대응 */
@media(max-width: 480px) {
    .main-hero {
        height: 420px;
    }

    .hero-title {
        font-size: 24px !important;
    }

    .hero-desc {
        font-size: 13px !important;
    }
}

/* 1. 히어로 메인 비주얼 풀반응형 섹션 */
.main-hero {
    position: relative;
    width: 100%;
    height: 780px; /* 기존 620px에서 더 높게 늘림 (원하시는 경우 800px 등으로 조절 가능) */
    background-color: #111;
    overflow: hidden;
}

/* 모바일 화면에서도 높이를 비례해서 넉넉하게 늘려주기 */
@media(max-width: 768px) {
    .main-hero {
        height: 560px; /* 모바일 높이 기존 480px -> 560px로 확대 */
    }
}

@media(max-width: 480px) {
    .main-hero {
        height: 500px; /* 초소형 화면 높이 확대 */
    }
}

/* 유튜브 배경 슬라이드 스타일 */
.hero-slide.youtube-slide {
    background-color: #000;
}

.youtube-bg-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 비율 계산 */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 비율 계산 */
    transform: translate(-50%, -50%);
    pointer-events: none; /* 영상 위로 마우스 클릭이 통과되도록 설정 */
    z-index: 0;
    overflow: hidden;
}

.youtube-bg-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 오버레이가 유튜브 영상 위를 덮도록 설정 */
.youtube-slide .hero-overlay {
    z-index: 1;
}

/* 텍스트 박스가 영상 위로 올라오도록 설정 */
.youtube-slide .hero-container {
    z-index: 2;
}

/* 메인 교회소개 */
/* 비주얼 카드 링크 감싸는 영역 */
.video-card-link-wrap {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* 링크 영역 (배경 이미지나 배경색 설정 가능) */
.video-popup-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 비율 유지 */
    background: url('https://cdn.pixabay.com/photo/2023/04/25/15/08/church-7950418_1280.jpg') center/cover no-repeat; /* 배경 이미지 지정 */
    text-decoration: none;
    color: white;
}



/* 재생 버튼 원형 디자인 및 정중앙 배치 */
.play-btn-circle {
    position: absolute;
    top: calc(50% - 25px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(190, 189, 189, 0.20);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 2;
}

.play-btn-circle svg {
    fill: #3b82f6;
    margin-left: 4px;
}



/* 마우스 호버 시 재생 버튼 확대 효과 */
.video-popup-btn:hover .play-btn-circle {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ffffff;
}

/* 갤러리 카드 컨테이너 */
.story-slider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* 카드 스타일 */
.story-card {
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px); /* 마우스 올리면 살짝 떠오르는 효과 */
}

/* 이미지 박스 */
.story-img {
    width: 100%;
    height: 180px; /* 고정 높이 */
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.story-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 비율 맞춰서 꽉 차게 */
}

/* 제목 텍스트 스타일 */
.story-card p {
    font-size: 15px;
    font-weight: 600;
    color: #333; /* 글자색이 확실하게 보이도록 설정 */
    text-align: center;
    margin: 0;
    white-space: nowrap;      /* 한 줄로 표시 */
    overflow: hidden;         /* 넘치는 글자 숨김 */
    text-overflow: ellipsis;  /* 말줄임표(...) 표시 */
    padding: 0 5px;
}