.header *,
.header {
    box-sizing: border-box;
}

.header {
    width: 100%;
    min-height: 30px;
    display: flex;
    background-color: #ffffff;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
}

/* Left section - White background */
.header-left {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    align-items: center;
}

/* Logo */
.logo {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 40px;
}

.logo .e-symbol {
    font-family: 'Times New Roman', serif;
    font-style: italic;
}

/* Animated text container */
.header-middle {
    flex: 1;
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
}

.animated-text-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
    height: 100%;
    overflow: hidden;
}

.swiper {
    width: 300px;
    height: 20px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    left: 0;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 300px !important;
    min-width: 300px;
    max-width: 300px;
    font-size: 12px;
    font-weight: 400;
    color: #000000;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}

.animated-text-wrapper .swiper-wrapper {
    display: flex;
    align-items: center;
}

.animated-text-wrapper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 뉴스티커 전용 스타일 - 다른 swiper에 영향 없음 */
#promoSwiper {
    width: 300px !important;
    height: 20px !important;
    overflow: hidden !important;
    position: relative !important;
}

#promoSwiper .swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    /* Swiper의 transform은 유지 (슬라이드 이동을 위해 필요) */
}

#promoSwiper .swiper-slide {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* 기본적으로 숨김, active만 표시 */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    pointer-events: none !important;
}

#promoSwiper .swiper-slide-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* Swiper loop 모드에서 복제된 슬라이드도 숨김 */
#promoSwiper .swiper-slide-duplicate {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#promoSwiper .swiper-slide-duplicate-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}


/* Right section - Black background */
.header-right {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    height: 100%;
    font-family: sans-serif;
    font-weight: 600;
    overflow: hidden;
}

.support-link {
    width: 100px;
    justify-self: end;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px 0 12px;
    background-color: #ffffff;
    color: #000000;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    position: relative;
    overflow: hidden;
}


.support-link::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40px;
    color: #e65a27;
    background-color: #e65a27;
    clip-path: polygon(100% 0, 70% 100%, 100% 100%, 100% 0%);
    z-index: 0;
}



.outlet-button {
    justify-self: end;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 30px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
    overflow: hidden;
    
}

.outlet-button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1px;
    width: 60px;
    background-color: #e65a27;
    clip-path: polygon(0 0, 20% 0, 0% 100%, 0 0%);
    z-index: 0;
}

.outlet-button > * {
    position: relative;
    z-index: 1;
}

.outlet-label {
    font-weight: 700;
    letter-spacing: 1.4px;
}

.outlet-arrow {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e65a27;
}

.outlet-arrow::before {
    content: "\003E";
    font-size: 18px;
    line-height: 1;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .header-left {
        flex: 0;
        display: none;
    }

    .header-middle {
        flex: 1.5;
        padding: 0 8px;
        justify-content: flex-start;
    }

    .header-right {
        flex: 1;
        min-width: 0;
    }

    .animated-text-wrapper {
        max-width: none;
        width: 100%;
        overflow: hidden;
    }

    .logo {
        font-size: 20px;
        margin-right: 20px;
    }

    .animated-text {
        font-size: 12px;
    }

    .support-link {
        font-size: 12px;
        letter-spacing: 0.3px;
        padding: 0 20px 0 8px;
        width: auto;
    }

    .support-label {
        display: none;
    }

    .support-link::before {
        width: 20px;
    }

    .outlet-button {
        padding: 0 20px;
        gap: 8px;
    }

    .outlet-button::before {
        width: 30px;
    }

    .outlet-label {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .outlet-arrow {
        display: none;
    }

}

/* Sticky header: 스크롤 다운 시 숨김, 스크롤 업 시 표시 */
.sticky-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}
.sticky-header-wrap.sticky-header--hidden {
    transform: translateY(-100%);
}
body:has(.sticky-header-wrap) {
    padding-top: 110px;
}
@media (max-width: 768px) {
    body:has(.sticky-header-wrap) {
        padding-top: 100px;
    }
}
/* 기존 이벤트/스토리 페이지 보정: top:-117px는 구 헤더(117px) 기준이므로 새 헤더 환경에서 조정 */
body:has(.sticky-header-wrap) .event-area-top {
    top: 0;
    margin-top: -110px;
}
@media (max-width: 768px) {
    body:has(.sticky-header-wrap) .event-area-top {
        margin-top: -100px;
    }
}
/* 기존 dia-header 관련 요소 숨김 (새 헤더에서는 사용하지 않음) */
body:has(.sticky-header-wrap) .dia-header_wrap {
    display: none;
}

