/* ============================================
   RAYBOTICS ACADEMY - SLIDER STYLES
   Modern Hero Slider with Smooth Animations
============================================ */

/* Main Slider Section */
.section-slider {
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
    margin-top: 0;
    padding-top: 0;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background: #1a1a2e;
    overflow: hidden;
}

/* Slide Background Image */
.slide-image {
    position: absolute;
    top: -65px;
    left: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    background-position: center center;
    background-size: cover;
    transition: transform 8s ease-out;
    z-index: 1;
}

.swiper-slide-active .slide-image {
    transform: scale(1.05);
}

/* Overlay for text readability - applied via slide-overlay div in HTML */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(26, 26, 46, 0.85) 0%, 
        rgba(84, 150, 173, 0.5) 50%,
        rgba(0, 168, 232, 0.4) 100%
    );
    z-index: 2;
}

/* Slide content */
.slide-content {
    position: relative;
    z-index: 10;
}

/* Slide Title */
.slide-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff !important;
    z-index: 100;
    position: relative;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.slide-title span {
    display: inline-block;
    white-space: pre;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.swiper-slide-active .slide-title span {
    opacity: 1;
}

/* Slideshow Container */
.slideshow {
    position: relative;
    height: 100%;
}

/* Pagination */
.slideshow-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    gap: 5px;
}

.slideshow-pagination-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-pagination-item .pagination-number {
    opacity: 0.5;
    transition: all 0.3s ease;
}

.slideshow-pagination-item:hover .pagination-number,
.slideshow-pagination-item.active .pagination-number {
    opacity: 1;
    color: #5496ad;
}

.slideshow-pagination-item:last-of-type .pagination-separator {
    width: 0;
}

.slideshow-pagination-item.active .pagination-separator {
    width: 60px;
}

/* Pagination Number */
.pagination-number {
    font-size: 1.5rem;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 0 8px;
    transition: all 0.3s ease;
}

/* Pagination Separator */
.pagination-separator {
    display: none;
    position: relative;
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transition: all 0.4s ease;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pagination-separator {
        display: block;
    }
}

.pagination-separator-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #5496ad, #00A8E8);
    transform-origin: left center;
    border-radius: 2px;
}

/* Navigation Buttons */
.slideshow-navigation-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 60px;
    z-index: 100;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slideshow-navigation-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.slideshow-navigation-button:active {
    transform: translateY(-50%) scale(0.95);
}

.slideshow-navigation-button .fas,
.slideshow-navigation-button .fa {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.slideshow-navigation-button:hover .fas,
.slideshow-navigation-button:hover .fa {
    transform: scale(1.1);
}

.slideshow-navigation-button.prev {
    left: 30px;
}

.slideshow-navigation-button.prev:hover .fas {
    transform: translateX(-3px);
}

.slideshow-navigation-button.next {
    right: 30px;
}

.slideshow-navigation-button.next:hover .fas {
    transform: translateX(3px);
}

/* Responsive Navigation */
@media (max-width: 991px) {
    .slideshow-navigation-button {
        width: 50px;
        height: 50px;
    }
    
    .slideshow-navigation-button.prev {
        left: 20px;
    }
    
    .slideshow-navigation-button.next {
        right: 20px;
    }
    
    .slideshow-pagination {
        padding: 12px 24px;
    }
    
    .pagination-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .section-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .slideshow-navigation-button {
        width: 45px;
        height: 45px;
    }
    
    .slideshow-navigation-button .fas {
        font-size: 14px;
    }
    
    .slideshow-navigation-button.prev {
        left: 15px;
    }
    
    .slideshow-navigation-button.next {
        right: 15px;
    }
    
    .slideshow-pagination {
        bottom: 20px;
        padding: 10px 20px;
        border-radius: 30px;
    }
    
    .pagination-number {
        font-size: 1.1rem;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .section-slider {
        height: 60vh;
        min-height: 400px;
    }
    
    .slideshow-navigation-button {
        width: 40px;
        height: 40px;
    }
    
    .slideshow-navigation-button .fas {
        font-size: 12px;
    }
    
    .slideshow-navigation-button.prev {
        left: 10px;
    }
    
    .slideshow-navigation-button.next {
        right: 10px;
    }
    
    .slideshow-pagination {
        bottom: 15px;
        padding: 8px 16px;
    }
    
    .pagination-number {
        font-size: 1rem;
        padding: 0 4px;
    }
    
    .pagination-separator {
        display: none;
    }
}

/* Swiper Overrides */
.swiper-wrapper {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swiper-slide {
    opacity: 1 !important;
}

/* Disable default swiper pagination */
.swiper-pagination-bullet {
    display: none;
}