/* Departments Carousel Styling */
.departments-slider-wrapper {
    position: relative;
    padding: 0 60px;
}

#departmentsSwiper {
    padding: 20px 0 60px 0;
    position: relative;
    overflow: hidden;
    /* Ensure clipping happens here */
}

#departmentsSwiper .swiper-slide {
    height: auto;
    display: block;
    padding: 15px;
}

.slide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    height: auto;
}

/* Navigation Buttons (Custom classes) */
.dep-next,
.dep-prev {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
    cursor: pointer;
}

.dep-prev {
    left: 0;
}

.dep-next {
    right: 0;
}

.dep-next:hover,
.dep-prev:hover {
    background: rgba(13, 110, 253, 0.2);
    color: #0a58ca;
}

#departmentsSwiper .swiper-button-next:hover,
#departmentsSwiper .swiper-button-prev:hover {
    background: rgba(13, 110, 253, 0.2);
    color: #0a58ca;
}

/* Swiper Pagination */
#departmentsSwiper .swiper-pagination {
    bottom: 0;
    position: absolute;
}

#departmentsSwiper .swiper-pagination-bullet-active {
    background: #0d6efd;
}

/* View All Button */
.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: #0d6efd;
    text-decoration: none;
    border: 2px solid #0d6efd;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .departments-slider-wrapper {
        padding: 0;
    }

    .slide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #departmentsSwiper {
        padding: 20px 0 60px 0;
    }

    .dep-next,
    .dep-prev {
        display: none;
    }
}