﻿/* =====================
   Web Fonts & Base Styles
   ===================== */
@font-face { 
font-family: 'Pretendard Variable'; 
font-weight: 45 920; 
font-style: normal; 
font-display: swap; 
src: url('webfont/Pretendard/PretendardVariable.woff2') format('woff2-variations'); 
}

html, body, .bodyWrapper { }
html { font-size: 18px; overflow-x: hidden; overflow-y: auto; max-width: 100%; }
body { margin: 0; padding: 0; font-family: 'Pretendard Variable', 'Pretendard', sans-serif; color: #222; background: #fff; line-height: 1.5; word-break: keep-all; max-width: 100%; overflow-x: hidden; overflow-y: visible; min-height: 100%; }
* { box-sizing: border-box; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: none !important; }
button { background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
img { max-width: 100%; display: block; }


.board-theme .theme-list .list-categories{margin-bottom: 30px !important;}
.list-categories .btn-gray{background-color: #fff !important;border-color: #A67C52 !important;border-radius: 60px !important;transition: 0.2s all !important;}
.list-categories .btn{font-size: 16px !important;line-height: 21px !important;padding: 0.5rem 1.5rem !important;border-radius: 60px !important;transition: 0.2s all;}
.list-categories .btn-default{color: #333;background-color: #fff;border-color: #ccc;}
.list-categories .btn-default:hover{color: #ffffff !important;background-color: #A67C52 !important;border-color: #A67C52 !important;transition: 0.2s all;}
.list-categories .btn-gray:hover{color: #ffffff !important;background-color: #A67C52 !important;
border-color: #A67C52 !important;transition: 0.2s all;}
#content {
    padding: 9rem 0 4rem;
}
/* .container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
} */

/* 부트스트랩 row 클래스 설정 
.row {
    margin-right: -15px;
    margin-left: -15px;
}
.row:before, .row:after {
    display: table;
    content: " ";
}
.row:after {
    clear: both;
}
*/
/* =====================
   GNB Header (상단 헤더)
   ===================== */
.gnb-header { position: fixed; top: 0; left: 0; right: 0; width: 100%; max-width: 100vw; height: 4.5rem; padding: 0 3rem; display: flex; align-items: center; z-index: 100; background: rgb(255 255 255 / 30%); transition: all 300ms ease; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-sizing: border-box; overflow: visible !important; }
.gnb-header .gnb-container::before,
.gnb-header .gnb-container::after {
    display: none !important;
    content: none !important;
}
.gnb-header.scrolled { background: white; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.gnb-container { width: 100%; display: flex; align-items: center; justify-content: space-between; overflow: visible; }
.gnb-toggle { display: none; align-items: center; justify-content: center; flex-shrink: 0; color: #3E2723; position: relative; z-index: 101; cursor: pointer; }
.gnb-header:not(.scrolled) .gnb-toggle { color: #3E2723; }
.gnb-header.scrolled .gnb-toggle { color: #222; }

.gnb-logo { display: flex; align-items: center; flex-shrink: 0; }
.gnb-logo img { height: 2.7rem; width: auto; object-fit: contain; }

.gnb-nav ul { display: flex; gap: 2.5rem; }
.gnb-nav a { font-size: 1.111rem; font-weight: 500; color: #3E2723; transition: color 300ms ease; }
.gnb-header.scrolled .gnb-nav a { color: #3E2723; }
.gnb-nav a:hover { color: #C19A6B !important; }

.gnb-item { position: relative; }
.gnb-dropdown { position: absolute; top: calc(100% + 1rem); left: 50%; transform: translateX(-50%); background: #8B6F47; border-radius: 0.5rem; padding: 1rem 0; min-width: 9rem; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 250ms ease, transform 250ms ease; transform: translateX(-50%) translateY(-6px); z-index: 200; }

/* 메뉴와 드롭다운 사이의 공백에서 마우스 호버가 풀리지 않도록 투명 다리(Bridge) 생성 */
.gnb-dropdown::before {
    content: '';
    position: absolute;
    top: -1.5rem; 
    left: 0;
    width: 100%;
    height: 1.5rem; 
    background: transparent;
}

.gnb-item:hover .gnb-dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.gnb-dropdown a { padding: 0.6rem 1.5rem; font-size: 1rem; color: rgba(255, 255, 255, 0.85) !important; text-align: center; }
.gnb-dropdown a:hover { color: #fff !important; background: rgba(255, 255, 255, 0.1); }

.gnb-right { display: flex; align-items: center; gap: 1rem; }
.gnb-auth { display: flex; align-items: center; gap: 0.875rem; margin-right: 0.5rem; }
.gnb-auth a { font-size: 0.9375rem; color: #666; font-weight: 500; transition: color 200ms ease; }
.gnb-auth a:hover { color: #C19A6B; }
.gnb-header.scrolled .gnb-auth a { color: #333; }
.gnb-header.scrolled .gnb-auth a:hover { color: #C19A6B; }

.btn-museum { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.5rem 1.25rem; border-radius: 3.125rem; border: 1.5px solid #A67C52; font-size: 0.9375rem; font-weight: 600; color: #A67C52 !important; transition: all 300ms ease; white-space: nowrap; }
.btn-museum:hover { background: #A67C52; color: #fff !important; }
.gnb-header.scrolled .btn-museum { border-color: #A67C52; color: #A67C52 !important; }
.gnb-header.scrolled .btn-museum:hover { background: #A67C52; color: #fff !important; }
.gnb-left { 
    display: flex; 
    align-items: center; 
    gap: 1.25rem; /* 로고와 유튜브 버튼 사이 간격 */
    flex-shrink: 0;
}

/* 상단 유튜브 버튼 스타일 (테두리 없음, 아이콘+텍스트 조합) */
.btn-header-youtube {
    display: inline-flex; 
    align-items: center; 
    font-size: 1rem; 
    font-weight: 700; 
    color: #333; 
    transition: opacity 300ms ease; 
    white-space: nowrap;
    text-decoration: none;
	 margin-left: 0.5rem;
}

/* 마우스를 올렸을 때 살짝 투명해지는 효과 */
.btn-header-youtube:hover { 
    opacity: 0.7;
    color: #333 !important; 
}

/* 헤더가 스크롤되어 배경이 하얗게 변했을 때의 색상 유지 */
.gnb-header.scrolled .btn-header-youtube { 
    color: #222; 
}



/* =====================
   Hamburger Overlay (전체메뉴/모바일)
   ===================== */
.hamb-overlay { position: fixed; inset: 0; background: #fff; z-index: 200; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 300ms; }
.hamb-overlay.active { opacity: 1; pointer-events: auto; }
.hamb-header { height: 4.5rem; padding: 0 3rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #EEE; }
.hamb-logo { height: 2.222rem; }
.hamb-body { flex: 1; overflow-y: auto; padding: 3rem 0; -ms-overflow-style: none; scrollbar-width: none; }
.hamb-body::-webkit-scrollbar { display: none; }
.hamb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; }
.hamb-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 1.25rem; border-bottom: 2px solid #222; padding-bottom: 0.5rem; }
.hamb-list li { margin-bottom: 0.75rem; }
.hamb-list a { font-size: 1rem; color: #666; transition: color 200ms; }
.hamb-list a:hover { color: #C19A6B; }
.hamb-list a.highlight { color: #8B6F47; font-weight: 600; }

.hamb-has-sub > a.hamb-sub-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; color: #666; }
.hamb-arrow { font-size: 0.75rem; transition: transform 300ms ease; display: inline-block; transform: rotate(180deg) scale(1.2, 0.6); }
.hamb-has-sub.open .hamb-arrow { transform: rotate(0deg) scale(1.2, 0.6); }
.hamb-sub { display: none; padding-left: 0.75rem; margin-top: 0.5rem; border-left: 2px solid #EEE; }
.hamb-has-sub.open .hamb-sub { display: block; }
.hamb-sub li { margin-bottom: 0.5rem; }
.hamb-sub a { font-size: 0.9rem; color: #999; }
.hamb-sub a:hover { color: #C19A6B; }

/* =====================
   Footer Section (시안 2번 적용)
   ===================== */
.footer { background: #352d2a; color: #fff; padding-top: 4.5rem; }
.footer-main { display: flex; flex-direction: row; gap: 6rem; align-items: center; justify-content: flex-start; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-left { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo-img { height: auto; max-height: 50px; margin-bottom: 1.5rem; }

.footer-right { display: flex; flex-direction: column; }
.footer-label { font-size: 0.95rem; font-weight: 700; color: #C19A6B; display: inline-block; margin-right: 0.5rem; }
.footer-addr-group { margin-bottom: 1.25rem; }
.footer-addr-group .footer-label { display: block; margin-bottom: 0.5rem; }
.footer-addr { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

.footer-contact { display: flex; align-items: center; flex-wrap: wrap; }
.footer-contact .sep { margin: 0 0.75rem; color: rgba(255,255,255,0.2); font-size: 0.9rem; }
.footer-contact .val { font-size: 0.95rem; color: rgba(255,255,255,0.7); }
.footer-bottom { padding: 1.5rem 0; }
.copyright { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin: 0; }

/* =====================
   Sub Pages & Etc (기존 B형태)
   ===================== */
.right-login { margin-top:30px; }
.right-login li { display: inline-block; }
.right-login li a { font-size: 20px; color: #071227; display: inline-block; }
.right-login li span { font-size: 20px; color: #071227; padding: 0 10px; }
.yssk-gallery { overflow:hidden; position:absolute; bottom:100px; right:30px; }
.modal-body p { margin:0; font-size:17px; text-align:center;}
.yssk-temp { margin-top: 120px; }
.yssk-temp img:hover { opacity:0.7; transition:0.3s all; }
.modal-header h2 { text-align:center; font-size:25px; }

#d1 { padding-top:120px; }
.tgnb { border:0px; }
.tgnb td { font-size:20px; color:#071227; padding:8px 0px; border-bottom:1px solid #071227; width: 270px;}
.tgnb td a { color:#071227; text-decoration:none;  }
#main-text { margin-top:0px; margin-bottom:30px; }
#dimodePage { position: unset!important;}
.page-actions.btn-group { position:absolute; bottom:0px; right:0px; }

#main { padding-right:0px; }
.row { margin:0px; }
.sub_title { font-size:24px; font-weight:600; margin-bottom:15px;  }
.sub_nav { list-style:none; margin:30px 0px; }
.sub_nav li { display:inline-block; margin-right:20px; }
.sub_nav li a { background:#63A4CC; color:#fff; font-size:16px; padding:5px 10px; border-radius:8px; text-decoration:none; }
#right { position:relative; }

.time-table { margin-top:70px; }
.time-table .btn { font-size:20px; color:#fff; padding:15px; border-radius:15px; margin:0 10px; background:#2FAEE8; }
.time-table .btn:hover { background:#81c8e8; transition:0.2s all; }
.time-table h1 { font-size:30px; color:#3166A2; font-weight:bold; margin:0 0 40px; }
.modal-body .holly-div { font-size: 22px;word-break: keep-all;text-align: center; padding:15px; }

/* =====================
   Layout Media Queries
   ===================== */
   
@media (min-width:1440px) {
    .container {width: 1340px;}
}
@media (min-width:1200px) and (max-width:1499px) { .time-table .btn { font-size:18px; } }
@media (min-width:993px) and (max-width:1199px) { .time-table .btn { font-size:15px; margin:0 5px; } }

@media (max-width: 1024px) {
    html { font-size: 16px; }
    .gnb-header { height: 4rem; padding: 0 !important; }
    .gnb-header .container { padding: 0 1.5rem; }
    
    .gnb-nav { display: none; }
	.btn-header-youtube { display: none !important; }
    .gnb-toggle { display: flex !important; flex-shrink: 0; }
    .hamb-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-main { flex-direction: column; gap: 3rem; align-items: flex-start; }
}
@media screen and (max-width: 992px) {
    .gnb-header { padding: 0 !important; }
    .gnb-logo img { height: 2.2rem; }
    .btn-museum { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
	#d1 { text-align:center;}
	#main { padding:0 15px; }
	.yssk-temp { height:300px; margin-top:70px; height:180px; }
	#main-church {max-width: 285px!important; display:none!important; }
	.yssk-gallery { bottom:0; position:relative; right:0; margin-bottom:30px; }
	#right { min-height:auto!important; }
}
@media (max-width: 768px) {
    html { font-size: 15px; }
	.gnb-header { padding: 0  20px!important; }
    .gnb-header .gnb-container { 
        padding-left: 5px !important; 
        padding-right: 5px !important;
        width: 100% !important; 
        max-width: 100% !important; 
    }
    .gnb-logo { margin-left: 0 !important; }
    .gnb-right { margin-right: 0 !important; }
    
    .gnb-logo img { height: 1.8rem; }
    .gnb-right { gap: 0.5rem; }
    .btn-museum { padding: 0.3rem 0.6rem; font-size: 0.75rem; gap: 0.2rem; }
    .btn-museum svg { width: 14px; height: 14px; }
    .hamb-grid { grid-template-columns: 1fr; }
    #main { padding:0; }
    #d1 { padding-top:10px;text-align:center; }
    #main-text{margin-bottom:10px!important;}
    .tgnb { width:100%; margin-top:10px; }
    .tgnb td { padding:10px 10px!important; font-size:16px; }
    #right{padding-top:10px!important;}
    .title-wrap{font-size:16px!important; padding:5px 15px!important;}
    .sub_title{font-size:20px!important;margin-bottom:0px!important;}
    .wrap_map{height:300px!important;}
    .time-table h1 { font-size:20px; }
    .time-table .btn { font-size: 17px; padding: 15px; margin: 0 5px; }
    .modal-header h2 { font-size:20px; }
    #main-church { display:none!important;}
    .yssk-temp { margin:0 0 15px; }
    #right { padding:30px 0; text-align:center; }
    .yssk-gallery { bottom:0; position:relative; right:0; }
}
