/* WEISS Banner Slider Block - Entire Banner as Slide */
.wp-block-custom-blocks-rubel-banner-slider {
    position: relative;
    width: 100%;
    height: 400px;
    max-width: 1400px !important;
    margin: 0 auto;
    overflow: hidden;
}

.custom-banner-slider-swiper {
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.banner-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 30px;
    position: relative;
    transition: background-image 0.6s ease;
}

/* Overlay for better text readability when background image exists */
.banner-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        rgba(230, 243, 255, 0.8) 0%, 
        rgba(240, 248, 255, 0.6) 50%,
        rgba(230, 243, 255, 0.3) 100%
    );
    z-index: 1;
}

.banner-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.banner-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.banner-desc {
    font-size: 18px;
    color: #333;
    line-height: 1.7;
    margin: 0 0 40px 0;
    font-weight: 400;
    max-width: 500px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.banner-cta {
    display: inline-block;
    align-items: center;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.banner-cta:hover {
    color: #4A90E2;
    border: none;
}
.banner-cta:focus {
   outline: none;
}
.banner-cta::after {
    content: '→';
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.banner-cta:hover::after {
    transform: translateX(3px);
}

/* Placeholder for slides without background images */
.banner-placeholder {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slide-image.placeholder {
    width: 200px;
    height: 120px;
    background: linear-gradient(45deg, #ddd 25%, transparent 25%), linear-gradient(-45deg, #ddd 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ddd 75%), linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px dashed #999;
}

/* Custom Dashed Pagination - Centered at bottom */
.swiper-pagination {
    position: absolute !important;
    bottom: 40px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    z-index: 20 !important;
}

.swiper-pagination-bullet {
    width: 42px !important;
    height: 6px !important;
    border-radius: 6px !important; /* pill shape */
    background: transparent !important;
    opacity: 1 !important;
    margin: 0 !important;
    position: relative !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

/* Create dashed effect with pseudo-element for better control */
.swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Inactive: single white dash (no dotted segments) */
    background: rgba(255, 255, 255, 0.9);
    border-radius: inherit;
    transition: all 0.25s ease;
}
swiper-pagination-bullet:focus {
    outline: 0 !important;
}

.swiper-pagination-bullet-active::before {
    background: repeating-linear-gradient(
        to right,
        #FFD600 0px,
        #FFD600 42px
    );
    transform: none;
    box-shadow: 0 0 8px rgba(255, 214, 0, 0.25);
}

.swiper-pagination-bullet:hover::before {
    background: rgba(255, 255, 255, 1);
    transform: none;
}

/* Keep next/prev dash appearance synced with slide state */
.swiper-pagination-bullet.bullet-prev::before,
.swiper-pagination-bullet.bullet-next::before {
    background: rgba(255, 255, 255, 0.9);
}

/* Navigation Arrows - Hidden by default to match design */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

/* Alternative - if you want to show arrows */
.custom-banner-slider-swiper:hover .swiper-button-next,
.custom-banner-slider-swiper:hover .swiper-button-prev {
    display: flex;
    color: rgba(255, 255, 255, 0.8);
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.custom-banner-slider-swiper:hover .swiper-button-next:hover,
.custom-banner-slider-swiper:hover .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.4);
    color: white;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wp-block-custom-blocks-rubel-banner-slider {
        height: 400px;
    }
    
    .banner-inner {
        padding: 60px 20px;
    }
    
    .banner-left {
        max-width: 400px;
    }
    
    .banner-title {
        font-size: 48px;
    }
    
    .swiper-pagination {
        bottom: 30px !important;
    }
}

/* Tablet Layout */
@media (max-width: 768px) {
    .wp-block-custom-blocks-rubel-banner-slider {
        height: 400px;
        border-width: 2px;
    }
    
    .banner-inner {
        padding: 40px 30px;
        justify-content: center;
        text-align: center;
    }
    
    /* Stronger overlay for mobile */
    .banner-inner::before {
        background: linear-gradient(
            135deg, 
            rgba(230, 243, 255, 0.95) 0%, 
            rgba(240, 248, 255, 0.85) 50%,
            rgba(230, 243, 255, 0.9) 100%
        );
    }
    
    .banner-left {
        max-width: none;
        background: rgba(255, 255, 255, 0.2);
        padding: 30px 25px;
        border-radius: 8px;
        backdrop-filter: blur(8px);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .banner-title {
        font-size: 36px;
        margin-bottom: 20px;
        color: #1a1a1a;
        text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
    }
    
    .banner-desc {
        font-size: 16px;
        margin-bottom: 25px;
        color: #2a2a2a;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    }
    
    .banner-cta {
        color: #1a1a1a;
        font-weight: 700;
        background: rgba(255, 215, 0, 0.95);
        padding: 12px 24px;
        border-radius: 6px;
        border: 2px solid #FFD700;
        transition: all 0.3s ease;
        text-shadow: none;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    
    .banner-cta:hover {
        background: #FFD700;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5);
    }
    
    /* Placeholder positioning for tablet */
    .banner-placeholder {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: auto;
        height: auto;
    }
    
    .slide-image.placeholder {
        width: 120px;
        height: 80px;
        font-size: 12px;
    }
    
    /* Pagination for tablet */
    .swiper-pagination {
        bottom: 20px !important;
        z-index: 25 !important;
    }
    
    .swiper-pagination-bullet {
        width: 35px !important;
        height: 3px !important;
    }
}

/* Mobile Layout */
@media (max-width: 480px) {
    .wp-block-custom-blocks-rubel-banner-slider {
        height: 450px;
        border-width: 1px;
    }
    
    .banner-inner {
        padding: 30px 20px;
        align-items: center;
        justify-content: center;
    }
    
    .banner-left {
        padding: 25px 20px;
        text-align: center;
    }
    
    .banner-title {
        font-size: 28px;
        letter-spacing: 0;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .banner-desc {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .banner-cta {
        font-size: 14px;
        padding: 10px 18px;
    }
    
    .banner-placeholder {
        bottom: 15px;
        right: 15px;
    }
    
    .slide-image.placeholder {
        width: 100px;
        height: 60px;
        font-size: 10px;
    }
    
    .swiper-pagination-bullet {
        width: 25px !important;
        height: 2px !important;
    }
    
    .swiper-pagination {
        bottom: 15px !important;
        gap: 8px !important;
    }
}

/* Editor Styles */
.custom-banner-slider-editor {
    border: 2px dashed #4A90E2;
    border-radius: 8px;
    padding: 20px;
    background: #f9fbff;
}

.custom-banner-slider-editor .no-slides {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

.slide-editor {
    background: white;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
