/**
 * Posplus WebGL Liquid Distortion Slider CSS
 */
.pos-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #0b1120;
}

.pos-slider {
    position: relative;
    width: 100%;
    height: 640px;
    min-height: 640px;
    max-height: 720px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .pos-slider {
        height: 640px;
        min-height: 640px;
    }
}

@media (max-width: 767.98px) {
    .pos-slider {
        height: 520px;
        min-height: 520px;
    }
}

.pos-slider .swiper {
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    position: relative;
    z-index: 10;
}

.pos-slider .swiper-wrapper {
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
}

.pos-slider .swiper-slide {
    position: relative;
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
}

/* Static slide background fallback */
.pos-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* When WebGL canvas is loaded and running, hide static background */
.pos-slider.pos-canvas-loaded .pos-slide-bg {
    display: none;
}

/* WebGL canvas styling */
.pos-slider canvas.pos-webgl-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 1;
}

/* Dark gradient overlay on top of WebGL canvas for crystal-clear readability */
.pos-slider-overlay {
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    background: linear-gradient(90deg, rgba(11, 17, 32, 0.90) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.40) 100%);
    opacity: 0.5;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .pos-slider-overlay {
        background: linear-gradient(180deg, rgba(11, 17, 32, 0.88) 0%, rgba(15, 23, 42, 0.78) 100%);
        opacity: 1;
    }
}

/* Slide Content Container */
.pos-slide-content {
    position: relative;
    z-index: 15;
    max-width: 780px;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Typography & Visual Accents */
.pos-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.35);
    backdrop-filter: blur(8px);
    margin-bottom: 1.25rem;
}

.pos-slide-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

@media (max-width: 991.98px) {
    .pos-slide-title {
        font-size: 2.35rem;
    }
}

@media (max-width: 575.98px) {
    .pos-slide-title {
        font-size: 1.85rem;
    }
}

.pos-slide-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pos-slide-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 2rem;
    max-width: 620px;
}

@media (max-width: 575.98px) {
    .pos-slide-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }
}

/* Animated Elements on Active Slide */
.pos-slider .pos-anim-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-slider .swiper-slide:not(.swiper-slide-active) .pos-anim-in {
    opacity: 0;
    transform: translateY(20px);
}

.pos-slider .swiper-slide-active .pos-anim-in.anim-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.pos-slider .swiper-slide-active .pos-anim-in.anim-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.pos-slider .swiper-slide-active .pos-anim-in.anim-subtitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.pos-slider .swiper-slide-active .pos-anim-in.anim-actions {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Custom Navigation Controls (Glassmorphism) */
.pos-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all 0.25s ease;
}

.pos-slider-nav-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.pos-slider-prev {
    left: 24px;
}

.pos-slider-next {
    right: 24px;
}

@media (max-width: 767.98px) {
    .pos-slider-nav-btn {
        display: none;
    }
}

/* Custom Pagination Bullets */
.pos-slider-pagination {
    position: absolute;
    bottom: 24px !important;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 25;
}

.pos-slider-pagination .swiper-pagination-bullet {
    width: 32px;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    opacity: 1;
    margin: 0 !important;
    transition: all 0.35s ease;
}

.pos-slider-pagination .swiper-pagination-bullet-active {
    background: #2563eb;
    width: 48px;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.8);
}
