@charset "UTF-8";

/* ==========================================================================
   기본 스타일 및 레이아웃
   ========================================================================== */
html { overflow-y: scroll; height: 100%; min-width: 320px; }
body { margin: 0; padding: 0; font-size: 16px; background: #fff; height: 100%; /* font-family: 'Noto Sans KR', sans-serif; */ color: #333; }
html, h1, h2, h3, h4, h5, h6, form, fieldset, img { margin: 0; padding: 0; border: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 1em; font-weight: 700; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
ul, li, dl, dt, dd { padding: 0; margin: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
*, :after, :before { box-sizing: border-box; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* 💡 [최종 수정] 서브 페이지 상단 제목 영역의 높이를 대폭 줄입니다. */
.sub-page-visual {
    padding-top: 20px; /* 헤더 높이(80px) + 추가 여백 */
    /*padding-bottom: 40px;*/
    background: #0056b3;
    text-align: center;
    border-bottom: 1px solid #eee;
}
#container_title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 5px;
}
.sub-title-eng {
    font-size: 1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sub-page-container {
    padding-top: 80px;
    padding-bottom: 80px;
    background: #fff;
    min-height: 500px;
}

/* ==========================================================================
   헤더 (Header)
   ========================================================================== */
header#header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    height: 80px;
    display: flex;
    align-items: center;
}
header#header.main-header.is-transparent {
    background-color: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}
header#header.main-header.is-scrolled {
    background-color: #0056b3 !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid #eee !important;
}
.header-inner { display: flex; justify-content: center; align-items: center; width: 100%; }
.header-left{ display: flex; align-items: center; flex-shrink: 0; margin-right: 80px}
.header-right { display: flex; align-items: center; flex-shrink: 0; margin-left: 80px}
.header-logo img { height: 40px; transition: all 0.3s; }

/* GNB (PC) */
.gnb { display: flex; justify-content: center; }
.gnb-list { display: flex; gap: 40px; }
.gnb-item { position: relative; }
.gnb-link { display: block; padding: 28px 0; font-size: 1.1rem; font-weight: 700; color: #333; position: relative; }
header#header.is-transparent .gnb-link,
header#header.is-transparent .utility-nav a,
header#header.is-transparent .utility-nav button { color: #fff; }
header#header.is-scrolled .gnb-link,
header#header.is-scrolled .utility-nav a,
header#header.is-scrolled .utility-nav button { color: #fff; }
.gnb-link::after { content: ''; position: absolute; bottom: 20px; left: 0; width: 0; height: 2px; background-color: #0056b3; transition: width 0.3s ease; }
header#header.is-transparent .gnb-link::after { background-color: #fff; }
.gnb-item:hover .gnb-link::after, .gnb-item.active .gnb-link::after { width: 100%; color: #00A3FF;}
.sub-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #0056b3; border-radius: 8px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); padding: 15px; min-width: 180px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, top 0.3s ease; border: 1px solid #eee; }
.gnb-item:hover .sub-menu { opacity: 1; visibility: visible; top: 90%; }
.sub-menu li a { display: block; padding: 10px 15px; color: #fff; white-space: nowrap; border-radius: 4px; transition: background-color 0.2s, color 0.2s; }
.sub-menu li a:hover { background-color: #0056b3; color: #00A3FF; }

/* 유틸리티 메뉴 */
.utility-nav { display: flex; align-items: center; gap: 20px; }
.utility-nav a, .utility-nav button { background: none; border: none; cursor: pointer; font-size: 1rem; }
.utility-nav .btn-join { background-color: #0056b3; color: #fff !important; padding: 8px 16px; border-radius: 20px; font-weight: 700; transition: background-color 0.3s; }
header#header.is-transparent .utility-nav .btn-join { background-color: rgba(255, 255, 255, 0.2); }
.utility-nav .btn-join:hover { background-color: #003d82; }
.utility-nav .fa { font-size: 1.3rem; }
.user-menu-container { position: relative; }
.user-menu-dropdown { display: none; position: absolute; top: 140%; right: 0; background: #00A3FF; border-radius: 8px; box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); padding: 10px; min-width: 180px; border: 1px solid #eee; }
.user-menu-container.open .user-menu-dropdown, .user-menu-container:hover .user-menu-dropdown { display: block; }
.user-menu-dropdown .user-info { padding: 10px 15px; border-bottom: 1px solid #f0f0f0; margin-bottom: 5px; }
.user-menu-dropdown .user-info strong { color: #000; }
.user-menu-dropdown .user-points { font-size: 0.9em; color: #0056b3; margin-left: 5px; }
.user-menu-dropdown ul li a { display: block; padding: 10px 15px; color: #555; border-radius: 4px; }
.user-menu-dropdown ul li a:hover { background-color: #0056b3; color:  #00A3FF; }
.new-badge { background-color: #e74c3c; color: white; font-size: 0.7em; padding: 2px 5px; border-radius: 10px; margin-left: 5px; vertical-align: middle; }
header#header.is-transparent .user-menu-dropdown,
header#header.is-transparent .user-menu-dropdown .user-info strong,
header#header.is-transparent .user-menu-dropdown .user-points,
header#header.is-transparent .user-menu-dropdown ul li a { color: #333; }

/* 검색창 */
#search-bar-wrap { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.98); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 1001; }
#search-bar-wrap.is-active { opacity: 1; visibility: visible; }
#search-bar-wrap form { width: 100%; max-width: 600px; position: relative; }
#search-bar-input { width: 100%; border: none; border-bottom: 2px solid #333; background: transparent; font-size: 1.8rem; padding: 10px 50px 10px 10px; outline: none; }
.search-bar-submit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; color: #333; background: none; border: none; cursor: pointer; }
.search-bar-close { position: fixed; top: 30px; right: 30px; font-size: 2.5rem; color: #555; background: none; border: none; cursor: pointer; }

/* 반응형 */
.pc-only { display: flex; align-items: center; }
.mobile-only { display: none; }
@media (max-width: 1024px) {
    .pc-only { display: none !important; }
    .mobile-only { display: flex !important; align-items: center; }
    header#header.main-header { height: 60px; }
    .header-logo img { height: 30px; }
    .mobile-gnb .sub-menu {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-radius: 0;
    }
    /* 1차 메뉴 링크 */
    .mobile-gnb > ul > li > a {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        background: #fff;
        color: #333;
    }
}

/* 모바일 메뉴 */
#mobile-nav-panel { position: fixed; top: 0; right: 0; width: 300px; height: 100%; background: #fff; z-index: 1003; transform: translateX(100%); transition: transform 0.4s ease; box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; }
#mobile-nav-panel.is-active { transform: translateX(0); }
#mobile-nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1002; }
#mobile-nav-overlay.is-active { display: block; }
.mobile-nav-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.btn-mobile-login, .btn-mobile-join { padding: 8px 15px; border-radius: 20px; font-weight: 700; }
.btn-mobile-login { border: 1px solid #ddd; color: #333; }
.btn-mobile-join { background: #0056b3; color: #fff; }
.mobile-menu-close-btn { font-size: 1.8rem; background: none; border: none; cursor: pointer; }
.mobile-gnb { padding: 0; flex-grow: 1; /* 💡 [최종 수정] overflow-y: auto; 제거 */ }
.mobile-gnb ul li {   position: relative; overflow: visible; }
.mobile-gnb ul li a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f5f5f5; font-size: 1.1rem; font-weight: 700; color: #333; }
.mobile-gnb .sub-menu {  position: static !important; display: none; background: #f9f9f9;  opacity: 1; visibility: visible; width: 100%; box-shadow: none; border-top: 1px solid #eee; transition: transform 0.3s;}
.mobile-gnb .sub-menu li a { font-size: 1rem; font-weight: 400; text-align: left; padding: 10px 30px; }
.sub-menu-indicator { transition: transform 0.3s; }
.mobile-gnb li.submenu-open .sub-menu-indicator { transform: rotate(180deg); }
.mobile-gnb li.submenu-open > .sub-menu {
    display: block;
}
.mobile-gnb .sub-menu {
    display: none;
    transition: all 0.3s ease;
}

/* 기타 */
.main-content-wrapper { padding: 80px 0; background-color: #fff; }
.three-column-layout { display: flex; gap: 30px; align-items: flex-start; }
.layout-sidebar-left, .layout-sidebar-right { flex: 0 0 240px; }
.layout-main-content { flex: 1; min-width: 0; }
.sidebar-inner { position: sticky; top: 120px; }
@media (max-width: 1024px) {
    .three-column-layout { flex-direction: column; }
    .sidebar-inner { position: static; }
}
