/**
 * Bruo Banner Slider — x-kom style
 */

/* ========================================
   CONTAINER
======================================== */

.bbs-container {
    width: 100%;
    position: relative;
    border-radius: 12px;
}

/* ========================================
   MAIN SLIDER
======================================== */

.bbs-slider {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.bbs-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.03), transparent);
    z-index: 5;
    pointer-events: none;
    border-radius: 12px 12px 0 0;
}

.bbs-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.03), transparent);
    z-index: 5;
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

.bbs-slider .swiper-wrapper {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Slide */
.bbs-slide {
    position: relative;
    width: 100%;
    overflow: hidden;
}

a.bbs-slide-link,
a.bbs-slide-link:hover,
a.bbs-slide-link:visited {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.bbs-slide-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Overlay */
.bbs-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    gap: 10px;
    box-sizing: border-box;
}

.bbs-overlay.bbs-position-left {
    align-items: flex-start;
    text-align: left;
}

.bbs-overlay.bbs-position-center {
    align-items: center;
    text-align: center;
}

.bbs-overlay.bbs-position-right {
    align-items: flex-end;
    text-align: right;
}

/* Logo */
.bbs-logo {
    margin-bottom: 4px;
}

.bbs-logo img {
    max-height: 32px;
    width: auto;
    display: block;
}

/* Text */
.bbs-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bbs-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: inherit;
}

.bbs-title-line1 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.bbs-title-line2 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    color: inherit;
}

/* CTA Button */
.bbs-cta-button {
    display: inline-block;
    width: max-content;
    margin-top: 12px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background-color: #1a1a1a;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    line-height: 1.4;
}

.bbs-cta-button:hover {
    background-color: #333;
}

/* ========================================
   NAVIGATION BAR
======================================== */

.bbs-nav-wrapper {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1300px;
    width: calc(100% - 120px);
    display: flex;
    align-items: stretch;
    gap: 16px;
    z-index: 10;
}

.bbs-nav-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex: 1;
    padding: 0;
    box-sizing: border-box;
    z-index: 10;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Nav Arrows */
.bbs-nav-arrow {
    flex-shrink: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-right: none;
    border-radius: 0;
    cursor: pointer;
    color: #555;
    transition: background 0.2s ease;
    padding: 0;
}

.bbs-nav-arrow-next {
    border-right: none;
    border-left: none;
}

.bbs-nav-arrow:hover,
.bbs-nav-arrow:focus,
.bbs-nav-arrow:active {
    background: #f5f5f5;
    border-color: #eee !important;
    outline: none !important;
    box-shadow: none !important;
    color: #333 !important;
}

.bbs-nav-arrow svg {
    fill: currentColor;
}

/* Nav Viewport */
.bbs-nav-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.bbs-nav-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.3s ease;
    white-space: nowrap;
    height: 100%;
}

.bbs-nav-item {
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: stretch;
}

.bbs-nav-button,
.bbs-nav-button:hover,
.bbs-nav-button:focus,
.bbs-nav-button:active,
.bbs-nav-button:visited {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 400;
    color: #666 !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
    box-shadow: none !important;
    outline: none !important;
}

.bbs-nav-item:hover .bbs-nav-button {
    background: #f9f9f9 !important;
    color: #444 !important;
}

.bbs-nav-item.active .bbs-nav-button {
    color: #1a1a1a !important;
    font-weight: 500;
    background: rgba(240, 240, 240, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Loader / Progress bar */
.bbs-nav-loader {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #1a1a1a;
    transition: none;
}

.bbs-nav-item.active .bbs-nav-loader {
    width: 0;
}

.bbs-nav-item.active.animating .bbs-nav-loader {
    transition: width linear;
    width: 100%;
}

/* Pause Button */
.bbs-pause-button {
    flex-shrink: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0px;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
    transition: background 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.bbs-pause-button:hover,
.bbs-pause-button:focus,
.bbs-pause-button:active {
    background: #f5f5f5;
    border-color: #eee !important;
    outline: none !important;
    box-shadow: none !important;
    color: #333 !important;
}

.bbs-pause-button svg {
    fill: currentColor;
}

/* Toggle play/pause icons */
.bbs-pause-button .bbs-icon-play {
    display: none;
}

.bbs-pause-button .bbs-icon-pause {
    display: block;
}

.bbs-pause-button.paused .bbs-icon-play {
    display: block;
}

.bbs-pause-button.paused .bbs-icon-pause {
    display: none;
}

/* ========================================
   RESPONSIVE
======================================== */

@media screen and (max-width: 899px) {
    .bbs-overlay {
        padding: 20px 28px;
        gap: 6px;
    }

    .bbs-subtitle {
        font-size: 11px;
    }

    .bbs-title-line1 {
        font-size: 16px;
    }

    .bbs-title-line2 {
        font-size: 14px;
    }

    .bbs-cta-button {
        padding: 6px 14px;
        font-size: 11px;
        margin-top: 8px;
    }

    .bbs-logo img {
        max-height: 22px;
    }

    .bbs-nav-button,
    .bbs-nav-button:hover,
    .bbs-nav-button:focus,
    .bbs-nav-button:active,
    .bbs-nav-button:visited {
        padding: 10px 12px;
        font-size: 11px;
    }

    .bbs-nav-wrapper {
        width: calc(100% - 40px);
        bottom: 10px;
    }

    .bbs-nav-arrow,
    .bbs-pause-button {
        width: 36px;
    }
}

@media screen and (max-width: 480px) {
    .bbs-overlay {
        padding: 14px 18px;
    }

    .bbs-title-line1 {
        font-size: 14px;
    }

    .bbs-title-line2 {
        font-size: 12px;
    }

    .bbs-nav-arrow,
    .bbs-pause-button {
        width: 32px;
    }

    .bbs-nav-button,
    .bbs-nav-button:hover,
    .bbs-nav-button:focus,
    .bbs-nav-button:active,
    .bbs-nav-button:visited {
        padding: 8px 10px;
        font-size: 10px;
    }
}
