/* =====================================================
   BRIK TIMELINE
   ===================================================== */

.brik-tl {
    --tl-accent:     #3a6fd8;       /* modrá aktívna farba              */
    --tl-bg:         #ede8e0;       /* pozadie panela (béžová z webu)   */
    --tl-text:       #1a1a1a;
    --tl-muted:      #7a7065;
    --tl-radius:     6px;
    --tl-tab-h:      48px;

    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
}

/* ----- NAV (šípky + tabs) ----- */
.brik-tl__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.brik-tl__track-wrap {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE */
}
.brik-tl__track-wrap::-webkit-scrollbar {
    display: none;               /* Chrome / Safari */
}

.brik-tl__track {
    display: flex;
    gap: 8px;
}

.brik-tl__tab {
    flex: 0 0 auto;
    min-width: 120px;
    height: var(--tl-tab-h);
    padding: 0 20px;
    border: 1px solid #c8bfb2;
    border-radius: var(--tl-radius);
    background: #fff;
    color: var(--tl-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}

.brik-tl__tab:hover {
    border-color: var(--tl-accent);
    color: var(--tl-accent);
}

.brik-tl__tab.is-active {
    background: var(--tl-accent);
    border-color: var(--tl-accent);
    color: #fff;
    font-weight: 700;
}

/* malý trojuholník pod aktívnym tabom */
.brik-tl__tab.is-active::after {
    content: '';
    display: block;
    position: relative;
    margin: 4px auto 0;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--tl-accent);
}

/* ----- ŠÍPKY ----- */
.brik-tl__arrow {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid #c8bfb2;
    border-radius: 50%;
    background: #fff;
    color: var(--tl-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s;
}

.brik-tl__arrow:hover {
    border-color: var(--tl-accent);
    color: var(--tl-accent);
}


/* ----- PANELY ----- */
.brik-tl__panels {
    position: relative;
    min-height: 420px;
}

.brik-tl__panel {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: brik-fadein .35s ease;
}

.brik-tl__panel.is-active {
    display: flex;
}

@keyframes brik-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brik-tl__year {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tl-text);
    margin: 0 0 8px;
}

.brik-tl__title {
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--tl-muted);
    margin: 0 0 24px;
}

.brik-tl__desc {
    font-size: 1rem;
    color: var(--tl-muted);
    max-width: 560px;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ----- OBRÁZOK V KRUHU ----- */
.brik-tl__img-wrap {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f0ea;
    flex-shrink: 0;
}

.brik-tl__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ----- BODKY ----- */
.brik-tl__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.brik-tl__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8bfb2;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.brik-tl__dot.is-active {
    background: var(--tl-accent);
    transform: scale(1.3);
}

/* ----- RESPONZIVITA ----- */
@media (max-width: 600px) {
    .brik-tl__tab {
        min-width: 90px;
        font-size: .875rem;
        padding: 0 12px;
    }

    .brik-tl__img-wrap {
        width: 220px;
        height: 220px;
    }
}
