@charset "utf-8";

/* ==================================================================
 * sub_layout.css - 서브 페이지 공통 레이아웃
 * 구조는 kyungjin-html 서브 헤더와 동일하다.
 *   .sub-wrap > .sub-bg + #sub-content > .sub-header(.location + h2) + .sub-body
 * 서브 페이지에서만 연결된다. (header_sub.php → $isSub)
 * ================================================================== */

.sub-wrap { position: relative; }

/* ---------- 상단 배경 ---------- */
/* 메인 비주얼과 같은 구성 : 단색 계열 배경 위에 사람 일러스트를 얹는다.
   사진을 꽉 채우던 방식이 아니라, 배경은 브랜드 그라데이션이 담당한다. */
.sub-bg {
    position: relative;
    height: 380px;
    overflow: hidden;
    background:
        radial-gradient(80% 120% at 88% 100%, rgba(31, 201, 255, .22) 0%, transparent 60%),
        linear-gradient(115deg, #0B3F53 0%, #10566E 52%, #15687F 100%);
}
/* 일러스트는 오른쪽에 원본 비율 그대로 (늘리지 않는다) */
.sub-bg img {
    position: absolute;
    right: 3%;
    top: 0;
    width: auto;
    height: 190%;
    max-width: 100%;
    object-fit: contain;
    animation: subBgUp 1s var(--ease) forwards;
}
@keyframes subBgUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
/* 페이지명이 놓이는 왼쪽만 살짝 눌러 가독성을 확보 */
.sub-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(8, 48, 63, .55) 0%, rgba(8, 48, 63, .12) 48%, transparent 70%);
}




/* ---------- 페이지명 + 경로 ---------- */
.sub-header {
    position: absolute; left: 50%; top: 0;
    z-index: 2;
    width: 100%;
    height: 380px;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding-bottom: 54px;
    transform: translateX(-50%);
    color: #fff;
}
.sub-header h2 {
    font-size: clamp(30px, 4.4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.03em;
}
.sub-header .cate2-name {
    margin-bottom: 6px;
    font-size: 14px; font-weight: 600;
    color: var(--c-accent);
}

/* ---------- location (경로) ---------- */
.location {
    gap: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}
.location > li { position: relative; }
.location .home a {
    display: flex; align-items: center;
    padding: 6px 10px 6px 0;
    color: rgba(255, 255, 255, .8);
}
.location .home .material-symbols-outlined { font-size: 20px; }
.location .home a:hover { color: #fff; }

.location .m-name { padding-left: 18px; }
/* 항목 사이 구분 화살표 */
.location .m-name::before {
    content: '';
    position: absolute; left: 2px; top: 50%;
    width: 6px; height: 6px;
    margin-top: -3px;
    border-right: 1.5px solid rgba(255, 255, 255, .45);
    border-bottom: 1.5px solid rgba(255, 255, 255, .45);
    transform: rotate(-45deg);
}
.location .page-name > a {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 2px;
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
}
/* 펼침 표시 */
.location .page-name > a::after {
    content: '';
    width: 6px; height: 6px;
    margin-left: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .25s var(--ease);
}
.location .group:hover .page-name > a::after,
.location .group:focus-within .page-name > a::after {
    transform: translateY(1px) rotate(-135deg);
}

.location .down-wrap {
    position: absolute; left: 18px; top: 100%;
    z-index: 5;
    min-width: 190px;
    padding: 8px 0;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
}
.location .group:hover .down-wrap,
.location .group:focus-within .down-wrap {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.location .down-wrap a {
    display: block;
    padding: 9px 18px;
    color: var(--c-sub);
    white-space: nowrap;
    transition: color .2s var(--ease), background .2s var(--ease);
}
.location .down-wrap a:hover { color: var(--c-primary); background: var(--c-bg-soft); }
.location .down-wrap a.active { color: var(--c-primary); font-weight: 700; }

/* ---------- 본문 ---------- */
.sub-body { position: relative; }

/* ==================================================================
 * Responsive
 * ================================================================== */
@media (max-width: 1199.98px) {
    .sub-bg, .sub-header { height: 320px; }
    .sub-header { padding-bottom: 44px; }
}
@media (max-width: 767.98px) {
    /* location 은 마크업의 d-none d-md-flex 로 감춰지고 1depth 명만 노출된다 */
    .sub-bg, .sub-header { height: 240px; }
    .sub-header { padding-bottom: 32px; }
}
@media (max-width: 450px) {
    .sub-bg img {
        right: -15%;
        top: 15%;
        height: 130%;
    }
}
