.tc-carousel {
    --tc-gap: 20px;
    --tc-blue: #2563eb;

    position: relative;
    width: 100%;
    padding: 12px 42px 42px;
    box-sizing: border-box;
}

.tc-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
}

.tc-viewport::-webkit-scrollbar {
    display: none;
}

.tc-track {
    display: flex;
    gap: var(--tc-gap);
    align-items: stretch;
}

.tc-card {
    --tc-text: #444;
    --tc-bg: #fff;
    --tc-border: rgb(242, 242, 242);
    --tc-accent: #F6BB06;

    flex: 0 0 calc(
        (100% - (var(--tc-per-view, 3) - 1) * var(--tc-gap))
        / var(--tc-per-view, 3)
    );

    box-sizing: border-box;
    scroll-snap-align: start;
    background: var(--tc-bg);
    border: 1px solid var(--tc-border);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 16px;
    color: var(--tc-text);
}

.tc-carousel {
    --tc-per-view: var(--tc-lg, 3);
}

.tc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.tc-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
}

.tc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-meta {
    min-width: 0;
    line-height: 1.2;
}

.tc-name {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tc-date {
    font-size: 12px;
    opacity: 0.68;
}

.tc-source {
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font: 700 14px Arial, sans-serif;
    color: #4285f4;
    border: 1px solid #e5e7eb;
}

.tc-stars {
    margin: 6px 0 8px;
}

.tc-star {
    font-size: 16px;
    color: #d1d5db;
    letter-spacing: 1px;
}

.tc-star.is-on {
    color: var(--tc-accent);
}

.tc-verified {
    color: #1a73e8;
    margin-left: 6px;
}

.tc-text {
    font-size: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 6em;
    overflow-wrap: anywhere;
}

.tc-text.is-expanded {
    display: block;
    min-height: 0;
}

.tc-more {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.72;
    cursor: pointer;
}

.tc-more:hover,
.tc-more:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.tc-google-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--tc-accent);
    text-decoration: none;
}

.tc-google-link:hover,
.tc-google-link:focus-visible {
    text-decoration: underline;
}

/* Strelice karusela */

.tc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    color: var(--tc-blue);

    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.tc-nav:hover {
    color: #1d4ed8;
    border-color: var(--tc-blue);
    background: #eff6ff;
}

.tc-nav:focus-visible {
    outline: 2px solid var(--tc-blue);
    outline-offset: 2px;
}

.tc-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

/*
 * Mala optička korekcija za znakove ‹ i ›.
 * Sami font simboli nisu geometrijski savršeno centrirani.
 */
.tc-prev {
    left: 5px;
    padding-right: 1px;
    padding-bottom: 2px;
}

.tc-next {
    right: 5px;
    padding-left: 1px;
    padding-bottom: 2px;
}

/* Tačkice ispod karusela */

.tc-dots {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.tc-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 50%;
    background-color: var(--tc-blue);
    opacity: 0.3;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.tc-dot:hover {
    opacity: 0.7;
}

.tc-dot.is-active {
    opacity: 1;
    transform: scale(1.1);
}

.tc-dot:focus-visible {
    outline: 2px solid var(--tc-blue);
    outline-offset: 3px;
}

/* Boje avatara */

.tc-c1 {
    background: #8b5cf6;
}

.tc-c2 {
    background: #ec4899;
}

.tc-c3 {
    background: #f59e0b;
}

.tc-c4 {
    background: #10b981;
}

.tc-c5 {
    background: #06b6d4;
}

.tc-c6 {
    background: #3b82f6;
}

.tc-c7 {
    background: #f43f5e;
}

.tc-c8 {
    background: #6366f1;
}

/* Tablet */

@media (max-width: 899px) {
    .tc-carousel {
        --tc-per-view: var(--tc-md, 2);
    }
}

/* Mobilni uređaji */

@media (max-width: 519px) {
    .tc-carousel {
        --tc-per-view: var(--tc-sm, 1);
        padding-inline: 30px;
    }

    .tc-prev {
        left: 0;
    }

    .tc-next {
        right: 0;
    }

    .tc-dots {
        left: 30px;
        right: 30px;
    }
}

/* Isključuje animacije kada korisnik to zahteva */

@media (prefers-reduced-motion: reduce) {
    .tc-viewport {
        scroll-behavior: auto;
    }

    .tc-nav,
    .tc-dot {
        transition: none;
    }
}