/**
 * MITS Logo Carousel - Frontend Styles
 * Version: 1.1.0
 */

/* Wrapper */
.mits-logo-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 30px 0;
    overflow: visible;
}

/* Swiper Container */
.mits-logo-carousel-wrapper .swiper {
    width: 100%;
    padding: 20px 0;
}

.mits-logo-carousel-wrapper .swiper-wrapper {
    display: flex;
    align-items: center;
}

.mits-logo-carousel-wrapper .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Item */
.mits-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 15px;
    transition: all 0.3s ease;
}

.mits-logo-item a,
.mits-logo-item img {
    display: block;
    width: 100%;
    height: auto;
}

.mits-logo-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Size Options - Carousel Mode */
.mode-carousel.size-small .mits-logo-item img {
    max-height: 80px;
    width: auto;
}

.mode-carousel.size-medium .mits-logo-item img {
    max-height: 150px;
    width: auto;
}

.mode-carousel.size-full .mits-logo-item img {
    max-height: 250px;
    width: 100%;
}

/* Size Options - Grid Mode */
.mode-grid.size-small .mits-logo-item img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
}

.mode-grid.size-medium .mits-logo-item img {
    max-height: 150px;
    width: auto;
    margin: 0 auto;
}

.mode-grid.size-full .mits-logo-item img {
    max-height: none;
    width: 100%;
}

/* Grayscale Effect */
.grayscale-enabled .mits-logo-item img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.grayscale-enabled .mits-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Link Styles */
.mits-logo-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.mits-logo-item a:hover {
    transform: translateY(-2px);
}

/* Swiper Navigation */
.mits-logo-carousel-wrapper .swiper-button-next,
.mits-logo-carousel-wrapper .swiper-button-prev {
    color: #333;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mits-logo-carousel-wrapper .swiper-button-next:after,
.mits-logo-carousel-wrapper .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.mits-logo-carousel-wrapper .swiper-button-next:hover,
.mits-logo-carousel-wrapper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Swiper Pagination */
.mits-logo-carousel-wrapper .swiper-pagination {
    bottom: 0;
}

.mits-logo-carousel-wrapper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #333;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.mits-logo-carousel-wrapper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Grid Mode */
.mode-grid .mits-logo-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(5, 1fr);
}

.mode-grid .mits-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Masonry Mode */
.mode-masonry .mits-logo-grid {
    column-count: 3;
    column-gap: 30px;
}

.mode-masonry .mits-logo-item {
    break-inside: avoid;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .mode-grid .mits-logo-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .mode-masonry .mits-logo-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .mode-grid .mits-logo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .mode-masonry .mits-logo-grid {
        column-count: 1;
    }
    
    .mits-logo-carousel-wrapper .swiper-button-next,
    .mits-logo-carousel-wrapper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .mits-logo-carousel-wrapper .swiper-button-next:after,
    .mits-logo-carousel-wrapper .swiper-button-prev:after {
        font-size: 16px;
    }
    
    /* Adjust sizes for mobile */
    .size-small .mits-logo-item img {
        max-height: 60px;
    }
    
    .size-medium .mits-logo-item img {
        max-height: 100px;
    }
}