/**
 * JK Logo Carousel Styles
 * Translate-based carousel, JS controls movement
 */

.jk-logo-carousel-wrapper {
    padding: 3rem 1rem;
    border-top: 1px solid #eee;
}

.jk-logo-carousel-title {
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* Outer container holds arrows (outside scroll area) */
.jk-logo-carousel-outer {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

/* Scroll viewport - hides overflow, JS controls track position */
.jk-logo-carousel {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.jk-logo-carousel-wrapper.grabbing .jk-logo-carousel,
.jk-logo-carousel:active {
    cursor: grabbing;
}

/* Track - flex row, JS sets transform:translateX */
.jk-logo-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    width: max-content;
    will-change: transform;
}

/* Logo items */
.jk-logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.jk-logo-item:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.02);
}

.jk-logo-item img {
    display: block;
    flex: 0 0 auto;
    max-height: 45px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    -webkit-user-drag: none;
}

.jk-logo-name {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #333;
    text-align: center;
    font-weight: 500;
}

/* Navigation Arrows - positioned on outer container */
.jk-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s, transform 0.2s, opacity 0.2s ease;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

.jk-logo-carousel-outer:hover .jk-carousel-arrow,
.jk-logo-carousel-outer:focus-within .jk-carousel-arrow {
    opacity: 1;
    pointer-events: auto;
}

.jk-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.jk-carousel-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

.jk-carousel-prev {
    left: 8px;
}

.jk-carousel-next {
    right: 8px;
}

/* ==========================================================================
   TABLET (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    .jk-logo-carousel-wrapper {
        padding: 4rem 2rem;
    }

    .jk-logo-carousel-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .jk-logo-track {
        gap: 3rem;
    }

    .jk-logo-item {
        height: 70px;
    }

    .jk-logo-item img {
        max-height: 50px;
        max-width: 160px;
    }
}

/* ==========================================================================
   DESKTOP (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .jk-logo-track {
        gap: 4rem;
    }

    .jk-logo-item {
        height: 80px;
    }

    .jk-logo-item img {
        max-height: 60px;
        max-width: 180px;
    }
}

@media (min-width: 1400px) {
    .jk-logo-track {
        gap: 5rem;
    }
}
