@charset "utf-8";


/* =========================================================================
   [CORE] Reset & Global Design System
   ========================================================================= */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
    --white: #ffffff;
    --black: #111111;
    --gray-50: #f9f9f9;
    --gray-100: #f3f3f3;
    --gray-200: #eeeeee;
    --gray-500: #888888;
    --gray-800: #333333;
    
    --round-xl: 10px;
    --round-lg: 8px;
    --round-md: 4px;
    --round-sm: 2px;
    --round-xs: 1px;
    
    --container-width: 1200px;
    --header-height: 90px;
    --header-scrolled-height: 60px;
    
    --transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

body { 
    font-family: 'Lexend', 'Pretendard', -apple-system, sans-serif; 
    font-size:16px; line-height:1.6; color:var(--gray-800); 
    background:#fff; overflow-x:hidden; 
    word-break: keep-all;
}
a { text-decoration:none; color:inherit; transition: var(--transition); }
ul, li { list-style:none; }
img { max-width:100%; height:auto; vertical-align:middle; }
button { cursor:pointer; background:none; border:none; outline:none; font-family: inherit; }

.pc-only { display: block; }
.m-only { display: none; }
@media screen and (max-width: 1024px) {
    .pc-only { display: none !important; }
    .m-only { display: block !important; }
}

/* =========================================================================
   [SECTION] Common Style
   ========================================================================= */
.section { padding: 80px 0 40px; }
.section-header { max-width: var(--container-width); margin: 0 auto 40px; padding: 0 18px; text-align: center; }
.section-title { font-size: 42px; font-weight: 800; color: var(--black); margin-bottom: 15px; letter-spacing: -1px; }
.section-desc { font-size: 18px; color: var(--gray-500); max-width: 700px; margin: 0 auto; }

/* Swiper Common Overrides */
.swiper-container { 
    width: 100% !important; 
    max-width: var(--container-width) !important;
    margin: 0 auto !important;
}
.swiper-container:not(.swiper-initialized) .swiper-wrapper,
.swiper-container.swiper-centered .swiper-wrapper {
    justify-content: center !important;
    display: flex !important;
}

@media screen and (max-width: 1024px) {
    :root {
        --header-height: 70px;
        --round-xl: 12px;
        --round-lg: 10px;
    }
    body { font-size: 15px; } 
    .section { padding: 40px 0; } 
    .section-title { font-size: 28px; line-height: 1.3; }
    .section-desc { font-size: 15px; }
}

/* =========================================================================
   [SUB PAGE] Layout & Header Style
   ========================================================================= */
.sub-visual {
    width: 100%;
    min-height: 380px;
    background-color: var(--black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding-top: var(--header-height);
    margin-bottom: 50px;
}
.sub-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%);
}
.sub-visual-inner {
    position: static; /* absolute 요소를 최상단 sub-visual 기준으로 잡기 위해 해제 */
    z-index: 10;
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 타이틀: 높이 기준 수평/수직 중앙 배치 (sub-visual 기준 absolute 활용) */
.sub-title-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    width: 100%;
    text-align: center;
    padding: 0 20px;
    z-index: 15;
    /* header 높이(80px) 때문에 시각적으로 약간 치우쳐 보일 수 있으므로 보정 (선택적) */
    margin-top: calc(var(--header-height) / 2);
}
.sub-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}
.sub-desc {
    font-size: 18px;
    opacity: 0.8;
}

/* 브레드크럼 및 2차 메뉴 래퍼 (배경이미지 있을 때 - no-visual과 동일 구조) */
.sub-nav-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: var(--container-width);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0 20px;
    z-index: 20;
}

/* 브레드크럼(경로) */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
}
.breadcrumb a svg {
    margin-right: 6px;
}
.breadcrumb a:hover,
.breadcrumb span a,
.breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}
.breadcrumb span:last-of-type a {
    color: var(--white);
    font-weight: 600;
}
.breadcrumb svg.chevron {
    opacity: 0.5;
    margin-top: 1px;
}

