/* Carousel Navigation Controls */
.trusted-carousel-container {
    position: relative;
}

/* Navigation Buttons Container */
.carousel-nav-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 100;
    padding: 0 10px;
}

/* Individual Navigation Buttons */
.carousel-nav-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
    z-index: 100;
    outline: none;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

/* Left Button Positioning */
.carousel-nav-btn.left {
    margin-left: 0;
}

/* Right Button Positioning */
.carousel-nav-btn.right {
    margin-right: 0;
}

/* Arrow Icons using CSS */
.carousel-nav-btn::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-top: 3px solid #333;
    border-right: 3px solid #333;
    transition: border-color 0.3s ease;
}

.carousel-nav-btn.left::before {
    transform: rotate(-135deg);
    margin-left: 4px;
}

.carousel-nav-btn.right::before {
    transform: rotate(45deg);
    margin-right: 4px;
}

.carousel-nav-btn:hover::before {
    border-color: #ff6b35;
}

/* Enhanced Hover Pause for Carousel */
.trusted-carousel-track {
    animation-play-state: running;
    will-change: transform;
}

.trusted-carousel-track:hover,
.trusted-carousel-container:hover .trusted-carousel-track {
    animation-play-state: paused !important;
}

/* Smooth transition when manually sliding */
.trusted-carousel-track.sliding {
    transition: transform 0.5s ease-in-out !important;
    animation: none !important;
}

/* State when carousel is in manual control mode */
.trusted-carousel-track.manual-control {
    animation: none !important;
}

.trusted-container {
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .carousel-nav-buttons {
        padding: 0 5px;
    }
    
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .carousel-nav-btn::before {
        width: 9px;
        height: 9px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .carousel-nav-buttons {
        padding: 0 2px;
    }
    
    .carousel-nav-btn {
        width: 28px;
        height: 28px;
    }
    
    .carousel-nav-btn::before {
        width: 7px;
        height: 7px;
        border-width: 2px;
    }
}

@media (max-width: 360px) {
    .carousel-nav-buttons {
        padding: 0;
    }
    
    .carousel-nav-btn {
        width: 24px;
        height: 24px;
    }
    
    .carousel-nav-btn::before {
        width: 6px;
        height: 6px;
        border-width: 1.5px;
    }
}

/* Optional: Add subtle pulse animation to attract attention */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
}

.carousel-nav-btn:not(:hover) {
    animation: pulse 3s ease-in-out infinite;
}

/* Ensure carousel track doesn't interfere with navigation */
.trusted-carousel-track {
    pointer-events: none;
}

.trusted-brand-item {
    pointer-events: all;
}
