.oa-agenda-formacao {
    color: #171717;
}

.oa-agenda-formacao *,
.oa-agenda-formacao *::before,
.oa-agenda-formacao *::after {
    box-sizing: border-box;
}

.oa-agenda-formacao__title {
    margin: 0 0 28px;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.oa-agenda-formacao__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 12px;
    background: #f7f7f7;
}

.oa-agenda-formacao__toolbar strong {
    flex: 1;
    font-family: Montserrat, Cinzel, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}

.oa-agenda-formacao__toolbar button {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    background: #fff;
    color: #171717;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.oa-agenda-formacao__toolbar [data-oa-agenda-today] {
    padding: 0 16px;
}

.oa-agenda-formacao__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.oa-agenda-formacao__calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    background: #fff;
}

.oa-agenda-formacao__weekday {
    padding: 13px 10px;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background: #f7f7f7;
    color: #666;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.oa-agenda-formacao__weekday:nth-child(7n) {
    border-right: 0;
}

.oa-agenda-formacao__day {
    display: grid;
    min-height: 128px;
    align-content: start;
    gap: 8px;
    padding: 10px;
    border: 0;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.oa-agenda-formacao__day:nth-child(7n) {
    border-right: 0;
}

.oa-agenda-formacao__day--blank {
    cursor: default;
    background: #fafafa;
}

.oa-agenda-formacao__day-number {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

.oa-agenda-formacao__day.is-today .oa-agenda-formacao__day-number {
    background: #8d1518;
    color: #fff;
}

.oa-agenda-formacao__day.is-selected {
    box-shadow: inset 0 0 0 2px #8d1518;
}

.oa-agenda-formacao__day.has-events {
    background: #fffdfd;
}

.oa-agenda-formacao__day-events {
    display: grid;
    gap: 4px;
}

.oa-agenda-formacao__day-events span {
    overflow: hidden;
    padding: 4px 6px;
    border-radius: 6px;
    background: #f1e8e8;
    color: #8d1518;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oa-agenda-formacao__panel {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 16px;
}

.oa-agenda-formacao__panel h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 500;
}

.oa-agenda-formacao-card {
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.oa-agenda-formacao-card__link {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    color: inherit;
    text-decoration: none;
}

.oa-agenda-formacao-card img {
    display: block;
    width: 96px;
    height: 120px;
    object-fit: cover;
}

.oa-agenda-formacao-card__body {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.oa-agenda-formacao-card h4 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
}

.oa-agenda-formacao-card__meta,
.oa-agenda-formacao-card__summary,
.oa-agenda-formacao-card__tags {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
}

.oa-agenda-formacao-card__tags {
    color: #8d1518;
    font-weight: 700;
}

.oa-agenda-formacao-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 14px;
}

.oa-agenda-formacao-card__actions a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 6px 9px;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    background: #f7f7f7;
    color: #171717;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.oa-agenda-formacao-card__actions a:hover {
    border-color: #8d1518;
    color: #8d1518;
}

.oa-agenda-formacao__empty {
    margin: 0;
    color: #666;
}

@media (max-width: 980px) {
    .oa-agenda-formacao__layout {
        grid-template-columns: 1fr;
    }

    .oa-agenda-formacao__panel {
        position: static;
    }
}

@media (max-width: 700px) {
    .oa-agenda-formacao__toolbar {
        flex-wrap: wrap;
    }

    .oa-agenda-formacao__toolbar strong {
        flex: 1 1 100%;
        order: -1;
    }

    .oa-agenda-formacao__calendar {
        display: block;
        border: 0;
        background: transparent;
    }

    .oa-agenda-formacao__weekday,
    .oa-agenda-formacao__day--blank {
        display: none;
    }

    .oa-agenda-formacao__day {
        min-height: 0;
        margin-bottom: 8px;
        border: 1px solid #e1e1e1;
        border-radius: 10px;
    }

    .oa-agenda-formacao__day:not(.has-events) {
        display: none;
    }
}
