/* ============================================================
   layout.css
============================================================ */

/* 공통 컨테이너 */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ============================================================
   상단 바
============================================================ */
.hd-top {
    display: flex;
    align-items: center;
    border-bottom: solid 1px #e5e5e5;
}

.hd-top .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.hd-top ul {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hd-top ul li {
    font-weight: 500;
    position: relative;
}

.hd-top ul li a.user {
    background: #e78d22;
    color: #fff;
    padding: 0px 10px;
    display: flex;
    font-size: 0.813rem;
    justify-content: center;
    height: 40px;
    line-height: 40px;
}

.hd-top ul li .user-wrap {
    display: none;
    background: #fff;
    position: absolute;
    z-index: 1111;
    padding: 20px;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.1);
}

.hd-top ul li:first-child:hover {
    .user-wrap {
        display: block;
    }
}

.hd-top ul li .user-wrap dl {
    margin-bottom: 20px;
    width: 120px;
}

.hd-top ul li .user-wrap dl:last-child {
    margin-bottom: 0px;
}

.hd-top ul li .user-wrap dl dt {
    color: #3cc3a2;
    font-size: 15px;
    font-weight: bold;
    border-bottom: dashed 1px #3cc3a2;
    padding-bottom: 3px;
    margin-bottom: 5px;
}

.hd-top ul li .user-wrap dl dd {}

.hd-top ul li .user-wrap dl dd a {
    font-size: 13px;
}

.hd-top ul li .user-wrap dl dd a:hover {
    color: #294d89;
    text-decoration: underline;
}

.hd-top ul li a.mypage {
    font-size: 13px;
}

.hd-top ul li a.logout {
    font-size: 13px;
}

.hd-top .f-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 0.813rem;
    font-weight: 500;
    background: #294d89;
    height: 40px;
    padding: 0px 15px;
}

.hd-top .f-home::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/common/top_home.png') no-repeat center / contain;
}

/* ============================================================
   헤더
============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    height: 70px;
}

header .container {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    justify-content: space-between;
}

header h1 {
    flex-shrink: 0;
}

header h1 a {
    display: flex;
    align-items: center;
}

header h1 img {
    height: 36px;
    max-width: 280px;
    width: 100%;
}

/* GNB - 헤더 내부 */
header .gnb {
    flex: 1;
    display: flex;
    justify-content: center;
}

header .gnb .dep01 {
    display: flex;
    align-items: center;
    gap: 60px;
    transform: translateX(-60px);
}

header .gnb .dep01 > li {
    position: relative;
}

header .gnb .dep01 > li > a {
    display: block;
    font-size: 1.13rem;
    color: #222222;
    white-space: nowrap;
    transition: color 0.2s;
    font-family: 'JejuGothic';
    line-height: 70px;
}

header .gnb .dep01 > li > a:hover,
header .gnb .dep01 > li.active > a {
    color: #294d89;
}

header .gnb .dep02 {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 2px solid #294d89;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

header .gnb .dep01 > li:hover .dep02 {
    display: block;
}

header .gnb .dep02 li {}

header .gnb .dep02 li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.875rem;
    text-align: center;
    color: #444444;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

header .gnb .dep02 li:last-child a {
    border-bottom: none;
}

header .gnb .dep02 li a:hover {
    background: #f4f7fc;
    color: #294d89;
}

/* 햄버거 버튼 */
.btn-gnb {
    margin-left: auto;
    width: 36px;
    height: 36px;
    background: url('../images/common/btn_menu.png') no-repeat center / 22px;
    border: none;
    font-size: 0;
    cursor: pointer;
    flex-shrink: 0;
}


/* GNB 배경 레이어 */
.gnb-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 950;
}

.gnb-bg.active {
    display: block;
}

/* ============================================================
   전체 메뉴 (all-menu)
============================================================ */
.all-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

.all-menu.active {
    display: block;
}

.all-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #294d89;
}

.all-menu-top strong {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.all-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: url('../images/common/close.svg') no-repeat center / 18px;
    font-size: 0;
}

.all-menu .gnb {
    padding: 16px 0;
}

.all-menu .gnb .dep01 {}

.all-menu .gnb .dep01 > li {}

.all-menu .gnb .dep01 > li > a {
    display: block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #1c4a30;
    border-bottom: 1px solid #f0f0f0;
}

