/* =========================================================
   BLOK MOU / KERJASAMA (KAPSUL DIAGONAL + MARQUEE)
   ========================================================= */
.mou-section {
    background: linear-gradient(180deg, #032b1f 0%, #04392a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0 34px;
}

.mou-capsule {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 32px -10px rgba(0, 0, 0, 0.38);
    overflow: hidden;
    min-height: 70px;
}

/* Panel Kiri Berpotongan Miring (Diagonal) */
.mou-badge-panel {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 13px 44px 13px 26px;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 55%, var(--brand) 100%);
    color: var(--white);
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
    margin-right: -12px;
}

.mou-badge-icon {
    display: grid;
    place-items: center;
    color: var(--gold-light);
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.mou-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mou-badge-text strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--white);
    white-space: nowrap;
}

.mou-badge-text span {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.84);
    margin-top: 2px;
    white-space: nowrap;
}

/* Area Lintasan Marquee Putih */
.mou-marquee-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, #f8faf9 0%, #ffffff 12%, #ffffff 88%, #f8faf9 100%);
}

.mou-fade-left,
.mou-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 44px;
    z-index: 3;
    pointer-events: none;
}

.mou-fade-left {
    left: 0;
    background: linear-gradient(to right, #f8faf9 15%, rgba(255, 255, 255, 0) 100%);
}

.mou-fade-right {
    right: 0;
    background: linear-gradient(to left, #f8faf9 15%, rgba(255, 255, 255, 0) 100%);
}

.mou-marquee-viewport {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.mou-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: pabjnMouMarquee var(--mou-duration, 30s) linear infinite;
    will-change: transform;
}

.mou-marquee-viewport:hover .mou-marquee-track,
.mou-marquee-viewport:focus-within .mou-marquee-track {
    animation-play-state: paused;
}

@keyframes pabjnMouMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mou-marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mou-partner-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 7px 18px;
    margin: 0 6px;
    border-radius: 9999px;
    color: var(--ink);
    white-space: nowrap;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mou-partner-item.has-doc:hover {
    background: var(--brand-50);
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.mou-partner-item.no-doc {
    cursor: default;
}

.mou-partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    flex-shrink: 0;
}

.mou-partner-logo img {
    max-height: 36px;
    max-width: 110px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.mou-logo-fallback {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand);
    display: grid;
    place-items: center;
}

.mou-partner-name {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1e293b;
    transition: color 0.18s ease;
}

.mou-partner-item.has-doc:hover .mou-partner-name {
    color: var(--brand-dark);
}

.mou-doc-icon {
    color: var(--brand);
    opacity: 0.45;
    flex-shrink: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mou-partner-item.has-doc:hover .mou-doc-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

.mou-divider {
    width: 1px;
    height: 26px;
    background: var(--gray-200);
    flex-shrink: 0;
    margin: 0 6px;
}

.mou-empty-inline {
    width: 100%;
    padding: 14px 28px;
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

/* Aksesibilitas & Responsif */
@media (prefers-reduced-motion: reduce) {
    .mou-marquee-track {
        animation: none;
    }
    .mou-marquee-viewport {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .mou-capsule {
        flex-direction: column;
        border-radius: 18px;
    }
    .mou-badge-panel {
        clip-path: none;
        margin-right: 0;
        padding: 12px 18px;
        justify-content: center;
    }
    .mou-badge-text strong {
        font-size: 14.5px;
    }
    .mou-fade-left,
    .mou-fade-right {
        width: 24px;
    }
    .mou-partner-logo img {
        max-height: 30px;
    }
    .mou-partner-name {
        font-size: 13px;
    }
}