/* CGS Core: event lists, /past-events/ ([cgs_past_events]). Moved from the <style> block of WPCode snippet 25094991 unchanged, with REVIEW-2 change 14's About this event link (2026-10-24). */
.cgs-pe-filters .label { font-weight:600; font-size:14px; margin-right:4px; }
.cgs-pe-pill { padding:6px 16px; border-radius:20px; text-decoration:none; font-size:13px; font-weight:600; display:inline-block; transition:all 0.2s ease; }
.cgs-pe-pill:hover { opacity:0.85; }
.cgs-pe-pill-active { background:#27318B; color:#fff; }
.cgs-pe-pill-inactive { background:#e8e8e8; color:#333; }
.cgs-pe-pill-inactive:hover { background:#d0d0d0; color:#222; }
/* Year row: older years hide behind More years while the row is shut (2026-10-27). */
.cgs-pe-years-shut .cgs-pe-yr-old { display:none; }
.cgs-pe-filters a.cgs-pe-yr-more { background:transparent; color:#27318B !important; box-shadow:inset 0 0 0 2px #27318B; cursor:pointer; }
.cgs-pe-filters a.cgs-pe-yr-more:hover, .cgs-pe-filters a.cgs-pe-yr-more:focus-visible { background:#27318B; color:#fff !important; opacity:1; }
.cgs-event-item { border-bottom:1px solid #eee; padding:25px 15px; border-radius:8px; transition:background 0.2s ease; }
.cgs-event-item:hover { background:#f8f9fa; }
.cgs-event-meta { display:flex; gap:12px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
.cgs-event-body { display:flex; gap:24px; align-items:flex-start; }
.cgs-event-content { flex:1; min-width:0; }
.cgs-event-item h3 a:hover { color:#002855 !important; }
.cgs-event-thumb { flex-shrink:0; }
.cgs-event-thumb img { width:240px !important; height:135px !important; max-width:240px !important; border-radius:8px; object-fit:cover; display:block; }
.cgs-event-thumb.cgs-yt-play { position:relative; padding:0; border:none; background:transparent; cursor:pointer; overflow:hidden; border-radius:8px; }
.cgs-yt-play-icon { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:44px; height:44px; border-radius:50%; background:rgba(0,0,0,0.7); display:flex; align-items:center; justify-content:center; transition:all 0.15s ease; }
.cgs-yt-play-icon::before { content:""; display:block; width:0; height:0; border-top:10px solid transparent; border-bottom:10px solid transparent; border-left:14px solid #fff; margin-left:3px; }
.cgs-event-thumb.cgs-yt-play:hover .cgs-yt-play-icon { background:#ff6600; transform:translate(-50%,-50%) scale(1.08); }
.cgs-yt-modal { position:fixed; inset:0; background:rgba(0,0,0,0.92); z-index:999999; display:flex; align-items:center; justify-content:center; padding:20px; }
.cgs-yt-modal-inner { position:relative; width:100%; max-width:1100px; }
.cgs-yt-modal-frame { position:relative; padding-bottom:56.25%; height:0; background:#000; border-radius:8px; overflow:hidden; }
.cgs-yt-modal-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.cgs-yt-modal-close { position:absolute; top:-44px; right:0; background:transparent; border:0; color:#fff; font-size:34px; line-height:1; cursor:pointer; padding:4px 12px; }
.cgs-event-more { display:inline-block; margin-top:10px; font-size:14px; font-weight:600; color:#27318B !important; text-decoration:underline; text-underline-offset:3px; }
.cgs-event-more:hover { color:#002855 !important; }
.cgs-sr { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.cgs-pe-pagination { margin-top:40px; text-align:center; display:flex; justify-content:center; gap:6px; flex-wrap:wrap; align-items:center; }
.cgs-pe-pagination .page-numbers { padding:8px 16px; border-radius:20px; text-decoration:none; font-size:14px; font-weight:600; display:inline-block; background:#e8e8e8; color:#333; transition:all 0.2s ease; }
.cgs-pe-pagination .page-numbers:hover { background:#d0d0d0; }
.cgs-pe-pagination .page-numbers.current { background:#002855; color:#fff; }
.cgs-pe-pagination .prev, .cgs-pe-pagination .next { background:#002855; color:#fff; }
.cgs-pe-pagination .prev:hover, .cgs-pe-pagination .next:hover { background:#001a3a; color:#fff; }
/* Mobile dropdown filters */
.cgs-pe-filter-select { display:none; }
.cgs-pe-filter-select select { width:100%; padding:10px 14px; border-radius:20px; border:2px solid #002855; font-size:14px; font-weight:600; color:#002855; background:#fff; appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23002855' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; cursor:pointer; }
.cgs-pe-filter-select label { font-weight:600; font-size:14px; margin-bottom:6px; display:block; color:#333; }
@media (max-width:768px) {
  .cgs-event-body { flex-direction:column; }
  .cgs-event-thumb img { width:100%; }
  .cgs-pe-filters { display:none !important; }
  .cgs-pe-filter-select { display:block; margin-bottom:12px; }
}