.all-menu .gnb .dep02 {
    background: #f8faf9;
}

.all-menu .gnb .dep02 > li {}

.all-menu .gnb .dep02 > li > a {
    display: block;
    padding: 9px 24px 9px 36px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
}

.all-menu .gnb .dep03 {
    background: #f0f5f2;
}

.all-menu .gnb .dep03 li {}

.all-menu .gnb .dep03 li a {
    display: block;
    padding: 8px 24px 8px 50px;
    font-size: 0.813rem;
    color: #555555;
}

.all-menu .gnb .dep03 li a:hover,
.all-menu .gnb .dep02 > li > a:hover {
    color: #2e8b57;
}

/* ============================================================
   푸터
============================================================ */
footer {
    border-top: 1px solid #cbcbcb;
}

footer .ft-top {
    border-bottom: 1px solid #cbcbcb;
}

footer .ft-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

footer .ft-top .left {
    display: flex;
    align-items: center;
    gap: 16px;
}

footer .ft-top .left a {
    font-size: 1rem;
    color: #555555;
}

footer .ft-top .left a:hover {
    text-decoration: underline;
}

footer .ft-top .left .blue {
    color: #1a5fa8;
    font-weight: 400;
}

footer .ft-top .right {
    display: flex;
}

footer .ft-top .right .pop {
    position: relative;
}

footer .ft-top .right .pop:first-child > a {
    border-left: solid 1px #cbcbcb;
}

footer .ft-top .right .pop > a {
    display: flex;
    min-width: 200px;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.813rem;
    color: #444444;
    border-right: 1px solid #cbcbcb;
    background: #ffffff;
    transition: border-color 0.2s;
    min-height: 60px;
    justify-content: space-between;
}

footer .ft-top .right .pop > a::after {
    content: '';
    display: inline-block;
    width: 9px;
    height: 5px;
    background: url('../images/common/site_arrow.png') no-repeat center center;
}

footer .ft-top .right .pop > a:hover {
    font-weight: 500;
}

