/* 
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 400;
    src: url('../Contents/fonts/NotoSansKR-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 500;
    src: url('../Contents/fonts/NotoSansKR-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto Sans KR';
    font-style: normal;
    font-weight: 700;
    src: url('../Contents/fonts/NotoSansKR-Bold.woff2') format('woff2');
}
*/



/* Reset & Defaults */
.cms-content-root {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    font-family: 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
}

.cms-content-root * {
    box-sizing: border-box;
}

.cms-content-root button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.cms-content-root a {
    text-decoration: none;
}

/* Container */
.cms-container {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}


.slider .slider-dots .each-dot.active{background: #ffffff !important;border-color: #ffffff !important;}
.slider .slider-dots .each-dot {width: 28px !important;height: 5px !important;border-radius:0!important;margin: 0 2px 10px !important;}
/* ========================================= 
   HERO Section (CMS 슬라이더 위젯 연동)
   ========================================= */
#mainSlider,
.cms-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#mainSlider .each-img > img {
    aspect-ratio: 1920 / 815;
    width: 100%;
    object-fit: cover;
    display: block;
}

#mainSlider .slider {
    width: 100%;
    position: relative;
}

#mainSlider .slider .slider-wrapper .slide {
    width: 100%;
}

#mainSlider .slider .slider-wrapper .slide p {
    width: 100%;
}

#mainSlider .slider .slider-wrapper .slide img {
    width: 100%;
    display: block;
}

#mainSlider .slider .move-btn {
    top: 50% !important;
    display: none;
}

/* ========================================= 
   반응형 — 모바일에서 이미지 비율 조정
   ========================================= */
@media (max-width: 1024px) {
    #mainSlider .slider .slider-wrapper .slide img {
        aspect-ratio: 10/8 !important;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .cms-hero {
        height: auto;
        aspect-ratio: auto;
    }
    
    #mainSlider .slider .slider-wrapper .slide img {
        aspect-ratio: 9 / 8;
        object-fit: cover;
    }
}
/* Welcome Section */
.cms-welcome {
    background: #F7F8F9;
    padding: 60px 0 56px;
}

.cms-welcome-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cms-welcome-line {
    width: 32px;
    height: 2px;
    background: #aaa;
    margin-bottom: 16px;
}

.cms-welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.cms-welcome-desc {
    font-size: 17px;
    color: #666;
    line-height: 1.7;
    max-width: 400px;
}

.cms-welcome-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cms-welcome-card {
    border: 1px solid #ddd;
    width: 130px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    gap: 4px;
    cursor: pointer;
    background: transparent;
    border-radius: 0;
}

.cms-welcome-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cms-welcome-label {
    color: #444;
    text-align: center;
    line-height: 1.3;
}

/* Three Cards */
.cms-three-cards {
    background: white;
    padding-top: 60px;
    padding-bottom: 70px;
}

.cms-three-cards-inner {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 30px;
}

.cms-card { 
    position: relative;
    overflow: hidden;
    height: 246px;
    border-radius: 0;
    background-size: cover;
    background-position: center;
}

.cms-card-overlay {
	display:none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.cms-card-content {
    position: relative;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 28px 28px 32px;
}

.cms-card-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    letter-spacing: 1px;
}

.cms-card-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-top: 12px;
}

.cms-card-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.cms-card:hover .cms-card-arrow {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.3);
}

/* Church School Section */
.cms-school {
    position: relative;
    padding: 70px 0;
}

.cms-school-bg-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
}

.cms-school-bg {
    position: absolute;
    top: -16px;
    right: -16px;
    bottom: -16px;
    left: -16px;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
}

.cms-school-grain {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.22;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.cms-school-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(10,15,30,0.25);
    pointer-events: none;
}

.cms-school-content {
    position: relative;
    text-align: center;
}

.cms-school-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cms-school-desc {
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    margin-bottom: 40px;
	word-break:keep-all;
}

.cms-school-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
	margin-top:30px;
}

.cms-school-card {
    background: white;
    padding: 40px 26px 34px;
    border-radius: 0;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s;
}

.cms-school-card:hover {
    background: rgba(26,33,81,0.6) !important;
}

.cms-school-card-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    transition: all 0.3s;
}

.cms-school-card:hover .cms-school-card-icon {
    filter: brightness(0) invert(1);
}

.cms-school-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.cms-school-card:hover .cms-school-card-title {
    color: white !important;
}

.cms-school-card-desc {
    font-size: 16px;
    color: #777;
    line-height: 1.6;
    transition: color 0.3s;
}

.cms-school-card:hover .cms-school-card-desc {
    color: white !important;
}

/* ========================================= 
   Gallery Section (Swiper 방식 - 풀폭)
   ========================================= */
.cms-gallery {
    padding: 60px 0 70px;
    background: white;
    font-family: 'Noto Sans KR', sans-serif;
}

.cms-gallery-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 32px;
}

/* 풀폭: 컨테이너 없이 화면 전체 폭 사용 */
.cms-gallery-swiper {
    width: 100%;
    overflow: hidden;
}

.cms-gallery-slide {
    height: 260px;
}

.cms-gallery-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
}

.cms-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cms-gallery-hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: rgba(10, 15, 30, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cms-gallery-link:hover .cms-gallery-hover {
    opacity: 1;
}

.cms-gallery-hover-title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cms-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 0 16px;
}

.cms-gallery-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.cms-gallery-pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: auto !important;
}

.cms-gallery-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    border-radius: 0;
    transition: all 0.3s;
    margin: 0 !important;
}

.cms-gallery-pagination .swiper-pagination-bullet-active {
    width: 20px;
    background: #666;
}


/* Media Queries for Responsive */
@media (min-width: 768px) {
    .cms-welcome-inner {
        flex-direction: row;
    }
    .cms-three-cards-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cms-school-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
	.cms-hero {
        overflow: hidden;
        aspect-ratio: 10/8;
        height: auto;
    }
	.cms-card-title{font-size:24px;}
	.cms-card{height: 16rem;}
	.cms-card-content{padding: 25px;}
	.cms-school-card{padding: 26px 26px 26px;}
	.cms-school-card-title{font-size: 22px;}
	.cms-school-card-icon img{width:45px !important;height:45px !important;}
	.cms-welcome-card {
        width: 105px !important;
        border: 1px solid #ddd;
        height: 100px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 20px;
        gap: 4px;
        cursor: pointer;
        background: transparent;
        border-radius: 0;
    }
    .cms-gallery-slide { height: 200px; }
    .cms-gallery-hover-title { font-size: 15px; }
}
