/**
 * 메인 스타일시트 (style.css)
 * 교회 홈페이지 전체 스타일
 * 모바일 최적화 반응형 디자인
 */

/* =============================================================================
   공통 스타일
   ============================================================================= */

/* 섹션 공통 스타일 */
.section {
    padding: 80px 0;
}

/* 모바일에서 섹션 여백 조정 */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
}

/* 섹션 타이틀 */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: 1.5rem;
}

/* 모바일에서 타이틀 크기 조정 */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
}

/* =============================================================================
   메인 슬라이드 배너 (영상 + 이미지)
   ============================================================================= */

.hero-slider {
    margin-top: 0;
}

.carousel-item {
    height: 600px;
}

/* 영상 슬라이드 스타일 */
.slide-video-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.slide-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* 영상이 없을 때 대체 배경 */
.slide-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 영상 위 오버레이 (어둡게) */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* 이미지 슬라이드 스타일 */
.slide-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-text {
    text-align: center;
    color: white;
    z-index: 3;
    position: relative;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.slide-btn {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 슬라이드 인디케이터 커스텀 */
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* 모바일에서 슬라이드 조정 */
@media (max-width: 768px) {
    .carousel-item {
        height: 400px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-btn {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

/* =============================================================================
   금주의 말씀 섹션 (2개 카드)
   ============================================================================= */

.weekly-sermon-section {
    background: #f8f9fa;
}

.weekly-sermon-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.weekly-sermon-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.sermon-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.sermon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.weekly-sermon-card:hover .sermon-image img {
    transform: scale(1.1);
}

.sermon-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    opacity: 0.9;
    transition: all 0.3s;
    cursor: pointer;
}

.weekly-sermon-card:hover .sermon-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.sermon-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sermon-content {
    padding: 1.5rem;
    flex: 1;
}

.sermon-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.8rem;
}

.sermon-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.sermon-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.sermon-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sermon-buttons .btn {
    flex: 1;
    min-width: 120px;
}

.sermon-stats {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* 모바일에서 조정 */
@media (max-width: 768px) {
    .sermon-image {
        height: 200px;
    }
    
    .sermon-card-title {
        font-size: 1.2rem;
    }
    
    .sermon-buttons {
        flex-direction: column;
    }
    
    .sermon-buttons .btn {
        width: 100%;
    }
}

/* =============================================================================
   교회 소식 섹션 (3분할 레이아웃)
   ============================================================================= */

.church-news-section {
    background: white;
}

/* 왼쪽 큰 패널 (유튜브 영상/이미지) */
.news-feature-panel {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.news-feature-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.2rem 1.5rem;
    color: white;
}

.news-feature-header h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.news-feature-content {
    padding: 0;
}

.news-feature-content .ratio {
    margin: 0;
}

.news-feature-info {
    padding: 1.5rem;
}

.news-feature-info h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.news-feature-info p {
    margin-bottom: 0.5rem;
}

/* 오른쪽 패널 (공지사항, 주보) */
.news-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-panel-header {
    background: #f8f9fa;
    padding: 1.2rem 1.5rem;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-panel-header h3 {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

.more-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.more-link:hover {
    color: #764ba2;
}

.news-panel-content {
    padding: 1rem 1.5rem;
    flex: 1;
}

/* 뉴스 리스트 */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: #f8f9fa;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-right: 0.5rem;
}

.news-list-item .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    flex-shrink: 0;
}

.news-list-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.news-title {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-date {
    font-size: 0.85rem;
    color: #7f8c8d;
    flex-shrink: 0;
    margin-left: 1rem;
}

.news-list-item:hover .news-title {
    color: #667eea;
}

/* 공지사항 패널 */
.notice-panel .news-panel-header {
    background: #fff3cd;
    border-bottom-color: #ffc107;
}

.notice-panel .news-panel-header h3 {
    color: #856404;
}

/* 주보 패널 */
.bulletin-panel .news-panel-header {
    background: #d1ecf1;
    border-bottom-color: #17a2b8;
}

.bulletin-panel .news-panel-header h3 {
    color: #0c5460;
}

/* 모바일에서 조정 */
@media (max-width: 991px) {
    .news-feature-panel {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .news-title {
        font-size: 0.9rem;
    }
    
    .news-date {
        font-size: 0.8rem;
    }
}

/* =============================================================================
   갤러리 섹션
   ============================================================================= */

.gallery-section {
    background: #f8f9fa;
}

.gallery-item {
    position: relative;
    /* border-radius: 15px; */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-view-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-view-btn:hover {
    background: white;
    color: #667eea;
}

/* =============================================================================
   오시는 길 섹션
   ============================================================================= */

.location-section {
    background: white;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 500px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.map-placeholder p {
    font-size: 1.2rem;
    margin: 0;
}

.map-placeholder small {
    opacity: 0.8;
}

.location-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-content p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

.info-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.info-content a:hover {
    text-decoration: underline;
}

.info-content strong {
    color: #2c3e50;
}

.info-content small {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 모바일에서 지도와 정보 조정 */
@media (max-width: 991px) {
    .map-container {
        margin-bottom: 2rem;
        height: 400px;
    }
}

/* =============================================================================
   버튼 스타일
   ============================================================================= */

.btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* =============================================================================
   반응형 유틸리티
   ============================================================================= */

@media (max-width: 576px) {
    /* 작은 모바일 기기 */
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}

/* =============================================================================
   애니메이션
   ============================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =============================================================================
   스크롤바 커스텀 (선택사항)
   ============================================================================= */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
