/* ── Timely Events Bar ───────────────────────────────────────────────────── */
.tec-events-bar {
    --tec-bar-accent: #c0392b;
    font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
    margin: 0 0 2rem;
    width: 100%;
}
.tec-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
    padding: 0 2px;
    flex-wrap: wrap;
    gap: 8px;
}
.tec-bar-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a1d2e;
    display: flex;
    align-items: center;
    gap: 7px;
}
.tec-bar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tec-bar-accent);
    animation: tec-bar-pulse 1.8s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes tec-bar-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.3); }
}
.tec-bar-viewall {
    font-size: 12px;
    font-weight: 700;
    color: var(--tec-bar-accent);
    text-decoration: none;
    border: 1.5px solid var(--tec-bar-accent);
    padding: 5px 13px;
    border-radius: 20px;
    transition: all .18s;
    white-space: nowrap;
    line-height: 1.4;
}
.tec-bar-viewall:hover {
    background: var(--tec-bar-accent);
    color: #fff !important;
    text-decoration: none;
}

/* Scroll wrapper */
.tec-bar-scroll-wrap {
    position: relative;
    overflow: visible;
}
.tec-bar-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tec-bar-track::-webkit-scrollbar { display: none; }

/* Arrow buttons */
.tec-bar-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-65%);
    z-index: 3;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e5f0;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6080;
    transition: all .18s;
    padding: 0;
    line-height: 1;
}
.tec-bar-arrow:hover {
    background: var(--tec-bar-accent);
    color: #fff;
    border-color: var(--tec-bar-accent);
}
.tec-bar-arrow[disabled] { opacity: .2; pointer-events: none; }
.tec-bar-arrow-l { left: -15px; }
.tec-bar-arrow-r { right: -15px; }

/* Card */
.tec-bar-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e8eaf0;
    border-top: 3px solid var(--card-color, var(--tec-bar-accent));
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}
.tec-bar-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.13);
    transform: translateY(-2px);
    color: inherit !important;
    text-decoration: none !important;
}
.tec-bar-card--featured { border-top-width: 4px; }

.tec-bar-card-img {
    height: 90px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.tec-bar-card-img--empty {
    background: rgba(195,57,43,.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tec-bar-card-icon { font-size: 30px; }

.tec-bar-card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tec-bar-card-date {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.tec-bar-date-main {
    font-size: 13px;
    font-weight: 700;
    color: var(--card-color, var(--tec-bar-accent));
}
.tec-bar-date-year {
    font-size: 11px;
    color: #9398b0;
}
.tec-bar-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #1a1d2e;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.tec-bar-card-loc {
    font-size: 11px;
    color: #9398b0;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.tec-bar-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--card-color, var(--tec-bar-accent));
    margin-top: 2px;
}
.tec-bar-card-stripe {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--card-color, var(--tec-bar-accent));
    opacity: 0;
    transition: opacity .18s;
}
.tec-bar-card:hover .tec-bar-card-stripe { opacity: .4; }

@media (max-width: 600px) {
    .tec-bar-card { flex: 0 0 168px; }
    .tec-bar-arrow { display: none; }
    .tec-bar-track { padding-left: 0; }
}
