/* ===================================================================
   Edupart Media & Evenimente — Frontend Styles
   Palette: navy #001f4c | blue #0c4f89 | gold #ffc400 | sky #dff3f5
   =================================================================== */
:root {
    --em-navy:       #001f4c;
    --em-navy-soft:  #073a78;
    --em-blue:       #0c4f89;
    --em-sky:        #dff3f5;
    --em-gold:       #ffc400;
    --em-white:      #ffffff;
    --em-text:       #102033;
    --em-muted:      #637083;
    --em-radius:     12px;
    --em-radius-sm:  6px;
    --em-shadow:     0 8px 32px rgba(0,31,76,.16);
    --em-shadow-lg:  0 20px 48px rgba(0,31,76,.28);
    --em-tr:         220ms cubic-bezier(.4,0,.2,1);
}

.edupart-me-empty {
    color: var(--em-muted);
    font-style: italic;
    margin: 2rem 0;
    text-align: center;
}

/* ===============================================================
   GRID — [afisare_grid]
   =============================================================== */
.edupart-me-grid {
    display: grid;
    gap: 72px 28px;
    align-items: stretch;
    padding-bottom: 48px;
}
.edupart-me-grid--cols-1 { grid-template-columns: 1fr; }
.edupart-me-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.edupart-me-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.edupart-me-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

.edupart-me-card {
    background: var(--em-navy);
    border-radius: 0;
    box-shadow: var(--em-shadow);
    color: var(--em-white);
    display: flex;
    flex-direction: column;
    overflow: visible;
    position: relative;
    transition: transform var(--em-tr), box-shadow var(--em-tr);
}
.edupart-me-card:hover { transform: translateY(-5px); box-shadow: var(--em-shadow-lg); }

