/* ── Nibble Testimonials Marquee — Styles ── */

/* Section wrapper — clips overflow */
.ntm-section {
    display: flex;
    gap: 16px;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    background: #f5f5f5;
}

/* Fade edges top & bottom */
.ntm-section::before,
.ntm-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 2;
    pointer-events: none;
}
.ntm-section::before {
    top: 0;
    background: linear-gradient(to bottom, #f5f5f5 0%, transparent 100%);
}
.ntm-section::after {
    bottom: 0;
    background: linear-gradient(to top, #f5f5f5 0%, transparent 100%);
}

/* Column */
.ntm-col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Scrolling track */
.ntm-track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    will-change: transform;
}

/* Pause on hover */
.ntm-col:hover .ntm-track {
    animation-play-state: paused !important;
}

/* Scroll animations */
@keyframes ntm-scroll-up {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes ntm-scroll-down {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* ── Card ── */
.ntm-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
    flex-shrink: 0;
}

.ntm-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

/* ── Card header ── */
.ntm-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

/* Logo */
.ntm-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.08);
}

.ntm-logo-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #888;
}

/* Meta — name + brand */
.ntm-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.ntm-name {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ntm-brand {
    font-size: 12px;
    color: #666666;
    line-height: 1.3;
}

/* Stars */
.ntm-stars {
    display: flex;
    gap: 2px;
    margin-left: auto;
    align-self: flex-start;
}

.ntm-star {
    font-size: 16px;
    color: #f5a623;
    line-height: 1;
}

/* Review text */
.ntm-review {
    font-size: 14px;
    line-height: 1.65;
    color: #333333;
    margin: 0;
}

/* ── Column counts ── */
.ntm-cols-2 .ntm-col { flex: 0 0 calc(50% - 8px); }
.ntm-cols-3 .ntm-col { flex: 0 0 calc(33.333% - 11px); }
.ntm-cols-4 .ntm-col { flex: 0 0 calc(25% - 12px); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .ntm-cols-3 .ntm-col:nth-child(3),
    .ntm-cols-4 .ntm-col:nth-child(3),
    .ntm-cols-4 .ntm-col:nth-child(4) {
        display: none;
    }
}

@media (max-width: 480px) {
    .ntm-cols-2 .ntm-col:nth-child(2),
    .ntm-cols-3 .ntm-col:nth-child(2),
    .ntm-cols-3 .ntm-col:nth-child(3) {
        display: none;
    }
}
