* {
    box-sizing: border-box;
}

:root {
    --clr-primary: #00579C;
}

html,
body {
    font-family: 'Pretendard', sans-serif;
    min-height: 100dvh;
    line-height: 1.5;
    scroll-behavior: smooth;
    color: var(--clr-secondary);
    overflow-x: hidden !important;
}

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

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

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

    body header .container {
        padding: 20px 15px;
    }
}

@media(max-width: 1500px) {
    .container-lg {
        padding: 0 15px;
    }
}

/* title start */
.main_title {
    text-align: center;
    color: #000;
    font-size: 60px;
    font-weight: 700;
    line-height: normal;
}

.main_title span {
    display: block;
    color: #00579C;
    font-size: 27px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

@media(max-width: 1023px) {
    .main_title {
        font-size: 38px;
    }

    .main_title span {
        font-size: 16px;
    }
}
/* title end */

/* button start */
.btn {
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 26px 21px 16px;
    border-radius: 0 12px;
    border: 2px solid;
    min-width: 236px;
}

.btn_blue {
    color: #00579C;
    border-color: #00579C;
}

.btn_blue:hover {
    background: #00579C;
    color: #fff;
    transition: .5s ease;
}

.btn_white {
    color: #fff;
    border-color: #fff;
}

.btn_white:hover {
    color: #00579C;
    background: #fff;
    transition: .5s ease;
}

@media(max-width: 1200px) {
    .btn {
        min-width: 165px;
    }
}

/* button end */

/* dialog start */
dialog {
    cursor: default;
    pointer-events: none;
    border: none; 
    padding: 0; 
    background: transparent; 
    outline: 0;
}
dialog::backdrop {
    background-color: rgba(100,100,100,0.8);
    cursor: pointer;
    pointer-events: all;
}
.modalImageWrap {
    max-width: 80dvw;
    max-height: 80dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}
dialog img {
    max-height: 80dvh;
    object-fit: cover;
}
@media(max-width: 767px) {
    .modalImageWrap {
        max-width: 100dvw;
        max-height: 100dvh;
    }
    dialog img {
        max-height: 100dvh;
    }
}
/* dialog end */

/* header start */
header { 
    background: rgba(0, 0, 0, 0.40);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    display: flex;
}

header .menu {
    display: flex;
    gap: 60px;
}

header .menu a {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -1px;
}

header .menu a:hover {
    color: var(--clr-primary);
}

.header-right a.btn-primary {
    padding: 11px 12px 10px 20px;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main_page .header-right a.btn-primary {
    background: transparent;
    padding: 0 12px 0 20px;
}

.main_page .header-right a.btn-primary span {
    background: var(--clr-primary);
    width: 44px;
    height: 44px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right a + a {
    width: 44px;
    height: 44px;
    border-radius: 55px;
    background: #2DB400;
    display: flex;
    align-items: center;
    justify-content: center;
}

header.transparent {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 9;
    height: max-content;
}

header.transparent .menu a {
    color: #fff;
}

.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu-wrapper .switch_language {
    color: #FFF;
    font-size: 18px;
    line-height: normal;
    font-weight: 900;
}

.menu-wrapper .switch_language a:not(.active) {
    opacity: .3;
}

.menu > li {
    position: relative;
    padding: 32px 0;
}

.menu li .lnb {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    width: max-content;
    padding: 33px 36px;
    border-radius: 8px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
}

.menu li .lnb a {
    color: #000;
}

.menu li .lnb li {
    margin-bottom: 16px;
}

.menu li .lnb li:last-child {
    margin-bottom: 0;
}

/* footer */
footer {
    padding: 45px 0;
    background: #333;
    color: #666;
}

footer .container {
    display: flex;
    gap: 87px;
    flex-wrap: wrap;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-wrap a + a {
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
}

.footer-right a {
    font-size: 17px;
    font-weight: 600;
    line-height: 140%; /* 23.8px */
    letter-spacing: -0.85px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-right p {
    font-size: 16px;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    letter-spacing: -0.8px;
    margin-bottom: 8px;
}

.footer-info {
    display: flex;
    row-gap: 8px;
    flex-wrap: wrap;
}

.footer-info p {
    margin-bottom: 0;
    padding: 0 30px;
}

.footer-info p:first-child {
    padding-left: 0;
}

.footer-info p span {
    margin-right: 12px;
    color: #777;
}

.footer-right .copyright {
    color: #666;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    margin-top: 18px;
    margin-bottom: 0;
}

.hide-pc {
    display: none;
}

/* page_title start */
.page_title {
    margin-bottom: 128px;
    min-height: 480px;
    padding-bottom: 32px;
    position: relative;
}

.page_title h2.title {
    font-size: 42px;
    font-weight: 700;
    line-height: normal;
    color: #fff;
    position: absolute;
    bottom: 73px;
}

.category_list {
    position: absolute;
    bottom: -32px;
    width: 100%;
    max-width: 1274px;
    background: #00579C;
    color: #fff;
    border-radius: 8px;
}

.category_list ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.category_list ul li {
    border-right: 1px solid rgba(255, 255, 255, 0.30);
    position: relative;
}

.category_list li a {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category_list li:not(:first-child) a svg {
    margin-left: 10px;
}

.category_list ul li:not(:first-child) {
    min-width: 240px;
}

.sub_category {
    position: absolute;
    background: #00579C;
    width: 100%;
    top: 100%;
    /* opacity: 0;
    visibility: hidden; */
    transform: translateY(50px);
    transition: .3s ease;
    display: none;
}

.show .sub_category {
    /* opacity: 1;
    visibility: visible; */
    transform: translateY(0);
    transition: .3s ease;
    display: block;
}

.sub_category ul {
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}

.category_list .sub_category ul li {
    border: 0;
    width: 100%;
}

.category_list .sub_category li a {
    padding: 5px 24px;
}

@media(min-width: 1024px) {
    .menu li:hover .lnb {
        opacity: 1;
        visibility: visible;
    }
    .menu li .lnb li {
        text-align: center;
    }
}

@media(max-width: 1023px) {
    .category_list ul li:not(:first-child) {
        min-width: auto;
    }

    .menu li .lnb {
        position: static;
        transform: none;
        box-shadow: unset;
        padding: 0;
        width: 100%;
        height: 0;
    }
    
    .menu li.show_submenu .lnb {
        opacity: 1;
        visibility: visible;
        height: auto;
    }

    .menu li .lnb li {
        border-bottom: 0;
        padding: 10px 20px;
        margin-bottom: 0;
    }

    .menu li .lnb li {
        font-size: 18px;
    }
}

@media(max-width: 767px) {
    .page_title {
        min-height: 300px;
        background-size: cover;
        margin-bottom: 80px;
    }
    
    .page_title h2.title {
        font-size: 30px;
    }

    .category_list li a {
        font-size: 14px;
        padding: 10px 5px;
        gap: 0;
    }

    .category_list li:not(:first-child) a svg {
        margin-left: 5px;
        width: 10px;
    }
    
    .category_list ul li:not(:first-child) {
        min-width: unset;
    }
    
    .category_list {
        bottom: -27px;
        max-width: calc(100% - 10px);
        left: 5px;
    }

    .category_list ul li:last-child {
        border-right: 0;
    }
}
/* page_title end */

@media(max-width: 1439px) {
    .header-right a.btn-primary,
    .main_page .header-right a.btn-primary {
        font-size: 0;
        gap: 0;
        padding: 12px 13px;
    }

    header .menu {
        gap: 20px;
    }

    header .menu a {
        font-size: 19px;
    }
}

@media(max-width: 1023px) {
    .hide-pc {
        display: block;
    }
    
    header .container {
        gap: 20px;
    }
    
    .header-right a + a {
        width: 30px;
        height: 30px;
    }
    
    .header-right {
        gap: 10px;
    }

    .header-right a.btn-primary {
        padding: 5px 6px;
    }

    header .menu-wrapper {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-200px);
    }

    header .menu-wrapper.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        transition: .3s ease;
    }
    
    header .menu-wrapper ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-top: 30px;
    }
    
    header .menu-wrapper ul li {
        border-bottom: 1px solid #ddd;
        padding: 15px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) max-content;
        align-items: center;
    }
    
    header .menu-wrapper ul li a,
    header.transparent .menu-wrapper ul li a {
        font-weight: 500;
        color: #000;
    }

    .main_page .header-right a.btn-primary span {
        width: 30px;
        height: 30px;
    }

    .main_page header .menu a {
        color: #222;
    }
    
    .menu-wrapper .mb_close_btn {
        position: absolute;
        background: #fff;
        border: 0;
        font-size: 20px;
        right: 10px;
        top: 10px;
        line-height: 27px;
    }

    .menu-wrapper .mb_close_btn i {
        color: gray;
    }

    .mb-hamburger {
        display: flex;
        align-items: center;
    }

    .mb-hamburger i {
        color: #fff;
        font-size: 20px;
    }

    .logo img {
        max-width: 70%;
    }

    .menu-wrapper .switch_language {
        background: rgba(0, 0, 0, 0.40);
        width: 100%;
        padding: 15px;
    }
    
    header .menu-wrapper {
        flex-direction: column-reverse;
        gap: 0;
        justify-content: flex-end;
    }
    
    header .menu-wrapper ul {
        width: 100%;
        margin-top: 0;
        max-height: calc(100dvh - 45px);
        overflow: auto;
    }

    footer .container {
        gap: 10px;
    }
    
    .footer-info {
        flex-direction: column;
        font-size: 0;
    }

    .footer-info p {
        padding: 0;
    }

    .footer-info p span {
        display: block;
    }

    .footer-logo-wrap {
        width: 100%;
        justify-content: space-between;
    }
}

/* pagination */
.pagination li:not(.page) {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: #00579C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.pagination li.page {
    color: #666;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.48px;
}

.pagination li.page .current_page {
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.48px;
    color: #00579C;
    padding-right: 12px;
}

.pagination li.page .total_page {
    padding-left: 12px;
}

@media(max-width: 767px) {
    .pagination li.page .current_page {
        font-size: 22px;
    }
    
    .pagination {
        gap: 10px;
    }
}
