.agenda-widget,
.agenda-widget * {
    box-sizing: border-box;
}

.agenda-widget {
    height: 100%;
    font-family: 'Raleway', 'Rawline', Arial, sans-serif;
    color: #222;
}

.agenda-widget a {
    color: inherit;
    text-decoration: none;
}

.agenda-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 24px 26px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 4px rgba(16, 38, 78, 0.04);
}

.agenda-title {
    margin: 0 0 14px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #2c4073;
}

/* Filtros por data */

.agenda-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.agenda-date-filter {
    padding: 4px 11px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    color: #2c4073;
    background: #e6e9f6;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.agenda-date-filter:hover {
    background: #d5daf0;
}

.agenda-date-filter.active {
    color: #fff;
    background: #3a4a9f;
}

.agenda-date-filter:focus-visible {
    outline: 3px solid rgba(58, 74, 159, 0.3);
    outline-offset: 2px;
}

.agenda-body {
    flex: 1;
}

/* Evento em destaque */

.agenda-featured {
    display: block;
}

.agenda-featured::after,
.agenda-list-item::after {
    content: "";
    display: block;
    width: 84%;
    height: 1px;
    margin-top: 12px;
    background: #dcdfe6;
}

.agenda-featured-media {
    overflow: hidden;
    aspect-ratio: 281 / 154;
    background: #eef1f6;
    border-radius: 2px;
}

.agenda-featured-image,
.agenda-thumb-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agenda-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #2c4073, #3a4a9f);
}

.agenda-period {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    color: #666;
}

.agenda-featured-title {
    margin: 2px 0 0;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
}

.agenda-featured:hover .agenda-featured-title,
.agenda-list-item:hover .agenda-list-event-title {
    color: #3a4a9f;
}

/* Lista dos demais eventos */

.agenda-list-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding-top: 12px;
}

.agenda-list-item::after {
    grid-column: 1 / -1;
}

.agenda-list-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #eef1f6;
    border-radius: 2px;
}

.agenda-list-event-title {
    margin: 2px 0 0;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1a1a;
}

.agenda-list-info .agenda-period {
    margin-top: 0;
    font-size: 0.7rem;
}

/* Rodape */

.agenda-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.agenda-all-button {
    padding: 8px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff !important;
    background: #3a4a9f;
    border-radius: 999px;
    transition: background 160ms ease;
}

.agenda-all-button:hover {
    background: #2c4073;
}

/* tablet e mobile: card em largura total */
@media (max-width: 991px) {
    .agenda-card {
        padding: 20px 18px 22px;
    }

    .agenda-title {
        font-size: 1.4rem;
    }
}

/* Tablet: imagem e lista lado a lado para aproveitar a largura */
@media (min-width: 600px) and (max-width: 991px) {
    .agenda-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }
}
