/* Training and events calendar (inc/events.php). */
.ev-list { display: grid; gap: 14px; margin: 18px 0 8px; }
.ev-month { margin: 26px 0 0 !important; font-size: 15px !important; font-family: Arial, sans-serif !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bb-gold-ink, #8a5d00); }
.ev-card {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 18px;
  border: 1px solid var(--bb-line, #dde6f0); border-left: 4px solid var(--bb-gold, #f7c21b); border-radius: 14px; background: #fff;
  box-shadow: 0 6px 18px rgba(10, 44, 107, .05); transition: box-shadow .2s, transform .2s;
}
.ev-card:hover { box-shadow: 0 14px 30px rgba(10, 44, 107, .1); transform: translateY(-2px); }
.ev-card.is-past { border-left-color: #b8c6d8; opacity: .88; }
.ev-card[hidden] { display: none; }
.ev-date {
  display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 92px; border-radius: 12px; color: #fff; text-align: center;
  background: linear-gradient(150deg, #123f86, #0a2c6b 55%, #061b44); box-shadow: inset 0 -4px 0 var(--bb-gold, #f7c21b);
}
.ev-date span { color: #ffd76a; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ev-date strong { font: 700 32px/1 Georgia, "Times New Roman", serif; }
.ev-date small { color: #c9d8ee; font-size: 12px; }
.ev-body h3 { margin: 4px 0 8px !important; font-size: 21px !important; }
.ev-body h3 a { color: var(--bb-navy, #0a2c6b); }
.ev-body h3 a:hover { text-decoration: underline; }
.ev-unit { color: var(--bb-muted, #53627a); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ev-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 4px !important; color: #34435a !important; font-size: 15px !important; }
.ev-meta .ic { --ic-acc: var(--bb-gold-ink, #8a5d00); flex: none; width: 17px; height: 17px; color: var(--bb-navy, #0a2c6b); }
.ev-summary { margin: 8px 0 0 !important; color: var(--bb-muted, #53627a) !important; font-size: 15px !important; }
.ev-side { display: grid; justify-items: end; gap: 12px; }
.ev-status { padding: 4px 10px; border-radius: 999px; background: #eef4fb; color: var(--bb-navy, #0a2c6b); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ev-status--registration-open { background: #e5f5ec; color: #17693f; }
.ev-status--fully-booked, .ev-status--registration-closed { background: #fdecec; color: #9b2424; }
.ev-go, .ev-all { display: inline-flex; align-items: center; gap: 6px; color: #0b4f99; font-size: 14px; font-weight: 800; white-space: nowrap; }
.ev-go .ic, .ev-all .ic { width: 16px; height: 16px; }
.ev-go:hover, .ev-all:hover { text-decoration: underline; }
.ev-filters { margin: 8px 0 4px; }
.ev-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 20px 0; padding: 24px; border: 1px dashed #b9cbe0; border-radius: 16px; background: var(--bb-paper, #f5f8fc); }
.ev-empty > div { flex: 1 1 280px; }
.ev-empty strong { display: block; color: var(--bb-navy, #0a2c6b); font: 700 20px/1.3 Georgia, "Times New Roman", serif; }
.ev-empty p { margin: 6px 0 0 !important; font-size: 15px !important; }
.ev-past-title { margin-top: 48px !important; }
.ev-news-link { margin-top: 28px; }

/* Single event */
.ev-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0 0 28px; }
.ev-facts > div { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--bb-line, #dde6f0); border-radius: 14px; background: #fff; }
.ev-facts small { display: block; color: var(--bb-muted, #53627a); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ev-facts strong { display: block; color: var(--bb-navy, #0a2c6b); font-size: 16px; line-height: 1.35; }
.ev-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; }
.ev-register { margin: 40px 0 24px; }

@media (max-width: 700px) {
  .ev-card { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .ev-date { min-height: 74px; }
  .ev-date strong { font-size: 26px; }
  .ev-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
