/* =========================================
    CSS Variables
    ========================================= */
:root {
    --main-color: #273B90;
    --main-light-grey: #f1f3f5;
    --main-grey: #86888a;

    --color-header-main: var(--main-color);
    --color-header-text: #4a5156;
    --color-header-white: #ffffff;

    /* 경계/디바이더 */
    --color-border: #e6e8ea;

    /* 링크/디바이더 */
    --color-link: var(--color-header-main);
    --color-divider: var(--color-border);

    /* 서브메뉴 */
    --color-submenu-bg: var(--color-header-main);
    --color-submenu-text: var(--color-header-white);

    /* 그림자 */
    --shadow-soft: 0 5px 5px rgba(0, 0, 0, .10);
}

/* =========================================
    Main
    ========================================= */
html,
* {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 2;
}

.container {
    max-width: 1400px;
    width: 100%;
}

html {
    height: 100%;
}

body {
    height: 100%;
}

#wrap {
    /*A*/
    height: auto;
    min-height: 100%;
    position: relative;
    padding-bottom: 140px;
    /* footer height */
}

#footer {
    /*B*/
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* =========================================
   Header / Top Utilities
   ========================================= */
#header {
    border-top: 4px solid var(--color-header-main);
}

#header .container {
    position: relative;
}

#header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.h_top {
    border-bottom: 1px solid var(--color-border);
}

.h_top a {
    text-decoration: none;
    color: var(--main-color);
}

.logo {
    display: inline-block;
    line-height: 110px;
    font-size: 2rem;
    font-weight: 600;
}

.logo img {
    max-width: 100%;
    max-height: 60px;
}

.login-section {
    color: var(--color-header-white);
    border-bottom: 1px solid var(--color-border);
}

.login-section .container {
    text-align: right;
}

/* =========================================
   Top Links (우측 링크바)
   ========================================= */
.linkul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border: 0;
    gap: 0;
    /* divider로 구분 */
}

.linkul a {
    text-decoration: none;
    line-height: 35px;
    font-weight: 400;
    color: var(--color-link);
    font-size: 1rem;
}

.linkul a::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background-color: var(--color-divider);
    vertical-align: top;
    margin: 15px 16px 0;
}

.linkul li:last-child a::after {
    display: none;
}

/* =========================================
   Mobile Header / Drawer
   ========================================= */
.mobile_wrap {
    display: none;
    text-align: center;
    position: relative;
    align-items: center;
}

.mobile_wrap img, .m_menu_header img {
    max-width: calc(100% - 50px);
    max-height: 60px;
}

.mobile_wrap a:first-of-type {
    font-size: 2rem;
    font-weight: 600;
}

.mobile_menu {
    position: absolute;
    right: 0;
}

.m_menuwrap {
    position: absolute;
    inset: 0 0 0 0;
    background-color: var(--color-header-white);
    z-index: 9999;
    width: 100%;
    display: none;
}

.m_menu_header {
    border-top: 4px solid var(--color-header-main);
    border-bottom: 2px solid var(--color-border);
    padding: 12px 20px 12px 10px;
    box-sizing: border-box;
}

.m_menu_logo {
    display: inline-block;
}

.m_menu_logo img {
    max-width: calc(100% - 50px);
}

.m_menu_top {
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.m_xbtn {
    color: var(--color-header-main);
    margin-top: 0;
}

.m_linkul {
    display: flex;
    gap: 15px;
}

.m_linkul > li > a {
    font-size: 14px;
    color: var(--color-header-text);
    position: relative;
    font-weight: 300;
    display: block;
    text-decoration: none;
}

.m_linkul > li:not(:last-of-type) > a::after {
    content: '|';
    display: inline-block;
    margin-left: 15px;
}

.m_menu_ul > li > a {
    display: block;
    font-size: 18px;
    background: var(--color-header-main);
    color: var(--color-header-white);
    padding: 15px;
    border-bottom: 1px solid var(--color-header-white);
    text-decoration: none;
}

.depul {
    background-color: #e9eff4;
    padding: 15px !important;
    display: none;
}

.depul > li {
    line-height: 2.3;
}

.depul > li > a {
    font-size: 16px;
    color: var(--color-header-text);
    font-weight: 300;
    display: block;
    text-decoration: none;
}

/* =========================================
   Global Navigation (Desktop)
   ========================================= */
.menu01 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

.menu01 > li {
    color: var(--color-header-text);
    height: 100%;
    line-height: 100%;
    font-weight: 400;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    position: relative;
}

.menu01 > li > a {
    font-size: 1.2rem;
    font-weight: 400;
    color: inherit;
    text-decoration: none;

    position: relative;
}

.menu01 li span {
    font-size: 1.4rem;
    color: var(--color-header-text);
    font-weight: 400;
}

.menu01 li:hover > a {
    font-weight: 600;
    color: var(--main-color);
}

/* Full-down submenu */
.submenu {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 100%);
    min-width: 180px;

    display: block;
    justify-content: center;
    align-items: center;
    background: var(--color-submenu-bg);
    box-shadow: var(--shadow-soft);
}