/* 2차 메뉴 (LNB) */
.sub-menu-list {
    display: flex;
    gap: 30px;
    margin-bottom: -1px; /* border-bottom에 딱 붙게 */
}
.sub-menu-list li {
    display: flex;
    align-items: center;
}
.sub-menu-list li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 15px 0 14px;
    display: inline-block;
}
.sub-menu-list li a:hover,
.sub-menu-list li.active a {
    color: var(--white);
}
.sub-menu-list li.active a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--point-color);
}

/* 2차 메뉴 (이미지 미설정 시: 컨텐츠 상단 배치 - dark 모드) */
.sub-menu-no-visual {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* padding-bottom 제거: border-bottom과 ::after 선을 일치시키기 위함 */
    padding-bottom: 0;
}
.breadcrumb.dark-mode {
    color: var(--gray-500);
    /* 브레드크럼 위치 미세조정 (LNB와 균형) */
    margin-bottom: 15px;
}
.breadcrumb.dark-mode a {
    color: var(--gray-500);
}
.breadcrumb.dark-mode a:hover,
.breadcrumb.dark-mode span a,
.breadcrumb.dark-mode span {
    color: var(--gray-500);
    font-weight: 400;
}
.breadcrumb.dark-mode span:last-of-type a {
    color: var(--gray-800);
    font-weight: 600;
}
.breadcrumb.dark-mode svg.chevron {
    opacity: 0.5;
    margin-right: 0;
}
.sub-menu-list.dark-mode {
    gap: 30px;
    /* 하단 여백 제거 (border-bottom에 딱 붙게) */
    margin-bottom: -1px; 
}
.sub-menu-list.dark-mode li {
    display: flex;
    align-items: center;
}
.sub-menu-list.dark-mode li a {
    color: var(--gray-500);
    padding: 15px 0 14px; /* 하단 패딩 조정 */
    display: inline-block;
    position: relative;
}
.sub-menu-list.dark-mode li a:hover,
.sub-menu-list.dark-mode li.active a {
    color: var(--black);
}
/* 다크모드 LNB 활성화 탭 하단 선 위치 조정 */
.sub-menu-list.dark-mode li.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--point-color);
}

.sub-content-section {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px 80px;
    min-height: 400px;
}
.sub-content-section.no-visual {
    padding-top: calc(var(--header-height) + 60px);
}

@media screen and (max-width: 1024px) {
    .sub-visual {
        min-height: 280px;
        padding-top: calc(var(--header-height) + 20px);
        margin-bottom: 30px;
    }
    .sub-visual-inner {
        position: static;
    }
    .sub-title-wrap {
        position: absolute;
        top: 45%; /* 브레드크럼 숨김 후 약간 위로 이동하여 LNB와 공간 확보 */
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 0 20px;
        width: 100%;
        text-align: center;
        margin-top: calc(var(--header-height) / 2);
    }
    .sub-title { font-size: 28px; }
    .sub-desc { font-size: 15px; }
    
    .sub-nav-wrap {
        position: absolute;
        bottom: 0;
        left: 0;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px; /* LNB 가로 스크롤 시 좌우 여백 확보 */
        width: 100%;
        border-bottom: none;
    }
    .breadcrumb {
        display: none !important; /* 모바일 브레드크럼 숨김 */
    }
    .sub-menu-no-visual {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sub-menu-list {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0;
        margin-bottom: 0;
        gap: 20px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
        -ms-overflow-style: none; /* IE, Edge */
        scrollbar-width: none; /* Firefox */
        /* 좌측 여백(padding)이 첫번째 아이템과 잘 어울리게 0으로 */
    }
    .sub-menu-list::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .sub-menu-list li a { 
        font-size: 15px; 
        padding-bottom: 12px; /* 모바일 밑줄 균형 조정 */
    }

    .sub-menu-list.dark-mode {
        gap: 20px;
    }

    .sub-content-section.no-visual {
        padding-top: calc(var(--header-height) + 20px);
    }
}

/* LNB 활성화 메뉴(Active) 모바일 자동 스크롤시 스냅 느낌을 위한 부드러운 스크롤 */
@media screen and (max-width: 1024px) {
    .sub-menu-list {
        scroll-behavior: smooth;
    }
}
