/* Category Cards Styling */
.category-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 20px;
    height: 100%;
    overflow: hidden;
    margin: 0 10px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-image-box {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.category-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image-box img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 59, 100, 0.6);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-title {
    margin-top: 15px;
    font-weight: 700;
    color: #1f3b64;
    text-align: center;
    transition: color 0.3s ease;
}

.category-card:hover .category-title {
    color: #43d477;
}

/* Category Slider Styling */
.categories-slider-container {
    position: relative;
    padding: 0 40px;
    margin-top: 20px;
}

.categories-swiper-container {
    width: 100%;
    overflow: hidden;
}

.categories-swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.categories-swiper-slide {
    flex-shrink: 0;
    width: calc(50% - 20px);
    margin-bottom: 20px;
}

.categories-navigation {
    position: absolute;
    top: 50%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.categories-navigation .swiper-button-next,
.categories-navigation .swiper-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.categories-navigation .swiper-button-next:hover,
.categories-navigation .swiper-button-prev:hover {
    background: #43d477;
    color: #fff;
}

.categories-navigation .swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.categories-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.categories-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.categories-pagination .swiper-pagination-bullet-active {
    background: #43d477;
    width: 30px;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .categories-swiper-slide {
        width: calc(100% - 20px);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .categories-swiper-slide {
        width: calc(50% - 20px);
    }
}

@media (min-width: 1200px) {
    .categories-swiper-slide {
        width: calc(25% - 20px);
    }
}
