/**
 * Carousel CSS
 *
 * @package Customer_Content_Manager
 */

.ccm-carousel-wrapper {
    position: relative;
    margin: 40px 0;
}

.ccm-carousel {
    position: relative;
    overflow: hidden;
}

.ccm-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.ccm-carousel-item {
    flex: 0 0 auto;
    padding: 0 10px;
}

.ccm-carousel-item img {
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.3s;
}

.ccm-carousel-item a:hover img {
    transform: scale(1.05);
}

/* Navigation */
.ccm-carousel-prev,
.ccm-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.ccm-carousel-prev:hover,
.ccm-carousel-next:hover {
    background: rgba(0,0,0,0.8);
}

.ccm-carousel-prev {
    left: 10px;
}

.ccm-carousel-next {
    right: 10px;
}

/* Pagination */
.ccm-carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.ccm-carousel-pagination .dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.ccm-carousel-pagination .dot.active {
    background: #2271b1;
}

/* Responsive */
@media (max-width: 768px) {
    .ccm-carousel-prev,
    .ccm-carousel-next {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .ccm-carousel-item img {
        max-height: 80px;
    }
}

/* ============================================
   Companies Grid Carousel Styles
   ============================================ */

.ccm-companies-section {
    margin: 60px 0;
    padding: 40px 20px;
    background: #f9f9f9;
}

.ccm-companies-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ccm-companies-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.ccm-companies-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.ccm-companies-subtitle p {
    margin: 0;
}

.ccm-companies-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.ccm-companies-carousel {
    overflow: hidden;
    padding: 20px 0;
}

.ccm-companies-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.ccm-company-item {
    flex: 0 0 20%; /* 5 items on desktop (100% / 5) */
    padding: 15px;
    box-sizing: border-box;
}

.ccm-company-item a {
    display: block;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccm-company-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.ccm-company-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 80px;
    transition: all 0.3s ease;
}

/* Dots Navigation */
.ccm-companies-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.ccm-company-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ccm-company-dot:hover {
    border-color: #999;
}

.ccm-company-dot.active {
    background: #2271b1;
    border-color: #2271b1;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .ccm-company-item {
        flex: 0 0 25%; /* 4 items on tablet */
    }
}

@media (max-width: 768px) {
    .ccm-companies-section {
        padding: 30px 15px;
        margin: 40px 0;
    }
    
    .ccm-companies-title {
        font-size: 24px;
    }
    
    .ccm-companies-subtitle {
        font-size: 14px;
    }
    
    .ccm-company-item {
        flex: 0 0 33.333%; /* 3 items on small tablets */
    }
    
    .ccm-company-item a {
        padding: 20px;
        height: 100px;
    }
    
    .ccm-company-item img {
        max-height: 60px;
    }
}

@media (max-width: 640px) {
    .ccm-company-item {
        flex: 0 0 50%; /* 2 items on mobile */
    }
    
    .ccm-company-item a {
        padding: 15px;
        height: 80px;
    }
    
    .ccm-company-item img {
        max-height: 50px;
    }
}

