/* ===================================
   MODERN LOGO MARQUEE SECTION (S8)
   =================================== */

.modern-logo-marquee-section {
    background: #ffffff;
    padding: 80px 0 !important;
    overflow: hidden;
}

.modern-logo-marquee-section .common-heading {
    margin-bottom: 0;
}

.modern-logo-marquee-section .common-heading h2 {
    color: #1f2937;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.modern-logo-marquee-section .common-heading h2 span {
    color: #008060;
}

.modern-logo-marquee-section .common-heading p {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
    margin-top: 0;
}

/* Logo Marquee Wrapper */
.logo-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

/* Fade effect on sides */
.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.logo-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

/* Logo Marquee Track */
.logo-track {
    display: flex;
    gap: 80px;
    align-items: center;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

/* Pause animation on hover */
.logo-marquee:hover .logo-track {
    animation-play-state: paused;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Logo Item */
.logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 128, 96, 0.15);
    border-color: #008060;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease-in-out;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Responsive Design */
@media (max-width: 991px) {
    .modern-logo-marquee-section {
        padding: 60px 0 !important;
    }

    .modern-logo-marquee-section .common-heading {
        margin-bottom: 50px;
    }

    .modern-logo-marquee-section .common-heading h2 {
        font-size: 32px;
    }

    .logo-track {
        gap: 60px;
    }

    .logo-item {
        width: 150px;
        height: 90px;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .modern-logo-marquee-section {
        padding: 50px 0 !important;
    }

    .modern-logo-marquee-section .common-heading {
        margin-bottom: 40px;
    }

    .modern-logo-marquee-section .common-heading h2 {
        font-size: 28px;
    }

    .logo-marquee-wrapper {
        padding: 30px 0;
    }

    .logo-marquee-wrapper::before,
    .logo-marquee-wrapper::after {
        width: 50px;
    }

    .logo-track {
        gap: 40px;
        animation-duration: 20s;
    }

    .logo-item {
        width: 120px;
        height: 80px;
        padding: 12px;
    }
}