/* ==========================================================================
   1. GLOBAL / RESET
   ========================================================================== */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #f5f5f5;
}


/* ==========================================================================
   2. HEADER
   ========================================================================== */

/* 2.1 Header Top */
.header-top {
    padding: 0 0 4px;
    background-color: #F5F5F5;
}

.header-top ul {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-top ul li {
    margin-left: 15px;
}

.header-top ul li:first-child {
    margin-left: 0;
}

.header-top ul li a {
    font-size: 14px;
    line-height: 14px;
    text-decoration: none;
    color: #575757;
}

/* 2.2 LNB (Local Navigation Bar) */
.lnb {
    position: relative;
    padding: 3px 0;
    background: #fff;
    box-shadow: 0 0 35px 0 rgb(154 161 171 / 15%);
}

/* Logo & Sides */
.lnb-side {
    flex: 1;
    display: flex;
    align-items: center;
}

.lnb-side:first-child {
    justify-content: flex-end;
    padding-right: 40px;
}

.lnb-logo {
    display: block;
    margin-top: 3px;
}

.lnb-logo img {
    display: block;
    width: 200px;
    height: auto;
}

/* Main Menu Wrapper */
.main-menu-wrap {
    flex: 0 0 auto;
}

/* Main Menu (Depth 1) */
.main-menu {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    width: 1320px;
    list-style: none;
}

.main-menu>li {
    flex: 1;
    padding-left: 0;
    text-align: left;
    letter-spacing: -1px;
}

.depth1-item {
    position: relative;
    padding: 15px 0;
}

.depth1-link {
    display: block;
    padding: 5px 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.depth1-link.active,
.main-menu>li>a:hover {
    color: var(--scs-title);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    margin-right: 20px;
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
}

/* 2.3 Mega Menu Dropdown */
.gnb-drop-down {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: 100%;
    max-height: 80vh;
    padding: 20px 0;
    border-top: 1px solid #eee;
    background-color: #eef0f6;
    /* Updated background per request */
    box-shadow: 0 0 35px 0 rgb(154 161 171 / 15%);
    box-sizing: border-box;
    overflow-y: auto;
}

.gnb-inner-wrap {
    margin: 0 auto;
    width: 100%;
    max-width: 1320px;
}

.gnb-drop-list {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Depth 2 Group */
.depth2-group {
    position: relative;
    flex: 1;
    padding: 0 10px 0 20px;
    border-left: 1px #ccc solid;
}

.depth2-group:last-child {
    border-right: 1px #ccc solid;
}

/* Separator using pseudo-element */
.depth2-group::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 1px;
    height: calc(100% - 15px);
    background-color: #eee;
}

.depth2-group:first-child::after {
    display: none;
}

/* Depth 2 List */
.depth2-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.depth2-list>li {
    margin-bottom: 10px;
}

.depth2-item-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.depth2-link {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

.depth2-link:hover {
    color: var(--scs-title);
}

.btn-plus {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
}

/* Depth 3 List */
.depth3-list {
    display: none;
    margin: 0;
    padding: 10px 0 0 10px;
    list-style: none;
}

.depth3-list li {
    margin-bottom: 0px;
}

.depth3-list a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.depth3-list a:hover {
    text-decoration: underline;
    color: var(--scs-title);
}


/* --------------------------------------------------------------------------
   HEADER RESPONSIVE (MEDIA QUERIES)
   -------------------------------------------------------------------------- */

/* Laptop / Small Desktop */
@media (max-width: 1799.98px) {
    .main-menu {
        max-width: 1100px;
    }

    .gnb-inner-wrap {
        max-width: 1100px;
    }

    .lnb-side:first-child {
        padding-right: 20px;
    }
}

@media (max-width: 1599.98px) {
    .main-menu {
        max-width: 1000px;
    }

    .gnb-inner-wrap {
        max-width: 1000px;
    }

    .lnb-side:first-child {
        padding-right: 20px;
    }
}

/* Tablet / Mobile (Switch to Mobile Menu) */
@media (max-width: 1199.98px) {
    .lnb {
        padding: 20px 0 !important;
    }

    /* Hide Desktop Elements */
    .main-menu-wrap,
    .lnb-side:last-child {
        display: none !important;
    }

    /* Adjust Layout for Mobile */
    .lnb-side:first-child {
        flex: 0 0 auto;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 0;
    }

    .lnb-logo img {
        width: 150px;
    }

    /* Show Mobile Button */
    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }
}


/* ==========================================================================
   3. MOBILE MENU OVERLAY
   ========================================================================== */
.mobile-menu-overlay {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: var(--scs-title);
    color: #fff;
}

.mobile-menu-header .logo {
    font-size: 18px;
    font-weight: bold;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Mobile Depth 1 (Left Side) */
.mobile-depth1 {
    margin: 0;
    padding: 0;
    width: 30%;
    background-color: #f5f5f5;
    list-style: none;
    overflow-y: auto;
}

.mobile-depth1 li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-depth1 li a {
    display: block;
    padding: 15px 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.mobile-depth1 li.active {
    border-right: none;
    background-color: #fff;
    color: var(--scs-title);
}

.mobile-depth1 li.active a {
    color: var(--scs-title);
}

/* Mobile Depth 2 (Right Side) */
.mobile-depth2-wrap {
    overflow-y: auto;
    padding: 20px;
    width: 70%;
    background-color: #fff;
}

.mobile-sub-group {
    display: none;
}

.mobile-sub-group.active {
    display: block;
}

.mobile-depth1-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--scs-title);
    font-size: 20px;
    font-weight: bold;
    color: var(--scs-title);
}

.mobile-depth2-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-depth2-list>li {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
    padding: 10px;
    width: 100%;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

.mobile-depth2-list>li:last-child {
    border-bottom: none;
}

.mobile-depth2-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-depth2-item a {
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #333;
}

.mobile-btn-plus {
    background: none;
    border: none;
    color: #999;
}

/* Mobile Depth 3 */
.mobile-depth3-list {
    display: none;
    margin: 0;
    padding: 10px 0 0 10px;
    background-color: #fafafa;
    list-style: none;
}

.mobile-depth3-list li {
    margin-bottom: 8px;
}

.mobile-depth3-list a {
    font-size: 14px;
    text-decoration: none;
    color: #666;
}


/* ==========================================================================
   4. CONTENT
   ========================================================================== */

/* 4.1 Content Wrapper */
.mh-content {
    margin: 50px 0;
    padding: 30px 50px 50px;
    background: #fff;
}

.mh-content .content-title a {
    text-decoration: none;
    color: #333;
}

.mh-content .content-title a:hover {
    color: var(--scs-title);
}

.mh-content .content-body {
    margin-top: 30px;
}

/* 4.2 Breadcrumb */
.content-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.content-breadcrumb a {
    font-size: 16px;
    text-decoration: none;
    color: #333;
}

.content-breadcrumb .home:hover {
    color: var(--scs-title);
}

.content-breadcrumb button:active,
.content-breadcrumb button:focus,
.content-breadcrumb button:hover,
.content-breadcrumb a:active,
.content-breadcrumb a:focus,
.content-breadcrumb a:hover {
    background: none !important;
}

.content-breadcrumb .dropdown-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 30px;
    padding: 0;
    padding-right: 30px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.content-breadcrumb .dropdown-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #000;
    overflow: hidden;
    transform: translateY(-50%);
    transition: .3s;
}

.content-breadcrumb .dropdown-toggle::after {
    display: none;
}

.content-breadcrumb .dropdown:hover .dropdown-toggle {
    color: var(--scs-title);
}

.content-breadcrumb .dropdown:last-child:hover .dropdown-toggle::before,
.content-breadcrumb .dropdown:hover .dropdown-toggle::before {
    content: "\f13a";
    font-family: "Font Awesome 7 Free", "Font Awesome 7 Pro";
    font-weight: 900;
    display: inline-block;
    margin-top: 0;
    margin-right: 0;
    width: 24px;
    height: 24px;
    background: none;
    border-radius: none;
    font-size: 16px;
    transition: .3s;
}

.content-breadcrumb .dropdown:last-child .dropdown-toggle::before {
    content: "\f078";
    font-family: "Font Awesome 7 Free", "Font Awesome 7 Pro";
    font-weight: 900;
    display: inline-block;
    margin-top: 5px;
    margin-right: 0;
    width: 24px;
    height: 24px;
    background: none;
    border-radius: none;
    font-size: 10px;
    transition: .3s;
}

.content-breadcrumb .dropdown .dropdown-menu {
    top: 12px !important;
    padding: 10px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    box-shadow: 0px 3px 13px 0 rgba(0, 0, 0, 0.2);
}

.content-breadcrumb .dropdown .dropdown-menu .dropdown-item {
    font-weight: 400;
}

.content-breadcrumb .dropdown .dropdown-menu .dropdown-item.active {
    background: none;
    color: var(--scs-title);
}

/* 4.3 Content Depth 4 */
.content-depth4 {
    margin-top: 20px;
}

.content-depth4 ul {
    display: flex;
    margin: 0;
    padding: 0;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    list-style: none;
}

.content-depth4 li {
    flex: 1;
    border-right: 1px solid #eee;
    text-align: center;
}

.content-depth4 li:last-child {
    border-right: none;
}

.content-depth4 a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
}

.content-depth4 a:hover,
.content-depth4 li.active a {
    background-color: #444c57;
    color: #fff;
}

/* 4.4 Section Wrap (General content) */
.section-wrap section:after {
    content: '';
    display: block;
    margin: 50px auto;
    width: 50px;
    height: 4px;
    background: var(--scs-main2);
    text-align: center;
}

.section-wrap section:last-child:after {
    display: none;
}


/* --------------------------------------------------------------------------
   CONTENT RESPONSIVE (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1399.98px) {

    /* Content Depth 4 Grid Layout */
    .content-depth4 ul {
        flex-wrap: wrap;
        border: none;
        background-color: transparent;
    }

    .content-depth4 li {
        flex: none;
        margin-bottom: -1px;
        margin-right: -1px;
        width: calc((100% / 3));
        border: 1px solid #eee;
        background-color: #f9f9f9;
        box-sizing: border-box;
    }

    .content-depth4 li:last-child {
        border-right: 1px solid #eee;
    }
}

