/* Top Banner 상단 배너 스타일 */
.top-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1000;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.top-banner__container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-banner__slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-banner__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 0 60px; /* 좌우 여백 (닫기 버튼 공간) */
}

.top-banner__slide.active {
    opacity: 1;
    z-index: 1;
}

.top-banner__slide:hover {
    text-decoration: underline;
}

.top-banner__text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    display: inline-block;
}

.top-banner__close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 2;
    padding: 0;
}

.top-banner__close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) rotate(90deg);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .top-banner__slide {
        padding: 0 50px;
    }

    .top-banner__text {
        font-size: 12px;
    }

    .top-banner__close {
        right: 15px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-banner__slide {
        padding: 0 45px;
    }

    .top-banner__text {
        font-size: 11px;
    }

    .top-banner__close {
        right: 10px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}
