/* ===== UNIVERSITY LOGO CAROUSEL (3 Rows) ===== */
.university-trust {
    padding: 4rem 0;
    background: var(--bg-paper);
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 31px,
            rgba(0, 0, 0, 0.03) 31px,
            rgba(0, 0, 0, 0.03) 32px);
    background-size: 100% 32px;
    overflow: hidden;
}

.trust-header {
    text-align: center;
    margin-bottom: 3rem;
}

.trust-title {
    font-family: var(--font-handdrawn);
    font-size: 2rem;
    color: var(--ink-black);
    margin-bottom: 1rem;
}

.logos-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.logo-carousel-row {
    display: flex;
    margin-bottom: 2rem;
    overflow: hidden;
}

.logo-carousel-row:last-child {
    margin-bottom: 0;
}

.logo-carousel-track {
    display: flex;
    gap: 3rem;
    animation-duration: 30s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

/* Row 1 & 3: Scroll Left */
.row-left .logo-carousel-track {
    animation-name: scroll-left;
}

/* Row 2: Scroll Right */
.row-right .logo-carousel-track {
    animation-name: scroll-right;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause animation on hover */
.logo-carousel-row:hover .logo-carousel-track {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border: 2px solid var(--ink-black);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 6px 6px 0 var(--ink-black);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
}

.trust-stat {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 3rem;
    font-family: var(--font-handdrawn);
}

.highlight-number {
    color: var(--ink-black);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.highlight-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--highlighter-yellow);
    opacity: 0.5;
    z-index: -1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-item {
        width: 140px;
        height: 80px;
        padding: 0.75rem;
    }

    .logo-carousel-track {
        gap: 1.5rem;
    }

    .logo-carousel-row {
        margin-bottom: 1.5rem;
    }

    .trust-title {
        font-size: 1.5rem;
    }

    .trust-stat {
        font-size: 1rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-item {
        width: 120px;
        height: 70px;
        padding: 0.5rem;
    }

    .logo-carousel-track {
        gap: 1rem;
    }
}