/* 
   Focused Card Slider Styles
   Target: #departments section
*/

#departments .expert-slider {
    padding: 20px 0 60px; /* Adjust padding to accommodate scaled active card */
    overflow: visible;
}

#departments .departments-swiper {
    overflow: visible !important; /* Critical for peek effect */
    padding: 40px 0 !important;
}

#departments .swiper-slide {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
    opacity: 0.4;
    filter: grayscale(100%) blur(2px);
    z-index: 1;
    cursor: pointer;
    height: auto;
    width: 450px; /* Fixed width for auto slides */
}

/* Side cards peek effect */
#departments .swiper-slide-prev,
#departments .swiper-slide-next {
    opacity: 0.7;
    filter: grayscale(50%) blur(1px);
    transform: scale(0.9);
    z-index: 2;
}

/* The Main Active Card */
#departments .swiper-slide-active {
    transform: scale(1.1);
    opacity: 1;
    filter: grayscale(0%) blur(0);
    z-index: 10;
    cursor: default;
}

/* Active Card Details visibility */
#departments .expert-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px; /* Slightly more rounded for premium feel */
}

#departments .swiper-slide-active .expert-card {
    box-shadow: var(--shadow-lg), 0 0 50px var(--brand-glow);
    border-color: var(--brand-primary);
    background: var(--bg-tertiary); /* Highlight background */
}

/* Ensure content looks good when scaled */
#departments .expert-card-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}

#departments .swiper-slide-active .expert-card-content {
    opacity: 1;
}

/* Typography Enhancements for Active Card */
#departments .swiper-slide-active .expert-card-title {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    #departments .swiper-slide {
        width: 350px;
    }
}

@media (max-width: 576px) {
    #departments .swiper-slide {
        width: 280px;
        transform: scale(0.9);
    }
    #departments .swiper-slide-active {
        transform: scale(1.05);
    }
}

/* RTL Support for Swiper is native, but just in case */
[dir="rtl"] #departments .expert-card-link:hover {
    transform: translateX(-6px);
}

/* Navigation & Pagination */
#departments .expert-nav-btn {
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--brand-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

#departments .expert-nav-btn:hover {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 0 20px var(--brand-glow);
}

#departments .swiper-pagination-bullet {
    background: var(--text-secondary);
    opacity: 0.3;
}

#departments .swiper-pagination-bullet-active {
    background: var(--brand-primary);
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}
