@font-face {
    font-family: 'Wanted Sans';
    src: url('/assets/font/WantedSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Wanted Sans';
    src: url('/assets/font/WantedSans-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Wanted Sans';
    src: url('/assets/font/WantedSans-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Wanted Sans';
    src: url('/assets/font/WantedSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Wanted Sans';
    src: url('/assets/font/WantedSans-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Wanted Sans';
    src: url('/assets/font/WantedSans-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Wanted Sans';
    src: url('/assets/font/WantedSans-ExtraBlack.otf') format('opentype');
    font-weight: 950;
    font-style: normal;
}

html,
body {
    font-family: 'Wanted Sans', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    scroll-snap-type: y proximity;
    scroll-behavior: auto;
    overscroll-behavior-y: none;
    letter-spacing: -0.04rem;
}

section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* layout/header.html */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 98;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: white;
}

header:hover {
    background-color: white;
    border-bottom: 0.5px solid #009DED;
}

/* 평소: 흰색 텍스트 */
header a,
header span {
    color: white;
    transition: color 0.3s ease;
}

/* 스크롤되거나 hover 시: 검정색으로 변경 (active 제외) */
header.scrolled a:not(.lang-toggle-item):not(.lang-toggle-item.active):not(.nav-menu:hover):not(.active),
header.scrolled span:not(.lang-toggle-item):not(.lang-toggle-item.active):not(.active),
header:hover a:not(.lang-toggle-item):not(.lang-toggle-item.active):not(.nav-menu:hover):not(.active),
header:hover span:not(.lang-toggle-item):not(.lang-toggle-item.active):not(.active) {
    color: black;
}

.pin-spacer {
    scroll-snap-align: start;
}

.prev,
.next {
    cursor: pointer;
}

button.disabled {
    color: #D3D5DA !important;
    cursor: not-allowed;
}

/* 드롭다운 메뉴 */
.nav {
    height: 100%;
    display: flex;
    position: relative;
}

.nav-item {
    min-width: 198px;
    width: 33.333%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-item:hover {
    border-bottom: 3px solid #009DED;
}

.nav-item:hover .nav-menu {
    color: #009DED !important;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    z-index: 99;
}

.nav:hover .dropdown {
    display: flex;
}

.nav-item a.nav-menu:hover {
    color: #009DED !important;
}

.dropdown-container {
    display: flex;
    width: 100%;
}

.dropdown-panel {
    display: flex;
    flex-direction: column;
    width: 33.3333%;
    border: 0.5px solid #009DED;
}

.dropdown-panel:nth-child(2) {
    border-left: none;
    border-right: none;
}

.dropdown-panel a {
    font-size: .875rem;
    padding: 20px;
    transition: color 0.2s;
    word-break: keep-all;
}

.dropdown-panel a.active,
.dropdown-panel a:hover {
    color: #143A85 !important;
    font-weight: 700;
    background-color: rgba(227, 241, 250, 1);
}

.lang-toggle {
    width: 115px;
    height: 80px;
    display: flex;
    justify-content: end;
}

.lang-toggle-vertical {
    font-size: 1rem;
    font-weight: 800;
    color: #D3D5DA !important;
}

.lang-toggle-item {
    font-size: 1rem;
    font-weight: 800;
    color: #D3D5DA !important;
    cursor: pointer;
}

.lang-toggle-item:hover,
.lang-toggle-item.active {
    font-weight: 800;
    color: #009DED !important;
}

/* 로고 배경 이미지 방식 */
#headerLogo {
    display: block;
    width: 180px;
    height: 22.43px;
    background-image: url('/assets/source/logo_wt.png');
    background-repeat: no-repeat;
    background-size: contain;
}

/* 배경 흰색일 때 로고 검정 */
header.scrolled #headerLogo,
header:hover #headerLogo {
    background-image: url('/assets/source/logo_bk.png');
}

#topButton {
    position: fixed;
    bottom: 5%;
    right: 2.5%;
    width: 60px;
    height: 60px;
    background-image: url('/assets/source/icon_chevron_double_up.png');
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0063AD;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
}

#topButton.show {
    opacity: 1;
    visibility: visible;
}

/* swiper */
.swiper-pagination-bullet {
    width: 40px;
    height: 6px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 1);
    transition: all 0.3s;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #009DED;
    width: 60px;
}

.swiper-pagination {
    bottom: 60px !important;
}

.slide-bg {
    @apply transition-opacity duration-1000 ease-in-out;
}

.line {
    @apply opacity-0 translate-y-[50px];
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-wrapper a,
.scroll-wrapper img,
.scroll-wrapper div {
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pan-x;
}

.tab-btn {
    display: flex;
    align-items: flex-start;
    word-break: keep-all;
    font-weight: 400;
    font-size: 1.125rem;
    letter-spacing: -0.04rem;
    padding-bottom: 1rem;
}

.tab-btn.active,
.tab-btn:hover {
    color: #0063AD;
    font-weight: 800;
    border-bottom: 3px solid #0063AD;
}

.tab-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.tab-content.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}



.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-up {
    animation: fadeUp 1s ease forwards;
}

/* space 4 */
.spacer4_wrap {
    background-image: url("/assets/source/sub_banner_web_03.webp");
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: calc(0.15s * var(--i));
}

/* 텍스트 애니메이션 */
.ani {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.ani.active {
    opacity: 1;
    transform: translateY(0);
}

/* 아이콘 공통 */
.icon {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    opacity: 0;
    transition: all 1s ease;
    box-shadow: 0px 4px 8.7px 2px #7AA4C480;
}

.icon.active {
    opacity: 1;
}

/* 순차 애니메이션 딜레이 */
.ani1 {
    transition-delay: 0.2s
}

.ani2 {
    transition-delay: 0.3s
}

.ani3 {
    transition-delay: 0.4s
}

.ani4 {
    transition-delay: 0.5s
}

.ani5 {
    transition-delay: 0.6s
}

.ani6 {
    transition-delay: 0.7s
}

.ani7 {
    transition-delay: 0.8s
}

.ani8 {
    transition-delay: 0.9s
}

.ani9 {
    transition-delay: 1.0s
}

.ani10 {
    transition-delay: 1.1s
}

.ani11 {
    transition-delay: 1.2s
}

.ani12 {
    transition-delay: 1.3s
}

.ani13 {
    transition-delay: 1.4s
}

.ani14 {
    transition-delay: 1.5s
}

.ani15 {
    transition-delay: 1.6s
}

.swal2-popup {
    padding-bottom: 0;
}

.swal2-image {
    margin-top: 30px;
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
}

.swal2-title {
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 160%;
    letter-spacing: -2%;
    padding-bottom: 0 !important;
}

.swal2-actions {
    margin-top: 40px;
    margin-bottom: 30px;
}

.swal2-confirm {
    padding: 14px 56px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 24px;
    letter-spacing: -2%;
    color: #fff;
    background-color: #303C52;
    border-radius: 0;
}

.spin-on-hover:hover svg {
    animation: spin360 1s linear infinite;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0063AD;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin360 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin360 {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 960px) {
    header {
        background-color: white !important;
        box-shadow: 0px 4px 8px 0px #B0B0B01A;
    }

    #mainHeader a:not(.lang-toggle-item):not(.lang-toggle-item.active):not(.lang-toggle-vertical),
    #mainHeader span:not(.lang-toggle-item):not(.lang-toggle-item.active):not(.lang-toggle-vertical) {
        color: black !important;
    }

    #mainHeader .active {
        color: #009DED !important;
    }

    #mainHeader .nav-item {
        display: none;
    }

    #mainHeader .lang-toggle {
        display: flex;
        align-items: center;
    }

    #hamburgerBtn {
        display: inline-block;
        cursor: pointer;
        margin-left: 16px;
    }

    #hamburgerBtn span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: black;
        margin: 4px 0;
    }

    #headerLogo {
        width: 162px;
        height: 22.25px;
        background-image: url('/assets/source/logo_bk.png') !important;
    }

    #topButton {
        width: 40px;
        height: 40px;
    }
    .spacer4_wrap {
        background-image: url("/assets/source/sub_banner_mobile_03.png");
    }
}