.edupart-me-card__image {
    aspect-ratio: 16/10;
    background: var(--em-sky);
    display: block;
    overflow: hidden;
}
.edupart-me-card__image img,
.edupart-me-card__placeholder {
    display: block; height: 100%; object-fit: cover; width: 100%;
    transition: transform 400ms ease;
}
.edupart-me-card:hover .edupart-me-card__image img { transform: scale(1.05); }
.edupart-me-card__placeholder { background: linear-gradient(135deg, var(--em-sky), #b8e8ed); }

.edupart-me-card__body {
    display: flex; flex: 1; flex-direction: column;
    padding: 28px 28px 80px;
}
.edupart-me-card__date {
    align-items: center; color: var(--em-gold); display: inline-flex;
    font-size: 12px; font-weight: 700; gap: 6px;
    letter-spacing: .06em; margin-bottom: 14px; text-transform: uppercase;
}
.edupart-me-card__date-icon { flex-shrink: 0; height: 14px; width: 14px; }
.edupart-me-card__title { color: var(--em-white); font-size: 20px; line-height: 1.25; margin: 0 0 12px; }
.edupart-me-card__title a { color: inherit; text-decoration: none; transition: color var(--em-tr); }
.edupart-me-card__title a:hover { color: var(--em-gold); }
.edupart-me-card__excerpt { color: rgba(255,255,255,.85); flex: 1; font-size: 15px; line-height: 1.55; margin-bottom: 20px; }

.edupart-me-button {
    align-items: center; background: var(--em-blue);
    border: none; border-bottom: 3px solid var(--em-gold);
    border-radius: 0; bottom: -28px;
    color: var(--em-white); cursor: pointer; display: inline-flex;
    font-family: inherit; font-size: 16px; font-weight: 700;
    gap: 14px; justify-content: center; left: 50%;
    min-height: 56px; min-width: 180px; padding: 12px 28px;
    position: absolute; text-align: center; text-decoration: none;
    transform: translateX(-50%);
    transition: background var(--em-tr), transform var(--em-tr);
    white-space: nowrap;
}
.edupart-me-button:hover,
.edupart-me-button:focus-visible { background: var(--em-navy-soft); color: var(--em-white); transform: translateX(-50%) translateY(-3px); }

/* ===============================================================
   EVENTS GRID — [afisare_events]
   =============================================================== */
.edupart-me-events-grid {
    display: grid;
    gap: 28px;
}
.edupart-me-events-grid--cols-1 { grid-template-columns: 1fr; }
.edupart-me-events-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.edupart-me-events-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }

.edupart-me-event-card {
    border-radius: var(--em-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--em-shadow);
    transition: transform var(--em-tr), box-shadow var(--em-tr);
    background: var(--em-white);
}
.edupart-me-event-card:hover { transform: translateY(-6px); box-shadow: var(--em-shadow-lg); }

.edupart-me-event-card__link {
    color: inherit; display: flex; flex-direction: column;
    height: 100%; text-decoration: none;
}

/* Badge stare */
.edupart-me-event-card__badge {
    border-radius: 0 0 var(--em-radius-sm) 0;
    font-size: 11px; font-weight: 800; letter-spacing: .08em;
    padding: 5px 12px; position: absolute; left: 0; top: 0;
    text-transform: uppercase; z-index: 3;
}
.edupart-me-event-card__badge--viitoare { background: var(--em-gold); color: var(--em-navy); }
.edupart-me-event-card__badge--astazi   { background: #22c55e; color: #fff; }
.edupart-me-event-card__badge--trecute  { background: rgba(0,31,76,.55); color: rgba(255,255,255,.85); }

/* Thumbnail */
.edupart-me-event-card__thumb {
    aspect-ratio: 16/9; overflow: hidden; position: relative;
}
.edupart-me-event-card__thumb img {
    display: block; height: 100%; object-fit: cover; width: 100%;
    transition: transform 400ms ease;
}
.edupart-me-event-card:hover .edupart-me-event-card__thumb img { transform: scale(1.06); }
.edupart-me-event-card__thumb-placeholder {
    background: linear-gradient(135deg, var(--em-navy) 0%, var(--em-blue) 100%);
    height: 100%; width: 100%;
}

/* Date badge pe imagine */
.edupart-me-event-card__date-badge {
    align-items: center; background: var(--em-navy);
    border-radius: var(--em-radius-sm);
    bottom: 12px; display: flex; flex-direction: column;
    justify-content: center; line-height: 1.1;
    padding: 8px 14px; position: absolute; right: 12px;
    text-align: center; z-index: 2;
}
.edupart-me-event-card__date-badge strong { color: var(--em-gold); font-size: 26px; font-weight: 900; }
.edupart-me-event-card__date-badge span   { color: var(--em-white); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.edupart-me-event-card__date-badge em     { color: rgba(255,255,255,.6); font-size: 10px; font-style: normal; }

/* Card body */
.edupart-me-event-card__body {
    background: var(--em-navy);
    display: flex; flex: 1; flex-direction: column;
    padding: 20px 20px 16px;
}
.edupart-me-event-card__title {
    color: var(--em-white); font-size: 17px; font-weight: 700;
    line-height: 1.3; margin: 0 0 14px;
}
.edupart-me-event-card__meta {
    display: flex; flex-direction: column; gap: 7px;
    list-style: none; margin: 0 0 16px; padding: 0;
}
.edupart-me-event-card__meta-item {
    align-items: flex-start; color: rgba(255,255,255,.75);
    display: flex; font-size: 13px; gap: 8px; line-height: 1.4;
}
.edupart-me-event-card__meta-item svg {
    flex-shrink: 0; height: 14px; margin-top: 1px; width: 14px;
    color: var(--em-gold);
}

.edupart-me-event-card__cta {
    align-items: center; color: var(--em-gold); display: inline-flex;
    font-size: 13px; font-weight: 700; gap: 6px;
    letter-spacing: .04em; margin-top: auto;
    text-decoration: none; text-transform: uppercase;
    transition: gap var(--em-tr);
}
.edupart-me-event-card__cta svg { height: 14px; width: 14px; transition: transform var(--em-tr); }
.edupart-me-event-card:hover .edupart-me-event-card__cta { gap: 10px; }
.edupart-me-event-card:hover .edupart-me-event-card__cta svg { transform: translateX(3px); }

/* ===============================================================
   TIMELINE DESKTOP — [timeline_evenimente]
   =============================================================== */
.edupart-me-timeline { margin: 32px 0; }

/* Desktop wrapper */
.edupart-me-timeline__desktop {
    align-items: stretch; display: flex; position: relative;
}
.edupart-me-timeline__mobile { display: none; }

/* Arrows */
.edupart-me-timeline__arrow {
    align-items: center; background: var(--em-navy);
    border: 2px solid var(--em-gold); border-radius: 50%;
    color: var(--em-white); cursor: pointer; display: flex;
    flex-shrink: 0; height: 44px; justify-content: center;
    margin-bottom: 56px; margin-top: auto; padding: 0;
    transition: background var(--em-tr), transform var(--em-tr);
    width: 44px; z-index: 10;
}
.edupart-me-timeline__arrow:hover { background: var(--em-blue); transform: scale(1.1); }
.edupart-me-timeline__arrow svg   { height: 18px; width: 18px; }
.edupart-me-timeline__arrow--left  { margin-right: 10px; }
.edupart-me-timeline__arrow--right { margin-left: 10px; }

/* Scroll container — padding-top = space for hover cards */
.edupart-me-timeline__scroll {
    flex: 1; min-width: 0;
    overflow-x: auto; overflow-y: hidden;
    padding: 300px 8px 52px;
    position: relative; scroll-behavior: smooth;
    scrollbar-color: var(--em-blue) var(--em-sky);
    scrollbar-width: thin;
}
.edupart-me-timeline__scroll::-webkit-scrollbar       { height: 5px; }
.edupart-me-timeline__scroll::-webkit-scrollbar-track { background: var(--em-sky); border-radius: 3px; }
.edupart-me-timeline__scroll::-webkit-scrollbar-thumb { background: var(--em-blue); border-radius: 3px; }

/* Track */
.edupart-me-timeline__track {
    align-items: flex-start; display: flex; gap: 0;
    min-width: max-content; position: relative;
}
.edupart-me-timeline__track::before {
    background: linear-gradient(90deg,#8a9bb0 0%,var(--em-gold) 45%,var(--em-blue) 100%);
    border-radius: 999px; box-shadow: 0 2px 16px rgba(12,79,137,.3);
    content: ""; height: 5px; left: 0; position: absolute;
    right: 0; top: 29px; z-index: 1;
}

/* Markers (month/year) */
.edupart-me-timeline__marker {
    align-items: center; display: flex; flex-direction: column;
    flex-shrink: 0; justify-content: flex-start;
    padding: 0 4px; position: relative; width: 60px; z-index: 2;
}
.edupart-me-timeline__marker::before {
    background: rgba(0,31,76,.25); border-radius: 2px;
    content: ""; height: 26px; left: 50%; position: absolute;
    top: 14px; transform: translateX(-50%); width: 2px;
}
.edupart-me-timeline__marker-label {
    background: var(--em-navy); border-radius: var(--em-radius-sm);
    bottom: calc(100% + 10px); color: var(--em-white);
    font-size: 10px; font-weight: 800; left: 50%;
    letter-spacing: .06em; padding: 4px 8px; position: absolute;
    text-align: center; text-transform: uppercase;
    transform: translateX(-50%); white-space: nowrap;
}
.edupart-me-timeline__marker--year .edupart-me-timeline__marker-label {
    background: var(--em-gold); color: var(--em-navy); font-size: 12px; padding: 5px 12px;
}
.edupart-me-timeline__marker--year::before { background: var(--em-gold); height: 34px; opacity: .4; }

/* Item (dot + card) */
.edupart-me-timeline__item {
    flex: 0 0 auto; min-width: 110px; position: relative;
    text-align: center; z-index: 2;
}
/* Hover bridge */
.edupart-me-timeline__item::before {
    bottom: 100%; content: ""; height: 28px;
    left: -24px; position: absolute; right: -24px; z-index: 19;
}

/* Dot */
.edupart-me-timeline__dot {
    align-items: center; background: var(--em-blue);
    border: 4px solid var(--em-white); border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,31,76,.25);
    color: #fff; cursor: pointer; display: flex;
    flex-direction: column; height: 58px; justify-content: center;
    line-height: 1; margin: 0 auto 10px; position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 58px; z-index: 2;
}
.edupart-me-timeline__dot strong { font-size: 16px; font-weight: 900; }
.edupart-me-timeline__dot span   { font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.edupart-me-timeline__item:hover .edupart-me-timeline__dot {
    box-shadow: 0 0 0 8px rgba(255,196,0,.25), 0 4px 20px rgba(0,31,76,.35);
    transform: scale(1.12);
}
.edupart-me-timeline__item--trecute  .edupart-me-timeline__dot { background: #8a9bb0; }
.edupart-me-timeline__item--astazi   .edupart-me-timeline__dot {
    animation: emPulse 2.2s infinite;
    background: var(--em-gold); border-color: var(--em-navy); color: var(--em-navy);
}
.edupart-me-timeline__item--viitoare .edupart-me-timeline__dot { background: var(--em-blue); }
.edupart-me-timeline__item.is-empty  .edupart-me-timeline__dot { background: #cbd5e0; color: #8a9bb0; }

/* Label */
.edupart-me-timeline__label span {
    color: var(--em-muted); display: block; font-size: 10px;
    font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.edupart-me-timeline__item--astazi .edupart-me-timeline__label span { color: var(--em-gold); font-weight: 900; }

/* Hover card */
.edupart-me-timeline__card {
    background: var(--em-white); border-radius: 10px;
    border-top: 4px solid var(--em-gold);
    bottom: calc(100% + 20px);
    box-shadow: 0 12px 40px rgba(0,31,76,.2), 0 2px 8px rgba(0,31,76,.08);
    color: var(--em-text); display: block; left: 50%;
    opacity: 0; overflow: hidden; pointer-events: none;
    position: absolute; text-decoration: none !important;
    transform: translateX(-50%) translateY(10px) scale(.96);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    visibility: hidden; width: 260px; z-index: 20;
}
.edupart-me-timeline__item:hover .edupart-me-timeline__card,
.edupart-me-timeline__item:focus-within .edupart-me-timeline__card,
.edupart-me-timeline__card:hover {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
    visibility: visible;
}
.edupart-me-timeline__card img,
.edupart-me-timeline__card-placeholder {
    display: block; height: 145px; object-fit: cover; width: 100%;
}
.edupart-me-timeline__card-placeholder {
    background: linear-gradient(135deg, var(--em-sky), #9cd6de);
}
.edupart-me-timeline__card-body { padding: 12px 14px 14px; }

.edupart-me-timeline__card-badge {
    border-radius: 4px; display: inline-block;
    font-size: 10px; font-weight: 800; letter-spacing: .07em;
    margin-bottom: 6px; padding: 3px 8px; text-transform: uppercase;
}
.edupart-me-timeline__card-badge--viitoare { background: var(--em-gold); color: var(--em-navy); }
.edupart-me-timeline__card-badge--astazi   { background: #22c55e; color: #fff; }
.edupart-me-timeline__card-badge--trecute  { background: #e2e8f0; color: var(--em-muted); }

.edupart-me-timeline__card-body h3 {
    color: var(--em-navy) !important; font-size: 14px !important;
    font-weight: 700 !important; line-height: 1.3 !important; margin: 0 0 8px !important;
}
.edupart-me-timeline__card:hover h3 { color: var(--em-blue) !important; }

.edupart-me-timeline__card-meta {
    display: flex; flex-direction: column; gap: 4px;
    list-style: none; margin: 0 0 8px; padding: 0;
}
.edupart-me-timeline__card-meta li {
    align-items: center; color: var(--em-muted);
    display: flex; font-size: 12px; gap: 5px;
}
.edupart-me-timeline__card-meta li svg { flex-shrink: 0; height: 12px; width: 12px; color: var(--em-blue); }

.edupart-me-timeline__card-cta {
    color: var(--em-blue); font-size: 12px; font-weight: 700;
    letter-spacing: .03em;
}
.edupart-me-timeline__card:hover .edupart-me-timeline__card-cta { color: var(--em-navy); }

/* Pulse animation */
@keyframes emPulse {
    0%   { box-shadow: 0 0 0 4px rgba(255,196,0,.3), 0 0 24px rgba(255,196,0,.5); }
    50%  { box-shadow: 0 0 0 12px rgba(255,196,0,.06), 0 0 40px rgba(255,196,0,.8); }
    100% { box-shadow: 0 0 0 4px rgba(255,196,0,.3), 0 0 24px rgba(255,196,0,.5); }
}

/* ===============================================================
   TIMELINE MOBILE — vertical, carduri mereu vizibile
   =============================================================== */
@media (max-width: 768px) {
    .edupart-me-timeline__desktop { display: none; }
    .edupart-me-timeline__mobile  { display: block; }
}

/* Sectiune grup (Trecut / Astăzi / Viitor) */
.edupart-me-tl-section { margin-bottom: 36px; }

.edupart-me-tl-section__header {
    align-items: center; display: flex; gap: 10px;
    margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,31,76,.1);
}
.edupart-me-tl-section__header svg { height: 20px; width: 20px; }
.edupart-me-tl-section__header span {
    font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.edupart-me-tl-section--viitoare .edupart-me-tl-section__header { color: var(--em-blue); }
.edupart-me-tl-section--astazi   .edupart-me-tl-section__header { color: #16a34a; }
.edupart-me-tl-section--trecute  .edupart-me-tl-section__header { color: var(--em-muted); }

/* Item container */
.edupart-me-tl-item {
    display: flex; gap: 16px; margin-bottom: 20px;
    opacity: 0; transform: translateX(-20px);
    transition: opacity .4s ease, transform .4s ease;
}
.edupart-me-tl-item.is-visible { opacity: 1; transform: translateX(0); }

/* Dot lateral */
.edupart-me-tl-item__dot {
    align-items: center; background: var(--em-blue);
    border: 3px solid var(--em-white); border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,31,76,.2);
    color: #fff; display: flex; flex-direction: column;
    flex-shrink: 0; height: 52px; justify-content: center;
    line-height: 1; margin-top: 4px; width: 52px;
}
.edupart-me-tl-item__dot strong { font-size: 15px; font-weight: 900; }
.edupart-me-tl-item__dot span   { font-size: 8px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.edupart-me-tl-section--astazi  .edupart-me-tl-item__dot { background: var(--em-gold); border-color: var(--em-navy); color: var(--em-navy); }
.edupart-me-tl-section--trecute .edupart-me-tl-item__dot { background: #8a9bb0; }

/* Card */
.edupart-me-tl-item__card {
    background: var(--em-white); border-radius: var(--em-radius);
    border-left: 4px solid var(--em-gold);
    box-shadow: var(--em-shadow); color: var(--em-text);
    display: flex; flex: 1; overflow: hidden;
    text-decoration: none; transition: transform var(--em-tr), box-shadow var(--em-tr);
}
.edupart-me-tl-section--astazi  .edupart-me-tl-item__card { border-color: #22c55e; }
.edupart-me-tl-section--trecute .edupart-me-tl-item__card { border-color: #8a9bb0; opacity: .8; }
.edupart-me-tl-item__card:hover { transform: translateY(-3px); box-shadow: var(--em-shadow-lg); }

.edupart-me-tl-item__img {
    display: block; flex-shrink: 0;
    height: 100%; min-height: 90px; object-fit: cover; width: 100px;
}
.edupart-me-tl-item__img-placeholder {
    background: linear-gradient(135deg, var(--em-navy), var(--em-blue));
    flex-shrink: 0; min-height: 90px; width: 90px;
}
.edupart-me-tl-item__body { display: flex; flex: 1; flex-direction: column; padding: 12px 14px; }

.edupart-me-tl-item__title {
    color: var(--em-navy); font-size: 14px; font-weight: 700;
    line-height: 1.35; margin: 0 0 8px;
}
.edupart-me-tl-item__card:hover .edupart-me-tl-item__title { color: var(--em-blue); }

.edupart-me-tl-item__meta {
    display: flex; flex-direction: column; gap: 5px;
    font-size: 12px; list-style: none; margin: 0 0 8px; padding: 0;
    color: var(--em-muted);
}
.edupart-me-tl-item__meta li { align-items: flex-start; display: flex; gap: 6px; }
.edupart-me-tl-item__meta li svg { color: var(--em-blue); flex-shrink: 0; height: 12px; margin-top: 1px; width: 12px; }

.edupart-me-tl-item__cta {
    color: var(--em-blue); font-size: 12px; font-weight: 700;
    letter-spacing: .04em; margin-top: auto;
    text-decoration: none; text-transform: uppercase;
}

/* ===============================================================
   RESPONSIVE — grid
   =============================================================== */
@media (max-width: 1100px) {
    .edupart-me-grid--cols-4,
    .edupart-me-events-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .edupart-me-grid--cols-3,
    .edupart-me-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .edupart-me-events-grid--cols-3,
    .edupart-me-events-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .edupart-me-grid,
    .edupart-me-grid--cols-2,
    .edupart-me-grid--cols-3,
    .edupart-me-grid--cols-4 { grid-template-columns: 1fr; }
    .edupart-me-card__body  { padding: 20px 20px 76px; }
    .edupart-me-card__title { font-size: 18px; }

    .edupart-me-events-grid,
    .edupart-me-events-grid--cols-2,
    .edupart-me-events-grid--cols-3 { grid-template-columns: 1fr; }

    /* Timeline mobile scroll: less top padding (mobile uses vertical layout anyway) */
    .edupart-me-timeline__scroll { padding: 260px 4px 44px; }
    .edupart-me-timeline__card  { width: 220px; }
}

/* ===============================================================
   TIMELINE BAR — [timeline_bar]
   Alternating above / below cards on a gradient horizontal bar.
   The track height = 64px (dot row).
   Cards live in padding-top / padding-bottom of the scroll wrapper
   so overflow-y:hidden does NOT clip them.
   =============================================================== */

.em-bar {
    margin: 36px 0;
    font-family: inherit;
}

/* ── Controls row (arrows + legend) ── */
.em-bar__controls {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 0 2px 12px;
}

.em-bar__nav {
    align-items: center;
    background: var(--em-navy);
    border: 2px solid var(--em-gold);
    border-radius: 50%;
    color: var(--em-white);
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: 40px;
    justify-content: center;
    padding: 0;
    transition: background var(--em-tr), transform var(--em-tr);
    width: 40px;
}
.em-bar__nav:hover { background: var(--em-blue); transform: scale(1.1); }
.em-bar__nav svg   { height: 17px; width: 17px; }

.em-bar__legend {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 20px;
    justify-content: center;
}
.em-bar__legend-item {
    align-items: center;
    color: var(--em-muted);
    display: flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.em-bar__legend-item i {
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    height: 10px;
    width: 10px;
}
.em-bar__legend-item--trecute  i { background: #8a9bb0; }
.em-bar__legend-item--astazi   i { background: var(--em-gold); }
.em-bar__legend-item--viitoare i { background: var(--em-blue); }

/* ── Scroll wrapper ── */
.em-bar__scroll {
    overflow-x: auto;
    overflow-y: hidden;
    /* padding-top = space for ABOVE cards (card ~180px + stem 28px + gap 16px = 224) */
    /* padding-bottom = space for BELOW cards */
    padding: 228px 20px 228px;
    scroll-behavior: smooth;
    scrollbar-color: var(--em-blue) var(--em-sky);
    scrollbar-width: thin;
}
.em-bar__scroll::-webkit-scrollbar       { height: 5px; }
.em-bar__scroll::-webkit-scrollbar-track { background: var(--em-sky); border-radius: 3px; }
.em-bar__scroll::-webkit-scrollbar-thumb { background: var(--em-blue); border-radius: 3px; }

/* ── Track (flex row of items) ── */
.em-bar__track {
    align-items: center;
    display: flex;
    min-width: max-content;
    position: relative;
}

/* Gradient horizontal bar */
.em-bar__line {
    background: linear-gradient(
        90deg,
        #8a9bb0 0%,
        var(--em-gold) 40%,
        var(--em-blue) 100%
    );
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(12, 79, 137, .25);
    height: 5px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* ── Individual item ── */
.em-bar__item {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    position: relative;
    width: 200px;
    z-index: 2;
}

/* ── Dot ── */
.em-bar__dot {
    align-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 31, 76, .3);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 60px;
    justify-content: center;
    line-height: 1;
    position: relative;
    transition: transform .22s ease, box-shadow .22s ease;
    width: 60px;
    z-index: 3;
}
.em-bar__dot strong { font-size: 17px; font-weight: 900; }
.em-bar__dot span   { font-size: 9px;  font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.em-bar__item:hover .em-bar__dot {
    box-shadow: 0 0 0 8px rgba(255, 196, 0, .22), 0 4px 20px rgba(0, 31, 76, .4);
    transform: scale(1.12);
}

/* Dot colours per group */
.em-bar__item--trecute .em-bar__dot  { background: #8a9bb0; }
.em-bar__item--viitoare .em-bar__dot { background: var(--em-blue); }
.em-bar__item--astazi .em-bar__dot {
    animation: emPulse 2.2s infinite;
    background: var(--em-gold);
    border-color: var(--em-navy);
    color: var(--em-navy);
}

/* ── Connector stem (dot ↔ card) ── */
.em-bar__stem {
    border-radius: 2px;
    flex-shrink: 0;
    height: 28px;
    width: 2px;
    transition: height .3s ease;
}
/* Stem colors match group */
.em-bar__item--trecute  .em-bar__stem { background: #8a9bb0; }
.em-bar__item--viitoare .em-bar__stem { background: var(--em-blue); opacity: .5; }
.em-bar__item--astazi   .em-bar__stem { background: var(--em-gold); }
.em-bar__item:hover .em-bar__stem { height: 34px; }

/* ── Card base ── */
.em-bar__card {
    border-radius: 10px;
    color: var(--em-text);
    display: block;
    overflow: hidden;
    position: absolute;
    text-decoration: none;
    width: 180px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    box-shadow: 0 6px 24px rgba(0, 31, 76, .14);
    /* Entrance: fade + slide */
    animation: emCardIn .45s cubic-bezier(.22,.68,0,1.2) forwards;
    transition: transform .22s ease, box-shadow .22s ease;
}

@keyframes emCardIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.95); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)   scale(1); }
}

/* GROUP BACKGROUNDS */
.em-bar__item--trecute  .em-bar__card {
    background: #f4f5f7;
    color: var(--em-muted);
}
.em-bar__item--viitoare .em-bar__card {
    background: linear-gradient(160deg, #eef4ff 0%, #f0f6ff 100%);
}
.em-bar__item--astazi   .em-bar__card {
    background: linear-gradient(160deg, #fffbea 0%, #fff8d6 100%);
    box-shadow: 0 0 0 2px rgba(255,196,0,.35), 0 8px 28px rgba(255,196,0,.2);
}

/* Cards ABOVE */
.em-bar__item--above .em-bar__card {
    bottom: calc(100% + 28px);
    border-top: 3px solid var(--em-blue);
    animation-name: emCardInAbove;
}
@keyframes emCardInAbove {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.95); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)      scale(1); }
}
.em-bar__item--above.em-bar__item--trecute  .em-bar__card { border-top-color: #8a9bb0; }
.em-bar__item--above.em-bar__item--astazi   .em-bar__card { border-top-color: var(--em-gold); }
.em-bar__item--above.em-bar__item--viitoare .em-bar__card { border-top-color: var(--em-blue); }

/* Cards BELOW */
.em-bar__item--below .em-bar__card {
    top: calc(100% + 28px);
    border-bottom: 3px solid var(--em-blue);
}
.em-bar__item--below.em-bar__item--trecute  .em-bar__card { border-bottom-color: #8a9bb0; }
.em-bar__item--below.em-bar__item--astazi   .em-bar__card { border-bottom-color: var(--em-gold); }
.em-bar__item--below.em-bar__item--viitoare .em-bar__card { border-bottom-color: var(--em-blue); }

/* Stagger animation per position in DOM */
.em-bar__item:nth-child(2) .em-bar__card  { animation-delay: .05s; }
.em-bar__item:nth-child(3) .em-bar__card  { animation-delay: .10s; }
.em-bar__item:nth-child(4) .em-bar__card  { animation-delay: .15s; }
.em-bar__item:nth-child(5) .em-bar__card  { animation-delay: .20s; }
.em-bar__item:nth-child(6) .em-bar__card  { animation-delay: .25s; }
.em-bar__item:nth-child(7) .em-bar__card  { animation-delay: .30s; }
.em-bar__item:nth-child(8) .em-bar__card  { animation-delay: .35s; }
.em-bar__item:nth-child(9) .em-bar__card  { animation-delay: .40s; }
.em-bar__item:nth-child(10) .em-bar__card { animation-delay: .45s; }

/* Hover lift */
.em-bar__item:hover .em-bar__card {
    box-shadow: 0 16px 44px rgba(0, 31, 76, .22);
    transform: translateX(-50%) translateY(-6px) scale(1.02);
}
.em-bar__item--below:hover .em-bar__card {
    transform: translateX(-50%) translateY(6px) scale(1.02);
}
.em-bar__item--astazi:hover .em-bar__card {
    box-shadow: 0 0 0 3px rgba(255,196,0,.5), 0 16px 44px rgba(255,196,0,.25);
}

/* Card image */
.em-bar__card img,
.em-bar__card-placeholder {
    display: block;
    height: 110px;
    object-fit: cover;
    width: 100%;
}
.em-bar__card-placeholder {
    background: linear-gradient(135deg, var(--em-navy), var(--em-blue));
}

/* Card body */
.em-bar__card-body { padding: 10px 12px 12px; }

.em-bar__card-date {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: var(--em-muted);
}
.em-bar__item--viitoare .em-bar__card-date { color: var(--em-blue); }
.em-bar__item--trecute  .em-bar__card-date { color: #8a9bb0; }
.em-bar__item--astazi   .em-bar__card-date { color: #b45309; font-weight: 900; }

.em-bar__card-title {
    color: var(--em-navy);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.em-bar__item--trecute .em-bar__card-title { color: var(--em-muted); }
.em-bar__item--astazi  .em-bar__card-title { color: #78350f; }
.em-bar__card:hover .em-bar__card-title { color: var(--em-blue); }
.em-bar__item--astazi .em-bar__card:hover .em-bar__card-title { color: var(--em-navy); }

.em-bar__card-loc,
.em-bar__card-time {
    align-items: flex-start;
    color: var(--em-muted);
    display: flex;
    font-size: 11px;
    gap: 4px;
    line-height: 1.3;
    margin: 0 0 3px;
}
.em-bar__card-loc svg,
.em-bar__card-time svg {
    flex-shrink: 0;
    height: 11px;
    margin-top: 1px;
    width: 11px;
}
.em-bar__item--viitoare .em-bar__card-loc svg,
.em-bar__item--viitoare .em-bar__card-time svg { color: var(--em-blue); }
.em-bar__item--astazi   .em-bar__card-loc svg,
.em-bar__item--astazi   .em-bar__card-time svg { color: #b45309; }
.em-bar__item--trecute  .em-bar__card-loc svg,
.em-bar__item--trecute  .em-bar__card-time svg { color: #8a9bb0; }

/* Mobile: show .em-bar__mobile, hide desktop track */
.em-bar__mobile { display: none; }

/* ── Mobile layout ── */
@media (max-width: 768px) {
    .em-bar__scroll  { display: none; }
    .em-bar__controls .em-bar__nav { display: none; }
    .em-bar__controls { justify-content: center; padding-bottom: 16px; }
    .em-bar__mobile  { display: flex; flex-direction: column; gap: 0; padding: 8px 0; }
}

.em-bar__mob-item {
    align-items: stretch;
    background: #fff;
    border-left: 4px solid var(--em-blue);
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 16px rgba(0, 31, 76, .1);
    color: var(--em-text);
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    opacity: 0;
    overflow: hidden;
    text-decoration: none;
    transform: translateX(-16px);
    transition: opacity .38s ease, transform .38s ease, box-shadow .22s ease;
}
.em-bar__mob-item--trecute  { border-left-color: #8a9bb0; opacity: .75; }
.em-bar__mob-item--astazi   { border-left-color: #22c55e; }
.em-bar__mob-item--viitoare { border-left-color: var(--em-gold); }
.em-bar__mob-item.is-visible { opacity: 1; transform: translateX(0); }
.em-bar__mob-item--trecute.is-visible { opacity: .8; }
.em-bar__mob-item:hover { box-shadow: 0 8px 28px rgba(0, 31, 76, .18); }

.em-bar__mob-dot {
    align-items: center;
    background: var(--em-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    justify-content: center;
    line-height: 1;
    min-height: 80px;
    padding: 8px 14px;
    text-align: center;
}
.em-bar__mob-dot strong { font-size: 20px; font-weight: 900; display: block; }
.em-bar__mob-dot span   { font-size: 9px;  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; display: block; }
.em-bar__mob-item--viitoare .em-bar__mob-dot { background: var(--em-blue); }
.em-bar__mob-item--astazi   .em-bar__mob-dot { background: var(--em-gold); color: var(--em-navy); }

.em-bar__mob-body {
    display: flex;
    flex: 1;
    gap: 10px;
    overflow: hidden;
    padding: 10px 12px 10px 0;
}

.em-bar__mob-img {
    border-radius: 6px;
    display: block;
    flex-shrink: 0;
    height: 70px;
    object-fit: cover;
    width: 90px;
}

.em-bar__mob-text { flex: 1; overflow: hidden; }
.em-bar__mob-text h3 {
    color: var(--em-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.em-bar__mob-text p {
    color: var(--em-muted);
    font-size: 11px;
    line-height: 1.4;
    margin: 0 0 2px;
}
