/* css/banner-style.css */
.banner-container {
    height: 40px;
    overflow: hidden;
    position: relative;
}

.banner-wrapper {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease;
}

.banner-item {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-link {
    display: block;
    width: 100%;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.banner-link:hover {
    color: #fff;
    opacity: 0.8;
}

.main-swiper {
    width: 100%;
    height: auto;
    position: relative;
}

.main-swiper .swiper-slide a img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-swiper .swiper-slide a {
    display: block;
    position: relative;
    padding-bottom: 43%;
    height: 0;
    width: 100%;
}

.main-swiper .swiper-pagination {
    bottom: 20px;
}

.main-swiper .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.5);
}

.main-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

#fw-bottom-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    width: 90%;
    max-width: 1300px;
    height: 50px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
    border-radius: 10px;
}

#fw-bottom-banner .bottom-banner-content {
    width: 100%;
    padding: 0 20px;
}

#fw-bottom-banner a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: block;
    width: 100%;
}

#fw-bottom-banner a:hover {
    text-decoration: underline;
}

#fw-bottom-banner .banner-character {
    position: absolute;
    right: 17px;
    max-width: 113px;
    top: -15px;
    pointer-events: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    #fw-bottom-banner {
        height: 40px;
    }

    #fw-bottom-banner a {
        font-size: 14px;
    }

    #fw-bottom-banner .banner-character {
        display: none;
    }
}

/* 관리자 화면에 표시되는 body 패딩 조정 */
body.has-bottom-banner {
    padding-bottom: 50px;
}

@media (max-width: 768px) {
    body.has-bottom-banner {
        padding-bottom: 40px;
    }
}

/* ============================================================
   슬라이드 배너 (다중 그룹)
   ============================================================ */

.fw-sb-swiper {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.fw-sb-swiper .swiper-slide a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.fw-sb-swiper .fw-sb-slide-inner {
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
}

.fw-sb-swiper .fw-sb-slide-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 페이지네이션 - bullets */
.fw-sb-swiper .swiper-pagination {
    bottom: 16px !important;
}

.fw-sb-swiper .swiper-pagination-bullet {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: background 0.3s, width 0.3s;
}

.fw-sb-swiper .swiper-pagination-bullet-active {
    background: #fff;
    width: 40px;
}

/* 페이지네이션 - fraction */
.fw-sb-swiper .swiper-pagination-fraction {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

/* 네비게이션 화살표 */
.fw-sb-swiper .swiper-button-prev,
.fw-sb-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, transform 0.2s;
}

.fw-sb-swiper .swiper-button-prev:hover,
.fw-sb-swiper .swiper-button-next:hover {
    background: #fff;
    transform: scale(1.05);
}

.fw-sb-swiper .swiper-button-prev::after,
.fw-sb-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* 반응형 */
@media (max-width: 768px) {
    .fw-sb-swiper {
        border-radius: 0;
    }

    .fw-sb-swiper .swiper-button-prev,
    .fw-sb-swiper .swiper-button-next {
        width: 32px;
        height: 32px;
    }

    .fw-sb-swiper .swiper-button-prev::after,
    .fw-sb-swiper .swiper-button-next::after {
        font-size: 13px;
    }

    .fw-sb-swiper .swiper-pagination-bullet {
        width: 24px;
        height: 3px;
    }

    .fw-sb-swiper .swiper-pagination-bullet-active {
        width: 32px;
    }
}