/* ========================================
   FEATURED CATEGORIES SLIDER REDESIGN
   Modern Card Design with Gradient Effects
   ======================================== */

.categories-slider-container {
    position: relative;
    padding: 0 60px;
}

/* Navigation Arrows */
.categories-slider-prev,
.categories-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.categories-slider-prev {
    left: 0;
}

.categories-slider-next {
    right: 0;
}

.categories-slider-prev:hover,
.categories-slider-next:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.categories-slider-prev:disabled,
.categories-slider-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.categories-slider-prev:disabled:hover,
.categories-slider-next:disabled:hover {
    transform: translateY(-50%);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

/* Swiper Container */
.categories-swiper {
    overflow: hidden;
    padding: 10px 0 30px 0;
}

.categories-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.categories-swiper .swiper-slide a {
    width: 100%;
    display: block;
    text-decoration: none;
}

/* Category Card */
.categories-swiper .swiper-slide .card {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px 25px 20px;
    background: white;
    border-radius: 24px;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
}

.categories-swiper .swiper-slide .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 24px 24px 0 0;
}

.categories-swiper .swiper-slide .card:hover {
    transform: translateY(-8px);
    border-color: #667eea;
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.2);
}

.categories-swiper .swiper-slide .card:hover::before {
    transform: scaleX(1);
}

/* Category Image - Circle inside Square Card */
.categories-swiper .swiper-slide .card .cover {
    width: 130px !important;
    height: 130px !important;
    border-radius: 50% !important;
    background-size: 85% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f8fafc !important;
    position: relative;
    transition: all 0.4s ease;
    border: 5px solid #f1f5f9 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    overflow: hidden;
    margin: 0 auto;
}

.categories-swiper .swiper-slide .card .cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.categories-swiper .swiper-slide .card:hover .cover {
    transform: scale(1.08);
    border-color: #667eea !important;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    background-size: 90% !important;
}

.categories-swiper .swiper-slide .card:hover .cover::after {
    opacity: 1;
}

/* Category Title */
.categories-swiper .swiper-slide .card .card-title {
    width: 100%;
    padding: 20px 12px 0 12px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    transition: all 0.3s ease;
    background: transparent;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 60px;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

.categories-swiper .swiper-slide .card:hover .card-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hide Pagination Dots */
.categories-pagination {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .categories-slider-container {
        padding: 0 55px;
    }
    
    .categories-swiper .swiper-slide .card {
        height: 290px;
        padding: 28px 18px 24px 18px;
    }
    
    .categories-swiper .swiper-slide .card .cover {
        width: 120px !important;
        height: 120px !important;
    }
    
    .categories-swiper .swiper-slide .card .card-title {
        font-size: 0.98rem;
        padding: 18px 10px 0 10px;
        height: 58px;
    }
}

@media (max-width: 960px) {
    .categories-slider-container {
        padding: 0 50px;
    }
    
    .categories-slider-prev,
    .categories-slider-next {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }
    
    .categories-swiper .swiper-slide .card {
        padding: 24px 16px 22px 16px;
        height: 270px;
    }
    
    .categories-swiper .swiper-slide .card .cover {
        width: 110px !important;
        height: 110px !important;
        border-width: 4px !important;
    }
    
    .categories-swiper .swiper-slide .card .card-title {
        font-size: 0.95rem;
        padding: 16px 10px 0 10px;
        height: 56px;
    }
}

@media (max-width: 640px) {
    .categories-slider-container {
        padding: 0 45px;
    }
    
    .categories-slider-prev,
    .categories-slider-next {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    
    .categories-swiper {
        padding: 8px 0 20px 0;
    }
    
    .categories-swiper .swiper-slide .card {
        border-radius: 20px;
        padding: 20px 14px 18px 14px;
        height: 250px;
    }
    
    .categories-swiper .swiper-slide .card .cover {
        width: 100px !important;
        height: 100px !important;
        border-width: 4px !important;
        background-size: 80% !important;
    }
    
    .categories-swiper .swiper-slide .card:hover .cover {
        background-size: 85% !important;
    }
    
    .categories-swiper .swiper-slide .card .card-title {
        font-size: 0.9rem;
        padding: 14px 8px 0 8px;
        height: 52px;
    }
}
