.event-grid { gap: 24px; align-items: stretch; padding-bottom: 16px; }
.event-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e1e5e3; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px rgba(23,36,42,.04); scroll-margin-top: 24px; }
.event-content { display: flex; flex-direction: column; flex: 1; }
.event-image { aspect-ratio: 8 / 5; overflow: hidden; background: #edf0ee; }
.event-image a { display: block; height: 100%; }
.event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.event-image a:hover img { transform: scale(1.025); }
.event-copy { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.event-copy h3 { margin: 0 0 14px; color: #263d35; font-size: 1.45rem; font-weight: 700; line-height: 1.22; }
.event-copy h3 a { color: inherit; text-decoration: none; }
.event-copy h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.event-description { margin: 0 0 22px; color: #55625c; font-size: .98rem; line-height: 1.6; }
.event-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 14px; border-top: 1px solid #edf0ee; }
.event-links a { color: #245c49; font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.event-links a:hover { color: #111f18; }
.event-card a:focus-visible { outline: 3px solid #527d67; outline-offset: 3px; }
@media (min-width: 680px) { .event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 1025px) { .event-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (prefers-reduced-motion: reduce) { .event-image img { transition: none; } }

#event-centarrun .event-image img { object-position: center top; }

#event-centarrun .event-image { position: relative; }
#event-centarrun .event-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 31, 35, 0.88) 0%, rgba(7, 31, 35, 0.45) 48%, rgba(7, 31, 35, 0.12) 100%); }

.event-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; margin: 0 0 16px; }
.event-date-pill { display: inline-block; padding: 3px 9px; border: 1px solid #e2e5e7; border-radius: 5px; background: #f1f2f3; color: #526069; font-size: .7rem; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.event-location { color: #7c858b; font-size: .72rem; }
.event-registration { margin: auto 0 16px; padding-top: 2px; }
.event-register { display: inline-flex; align-items: center; padding: 7px 13px; border: 1px solid #00a651; border-radius: 5px; background: #00a651; color: #fff; font-size: .8rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.event-register:hover, .event-register:focus { background: #008b44; border-color: #008b44; color: #fff; text-decoration: none; }

.home-carousel .event-register { padding: .5rem 1rem; border-radius: 100px; font-size: 1.25rem; font-weight: 800; line-height: 1.5; }

.home-carousel { width: 90%; max-width: 1240px; margin: 20px auto 0; border-radius: 16px; overflow: hidden; isolation: isolate; }
.home-footer { position: static; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 90%; max-width: 1240px; height: auto; margin: 40px auto 0; padding: 28px 0; border-top: 1px solid #d9dedb; background: transparent; }
.home-footer-brand { display: inline-block; flex-shrink: 0; }
.home-footer-brand img { display: block; width: 112px; height: auto; }
.home-footer-copyright { margin: 0; color: #77817c; font-size: .75rem; }
@media (max-width: 599px) { .home-footer { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 0; } }

.home-events { width: 90%; max-width: 1240px; margin: 44px auto 0; }
.home-events .event-grid { width: 100%; max-width: none; margin: 0; }
.event-section-heading { margin-bottom: 22px; }
.event-section-heading h2 { margin: 0; color: #263d35; font-size: 1.65rem; font-weight: 700; line-height: 1.2; }
.event-section-heading p { margin: 9px 0 0; color: #7b8580; font-size: .9rem; }
.event-grid--ongoing, .event-grid--past { grid-template-columns: minmax(0,1fr); }
.past-events { margin-top: 56px; padding-top: 30px; border-top: 1px solid #dde2de; }
.past-events .event-section-heading h2 { color: #263d35; font-size: 1.35rem; }
.event-grid--past { gap: 14px; }
.event-card--past { min-height: 146px; border-color: #e1e5e1; border-radius: 9px; background: #fff; box-shadow: none; }
.event-card--past .event-content { display: grid; grid-template-columns: 144px minmax(0,1fr); gap: 0; padding: 0; }
.event-card--past .event-image { position: relative; width: 100%; height: 100%; min-height: 144px; aspect-ratio: auto; border-radius: 0; }
.event-card--past .event-image img { position: absolute; inset: 0; filter: none; opacity: 1; }
.event-card--past .event-copy { padding: 12px; }
.event-card--past .event-meta { gap: 4px 7px; margin-bottom: 6px; }
.event-card--past .event-date-pill { padding: 2px 7px; border: 1px solid #e2e5e7; border-radius: 5px; background: #f1f2f3; color: #526069; font-size: .67rem; font-weight: 600; }
.event-card--past .event-location { color: #8b938e; font-size: .65rem; }
.event-card--past h3 { margin: 0 0 12px; color: #263d35; font-size: 1rem; line-height: 1.3; }
.event-card--past .event-links { gap: 5px 12px; padding-top: 0; border-top: 0; }
.event-card--past .event-links a { color: #6c7c70; font-size: .72rem; font-weight: 500; }
@media (min-width: 680px) { .event-grid--ongoing, .event-grid--past { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 1025px) { .event-grid--past { grid-template-columns: repeat(3,minmax(0,1fr)); } }


.event-card--past h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
