.ev13-activities {
    --ev13-red: #d71920;
    --ev13-red-dark: #b91319;
    --ev13-ink: #132a34;
    --ev13-muted: #667982;
    --ev13-line: #e4eaed;
    --ev13-soft: #f5f8f9;
    --ev13-soft-red: #fff4f4;
    --ev13-radius: 20px;
    padding: 48px 0 72px;
    background: linear-gradient(180deg, #f7fafb 0, #ffffff 28%);
    color: var(--ev13-ink);
}
.ev13-activities * { box-sizing: border-box; }
.ev13-activities .container { max-width: 1320px; }
.ev13-activities a { transition: .2s ease; }

.ev13-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 36px;
    margin-bottom: 22px;
    border: 1px solid var(--ev13-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 54px rgba(19, 42, 52, .08);
    text-align: start;
}
.ev13-hero::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 5px;
    background: var(--ev13-red);
}
.ev13-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    inset-block-start: -150px;
    inset-inline-end: -70px;
    background: rgba(215, 25, 32, .045);
    pointer-events: none;
}
.ev13-hero > div:first-child { max-width: 760px; position: relative; z-index: 1; }
.ev13-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ev13-soft-red);
    color: var(--ev13-red);
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .02em;
}
.ev13-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(2rem, 3.7vw, 3.2rem);
    line-height: 1.12;
    color: var(--ev13-ink);
}
.ev13-hero p { margin: 0; color: var(--ev13-muted); font-size: 1.02rem; line-height: 1.75; }
.ev13-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }

