﻿@charset "utf-8";

/* ==========================================================================
   1. Fonts & Keyframes & Root
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

@font-face {
    font-family: 'NanumSquare';
    src: url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@1.0/nanumsquare.css');
}

:root {
    --primary-navy: #181d2c;
    --primary-brown: #867b6b;
    --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0; padding: 0; overflow-x: hidden; background-color: #fff;
}
ul, li, p, h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }

*:focus {
    outline: none !important;
}
.notosanskrBold { font-weight: 700; }
.notosanskrMedium { font-weight: 500; }
.notosanskrRegular { font-weight: 400; }
.nanumsquarB { font-family: 'NanumSquare', sans-serif; font-weight: 700; }
.nanumsquarEB { font-family: 'NanumSquare', sans-serif; font-weight: 800; }

/* ==========================================================================
   2. Main 1: Welcome Section
   ========================================================================== */
#main1 {
    background-color: var(--primary-navy);
    padding: 80px 0;
    color: #fff;
}
.main1M { display: flex; justify-content: space-between; align-items: center; }
.main1M a{text-decoration:none;color:#fff;}
.main1L hr { width: 30px; height: 2px; background-color: #5572b8; border: none; margin: 0 0 20px 0; }
.main1L h1 { font-size: 32px; letter-spacing: 1px; text-transform: uppercase; color: #5572b8; margin-bottom: 15px; }
.main1L h5 { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.main1R { display: flex; gap: 50px; }

/* --- 복구 및 강화된 view-more 사선 스윕 애니메이션 --- */
.view-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 1;
    transition: var(--transition-smooth);
}

.view-more:before {
    content: "";
    display: block;
    position: absolute;
    left: 0; top: 0;
    width: 150%; height: 100%;
    background: rgba(255, 255, 255, 0.1); /* 다크배경에 맞는 은은한 빛 스윕 */
    z-index: -1;
    transform-origin: left top;
    transform: translateX(-110%) skewX(-20deg);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.view-more:hover {
    transform: translateY(-8px);
}

.view-more:hover:before {
    transform: translateX(0) skewX(-20deg);
}

.main1IMG { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; }
.main1R h1{font-size: 15px;letter-spacing: -0.5px;transition: color 0.3s;}

/* ==========================================================================
   3. Main 2: 설교 및 예배영상 Section
   ========================================================================== */
#main2 { padding: 80px 0; background-color: #fff; }
.sermonSD { display: flex; gap: 30px; }
.sermonSD .contentSlideWrapper { flex: 1; min-width: 0; }

.sermonSD .contentSlide {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

/* 이미지 주민(Zoom-in) + 오버레이 짙어짐 */
.sermonSD .contentSlide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
    transition: var(--transition-smooth);
}

.main2BOX {
    position: absolute;
    bottom: 25px;
    left: 30px;
    z-index: 2;
    color: #fff;
    /* 호버 시 위로 스윽 올라오는 효과 */
    transition: var(--transition-bounce);
}

.sermonSD .contentSlide:hover a {
    transform: translateY(-5px);
}

.main2BOX h5 { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-bottom: 5px; }
.main2BOX h1 { font-size: 24px; margin-bottom: 5px; word-break: keep-all;word-wrap: break-word;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;overflow: hidden;width:90%; }
.main2BOX h2 { font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   4. Main 3: 교회학교 Section
   ========================================================================== */
#main3 {
    position: relative; padding: 100px 0;
    background: url('/UserData/nsrch/Layouts/nsrch_Layout/images/church_school_bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
}
#main3::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(134, 123, 107, 0.85);
}
.main3M { position: relative; z-index: 2; }
.main3T { text-align: center; color: #fff; margin-bottom: 50px; }
.main3T h1 { font-size: 34px; margin-bottom: 15px; }
.main3T h2 { font-size: 16px; color: rgba(255, 255, 255, 0.8); }

.main3B { display: flex; justify-content: center; gap: 30px; }

/* 카드 강한 리프트업(Lift-up) & 아이콘 바운스 */
.main3BOX {
    flex: 1;
    background-color: #fff !important;
    padding: 50px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    text-decoration:none;
}

.main3BOX:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
	text-decoration:none;
}

.main3BT { display: flex; flex-direction: column; align-items: center; gap: 15px; }

.main3BT img {
    width: 45px; height: 45px; margin-bottom: 10px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main3BOX:hover img {
    transform: scale(1.2) translateY(-5px);
}

.main3BT h1 { font-size: 20px; color: #222; }
.main3BT h5 { font-size: 14px; line-height: 1.6; color: #777; word-break: keep-all; }

#main5 { padding: 100px 0 120px; background-color: #fff;overflow:hidden; }
.main5T { text-align: center; margin-bottom: 50px; }
.main5T h1 a { font-family: 'NanumSquare', sans-serif !important; font-size: 36px !important; font-weight: 700 !important; text-transform: lowercase !important; text-decoration: none !important; color: #222 !important; }

.main5SD { width: 100%; }
.main5SD .swiper-wrapper { display: flex; }

/* 기존 코드처럼 카드 모서리를 둥글게 처리 */
.main5SD .contentSlide { position: relative; overflow: hidden; border-radius: 8px; }

.contentSlide a { display: block; width: 100%; height: 100%; position: relative;z-index:999; }

.galleryIMG {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /* 기존 13.6vw와 가장 유사하고 안정적인 넓은 비율 적용 */
    height: 14vw; 
    transform: scale(1.01);
    transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.contentSlide a:hover .galleryIMG {
    transform: scale(1.08); /* 부드러운 스케일 확대 */
}

/* 텍스트 오버레이 박스 */
.galleryT {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 1.5vw; box-sizing: border-box; text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.contentSlide a:hover .galleryT {
    opacity: 1;
}

.galleryT h1 { color: #fff !important; font-size: 1.4rem !important; font-weight: 500 !important; margin-bottom: 8px !important; line-height: 1.3 !important; word-break: keep-all !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.galleryT h5 { color: rgba(255, 255, 255, 0.8) !important; font-size: 1rem !important; font-weight: 300 !important; margin: 0 !important; }

/* --- 갤러리 컨트롤 버튼 (긴 화살표 SVG에 맞춤) --- */
.main5BTN { 
    display: flex; align-items: center; justify-content: space-between; 
    margin-top: 40px; position: relative; padding: 0 16px; 
}

/* SVG가 잘리지 않도록 버튼 넓이 확보 및 투명도 호버 효과 */
.main5PTN, .main5NTN {
    position: relative; z-index: 2; background: transparent; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; 
    width: 160px; /* SVG 너비와 동일하게 */
    height: 30px; 
    transition: opacity 0.3s ease;
}

.main5PTN:hover, .main5NTN:hover { opacity: 0.6; }

/* 가운데 페이지네이션 점들 */
.main5PAG { 
    position: relative; z-index: 2; background: transparent; 
    display: flex; gap: 8px; align-items: center; justify-content: center; flex: 1; 
}
.main5PAG .swiper-pagination-bullet { height: 4px !important; background: #ccc; opacity: 1; transition: var(--transition-fast); margin: 0 !important; border-radius: 0; border: none; }
.main5PAG .swiper-pagination-bullet-active { background: var(--primary-navy); width: 20px; background-color:#007aff;}

/* ==========================================================================
   6. Media Queries
   ========================================================================== */
@media (max-width: 1699px) { }
@media (min-width:1440px) {
    .container {width: 1440px;}
}
@media (max-width: 1499px) { .main1R { gap: 30px; } .sermonSD, .main3B { gap: 20px; } }
@media (max-width: 1199px) {
    :root { --container-max: 960px; }
    .main1M { flex-direction: column; align-items: flex-start; gap: 40px; }
    .main1R { width: 100%; justify-content: space-between; }
    .main3BOX { padding: 40px 20px; }
    #main5 { padding: 80px 0; } .galleryIMG { height: 25vw; } .galleryT h1 { font-size: 1.2rem !important; }
}
@media (max-width: 992px) {
    :root { --container-max: 720px; }
	#mainSlider{padding-top:90px;}
    #main1, #main2, #main3 { padding: 60px 0; }
    .sermonSD { flex-wrap: wrap; } .sermonSD .contentSlideWrapper { flex: 100%; }
    .main3B { flex-wrap: wrap; } .main3BOX { flex: 1 1 calc(50% - 10px); }
    .galleryIMG { height: 35vw; }
}
@media (max-width: 767px) {
    .row{margin:0!important;}
    :root { --container-max: 100%; }
	#mainSlider{padding-top:60px;}
    .main1R { flex-wrap: wrap; gap: 20px; justify-content: flex-start; }
    .main1RBOX { width: calc(50% - 14px); }
    .sermonSD .contentSlideWrapper { flex: 1 1 100%; }
    .main3B { flex-direction: column; } .main3BOX { flex: 1 1 100%; }
    .galleryIMG { height: 70vw; } .main5T h1 a { font-size: 28px !important; } .main5PAG { padding: 0 15px; }
    .main5PTN,
    .main5NTN{width:33%;}
}
@media (max-width: 320px) {
    .view-more { width: calc(50% - 10px); }
    .main1L h1 { font-size: 24px; } .main3T h1 { font-size: 22px; } .main2BOX h1 { font-size: 20px; }
}