/* Estilos para a lista de eventos (widget e shortcode) */
.cde-lista-eventos {
    margin: 1em 0;
}

.cde-lista-eventos h4 {
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
}

.cde-lista-eventos ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cde-lista-eventos li {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.cde-lista-eventos li strong {
    font-size: 1em; /* Fonte do título do evento no widget */
    display: block;
    margin-bottom: 5px;
}

.cde-lista-eventos li strong a {
    text-decoration: none;
    color: #333;
}

.cde-lista-eventos li strong a:hover {
    color: #d57538;
}

.cde-lista-eventos li span {
    display: block;
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
}

.cde-lista-eventos li .fa-solid {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Estilos do Widget com Abas */
.cde-tabs {
    margin-bottom: 20px;
}

.cde-tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
}

.cde-tab-button {
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.cde-tab-button.active {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
}

.cde-tab-content {
    display: none;
}

.cde-tab-content.active {
    display: block;
}

.cde-widget-button {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #d57538;
    color: #d57538;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cde-widget-button:hover {
    background-color: #d57538;
    color: #fff;
}


/* Estilos para o grid de eventos na página do plugin */
.cde-grid-eventos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2em;
}

@media (max-width: 992px) {
    .cde-grid-eventos {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cde-grid-eventos {
        grid-template-columns: repeat(1, 1fr);
    }
}

.cde-item-evento {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cde-item-evento:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.cde-imagem-evento {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #eee;
    display: block;
}

.cde-imagem-evento.cde-no-image {
    background-color: #f0f0f0;
}

.cde-conteudo-evento {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cde-conteudo-evento h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.25em;
    line-height: 1.3;
}

.cde-conteudo-evento a {
    text-decoration: none;
    color: inherit;
}

.cde-conteudo-evento a:hover {
    text-decoration: underline;
    color: #d57538;
}

.cde-conteudo-evento p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #555;
}

.cde-conteudo-evento .fa-solid {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 5px;
    color: #0073aa;
}

/* Estilos para a paginação */
.cde-paginacao {
    text-align: center;
    margin-top: 20px;
}

.cde-paginacao .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #0073aa;
    border-radius: 5px;
}

.cde-paginacao .page-numbers.current,
.cde-paginacao .page-numbers:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}