.ev13-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 17px;
    border: 1px solid var(--ev13-line);
    border-radius: 12px;
    background: #fff;
    color: var(--ev13-ink);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.ev13-btn:hover { transform: translateY(-1px); border-color: #cbd7dc; color: var(--ev13-red); }
.ev13-btn-primary { background: var(--ev13-red); border-color: var(--ev13-red); color: #fff; }
.ev13-btn-primary:hover { background: var(--ev13-red-dark); border-color: var(--ev13-red-dark); color: #fff; }

.ev13-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(150px, 1fr)) minmax(145px, auto) auto;
    gap: 10px;
    align-items: center;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid var(--ev13-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(19, 42, 52, .04);
}
.ev13-filter > * { min-width: 0; }
.ev13-filter select,
.ev13-search-field {
    width: 100%;
    height: 46px;
    border: 1px solid var(--ev13-line);
    border-radius: 11px;
    background: #fff;
}
.ev13-filter select {
    padding-inline: 12px 34px;
    color: var(--ev13-ink);
    outline: none;
}
.ev13-filter select:focus,
.ev13-search-field:focus-within { border-color: rgba(215,25,32,.55); box-shadow: 0 0 0 3px rgba(215,25,32,.08); }
.ev13-search-field { display: flex; align-items: center; gap: 10px; padding: 0 13px; }
.ev13-search-field i { flex: 0 0 auto; color: #8ca0aa; }
.ev13-search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ev13-ink); }
.ev13-search-field input::placeholder { color: #93a3aa; }
.ev13-featured-toggle { height: 46px; margin: 0; display: flex; align-items: stretch; cursor: pointer; }
.ev13-featured-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ev13-featured-toggle span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid var(--ev13-line);
    border-radius: 11px;
    color: var(--ev13-muted);
    font-weight: 800;
    white-space: nowrap;
}
.ev13-featured-toggle input:checked + span { color: #765800; background: #fff8d9; border-color: #f0d468; }
.ev13-filter > .ev13-btn { height: 46px; }
.ev13-clear { grid-column: 1 / -1; justify-self: end; color: var(--ev13-muted); font-weight: 700; text-decoration: none; padding: 2px 4px; }

.ev13-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0 24px;
    padding: 10px 12px;
    border: 1px solid var(--ev13-line);
    border-radius: 14px;
    background: #fff;
}
.ev13-view-switch { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--ev13-soft); }
.ev13-view-switch a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ev13-muted);
    font-weight: 800;
    text-decoration: none;
}
.ev13-view-switch a:hover { color: var(--ev13-red); background: #fff; }
.ev13-view-switch a.is-active { color: #fff; background: var(--ev13-ink); box-shadow: 0 4px 12px rgba(19,42,52,.14); }
.ev13-feed-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev13-feed-links a { padding: 6px 9px; border-radius: 8px; background: var(--ev13-soft); color: var(--ev13-muted); font-size: .78rem; font-weight: 700; text-decoration: none; }
.ev13-feed-links a:hover { color: var(--ev13-red); }

.ev13-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ev13-card { position: relative; overflow: hidden; border: 1px solid var(--ev13-line); border-radius: 20px; background: #fff; box-shadow: 0 10px 36px rgba(19,42,52,.06); transition: .24s ease; }
.ev13-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(19,42,52,.10); }
.ev13-card.is-featured { border-color: #ead486; box-shadow: 0 12px 36px rgba(180,145,20,.09); }
.ev13-card-media { height: 220px; display: block; position: relative; overflow: hidden; background: #edf2f4; }
.ev13-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ev13-card:hover .ev13-card-media img { transform: scale(1.035); }
.ev13-time-state,.ev13-featured-badge { position: absolute; top: 14px; padding: 7px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; backdrop-filter: blur(8px); }
.ev13-time-state { inset-inline-start: 14px; background: rgba(255,255,255,.93); color: var(--ev13-ink); }
.ev13-time-ongoing { background: #e9fff1; color: #13733a; }
.ev13-time-past { background: rgba(19,42,52,.84); color: #fff; }
.ev13-featured-badge { inset-inline-end: 14px; background: #fff3b9; color: #7b5b00; }
.ev13-card-body { padding: 21px; text-align: start; }
.ev13-card-taxonomy { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.ev13-card-taxonomy span { padding: 5px 8px; border-radius: 999px; background: var(--ev13-soft); color: #59717c; font-size: .72rem; font-weight: 800; }
.ev13-card h2 { margin: 0 0 10px; font-size: 1.22rem; line-height: 1.42; }
.ev13-card h2 a { color: var(--ev13-ink); text-decoration: none; }
.ev13-card h2 a:hover { color: var(--ev13-red); }
.ev13-card p { min-height: 48px; margin: 0; color: var(--ev13-muted); font-size: .92rem; line-height: 1.68; }
.ev13-card-meta { margin: 15px 0; display: grid; gap: 7px; }
.ev13-card-meta div { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 7px; align-items: flex-start; }
.ev13-card-meta dt,.ev13-card-meta dd { margin: 0; }
.ev13-card-meta dt { color: var(--ev13-red); }
.ev13-card-meta dd { color: #536a75; font-size: .84rem; }
.ev13-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--ev13-line); }
.ev13-card-footer > a { color: var(--ev13-red); font-weight: 800; text-decoration: none; }
.ev13-registration-open { color: #14783d; font-size: .76rem; font-weight: 800; }
.ev13-registration-open i { font-size: .5rem; }
.ev13-results.is-list { grid-template-columns: 1fr; }
.ev13-results.is-list .ev13-card { display: grid; grid-template-columns: 300px minmax(0,1fr); }
.ev13-results.is-list .ev13-card-media { height: 100%; min-height: 250px; }
.ev13-results.is-list .ev13-card p { min-height: auto; }

.ev13-empty { grid-column: 1/-1; padding: 58px 24px; text-align: center; border: 1px dashed #cdd9de; border-radius: 20px; background: var(--ev13-soft); }
.ev13-empty i { font-size: 2.4rem; color: #9aadb5; }
.ev13-empty h2 { margin: 14px 0 6px; color: var(--ev13-ink); font-size: 1.35rem; }
.ev13-empty p { margin: 0; color: var(--ev13-muted); }
.ev13-pagination { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ev13-pagination a,.ev13-pagination span { padding: 9px 13px; border: 1px solid var(--ev13-line); border-radius: 10px; background: #fff; color: var(--ev13-ink); text-decoration: none; }
.ev13-pagination span { color: var(--ev13-muted); }

.ev13-calendar { width: 100%; overflow: hidden; border: 1px solid var(--ev13-line); border-radius: 20px; background: #fff; box-shadow: 0 12px 38px rgba(19,42,52,.06); }
.ev13-calendar > header { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--ev13-line); background: #fff; }
.ev13-calendar > header h2 { margin: 0; text-align: center; color: var(--ev13-ink); font-size: 1.3rem; }
.ev13-calendar > header a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--ev13-soft); color: var(--ev13-ink); text-decoration: none; }
.ev13-calendar > header a:hover { background: var(--ev13-red); color: #fff; }
.ev13-weekdays,.ev13-calendar-grid { display: grid !important; grid-template-columns: repeat(7, minmax(0, 1fr)) !important; width: 100%; }
.ev13-weekdays { border-bottom: 1px solid var(--ev13-line); background: #fbfcfd; }
.ev13-weekdays span { min-width: 0; padding: 11px 6px; text-align: center; color: #70858f; font-size: .76rem; font-weight: 800; }
.ev13-calendar-day { min-width: 0; min-height: 132px; padding: 9px; border-inline-end: 1px solid var(--ev13-line); border-bottom: 1px solid var(--ev13-line); background: #fff; text-align: start; }
.ev13-calendar-day:nth-child(7n) { border-inline-end: 0; }
.ev13-calendar-day.is-muted { background: #fafbfc; color: #a6b3b9; }
.ev13-calendar-day.is-today { box-shadow: inset 0 0 0 2px rgba(215,25,32,.12); }
.ev13-calendar-day.is-today > b { background: var(--ev13-red); color: #fff; }
.ev13-calendar-day > b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: .82rem; }
.ev13-day-events { display: grid; gap: 5px; margin-top: 6px; }
.ev13-day-events a { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 5px; padding: 6px 7px; border-radius: 7px; background: #eef5f7; color: #24404b; text-decoration: none; font-size: .72rem; line-height: 1.3; }
.ev13-day-events a:hover { background: #e1eef2; }
.ev13-day-events a.is-featured { background: #fff6cf; }
.ev13-day-events time { color: var(--ev13-red); font-weight: 800; }
.ev13-day-events span { overflow: hidden; text-overflow: ellipsis; }

.ev13-categories { margin-top: 42px; padding: 27px 24px 4px; border-top: 1px solid var(--ev13-line); text-align: start; }
.ev13-categories h2 { margin: 0 0 14px; color: var(--ev13-ink); font-size: 1.32rem; }
.ev13-categories > div { display: flex; gap: 9px; flex-wrap: wrap; }
.ev13-categories a { padding: 8px 12px; border-radius: 999px; background: var(--ev13-soft); color: #4f6873; font-size: .84rem; font-weight: 700; text-decoration: none; }
.ev13-categories a:hover { background: var(--ev13-soft-red); color: var(--ev13-red); }

html[dir="rtl"] .ev13-activities { direction: rtl; }
html[dir="rtl"] .ev13-hero-actions { justify-content: flex-start; }
html[dir="rtl"] .ev13-card-footer .fa-arrow-right { transform: rotate(180deg); }
html[dir="rtl"] .ev13-calendar > header a:first-child .fa-chevron-left,
html[dir="rtl"] .ev13-calendar > header a:last-child .fa-chevron-right { transform: rotate(180deg); }

@media (max-width: 1199px) {
    .ev13-filter { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .ev13-search-field { grid-column: span 2; }
    .ev13-filter > .ev13-btn { width: 100%; }
    .ev13-results { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 991px) {
    .ev13-hero { align-items: flex-start; flex-direction: column; }
    .ev13-hero-actions { justify-content: flex-start; }
    .ev13-filter { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .ev13-search-field { grid-column: 1/-1; }
}
@media (max-width: 767px) {
    .ev13-activities { padding: 26px 0 52px; }
    .ev13-activities .container { padding-inline: 16px; }
    .ev13-hero { padding: 24px 22px; border-radius: 18px; }
    .ev13-hero h1 { font-size: 2rem; }
    .ev13-hero-actions { width: 100%; }
    .ev13-hero-actions .ev13-btn { flex: 1 1 auto; }
    .ev13-filter { grid-template-columns: 1fr; padding: 13px; }
    .ev13-search-field { grid-column: auto; }
    .ev13-filter > .ev13-btn { width: 100%; }
    .ev13-clear { justify-self: start; }
    .ev13-toolbar { align-items: stretch; flex-direction: column; }
    .ev13-view-switch { width: 100%; }
    .ev13-view-switch a { flex: 1 1 0; justify-content: center; }
    .ev13-feed-links { justify-content: flex-start; }
    .ev13-results { grid-template-columns: 1fr; }
    .ev13-results.is-list .ev13-card { grid-template-columns: 1fr; }
    .ev13-results.is-list .ev13-card-media { min-height: 210px; }
    .ev13-calendar { overflow-x: auto; }
    .ev13-weekdays,.ev13-calendar-grid { min-width: 760px; }
    .ev13-categories { padding-inline: 0; }
}
