/* ==========================================================================
   «Όλα τα συνέδρια» in photo cards (tpl-events.php)
   The card is the homepage/category card (.pa-card, home.css); past = greyed photo +
   «Ολοκληρώθηκε», ★ = orange outline (home.css «Congress announcements»).
   ========================================================================== */
.pa-evlist__wrap { width: var(--theme-container-width, 90vw); max-width: var(--pa-w, 1200px); margin: 36px auto 0; padding-bottom: 24px; }
.pa-evlist__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.pa-evlist__types { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-evlist__types a { --c: var(--pa-navy); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--wp--custom--radius--pill); background: #fff; box-shadow: inset 0 0 0 1.5px var(--pa-line); color: var(--pa-navy); font: 600 14.5px/1.2 var(--pa-font-head); text-decoration: none; }
.pa-evlist__types a.is-teal { --c: var(--pa-teal); }
.pa-evlist__types a.is-orange { --c: var(--pa-orange); }
.pa-evlist__types a.is-royal { --c: var(--pa-royal); }
.pa-evlist__types a[class]::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pa-evlist__types a:hover { box-shadow: inset 0 0 0 1.5px var(--pa-navy); }
.pa-evlist__types a[aria-current] { background: var(--pa-navy); box-shadow: none; color: #fff; }

.pa-evlist__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pa-evlist .pa-card { --c: var(--pa-teal-700); }
.pa-evlist .pa-card.is-navy { --c: var(--pa-navy); }
.pa-evlist .pa-card.is-orange { --c: var(--pa-orange-700); }
.pa-evlist .pa-card.is-royal { --c: var(--pa-royal); }
.pa-evlist .pa-card::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.pa-evlist .pa-card__img { position: relative; aspect-ratio: 16 / 11; } /* the photo fills a fixed 16:11 box whatever its own size */
.pa-evlist .pa-card__img a { position: absolute; inset: 0; display: block; }
.pa-evlist .pa-card__img img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.pa-evlist__type { position: absolute; z-index: 2; left: 14px; top: 20px; padding: 5px 12px; border-radius: var(--wp--custom--radius--pill); background: var(--c); color: #fff; font: 600 12.5px/1.4 var(--pa-font-head); }
.pa-evlist .pa-card__date { margin: 0; color: var(--c); font: 700 14px/1.4 var(--pa-font-head); }
.pa-evlist .pa-card__title { font-family: var(--pa-font-head); font-weight: 700; }
.pa-evlist__place { display: flex; gap: 8px; margin: 0; color: var(--pa-slate); font-size: 14.5px; line-height: 1.45; }
.pa-evlist__place .pa-i { flex: none; width: 17px; height: 17px; margin-top: 1px; fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pa-evlist .pa-card__more { color: var(--c); }
.pa-evlist .pa-conf-badge { top: 20px; }
.pa-conf-badge.is-when { background: rgba(255, 255, 255, .94); color: var(--pa-navy); }
.pa-evlist .pa-conf-past { --c: #5F6B7D; }

.pa-evlist__pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pa-evlist__pager a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--pa-line); color: var(--pa-navy); font: 600 15px var(--pa-font-head); text-decoration: none; }
.pa-evlist__pager a[aria-current] { background: var(--pa-navy); box-shadow: none; color: #fff; }

@media (max-width: 999.98px) { .pa-evlist__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 689.98px) { .pa-evlist__grid { grid-template-columns: minmax(0, 1fr); } }
