@charset "utf-8";

@font-face {
    font-family: 'GmarketSans';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/GmarketSansTTFLight.ttf') format('truetype');
}

@font-face {
    font-family: 'GmarketSans';
    font-style: normal;
    font-weight: 500;
    src: url('./fonts/GmarketSansTTFMedium.ttf') format('truetype');
}

@font-face {
    font-family: 'GmarketSans';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/GmarketSansTTFBold.ttf') format('truetype');
}

:root {
    --color-primary: #EC1966;
    --color-primary-rgb: 236, 25, 102;
    --color-gray: #696969;
    --color-gray-rgb: 105, 105, 105;
}

* {
    box-sizing: border-box;
}

html {
    /* font-size: 14px; */
    /* 375px일 때 14px, 767px일 때 15px, 그 이상에서는 최대 16px로 유연하게 조절 */
    /* font-size: clamp(14px, calc(13.0435px + 0.2551vw), 16px); */
}

body {
    font-family: 'GmarketSans',
        'Noto Emoji',
        'Segoe UI Emoji',
        sans-serif;

    color: #212529;
    font-weight: 400;
    font-style: normal;
}





#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    background: #fff;
    transition: box-shadow 0.5s, height 1s;
}



.has-sub {
    position: relative;
}

/* 1dep hover 시 2dep 메뉴 노출 */
.has-sub>ul {
    min-width: 160px;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0.5px);
    text-align: center;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

.has-sub:hover>ul,
.has-sub:focus-within>ul,
.has-sub.group:hover>ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 헤더 반응형 스타일 */
@media (max-width: 1200px) {

    /* #header .relative {
        max-width: 100%;
    } */
    #header .absolute.left-\[488\.5px\] {
        left: 50%;
        transform: translateX(-50%);
        gap: 48px;
    }

    #header .absolute.left-\[1681px\] {
        left: auto;
        right: 32px;
    }
}

@media (max-width: 1024px) {
    #header .relative {
        height: 80px;
    }

    #header .absolute.left-\[53px\] {
        left: 16px;
        top: 12px;
        width: 120px;
        height: 40px;
    }

    #header .absolute.left-\[488\.5px\] {
        top: 32px;
        gap: 16px;
    }

    #header .absolute.left-\[1681px\] {
        display: none;
    }

    #header .text-\[20px\] {
        font-size: 14px;
    }

    #header .container {
        height: 80px;

    }




}

.text-primary {
    color: var(--color-primary) !important;
}

.text-gray {
    color: var(--color-gray) !important;
}

.hover\:text-primary:hover {
    color: var(--color-primary) !important;
}

#mobileOffcanvas {
    transition: all 0.5s ease-in-out;
}

.mobile-2dep-list {
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    max-height: 0;

}

.mobile-2dep-list.open {
    max-height: 500px;


}

/* ====== 공통 버튼 스타일 ====== */
.custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    font-family: 'GmarketSans', sans-serif;


}

.btn-primary {
    color: #fff;
    transition: all 0.5s;
    overflow: hidden;
    border-radius: 3px;
}

.btn-primary:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    transition: all 0.5s;
    background: var(--color-primary);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--color-primary);
    outline: 1px solid var(--color-primary);
}

.btn-primary:hover:after {
    left: 100%;
}

.btn-outline-primary {
    outline: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: #fff;
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    z-index: 0;
    border-radius: 3px;
}

.btn-outline-primary:after {
    content: '';
    width: 0%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    transition: all 0.5s;
    background: var(--color-primary);
    z-index: -1;
}

.btn-outline-primary:hover {
    color: #fff;
    outline: 0;
    z-index: 1;
}

.btn-outline-primary:hover:after {
    width: 100%;
}

.btn-default {
    background-color: #EC1966 !important;
    color: #fff !important;
    border-radius: 3px;
}

.btn-default:hover {
    background-color: #ce064f !important;
}

.btn-basic {
    border: 1px solid #dcdcdc !important;
    cursor: pointer;
    border-radius: 3px;
    background: transparent;
}

.btn-basic:hover {
    background-color: #f3f3f3 !important;
    border: 1px solid #cacaca !important;
}

.site-wrap {
    margin-top: 70px;
}

/* 내용관리 HTML 초기화 */
#ctt_con:not(.container),
#ctt_con *:not(.container) {
    all: initial;
}

#bo_v_con * {
    font-family: 'GmarketSans', sans-serif !important;
}

#bo_v_con img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

#ctt_con a {
    text-decoration: underline !important;
}


#ctt_con ul:not(.container) {
    display: block;
    margin: 0 0 1em 0;
    padding-left: 2em;
    list-style-type: disc !important;
}

#ctt_con ol:not(.container) {
    display: block;
    margin: 0 0 1em 0;
    padding-left: 2em;
    list-style-type: decimal !important;
}

#ctt_con li:not(.container) {
    display: list-item;
    margin: 0 0 0.5em 0;
    padding: 0;
}

#ctt_con p:not(.container),
#ctt_con div:not(.container) {
    display: block;
    margin: 0 0 1em 0;
    padding: 0;
}

#ctt_con img:not(.container) {
    max-width: 100%;
    height: auto;
}

#ctt_con h1:not(.container) {
    font-size: 2em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

#ctt_con h2:not(.container) {
    font-size: 1.75em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

#ctt_con h3:not(.container) {
    font-size: 1.5em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

#ctt_con h4:not(.container) {
    font-size: 1.25em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

#ctt_con h5:not(.container) {
    font-size: 1.1em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

#ctt_con h6:not(.container) {
    font-size: 1em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

.faq_admin {
    display: none;
}

.mobile-arrow {
    transform: rotate(0deg);
}

.mobile-arrow.open {
    transform: rotate(180deg);
}

.lecture-btn.active {
    color: var(--color-primary) !important;
}

.lecture-btn.active .line {
    display: block !important;
}

.swiper-pagination-bullet {
    background: rgb(236, 236, 236) !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 2px !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

.swiper-pagination-bullet-active {
    width: 24px !important;
    background: var(--color-primary) !important;
    border-radius: 2px !important;
}