.vnsb-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.vnsb-slider-track {
    display: flex;
    transition: transform 0.45s ease;
}

.vnsb-slide {
    flex: 0 0 calc(100% / var(--vnsb-visible, 1));
    box-sizing: border-box;
    padding: 8px;
}

.vnsb-slide-inner {
    position: relative;
    width: 100%;
    min-height: 320px;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background-color: #202020;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    transition: transform 0.35s ease;
}

.vnsb-slider--full-width {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    max-width: 100vw;
}

.vnsb-slider--full-height {
    height: 100vh;
}

.vnsb-slider--full-height .vnsb-slide,
.vnsb-slider--full-height .vnsb-slide-inner {
    height: 100%;
}

.vnsb-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--vnsb-overlay-opacity, 0.35));
    transition: background 0.3s ease;
}
.vnsb-luoi-caption {
    max-width: 1340px;
    margin: 0 auto;
    width: 100%;
}
.vnsb-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    max-width: min(92%, 640px);
    margin: 0 auto;
    border-radius: 0 0 14px 14px;
}

.vnsb-caption--top {
    top: 0;
    bottom: auto;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.75) 100%);
    border-radius: 14px 14px 0 0;
}

.vnsb-caption--bottom {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    border-radius: 0 0 14px 14px;
}

.vnsb-caption--center {
    top: 50%;
    bottom: auto;
    width: 100%;
    max-width: 1340px;
    transform: translateY(-50%);
    border-radius: 0;
    padding: 0;
    display: inline-block;
    text-align: center;
}

.vnsb-caption--left,
.vnsb-caption--right {
    top: 50%;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    transform: translateY(-50%);
    border-radius: 0;
    padding: 0;
    display: inline-block;
}

.vnsb-caption--left {
    left: 24px;
    right: auto;
    text-align: left;
}

.vnsb-caption--right {
    right: 24px;
    left: auto;
    text-align: right;
}

.vnsb-title {
    margin: 0 0 10px;
    line-height: 1.1;
}

.vnsb-title a {
    text-decoration: none;
}

.vnsb-excerpt,
.vnsb-content {
    margin: 0 0 12px;
    line-height: 1.6;
}

.vnsb-readmore {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.vnsb-readmore:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.vnsb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--vnsb-nav-bg, rgba(0, 0, 0, 0.55));
    color: var(--vnsb-nav-color, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.vnsb-nav:hover,
.vnsb-nav:focus {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) translateX(0);
}

.vnsb-nav:focus {
    outline: 2px solid rgba(255, 255, 255, 0.45);
}

.vnsb-nav-prev {
    left: 16px;
}

.vnsb-nav-next {
    right: 16px;
}

.vnsb-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.vnsb-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--vnsb-dot-color, rgba(255, 255, 255, 0.45));
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.vnsb-dot:hover {
    transform: scale(1.25);
    background: rgba(255, 255, 255, 0.8);
}

.vnsb-dot.active {
    width: 14px;
    height: 14px;
    background: var(--vnsb-dot-active-color, #ff301b);
}

@media (max-width: 768px) {
    .vnsb-slide-inner {
        min-height: 280px;
    }

    .vnsb-caption {
        padding: 18px;
        width: auto;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        text-align: left;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
        border-radius: 0;
        max-width: 100%;
    }

    .vnsb-caption--left,
    .vnsb-caption--right,
    .vnsb-caption--center,
    .vnsb-caption--top,
    .vnsb-caption--bottom {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        transform: none;
        text-align: left;
        border-radius: 0;
    }

    .vnsb-nav {
        width: 40px;
        height: 40px;
    }
}