.submenu li {
    line-height: 3;
    color: var(--color-submenu-text);
}

.submenu li a {
    display: inline-block;
    width: 100%;

    font-size: 1.2rem;
    font-weight: 400;
    line-height: 3;
    text-decoration: none;
    color: var(--color-submenu-text);

    cursor: pointer;
}

.submenu li:hover {
    color: var(--main-color);
    background: var(--color-submenu-text);
}

.submenu li:hover a {
    color: var(--main-color);
}

/* Sub grid helper */
.sub > div {
    width: 19%;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1119px) {
    .mobile_wrap {
        display: flex !important;
    }

    .logo,
    .menu01,
    .linkul {
        display: none !important;
    }
}

/* =========================================
   Footer
   ========================================= */
.f_text {
    background-color: #44494d;
    height: auto;
    box-sizing: border-box;
    padding: 20px 10px;
}

.f_textul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.f_text strong {
    color: #999999;
    font-size: 16px;
}

.f_textul > li > p {
    font-size: 15px;
}

.f_text p {
    color: #999999;
}

.f_textul li {
    width: 100%;
    text-align: left;

    color: #999999;

    display: flex;
    flex-wrap: wrap;
    column-gap: 15px;

    margin: 0;
}

.f_text span {
    color: #999999;
    font-weight: 300;
}

/* =========================================
   Breadcrumb
   ========================================= */
.header-full-box {
    background-size: cover;
    background-image: url(https://d11dbvc62xodqh.cloudfront.net/koreaec/homepage/main/main-1.png);
    background-position: center;
}

.full-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 145px;
}

.full-title {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    padding: 25px 0 0;
}

.now-page {
    display: flex;
    column-gap: 15px;
    flex-wrap: wrap;

    font-size: 1.2rem;

    padding: 5px 30px;
    margin: 0 0 50px;
    border-radius: 50px;

    list-style: none;
    background-color: white;
}

.now-page li > .fas.fa-chevron-right {
    margin-left: 15px;
}

/* =========================================
   Content
   ========================================= */
.content {
    padding: 30px 0;
    font-size: 1.2rem;
}

.content .container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 50px 0 15px;
}

.content .container h2:first-child {
    margin-top: 0;
}

.content .container h2:before {
    content: '';
    background-image: url(https://d11dbvc62xodqh.cloudfront.net/koreaec/homepage/main/main-icon2.png);
    background-size: contain;
    background-repeat: no-repeat;

    display: inline-block;
    width: 2rem;
    height: 2rem;

    margin-right: 8px;
    vertical-align: middle;
}

.content .container h4 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;

    margin: 30px 0 10px;
}

.content .container > *:last-child {
    margin-bottom: 0;
}

/* =========================================
   sidebar
   ========================================= */
.content-section > .container {
    display: grid;
    grid-template-columns: 300px auto;
}

aside .container {
    padding-top: 30px;
}

.side-main-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: white;

    background-color: var(--main-color);
    margin-bottom: 10px;

    min-height: 150px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.side-menu-box > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-menu-box > ul > li {
    border: 1px solid var(--color-border);
    margin-bottom: 10px;
}

.side-menu-box > ul > li > a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--color-header-text);
    font-size: 1.1rem;
    font-weight: 400;
}

.side-menu-box > ul > li:hover {
    background-color: var(--main-light-grey);
}

.side-menu-box > ul > li.active {
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.side-menu-box > ul > li.active a {
    font-weight: 500;
    color: var(--main-color);
}

@media (max-width: 1024px) {
    .content-section > .container {
        display: block;
    }

    aside {
        display: none;
    }
}
/* =========================================
   Table
   ========================================= */
.table {
    width: 100%;
    border-collapse: collapse;
    border-top: 3px solid var(--main-color) !important;
    margin-bottom: 30px;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.table th {
    background-color: var(--main-light-grey);
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}

/* =========================================
   Nav Tabs
   =========================================*/
.nav-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    background: #efefef;

    border-bottom: none;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 0;

    color: #555;
    background: #efefef;

    height: 100%;

    font-weight: 500;
    padding: 10px 15px;
    border-radius: 0!important;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
    background: var(--main-color);
    color: white;
    font-weight: 600;
}

.tab-content {
    padding-top: 30px;
}

/* =========================================
   Buttons
   ========================================= */
.btn-default {
    background-color: var(--main-color);
    color: white;
}

.btn-default:hover {
    background-color: #1e2e6c;
    color: white;
}