footer .ft-top .right .pop ul {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

footer .ft-top .right .pop:hover ul {
    display: block;
}

footer .ft-top .right .pop ul li {}

footer .ft-top .right .pop ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 0.813rem;
    color: #444444;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

footer .ft-top .right .pop ul li:last-child a {
    border-bottom: none;
}

footer .ft-top .right .pop ul li a:hover {
    color: #2e8b57;
    background: #f4faf7;
}

footer .ft-btm {
    padding: 24px 0 28px;
}

footer .ft-btm .container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

footer .ft-btm .left {}

footer .ft-btm .left address {
    display: inline-block;
    font-size: 0.813rem;
    color: #555555;
    font-style: normal;
    margin-right: 20px;
}

footer .ft-btm .left span {
    font-size: 0.813rem;
    color: #555555;
    margin-right: 14px;
}

footer .ft-btm .left copy {
    display: block;
    font-size: 0.75rem;
    color: #888888;
    margin-top: 6px;
    margin-bottom: 8px;
}

footer .ft-btm .left .small {
    font-size: 0.75rem;
    color: #999999;
    line-height: 1.6;
}

footer .ft-btm .right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

footer .ft-btm .right .img {
    width: auto;
}

footer .ft-btm .right .img img {
    height: 50px;
    width: auto;
}

/*sub layout */
.sub .container {
    display: flex;
    padding-top: 20px;
    justify-content: space-between;
}

.sub .lnb-wrap {
    width: 250px;
    margin-bottom:100px;
}

.sub .lnb-wrap h3 {
    background: #2A7B9B;
    padding: 20px;
    color: #fff;
    font-size: 1.3rem;
    font-family: 'JejuGothic';
    font-weight: 400;
    background: url(../images/common/h3_bg.svg) no-repeat right -10px center #3cc3a2;
    background-size: 100px;
    border-radius: 10px;
}

.sub .lnb-wrap .lnb {
    margin-top: 10px;
}

.sub .lnb-wrap .lnb .dep02 {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sub .lnb-wrap .lnb .dep02 > li {}

.sub .lnb-wrap .lnb .dep02 > li > a {
    border: solid 1px #dedede;
    display: block;
    width: 100%;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 0.94rem;
    color: #555555;
    font-weight: 500;
    background: url(../images/common/menu_right.svg) no-repeat right 20px center;
    background-size: 12px;
}

.sub .lnb-wrap .lnb .dep02 > li > a.on {
    background: url(../images/common/menu_right_on.svg) no-repeat right 20px center #294d89;
    background-size: 12px;
    border-radius: 5px 5px 0px 0px;
    color: #fff;
}

.sub .lnb-wrap .lnb .dep02 > li > .dep03 {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border: none;
    border-radius: 0px 0px 5px 5px;
    display: flex;
    flex-direction: column;
}
.sub .lnb-wrap .lnb .dep02 > li > .dep03.open {
    max-height: 500px;
    border: solid 1px #d7deeb;
}
.sub .lnb-wrap .lnb .dep02 > li > .dep03 > li {}

.sub .lnb-wrap .lnb .dep02 > li > .dep03 > li > a {
    border-bottom: solid 1px #d7deeb;
    display: block;
    width: 100%;
    padding: 8px 20px;
    font-size: 0.90rem;
    color: #555555;
    background: #eff3f8;
    font-weight: 500;
}

.sub .lnb-wrap .lnb .dep02 > li > .dep03 > li:last-child > a {
    border-bottom: none;
}

.sub .lnb-wrap .lnb .dep02 > li > .dep03 > li > a.on {

    background: #dfe6f2;
    color: #294d89;
}

.sub .lnb-wrap .lnb .dep02 > li > .dep03 > li > a:not(.on):hover {
    background: #c5d3e9;
}

.sub .cont-wrap {
    width: calc(100% - 300px);
}

.sub .cont-wrap .cont-top {
    padding-top: 10px;
    margin-bottom: 20px;
}

.sub .cont-wrap .cont-top .loca {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub .cont-wrap .cont-top .loca .now {
    display: flex;
    align-items: center;
}

.sub .cont-wrap .cont-top .loca .now li {
    padding-right: 7px;
    margin-right: 7px;
    border-right: dotted 2px #ddd;
    line-height: 1;
    font-size: 13px;
}

.sub .cont-wrap .cont-top .loca .now li a {
    font-size: 13px;
}

.sub .cont-wrap .cont-top .loca .now li:first-child a {
    width: 12px;
    height: 12px;
    background: url(../images/common/home.svg) no-repeat center center;
    background-size: cover;
    display: block;
    text-indent: -99999px;
}

.sub .cont-wrap .cont-top .loca .now li:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    color: #294d89;
    font-weight: 500;
}


.sub .cont-wrap .cont-top .loca .opt {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sub .cont-wrap .cont-top .loca .opt li {}

.sub .cont-wrap .cont-top .loca .opt li a {
    width: 24px;
    height: 24px;
    display: block;
    text-indent: -99999px;
}

.sub .cont-wrap .cont-top .loca .opt li a.sns01 {
    background: url(../images/common/facebook.svg) no-repeat center center;
    background-size: cover;
}

.sub .cont-wrap .cont-top .loca .opt li a.sns02 {
    background: url(../images/common/twitter.svg) no-repeat center center;
    background-size: cover;
}

.sub .cont-wrap .cont-top .loca .opt li a.print {
    background: url(../images/common/printing.svg) no-repeat center center;
    background-size: cover;
}

.sub .cont-wrap > h4 {
    font-weight: 800;
}

.sub .cont-wrap .inner {}

.sub .cont-wrap .inner .page-wrap {
    min-height:500px;
}

/* ============================================================
   반응형
============================================================ */
@media (max-width:1500px) {
    .hd-top ul {
        margin-left:-15px;
    }
    .hd-top .f-home {
        margin-right: -15px;
    }

    .sub .lnb-wrap {
        display: none;
    }

    .sub .cont-wrap {
        width: 100%;
    }
}

@media (max-width:1200px) {
    header .gnb .dep01 {
        gap: 30px;
        transform: translateX(-12px);
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    header .gnb {
        display: none;
    }

    .btn-gnb {
        display: block;
    }
}

@media (max-width: 768px) {
    .top .f-home span {
        display: none;
    }

    header {
        height: 60px;
    }

    header .container {
        gap: 0px;
    }
}

@media (max-width: 640px) {

    footer .ft-top .left {
        width: 100%;
        border-bottom: solid 1px #ddd;
        padding: 10px 15px;
    }

    footer .ft-top .left a {
        font-size: 0.85rem;
    }

    footer .ft-top .right {
        width: 100%;
    }

    footer .ft-top .right .pop {
        width: 50%;
    }

    footer .ft-top .container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0px;
        gap: 0px;
    }

    footer .ft-btm .container {
        flex-direction: column;
    }

    footer .ft-btm .right {
        margin-top: 12px;
    }

    footer .ft-top .right .pop > a {
        min-height: 40px;
        width: 100%;
        min-width: unset;
    }

    footer .ft-top .right .pop:last-child > a {
        border-right: none;
    }

    footer .ft-top .right .pop ul {
        width: 100%;
        min-width: unset;
    }

    .sub .cont-wrap > h4 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    header h1 img {
        max-width: 200px;
        height: auto;
    }

    .hd-top {
        height: auto;
    }

    .hd-top .f-home {
        padding: 6px 10px;
        height: auto;
    }

    .hd-top .f-home::before {
        width: 12px;
        height: 12px;
    }

    .hd-top .hd-util {
        gap: 6px;
    }

    .hd-top .hd-util > li > a.btn-mypage,
.hd-top .hd-util > li > a.btn-login {
        padding: 0 10px;
    }

    .mypage-pop {
        right: -40px;
    }
}

@media (max-width: 360px) {}

/* pub CSS: 프로젝트에 없는 선택자 및 반응형 스타일 보완 */
.hd-top .hd-util {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 0;
}

.hd-top .hd-util > li > a.btn-login,
.hd-top .hd-util > li > a.btn-mypage {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    border-radius: 15px;
    font-size: 0.813rem;
    font-weight: 500;
}

.hd-top .hd-util > li > a.btn-login {
    background: #1f3c6d;
    color: #fff;
}

.hd-top .hd-util > li.hd-mypage > a.btn-mypage:hover {
    background: #dfe6f6;
}

.hd-top .hd-util > li > a.btn-mypage i {
    font-size: 0.95rem;
}

.hd-top .hd-util .hd-mypage {
    position: relative;
}

.mypage-pop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1200;
    width: 300px;
    max-width: calc(100vw - 32px);
    padding: 16px;
    background: #fff;
    border: 1px solid #dfe3ec;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mypage-pop::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.hd-top .hd-util .btn-mypage:hover + .mypage-pop,
.hd-top .hd-util .mypage-pop:hover {
    display: block;
}

.mypage-pop .mp-hello {
    font-size: 0.813rem;
    color: #777;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mypage-pop .mp-hello strong {
    font-size: 1rem;
    color: #222;
    margin-right: 2px;
}

.mypage-pop .mp-count {
    display: flex;
    margin: 10px 0 12px;
}

.mypage-pop .mp-count li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    border-right: 1px solid #eee;
}

.mypage-pop .mp-count li:last-child {
    border-right: none;
}

.mypage-pop .mp-count a {
    display: block;
    padding-top: 11px;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #555;
}

.mypage-pop .mp-count a span {
    display: block;
    text-align: center;
    white-space: nowrap;
}

.mypage-pop .mp-count li:nth-child(2) a span,
.mypage-pop .mp-count li:nth-child(3) a span {
    transform: translateX(-4px);
}

.mypage-pop .mp-count a:hover span {
    text-decoration: underline;
}

.mypage-pop .mp-btn {
    display: block;
    height: 34px;
    line-height: 32px;
    margin-top: 6px;
    border: 1px solid #ccd4e8;
    border-radius: 5px;
    text-align: center;
    font-size: 0.813rem;
    color: #444;
    background: #fff;
}

.mypage-pop .mp-btn.primary {
    background: #294d89;
    border-color: #294d89;
    color: #fff;
}

.mypage-pop .mp-btn:hover {
    filter: brightness(0.96);
}

.mypage-pop .mp-time {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: #888;
}

.mypage-pop .mp-time strong {
    color: #294d89;
}

.mypage-pop .mp-time button {
    margin-left: auto;
    border: none;
    background: none;
    font-size: 0.75rem;
    color: #444;
    text-decoration: underline;
}
