/* ============================================================
   VBS Video Background Slider — Frontend Styles
   ============================================================ */

/* ---- Wrapper ---- */
.vbs-slider-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    box-sizing: border-box;
    line-height: 0;
}

.vbs-slider-wrapper.vbs-fullscreen {
    width: 100% !important;
    height: 100vh !important;
    min-height: 300px;
}

.vbs-slider-wrapper.vbs-fixed {
    min-height: 200px;
}

/* ---- Swiper core overrides ---- */
.vbs-swiper {
    width: 100%;
    height: 100%;
}

.vbs-swiper .swiper-wrapper {
    height: 100%;
}

.vbs-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ---- Background Image ---- */
.vbs-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 6s ease;
    will-change: transform;
}

.swiper-slide-active .vbs-bg-img {
    transform: scale(1);
}

/* ---- Background Video (self-hosted) ---- */
.vbs-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* ---- Background iFrame (YouTube/Vimeo) ---- */
.vbs-bg-iframe-wrap {
    position: absolute;
    inset: -10%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.vbs-bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

/* ---- Overlay ---- */
.vbs-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ---- Caption ---- */
.vbs-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    box-sizing: border-box;
    line-height: normal;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.swiper-slide-active .vbs-caption {
    opacity: 1;
    transform: translateY(0);
}

.vbs-caption-left  { align-items: flex-start; text-align: left; }
.vbs-caption-center { align-items: center; text-align: center; }
.vbs-caption-right  { align-items: flex-end; text-align: right; }

.vbs-caption-title {
    margin: 0 0 14px;
    padding: 0;
    font-size: clamp(1.6rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0,0,0,0.45);
    max-width: 800px;
}

.vbs-caption-text {
    margin: 0 0 24px;
    padding: 0;
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 640px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
    opacity: 0.92;
}

.vbs-caption-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid currentColor;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.vbs-caption-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ---- Arrows ---- */
.vbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.6rem;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    outline: none;
    user-select: none;
    opacity: 0.85;
}

.vbs-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.vbs-arrow-prev { left: 18px; }
.vbs-arrow-next { right: 18px; }

/* ---- Pagination Dots ---- */
.vbs-pagination {
    bottom: 18px !important;
}

.vbs-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 1;
    margin: 0 4px !important;
    transition: transform 0.25s ease, background 0.25s ease, width 0.25s ease;
}

.vbs-pagination .swiper-pagination-bullet-active {
    transform: scale(1.35);
    border-radius: 4px;
    width: 22px;
}

/* ---- Responsive Heights ---- */
@media (max-width: 1024px) {
    .vbs-caption { padding: 30px 40px; }
    .vbs-arrow   { width: 44px; height: 44px; font-size: 1.3rem; }
    .vbs-arrow-prev { left: 12px; }
    .vbs-arrow-next { right: 12px; }
}

@media (max-width: 768px) {
    .vbs-caption { padding: 24px 28px; }
    .vbs-caption-title { font-size: clamp(1.2rem, 5vw, 1.9rem); }
    .vbs-caption-text  { font-size: 0.88rem; }
    .vbs-caption-btn   { padding: 10px 22px; font-size: 0.82rem; }
    .vbs-arrow         { width: 38px; height: 38px; font-size: 1.1rem; }
    .vbs-arrow-prev    { left: 8px; }
    .vbs-arrow-next    { right: 8px; }
}

@media (max-width: 480px) {
    .vbs-caption { padding: 20px 20px; }
    .vbs-caption-title { margin-bottom: 8px; }
    .vbs-caption-text  { margin-bottom: 16px; }
}
