@charset "utf-8";

/* =========================================================
 * 서브페이지 전용 보강.
 *   헤더 자체는 메인과 동일 디자인 (main.css 의 .main_header 그대로 — 야경/sub_tit 위에 floating).
 *   여기선 sub_tit 비주얼 크기/여백, breadcrumb, 본문 영역만 보강.
 * ========================================================= */

/* sub_tit — 도시 야경 배경 비주얼 영역. body margin-top:-100px + 헤더 sticky 라 sub_tit 첫 100px 가 헤더와 겹침.
   padding-top 130px 으로 텍스트가 헤더 아래에 위치. 높이는 padding + content 자연 높이 (원본과 동일).
   배경 이미지는 명시적으로 박음 (main.css 의 .sub_tit 룰과 같은 url) — 다른 CSS 가 cascade 로 가려도 보장. */
.sub_tit {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	background: url('../img/common/sub_tit_bg2.png') no-repeat center center;
	background-size: cover;
	color: #fff;
	height: 620px;
	position: relative;
	padding: 0 10vw 2.5rem;
}
/* sub_tit 배경 영상 — sub-visual.js 가 .sub_tit 맨 앞에 <video class="sub_tit_video"> 주입.
   무음·자동재생·무한루프. 배경 png 는 영상 로드 전/실패 시 폴백(poster)으로 유지. */
.sub_tit_video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}
/* 영상 위 검은 반투명 오버레이 — 텍스트 가독성(어둡기는 rgba 알파값 0~1로 조절) */
.sub_tit::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: 0;
	pointer-events: none;
}
/* 제목·브레드크럼·위치네비 드롭다운은 영상 위로 */
.sub_tit > .sub_head,
.sub_tit > .sub_nav {
	position: relative;
	z-index: 1;
}
.sub_head {
	text-align: left;
	display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
	padding-bottom: 5rem;
}
.sub_tit h2 {
	color: #fff;
	font-size: 3.2rem;
	font-weight: 600;
	margin: 0;
	text-align: center;
	padding-bottom: 1rem;
	text-shadow: 0 0 10px rgba(0 0 0 / 50%);
	font-weight: 700;
	letter-spacing: .2rem;
}
.sub_tit p {
	color: rgba(255,255,255,0.9);
	font-size: 1rem;
	text-align: center;
	line-height: 1.5;
}

@media screen and (max-width: 900px){
    .sub_tit {height: 380px;}
	.sub_tit h2 {font-size: 2.8rem;}
}

/* ===== 서브 상단 위치네비 드롭다운 (마크업은 overrides/sub-visual.js 가 주입) ===== */
.sub_nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.subloc {display: flex; gap: .5rem; }   /* 색만 바꾸려면 --subloc-accent */
.subloc-item { position: relative; min-width: 260px; }
.subloc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
	    backdrop-filter: blur(10px) brightness(1.8);color: #fff; border: 0; cursor: pointer;
	padding: .9rem 1rem; font-size: 1rem; font-weight: 500; line-height: 1; border-radius: 50px; }
.subloc-item.open .subloc-head { background: var(--main-color-dark); backdrop-filter: none; border-radius: 8px 8px 0 0; }
/* hover — 액센트 그라디언트가 좌→우로 촤라락 채워짐 + 은은한 글로우 (닫힘 상태 한정, 텍스트/화살표는 위) */
.subloc-head { position: relative; overflow: hidden; transition: box-shadow .3s ease; }
.subloc-head > span { position: relative; z-index: 1; transition: color .3s ease; }
.subloc-head::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(120deg, var(--main-color-dark) 0%, var(--main-color) 100%);
	transform: scaleX(0); transform-origin: left center;
	transition: transform .9s cubic-bezier(.19, 1, .22, 1);
}
.subloc-item:not(.open) .subloc-head:hover::before { transform: scaleX(1); }
.subloc-item:not(.open) .subloc-head:hover { box-shadow: 0 8px 22px rgba(26, 148, 255, .32); }
.subloc-arw { font-size: 20px; transition: transform .2s ease; }
.subloc-item.open .subloc-arw { transform: rotate(180deg); }
.subloc-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 0 !important; padding:0; list-style: none;
	background: var(--main-color-dark); border-radius: 0 0 10px 10px; box-shadow: 0 16px 30px rgba(0,0,0,.30);
	max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
	transition: max-height .25s ease, opacity .2s ease, visibility .2s; display: flex;    flex-direction: column;gap: 0 !important;}
