/* ============================
   Our Partners section
   ============================ */

.partners-section {
    padding: 70px 0;
    background-color: #f4f5f6;
}

.partners-heading {
    font-size: 2.5rem;
    font-weight: 600;
    color:rgb(52, 52, 236);
    margin-bottom: 14px;
}

/* three dots + green line divider under the heading, matching the reference */
.partners-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 18px;
}

.partners-divider .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: moh-color(var(--moh-tertiary));
}

.partners-divider .line {
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background-color: moh-color(var(--moh-tertiary));
    margin-left: 4px;
}

.partners-subtitle {
    color: moh-color(var(--moh-secondary));
    font-size: 1.05rem;
    font-weight: 500;
}

/* logo card — unchanged, used inside the marquee track now instead of carousel slides */
.partner-card {
    display: flex;
    flex-direction: column;   /* changed — stacks logo above name */
    align-items: center;
    justify-content: center;
    gap: 8px;                 /* new — spacing between logo and name */
    width: 200px;
    height: 180px;             /* increased from 150px to fit the name */
    background: moh-color(var(--moh-background))    ;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.partner-card img {
    max-height: 80px;          /* reduced from 90px to make room */
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.partner-card__name {
    font-size: 0.85rem;
    font-weight: 500;
    color: moh-color(var(--moh-tertiary));
    text-align: center;
    line-height: 1;
}
/* ============================
   Marquee track (replaces the old Bootstrap carousel)
   ============================ */

.partners-marquee {
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: partners-scroll-left 40s linear infinite;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

@keyframes partners-scroll-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.partners-track__logo {
    flex: 0 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
}

@media (max-width: 767px) {
    .partner-card {
        width: 140px;   /* new */
        height: 110px;
    }

    .partner-card img {
        max-height: 60px;
    }

    .partners-heading {
        font-size: 1.9rem;
    }

    .partners-track__logo {
        padding: 0 12px;
    }
}