/* ---------- Events listing (events/event_index_page.html, event_section_page.html) ---------- */
.ev-page { background: #f4f6f9; }
.ev-header-subtitle { color: #d5e0ee; font-size: 1.05rem; }

.ev-filters { background: #fff; border: 1px solid #dfe5ee; border-radius: 14px; padding: 24px 28px; margin-bottom: 48px; }
.ev-filters__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 16px; }
.ev-filters__title { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1b2430; line-height: 1.4; }
.ev-filters__summary { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: #5b6675; }
.ev-filters__summary a, .ev-filters__summary a:hover, .ev-empty a { color: #00458b; font-weight: 700; }
.ev-filters__row { display: flex; gap: 20px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #edf1f6; }
.ev-filters__row--search { border-top: 0; padding-top: 0; align-items: center; }
.ev-filters__row--period { align-items: center; }
.ev-filters__label { width: 72px; flex-shrink: 0; margin: 0; padding-top: 9px; font-size: 14px; font-weight: 800; color: #5b6675; }
.ev-filters__row--search .ev-filters__label, .ev-filters__row--period .ev-filters__label { padding-top: 0; }

.ev-search { display: flex; gap: 10px; flex-grow: 1; }
.ev-search__field { position: relative; flex-grow: 1; display: flex; align-items: center; }
.ev-search__field i { position: absolute; left: 14px; color: #5b6675; }
.ev-search__field input { width: 100%; min-width: 0; height: 44px; padding: 0 14px 0 40px; border: 1px solid #c7d2e0; border-radius: 10px; font-size: 15px; color: #1b2430; background: #fff; }
.ev-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 48px; padding: 0 24px; border: 1px solid #00458b; border-radius: 10px; background: #00458b; color: #fff; font-size: 15px; font-weight: 700; text-transform: none; cursor: pointer; }
.ev-btn:hover, .ev-btn:focus { background: #002c58; border-color: #002c58; color: #fff; }
.ev-btn--outline { background: #fff; color: #00458b; }
.ev-btn--outline:hover, .ev-btn--outline:focus { background: #00458b; color: #fff; }

.ev-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex-grow: 1; }
.ev-pill { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid #c7d2e0; background: #fff; color: #2f3b4b; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ev-pill:hover { border-color: #00458b; color: #00458b; text-decoration: none; }
.ev-pill.is-active { background: #00458b; border-color: #00458b; color: #fff; font-weight: 700; }
.ev-pill--on-demand.is-active { background: #a8362f; border-color: #a8362f; }
.ev-pill--streaming.is-active { background: #16757a; border-color: #16757a; }

.ev-range { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 0 6px; padding-left: 16px; border-left: 1px solid #dfe5ee; }
.ev-range label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; color: #2f3b4b; }
.ev-range input { height: 40px; padding: 0 10px; border: 1px solid #c7d2e0; border-radius: 10px; font-size: 14px; color: #2f3b4b; background: #fff; }
.ev-range .ev-btn { height: 40px; padding: 0 16px; font-size: 14px; }

.ev-section { margin-bottom: 40px; }
.ev-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid #dfe5ee; padding-bottom: 16px; margin-bottom: 24px; }
.ev-section__heading { display: flex; align-items: center; gap: 16px; }
.ev-section__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ev-section__icon--streaming { background: #e3f4f5; color: #16757a; }
.ev-section__icon--in-aula { background: #e3ecf6; color: #00458b; }
.ev-section__icon--on-demand { background: #fdecea; color: #a8362f; }
.ev-section__title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; color: #1b2430; }
.ev-section__subtitle { font-size: 15px; color: #5b6675; }

.ev-see-all { align-items: center; height: 44px; padding: 0 18px; border: 1px solid #00458b; border-radius: 999px; font-size: 15px; font-weight: 700; color: #00458b; white-space: nowrap; }
.ev-see-all:hover { background: #00458b; color: #fff; text-decoration: none; }
.ev-see-all--block { display: flex; justify-content: center; height: 48px; margin-top: 4px; }

.ev-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px; background: #fff; border: 1px solid #dfe5ee; border-radius: 14px; box-shadow: 0 2px 6px rgba(0, 44, 88, .05); }
.ev-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ev-card__areas { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b6675; text-align: right; }
.ev-chip { display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ev-chip--streaming { background: #e3f4f5; color: #16757a; }
.ev-chip--in-aula { background: #e3ecf6; color: #00458b; }
.ev-chip--on-demand { background: #fdecea; color: #a8362f; }
.ev-card__date { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f4f6f9; border-radius: 10px; }
.ev-card__day { display: flex; flex-direction: column; align-items: center; width: 44px; color: #00458b; }
.ev-card__day--past { color: #5b6675; }
.ev-card__day-num { font-size: 24px; font-weight: 800; line-height: 1; }
.ev-card__day-month { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.ev-card__date-text { display: flex; flex-direction: column; }
.ev-card__date-label { font-size: 12px; color: #5b6675; }
.ev-card__date-value { text-transform: none; font-size: 15px; font-weight: 700; color: #1b2430; }
.ev-card__title { text-transform: none; letter-spacing: normal; margin: 4px 0 0; font-size: 19px; line-height: 1.35; font-weight: 800; color: #1b2430; }
.ev-card__badges { min-height: 28px; }
.ev-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.ev-badge--on-demand { background: #fdecea; color: #a8362f; }
.ev-badge--pending { background: #fff4e0; color: #8a5300; }
.ev-card__footer { margin-top: auto; padding-top: 14px; border-top: 1px solid #edf1f6; }
.ev-card__footer a, .ev-card__footer a:hover { color: #00458b; font-weight: 700; }
.ev-section__title, .ev-filters__title { text-transform: none; }
.ev-filters__title { text-transform: uppercase; }

.ev-section-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.ev-section-nav .ev-pills { flex-grow: 0; }
.ev-back { display: inline-flex; align-items: center; height: 44px; font-size: 15px; font-weight: 700; }
.ev-empty { padding: 40px 24px; text-align: center; background: #fff; border: 1px dashed #c7d2e0; border-radius: 14px; color: #5b6675; }

@media (max-width: 767.98px) {
	.ev-filters { padding: 20px 0; margin-bottom: 32px; }
	.ev-filters__head, .ev-filters__row { padding-left: 16px; padding-right: 16px; }
	.ev-filters__row { flex-direction: column; gap: 8px; align-items: stretch; }
	.ev-filters__label { width: auto; padding-top: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #1b2430; }
	/* Pills scroll sideways instead of wrapping into a tall block. */
	.ev-filters .ev-pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; }
	.ev-pill { height: 44px; flex-shrink: 0; }
	.ev-range { flex-shrink: 0; flex-wrap: nowrap; margin-left: 0; }
	.ev-search .ev-btn { padding: 0 14px; }
	.ev-section__head { align-items: flex-start; }
	.ev-section__title { font-size: 24px; }
}
