/**
 * Aviation Scholarships Carousel Styles
 * Styles for Swiper-based scholarship carousels
 */

/* ==========================================
   Modal Z-Index Fix for Carousel
   ========================================== */
/* Ensure modals appear above carousel and all other content */
.modal.fade {
    z-index: 9999 !important;
}

.modal-backdrop {
    z-index: 9998 !important;
}

/* ==========================================
   Carousel Wrapper
   ========================================== */
.avs-scholarships-carousel-wrapper {
    position: relative;
    width: 100%;
    padding:0;
    margin: 0;
}

/* ==========================================
   Swiper Container
   ========================================== */
.avs-scholarships-carousel {
    width: 100%;
    padding: 10px 10px 50px;
    /* overflow: visible;  */
}

.avs-scholarships-carousel .swiper-wrapper {
    align-items: stretch;
}

.avs-scholarships-carousel .swiper-slide {
    height: auto;
    display: flex;
}

/* Ensure scholarship cards fill the slide */
.avs-scholarships-carousel .swiper-slide > article {
    width: 100%;
    height: auto;
}

/* ==========================================
   Navigation Buttons
   ========================================== */
.avs-scholarships-carousel-wrapper .swiper-button-next,
.avs-scholarships-carousel-wrapper .swiper-button-prev {
    width: 40px;
    height: 40px;
    background: var(--primary, #1e73be);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* .avs-scholarships-carousel-wrapper .swiper-button-next:hover,
.avs-scholarships-carousel-wrapper .swiper-button-prev:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
} */

.avs-scholarships-carousel-wrapper .swiper-button-next::after,
.avs-scholarships-carousel-wrapper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent, #1e73be);
}

/* Disabled state */
.avs-scholarships-carousel-wrapper .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.avs-scholarships-carousel-wrapper .swiper-button-disabled:hover {
    transform: none;
}

/* Position adjustments */
.avs-scholarships-carousel-wrapper .swiper-button-prev {
    left: 0px;
}

.avs-scholarships-carousel-wrapper .swiper-button-next {
    right: 0px;
}

/* ==========================================
   Pagination
   ========================================== */
.avs-scholarships-carousel-wrapper .swiper-pagination {
    bottom: 10px;
    left: 0;
    right: 0;
}

.avs-scholarships-carousel-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--primary, #1e73be);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.avs-scholarships-carousel-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent, #46b450);
    transform: scale(1.2);
}

.avs-scholarships-carousel-wrapper .swiper-pagination-bullet:hover {
    opacity: 0.7;
}

/* Dynamic bullets styling */
.avs-scholarships-carousel-wrapper .swiper-pagination-bullet-active-main {
    transform: none;
}

.avs-scholarships-carousel-wrapper .swiper-pagination-bullet-active-prev,
.avs-scholarships-carousel-wrapper .swiper-pagination-bullet-active-next {
    transform: none;
    opacity: 1;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* Mobile devices */
@media (max-width: 767px) {
    .avs-scholarships-carousel {
        /* padding: 0 35px 45px; */
    }
    
    .avs-scholarships-carousel-wrapper .swiper-button-next,
    .avs-scholarships-carousel-wrapper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .avs-scholarships-carousel-wrapper .swiper-button-next::after,
    .avs-scholarships-carousel-wrapper .swiper-button-prev::after {
        font-size: 16px;
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
    .avs-scholarships-carousel {
        /* padding: 0 45px 50px; */
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .avs-scholarships-carousel {
        /* padding: 0 55px 55px; */
    }
}

/* ==========================================
   Dark Mode Support
   ========================================== */
@media (prefers-color-scheme: dark) {
    .avs-scholarships-carousel-wrapper .swiper-button-next,
    .avs-scholarships-carousel-wrapper .swiper-button-prev {
        background: var(--secondary);
    }
    
    .avs-scholarships-carousel-wrapper .swiper-button-next:hover,
    .avs-scholarships-carousel-wrapper .swiper-button-prev:hover {
        background: var(--primary);
    }
    
    .avs-scholarships-carousel-wrapper .swiper-button-next::after,
    .avs-scholarships-carousel-wrapper .swiper-button-prev::after {
        color: #fff;
    }
    
    .avs-scholarships-carousel-wrapper .swiper-pagination-bullet {
        background: var(--primary);
    }
    
    .avs-scholarships-carousel-wrapper .swiper-pagination-bullet-active {
        background: var(--accent);
    }
}

/* ==========================================
   Loading State
   ========================================== */
.avs-scholarships-carousel.swiper-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ==========================================
   Accessibility Enhancements
   ========================================== */
.avs-scholarships-carousel-wrapper .swiper-button-next:focus,
.avs-scholarships-carousel-wrapper .swiper-button-prev:focus {
    outline: none;
}

.avs-scholarships-carousel-wrapper .swiper-pagination-bullet:focus {
    outline: none;
  
}

/* ==========================================
   Animation Effects
   ========================================== */
.avs-scholarships-carousel .swiper-slide {
    transition: transform 0.3s ease;
}

.avs-scholarships-carousel .swiper-slide-active {
    /* Active slide can have special styling if needed */
}

/* Smooth entrance animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avs-scholarships-carousel-wrapper {
    animation: slideIn 0.5s ease-out;
}

/* ==========================================
   Compact Carousel Specific Styles
   ========================================== */
.avs-compact-carousel .swiper-slide {
    /* Compact carousel might have different card heights */
}

/* ==========================================
   No Results Message
   ========================================== */
.avs-no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
    font-style: italic;
}
