/* Event cards + single-event page. Shared by index.php, calendar.php and event.php. */
.agev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.agev-card { background: #fff; border: 1.5px solid #b0d4ec; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-align: left; transition: transform .15s, box-shadow .15s; }
.agev-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(43,127,192,.15); }
.agev-photo { display: block; background: #eaf3fa; }
.agev-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.agev-row { display: flex; gap: 14px; padding: 16px; }
.agev-badge { flex: 0 0 58px; align-self: flex-start; background: #123e66; color: #fff; border-radius: 6px; text-align: center; padding: 7px 4px 8px; line-height: 1.1; }
.agev-badge span { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .12em; color: #ffddab; }
.agev-badge b { display: block; font-size: 1.15rem; font-weight: 800; margin-top: 2px; white-space: nowrap; }
.agev-body { min-width: 0; }
.agev-body h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.25; margin: 0 0 5px; }
.agev-body h3 a { color: #1a5a8f; text-decoration: none; }
.agev-body h3 a:hover { text-decoration: underline; }
.agev-meta { font-size: .84rem; font-weight: 700; color: #97520f; margin: 0 0 2px; }
.agev-where { font-size: .82rem; color: #555; margin: 0 0 8px; }
.agev-contact { font-size: .82rem; color: #444; margin: -4px 0 8px; overflow-wrap: anywhere; }
.agev-contact a { color: #1a4f8a; text-decoration: underline; }
.agev-desc { font-size: .9rem; color: #2d2d2d; line-height: 1.55; margin: 0 0 10px; }
.agev-more { font-size: .84rem; font-weight: 700; color: #1a5a8f; text-decoration: none; }
.agev-more:hover { text-decoration: underline; }
.agev-btn { display: inline-block; background: #97520f; color: #fff; font-weight: 800; font-size: .9rem; letter-spacing: .03em; padding: 12px 22px; border-radius: 5px; text-decoration: none; }
.agev-btn:hover { background: #7d430b; }
.agev-btn.alt { background: #fff; color: #1a5a8f; border: 2px solid #1a5a8f; padding: 10px 20px; }
