/**
 * 2025 (c) INFOGEANT
 *
 * MODULE CMS Category Slider
 *
 * @author    INFOGEANT
 * @copyright Copyright (c), INFOGEANT
 * @license   Commercial
 * @version   1.0.0
 */

/* category Slider Styles */
.category-slider-section {
    min-height: 180px;
    margin: 2rem 0;
    background: #ffffff;
    border-radius: 10px;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 5rem;
}

.tvcategory-slider-main-title-wrapper .tvcmsmain-title-wrapper {
    margin: 0 !important;
    padding-top: 15px;
}

.category-slider-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 50px;
    z-index: 0;
    height: 230px;
}

.category-swiper {
    overflow: hidden;
    padding: 0;
    height: 180px !important;
    width: 100% !important;
}

.category-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px !important;
    flex-shrink: 0;
}

.category-slide-link {
    display: block;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease;
    min-width: 120px;
    max-width: 230px;
}

.category-slide-link:hover {
    transform: translateY(-5px);
    text-decoration: none;
}

.category-logo-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    /* margin-bottom: 10px; */
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    height: 130px;
    width: 160px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease;
    flex-shrink: 0;
    flex-grow: 0;
}

.category-logo-container:hover {
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.15); */
}

.category-logo-img {
    width: 120px !important;
    height: 120px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    flex-grow: 0;
    overflow: hidden;
    position: relative;
}

.category-logo-img img {
    width: 120px !important;
    height: 120px !important;
    object-fit: contain;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 4px;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.category-info-box {
    text-align: center;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 16px !important;
    text-overflow: ellipsis;
    margin: 0;
    padding: 0;
}

.category-nav-prev,
.category-nav-next {
    position: absolute !important;
    top: 45% !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    color: #333 !important;
}

.category-nav-prev {
    left: -45px !important;
}

.category-nav-next {
    right: -45px !important;
}

.category-nav-prev:hover,
.category-nav-next:hover {
    opacity: 0.8 !important;
}

.category-nav-prev i,
.category-nav-next i {
    font-size: 20px !important;
    color: #666 !important;
    transition: color 0.3s ease !important;
}

.swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-slider-wrapper {
        margin: 0;
        height: 180px;
    }

    /* .category-slider-section {
        margin-bottom: 0;
    } */

    .category-nav-prev {
        left: -25px !important;
        width: 35px !important;
        height: 35px !important;
    }

    .category-nav-next {
        right: -25px !important;
        width: 35px !important;
        height: 35px !important;
    }

    .category-nav-prev i,
    .category-nav-next i {
        font-size: 18px !important;
    }
    
    .category-logo-container {
        padding: 5px;
    }

    .category-title {
        font-size: 12px;
    }

    .category-logo-img {
        width: 100px !important;
        height: 100px !important;
    }

    .category-logo-img img {
        width: 100px !important;
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    .category-slider-section {
        padding-bottom: 0;
        padding-top: 0;
        margin: 2rem 0;
    }
    /* .category-slider-wrapper {
        margin: 0 20px;
    }

    .category-logo-container {
        padding: 10px;
        height: 60px;
    }

    .category-logo-img {
        max-height: 40px;
    }

    .category-title {
        font-size: 10px;
    } */
}

.category-swiper:not(.igcategoryslider-swiper-initialized) {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}

.category-swiper.igcategoryslider-swiper-initialized {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease-in-out;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: 600 !important;
}