/* =========================================================
   EVENTS – Modern UI/UX
   File: /assets/css/events.css
   ========================================================= */

:root{
  --ev-bg:#ffffff;
  --ev-soft:#f6f7fb;
  --ev-ink:#0f172a;
  --ev-muted:#64748b;
  --ev-line: rgba(15, 23, 42, .10);
  --ev-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  --ev-radius: 18px;
  --ev-red:#fa394a;
}

/* Page sections */
.ev.page-hero{
  background: var(--ev-bg);
  padding-top: calc(var(--site-header-offset, 110px) + 34px);
  padding-bottom: 22px;
}
.ev.page-section{
  background: var(--ev-bg);
  padding: 22px 0 80px;
}

/* Breadcrumb (same as your other pages) */
.breadcrumb{
  font-size: 13px;
  color: var(--ev-muted);
  font-weight: 700;
  display:flex;
  align-items:center;
  gap: 8px;
  margin: 6px 0 18px;
}
.breadcrumb a{ color: var(--ev-muted); text-decoration:none; }
.breadcrumb a:hover{ color: var(--ev-ink); }
.crumb-sep{ opacity: .6; }

/* Hero layout */
.ev-hero{
  display:grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 18px;
  align-items:start;
}

.ev-kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 12px;
  color: var(--ev-ink);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250,57,74,.18);
  background: rgba(250,57,74,.07);
}
.ev-kico{
  width: 28px;
  height: 28px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  display:grid;
  place-items:center;
  color: var(--ev-red);
}

.ev-title{
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ev-ink);
}
.ev-lead{
  margin: 0 0 16px;
  color: var(--ev-muted);
  font-size: 14px;
  line-height: 1.75;
}

/* Toolbar */
.ev-toolbar{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-top: 14px;
  align-items:end;
}
.ev-search{
  position: relative;
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 16px;
  background: #fff;
  padding: 0 12px;
  height: 46px;
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
}
.ev-search__ico{ color: rgba(15,23,42,.60); display:inline-flex; }
.ev-search__input{
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  font-size: 13px;
  color: var(--ev-ink);
}
.ev-filter{ display:flex; flex-direction: column; gap: 6px; }
.ev-filter__label{
  font-size: 12px;
  font-weight: 800;
  color: var(--ev-ink);
}
.ev-filter__select{
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  background:#fff;
  padding: 0 12px;
  font-weight: 700;
  font-size: 13px;
  outline:none;
}
.ev-filter__select:focus{
  border-color: rgba(250,57,74,.35);
  box-shadow: 0 0 0 3px rgba(250,57,74,.10);
}