.subloc-item.open .subloc-list { max-height: 70vh; opacity: 1; visibility: visible; }
.subloc-list li { position: static; display: block;width: 100%;}                /* 브레드크럼 li 화살표(::after) 상속 방지 */
.subloc-list li::after { content: none !important; }
.subloc-list li a { display: block; padding: .85rem 1.4rem; color: #fff; font-size: 1rem; font-weight: 400; text-decoration: none; transition: background .15s ease; }
.subloc-list li a:hover { background: rgba(0,0,0,.16); }
.subloc-list li a.on { background: rgba(0,0,0,.12); font-weight: 700; }
@media (max-width: 900px) { .subloc { flex: 1; } .subloc-item { flex: 1; min-width: 0; } }
@media (max-width: 600px) {
	.sub_tit { height: auto; min-height: 340px; padding: 8rem 1.5rem 2rem; }   /* 상단 8rem: floating 헤더와 겹침 방지 / 고정높이→자동(잘림 방지) / 좌우 여백 축소 */
	.sub_tit h2 { font-size: 2.1rem; }
	.sub_head { padding-bottom: 2.5rem; }
	.sub_nav { flex-direction: column; align-items: stretch; gap: .8rem; }
	.subloc { flex-direction: column; gap: .5rem; }   /* 드롭다운 세로 스택(폭 확보) */
	.subloc-item { flex: none; min-width: 0; }
}

/**************** sub_nav ****************/
.sub_nav {border-top: 1px solid rgba(255 255 255 / 15%);padding-top: 1.3rem;}
.sub_nav ul{display: flex;align-items: center;gap: 2rem;}
.sub_nav ul li{position: relative;color: rgba(255 255 255 / 80%);font-size: .95rem;line-height: 1;}
.sub_nav ul li::after{content: '\e5cc';font-family:'Material Symbols Outlined'; display: inline-block;position: absolute;right: -1.5625rem;border-radius: 50%;top: 50%;transform: translateY(-50%);}
.sub_nav ul li:last-child {color: #fff;font-weight: 600;}
.sub_nav ul li:last-child:after{display: none;}
.sub_nav .home_btn{display: block;color:  rgba(255 255 255 / 80%);line-height: 1;}
.sub_nav .home_btn .material-icons{font-size: 1.25rem;margin-top: 0.1rem;}

/* 본문 콘텐츠 영역 — t_page.page_content (HTML) 가독성 */
.page_content {
	padding: 4rem 0;
	color: #333;
	font-size: 1rem;
	line-height: 1.7;
}
/* 게시판 본문 영역 — 일반페이지 .page_content 와 동일한 상하 여백 (_bbs-layout 의 슬롯 래퍼) */
.bbs_content {
	padding: 2rem 0;
}
.page_content h1,
.page_content h2,
.page_content h3 { margin: 1.5rem 0 1rem; font-weight: 700; }
.page_content h1 { font-size: 1.8rem; }
.page_content h2 { font-size: 1.5rem; }
.page_content h3 { font-size: 1.25rem; }
.page_content p  { margin: 0.5rem 0 1rem; }
/* .page_content ul,
.page_content ol { margin: 0.5rem 0 1rem 1.5rem; } */
.page_content img { max-width: 100%; height: auto; }
.page_content table { border-collapse: collapse; margin: 1rem 0; }
.page_content table td,
.page_content table th { border: 1px solid #ddd; padding: 0.5rem 0.75rem; }

/* TOP 버튼(#topBtn) — main.css 의 단일 정의를 메인·서브 공통으로 사용.
   main.css #topBtn 이 어두운 반투명 배경이라 흰 배경 서브에서도 잘 보임 → 별도 override 불필요(제거). */


/* greeting */
/* .greeting .greeting_img{width: 100%;margin-bottom: 3.125rem;}
.greeting p {font-size:1.125rem; line-height:1.875rem}
.greeting h2 {color:#4e4e4e; font-size:1.5rem; line-height:2.375rem;margin-top:1.25rem;}
.greeting .color {color:#1a87d0;}
.greeting p.t_right {font-size:1.5rem;color:#4e4e4e;font-weight:600;}
.greeting p.t_right img {margin-left:0.3125rem;position:relative;top:0.3125rem;} */

.wrap > h2{font-size: 2.5rem; font-weight: bold; color: #000;}
.greeting{margin: 6.25rem auto 1.25rem;}
.greeting2{margin: 0 auto; display: flex; justify-content: center; padding: 7.5rem 2vw; position: relative; border-left: 1px solid #DFE4E6; border-right: 1px solid #DFE4E6;}
.greeting2::before{content: ""; width: 1px; height: 100%; background: #DFE4E6; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: -1;}
.greeting2 .g_txt{font-size: 1.2rem; color: #666; display: flex; flex-direction: column; gap: 3.75rem;}

@media screen and (max-width: 1200px){
    .g_img{height: 50vw;}
    .g_img img{height: 100%; object-fit: cover;}
    .greeting2{padding: 5rem 2vw;}
}


/* =========================================================
   인사말 레이아웃 (.greet) — 일반페이지 본문(page_content)에서 사용.
   에디토리얼 2단: 상단 GREETING 라벨 / 좌 큰 제목(키워드 강조) · 우 본문 / 하단 서명.
   이미지 없이도 꽉 차게. 본문 HTML 예시는 채팅/디자인가이드 참조.
   ========================================================= */
.greet { position: relative; padding: 1rem 0 2rem; }
.greet::before { content: ""; position: absolute; top: -3rem; right: -4rem; width: 26rem; height: 26rem; max-width: 60vw; background: radial-gradient(circle, rgba(91,124,255,.14), rgba(138,108,255,.05) 45%, transparent 70%); pointer-events: none; z-index: 0; }
.greet > * { position: relative; z-index: 1; }

.greet .greet_eyebrow { display: inline-block; font-size: .9rem; font-weight: 700; letter-spacing: .22em; color: #5b7cff; margin-bottom: 1.75rem; }
.greet .greet_eyebrow::after { content: ""; display: inline-block; width: 2.5rem; height: 2px; background: #5b7cff; opacity: .5; vertical-align: middle; margin-left: .75rem; }

.greet .greet_inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 4.5rem; align-items: start; }
.greet .greet_title { font-size: 2.4rem; font-weight: 800; line-height: 1.42; letter-spacing: -0.02em; color: #1a1a1a; margin: 0; }
.greet .greet_title .pt { background: linear-gradient(120deg, #5b7cff, #8a6cff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.greet .greet_body p { font-size: 1.05rem; line-height: 1.95; color: #555; margin: 0 0 1.5rem; }
.greet .greet_body p:last-child { margin-bottom: 0; }
.greet .greet_body strong { color: #1a1a1a; font-weight: 700; }

.greet .greet_sign { margin: 3.5rem 0 0; padding-top: 1.75rem; border-top: 2px solid #ececf1; text-align: right; }
.greet .greet_sign .role { font-size: 0.95rem; color: #6b6b6b; margin-right: .6rem; }
.greet .greet_sign .name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; color: #1a1a1a; }

.greet .greet-h {font-size: 2rem;font-weight: 500;line-height: 1.2;color: var(--sub-txt-color);}

/* (선택) 이미지가 있으면 본문 아래 와이드로 */
.greet .greet_visual { margin-top: 3.5rem; }
.greet .greet_visual img { width: 100%; height: auto; display: block; border-radius: 1.5rem; box-shadow: 0 1.25rem 3rem rgba(20, 40, 120, 0.12); }

@media screen and (max-width: 900px) {
    .greet .greet_inner { grid-template-columns: 1fr; gap: 1.75rem; }
    .greet .greet_title { font-size: 1.7rem; }
    .greet::before { right: -6rem; width: 18rem; height: 18rem; }
}
