/**
 * Middleclass Carousel Styles
 */

.middleclass-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.mcc-carousel {
    width: 100%;
}

.mcc-item {
    position: relative;
    overflow: visible;
}

.mcc-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 100%;
    cursor: pointer;
}

.mcc-item-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.mcc-item-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.mcc-item:hover .mcc-item-image img {
    transform: scale(1.05);
}

.mcc-item-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'%3E%3C/path%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.mcc-item:hover .mcc-item-link::after {
    opacity: 1;
}

.mcc-item-content {
    padding: 20px;
    background: #fff;
}

.mcc-item-title {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.3;
}

.mcc-item-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: #666;
}

.mcc-item-link:hover .mcc-item-title {
    color: #0073aa;
}

.mcc-carousel {
    position: relative;
}

.mcc-carousel .owl-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    pointer-events: none;
    z-index: 20;
}

.mcc-carousel .owl-nav button {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.9);
    border: none;
    border-radius: 0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    text-align: center;
}

.mcc-carousel .owl-nav button:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.mcc-carousel .owl-nav .owl-prev {
    left: 10px;
}

.mcc-carousel .owl-nav .owl-next {
    right: 10px;
}

.mcc-carousel .owl-nav button span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    position: relative;
}

.mcc-carousel .owl-nav button span svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    display: block;
}

.mcc-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
    padding: 0;
}

.mcc-carousel .owl-dots .owl-dot {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mcc-carousel .owl-dots .owl-dot:hover,
.mcc-carousel .owl-dots .owl-dot.active {
    background: #999;
    transform: scale(1.2);
}

.mcc-item-image-only .mcc-item-content {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .mcc-carousel .owl-nav button {
        width: 35px;
        height: 35px;
        border-radius: 0;
    }
    
    .mcc-carousel .owl-nav button span svg {
        width: 20px;
        height: 20px;
    }
    
    .mcc-carousel .owl-nav .owl-prev {
        left: 5px;
    }
    
    .mcc-carousel .owl-nav .owl-next {
        right: 5px;
    }
    
    .mcc-carousel .owl-nav button:hover {
        transform: translateY(-50%) scale(1.1);
    }
    
    .mcc-item-content {
        padding: 15px;
    }
    
    .mcc-item-title {
        font-size: 1.1em;
    }
    
    .mcc-item-link::after {
        width: 40px;
        height: 40px;
        background-size: 20px 20px;
        border-radius: 0;
    }
}