/* Tabs */
.ev-tabs{
  grid-column: 1 / -1;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.ev-tab{
  border: 1px solid rgba(15,23,42,.12);
  background:#fff;
  color: var(--ev-ink);
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  cursor:pointer;
  box-shadow: 0 12px 30px rgba(15,23,42,.05);
}
.ev-tab__count{
  display:inline-flex;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 900;
  background: rgba(2,6,23,.05);
  border: 1px solid rgba(15,23,42,.10);
}
.ev-tab.is-active{
  border-color: rgba(250,57,74,.25);
  background: rgba(250,57,74,.08);
}

/* Side card */
.ev-sideCard{
  background:#fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  box-shadow: var(--ev-shadow);
  overflow:hidden;
  position: sticky;
  top: calc(var(--site-header-offset, 110px) + 18px);
}
.ev-sideCard__head{
  padding: 14px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  display:flex;
  gap: 10px;
  align-items:center;
}
.ev-sideCard__ico{
  width: 40px;
  height: 40px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(2,6,23,.03);
  display:grid;
  place-items:center;
  color: var(--ev-ink);
}
.ev-sideCard__head b{
  display:block;
  font-size: 13px;
  font-weight: 900;
  color: var(--ev-ink);
}
.ev-sideCard__head span{
  display:block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ev-muted);
}
.ev-sideCard__body{ padding: 14px; }
.ev-sideRow{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.ev-sideRow:last-child{ border-bottom: 0; }
.ev-sideRow__k{ color: var(--ev-muted); font-weight: 800; font-size:: 12px; }
.ev-sideRow__v a{ color: var(--ev-ink); font-weight: 900; text-decoration:none; }
.ev-sideRow__v a:hover{ text-decoration: underline; }

.ev-sideCta{
  margin-top: 14px;
  display:inline-flex;
  width: 100%;
  justify-content:center;
  align-items:center;
  gap: 10px;
  height: 44px;
  border-radius: 999px;
  background: rgba(250,57,74,.10);
  border: 1px solid rgba(250,57,74,.22);
  color: var(--ev-ink);
  font-weight: 900;
  text-decoration:none;
}
.ev-sideCta:hover{ filter: brightness(.98); }

/* Panels */
.ev-panel{ display:block; }
.ev-panel:not(.is-active){ display:none; }

/* Empty */
.ev-empty{
  background: rgba(2,6,23,.03);
  border: 1px dashed rgba(15,23,42,.18);
  border-radius: 18px;
  padding: 18px;
  max-width: 560px;
}
.ev-empty b{ display:block; font-weight: 900; color: var(--ev-ink); margin-bottom: 6px; }
.ev-empty p{ margin: 0; color: var(--ev-muted); font-size: 14px; line-height: 1.7; }

/* Grid + cards */
.ev-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.ev-card{
  background:#fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(15,23,42,.06);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ev-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(15,23,42,.10);
  border-color: rgba(250,57,74,.20);
}
.ev-card__link{ display:block; height:100%; text-decoration:none; color:inherit; }

.ev-card__media{
  position: relative;
  height: 210px;
  overflow:hidden;
}
.ev-card__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1);
  transition: transform .35s ease;
}
.ev-card:hover .ev-card__media img{ transform: scale(1.06); }
.ev-card__shade{
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(250,57,74,.08), rgba(2,6,23,.35));
}
.ev-card__shade--past{
  background: linear-gradient(135deg, rgba(2,6,23,.06), rgba(2,6,23,.45));
}

/* Date badge */
.ev-dateBadge{
  position:absolute;
  left: 14px;
  bottom: 14px;
  width: 58px;
  height: 74px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(15,23,42,.72);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  color:#fff;
  text-transform: uppercase;
}
.ev-dateBadge__day{ font-size: 18px; font-weight: 900; line-height: 1; }
.ev-dateBadge__mon{ font-size: 11px; letter-spacing: .14em; }

/* Category pill */
.ev-pill{
  position:absolute;
  right: 14px;
  top: 14px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  font-size: 12px;
  font-weight: 900;
  color: var(--ev-ink);
}
.ev-pill--past{
  background: rgba(2,6,23,.06);
  border-color: rgba(15,23,42,.14);
}

/* Card body */
.ev-card__body{ padding: 14px 14px 16px; }
.ev-card__title{
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
  color: var(--ev-ink);
}
.ev-card__excerpt{
  margin: 0 0 10px;
  color: var(--ev-muted);
  font-size: 14px;
  line-height: 1.7;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* Meta row */
.ev-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  color: rgba(15,23,42,.75);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}
.ev-mi{ display:inline-flex; color: rgba(15,23,42,.70); }
.ev-meta__item{ display:inline-flex; align-items:center; gap: 8px; }
.ev-meta__dot{ opacity:.6; }

/* Footer */
.ev-card__foot{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
}
.ev-cta{
  font-weight: 900;
  font-size: 13px;
  color: var(--ev-ink);
  display:inline-flex;
  align-items:center;
  gap: 10px;
}
.ev-dateText{
  font-size: 12px;
  font-weight: 800;
  color: rgba(15,23,42,.60);
}

/* Past grid (slight variation) */
.ev-grid--past .ev-card{
  border-color: rgba(15,23,42,.10);
}
.ev-card--past:hover{
  border-color: rgba(15,23,42,.16);
}

/* Responsive */
@media (max-width: 980px){
  .ev-hero{ grid-template-columns: 1fr; }
  .ev-sideCard{ position: static; }
  .ev-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-toolbar{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .ev-title{ font-size: 26px; }
  .ev-grid{ grid-template-columns: 1fr; }
  .ev-card__media{ height: 200px; }
}