/* Partners Section Styles */
.ehs-partners {
    padding: 60px 0 80px;
    background: var(--ehs-color-light);
    overflow: hidden;
}

.ehs-partners__title {
    font-size: var(--ehs-font-size-h3);
    font-weight: 600;
    text-align: center;
    color: #1a1a1a;
    margin: 0 0 40px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: var(--ehs-line-height-tight);
}

.ehs-partners__marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.ehs-partners__track {
    display: inline-flex;
    animation: marquee 30s linear infinite;
    gap: 60px;
    align-items: center;
}

.ehs-partners__logo {
    flex-shrink: 0;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ehs-partners__logo:hover {
    transform: translateY(-4px);
}

.ehs-partners__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}

.ehs-partners__logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.ehs-partners__marquee:hover .ehs-partners__track {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ehs-partners {
        padding: 40px 0 60px;
    }
    
    .ehs-partners__title {
        font-size: 1.25rem;
        margin-bottom: 30px;
    }
    
    .ehs-partners__track {
        gap: 40px;
        animation-duration: 25s;
    }
    
    .ehs-partners__logo {
        width: 120px;
        height: 60px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .ehs-partners {
        padding: 30px 0 50px;
    }
    
    .ehs-partners__title {
        font-size: 1.125rem;
        margin-bottom: 25px;
    }
    
    .ehs-partners__track {
        gap: 30px;
        animation-duration: 20s;
    }
    
    .ehs-partners__logo {
        width: 100px;
        height: 50px;
        padding: 12px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ehs-partners__track {
        animation: none;
    }
    
    .ehs-partners__marquee {
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .ehs-partners__track {
        width: max-content;
        padding-bottom: 10px;
    }
}