@media (max-width: 1199.98px) {

    /* Content Wrapper */
    .content-wrap {
        background: #fff;
    }

    .mh-content {
        margin: 0;
        padding: 30px 10px;
    }

    .mh-content .content-body {
        margin-top: 0px;
    }
}

@media (max-width: 991.98px) {

    /* Breadcrumb */
    .content-breadcrumb a,
    .content-breadcrumb .dropdown-toggle,
    .content-breadcrumb .dropdown .dropdown-menu .dropdown-item {
        font-size: 15px;
    }
}


/* ==========================================================================
   5. FOOTER
   ========================================================================== */
footer {
    padding: 30px 0;
    background: var(--scs-main4);
}

/* Footer Menu */
.footer-menu {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu li {
    flex: 1;
    text-align: center;
}

.footer-menu a {
    display: block;
    padding: 5px 0;
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s, background-color 0.3s;
}

.footer-menu a:hover {
    color: #fff;
}

/* Contact Us */
.contactus {
    display: flex;
    justify-content: space-between;
}

.contactus p {
    margin-bottom: 5px;
}

/* Copyright */
.footer-copyright {
    margin: 30px auto 0;
    color: #999;
}

.footer-copyright a {
    text-decoration: none;
    color: #999;
}

.family-site button {
    border-radius: 0;
    padding: 8px 25px;
    color: #fff !important;
}

.family-site .dropdown-menu {
    border-radius: 0;
    background-color: #555;
}

.family-site .dropdown-menu .dropdown-item {
    color: #fff;
    padding: 10px 15px;
}

.family-site .dropdown-menu .dropdown-item i {
    margin-right: 10px;
}


/* --------------------------------------------------------------------------
   FOOTER RESPONSIVE (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .footer-menu {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
        border: none;
    }

    .footer-menu li {
        flex: none;
        width: calc((100% - 15px) / 4);
        /* 4 items, 3 gaps */
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-sizing: border-box;
    }

    .footer-menu a {
        padding: 10px 0;
    }

    .contactus {
        flex-wrap: wrap;
    }

    .contactus p:nth-child(1),
    .contactus p:nth-child(4) {
        width: 100%;
    }

    .contactus p:nth-child(2),
    .contactus p:nth-child(3) {
        width: 50%;
        box-sizing: border-box;
    }

    .contactus p:nth-child(2) {
        padding-right: 10px;
        text-align: right;
    }

    .contactus p:nth-child(3) {
        padding-left: 10px;
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .footer-menu li {
        width: calc((100% - 10px) / 3) !important;
    }
}

@media (max-width: 575.98px) {
    .footer-menu li {
        width: calc((100% - 5px) / 2) !important;
    }
}

/* Back to Top Button */
.btn-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    color: #666;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.btn-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-top:hover {
    background-color: #f8f9fa;
    color: #333;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Footer Dropdown */
footer .dropdown-toggle {
    background-color: transparent;
    border-color: #555;
    color: #999;
}

footer .dropdown-toggle:hover,
footer .dropdown-toggle:focus {
    background-color: #333;
    border-color: #777;
    color: #fff;
    box-shadow: none;
}

footer .dropdown-menu {
    background-color: #222;
    border: 1px solid #444;
}

footer .dropdown-item {
    color: #ccc;
}

footer .dropdown-item:hover {
    background-color: #333;
    color: #fff;
}