.container-header {
    background: #f2637e;
    padding: 60px 0;
    text-align: center;
    color: white;
}

.content-header .title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.artigos-filters {
    display: flex;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    column-gap: 15px;
    row-gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

.filter-group label {
    font-size: 15px;
    font-weight: 700;
    color: #f2637e;
    margin-left: 2px;
}

.filter-group select,
.filter-group input {
    height: 45px;
    line-height: 45px;
    padding: 0 15px;
    border: 1px solid #f2637e;
    border-radius: 8px;
    font-size: 14px;
    background-color: white;
    color: #64748b;
    transition: all 0.3s ease;
    font-weight: 400;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.filter-group select {
    padding-right: 35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-group input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d35465' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='8'%3e%3c/circle%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'%3e%3c/line%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 18px;
    padding-left: 40px;
    padding-right: 15px;
}

.filter-group:first-child {
    flex: 0 0 100px;
    min-width: 100px;
}

.filter-group:nth-child(2) {
    flex: 1;
    min-width: 140px;
}

.filter-group:nth-child(3) {
    flex: 2;
    min-width: 200px;
}

.filter-group.search-group {
    flex: 1;
    min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #f2637e;
    box-shadow: 0 0 0 3px rgba(211, 84, 101, 0.1);
}

.filter-btn {
    background: #f2637e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 45px;
    padding: 0 25px;
    min-width: 100px;
    width: auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    background-color: #d25168;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.artigos-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.artigo-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.artigo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.artigo-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ano-badge {
    background: #f2637e;
    color: white;
}

.evento-badge {
    background: #00B6B5;
    color: white;
}

.premio-badge {
    background: #3792CC;
    color: white;
}

.artigo-title {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

.artigo-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.artigo-title a:hover {
    color: #f2637e;
}

.artigo-excerpt p {
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    text-align: justify;
}

.artigo-autores {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.autor-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e5e7eb;
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    border: none;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    color: white;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-align: center;
    line-height: 32px;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.autor-nome {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
    padding-right: 5px;
}

.no-articles {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    padding: 60px;
    background: white;
    border-radius: 12px;
    border: 1px solid #eee;
}

@media (max-width: 900px) {
    .artigos-filters {
        flex-direction: column;
        padding: 0;
        align-items: stretch;
        gap: 15px;
    }

    .filter-group,
    .filter-group:first-child,
    .filter-group:nth-child(2),
    .filter-group:nth-child(3),
    .filter-group.search-group {
        width: 100%;
        flex: none;
        min-width: 0;
    }

    .filter-btn {
        width: 100%;
        max-width: 100%;
        margin-top: 5px;
    }

    .artigo-card {
        padding: 20px;
    }

    .artigo-title {
        font-size: 1.3rem;
    }
}

/* --- Paginação Estilo Archive (Cor Rosa) --- */
.artigos-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Igual ao archive */
    margin-top: 50px;
    width: 90%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.artigos-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    /* Preenchimento igual ao archive */
    border: 1px solid #f2637e;
    /* Cor rosa, borda fina */
    border-radius: 5px;
    /* Borda levemente arredondada (5px) */
    color: #f2637e;
    /* Texto rosa */
    text-decoration: none;
    font-size: 1rem;
    font-weight: normal;
    transition: background-color 0.3s, color 0.3s;

    /* Removemos as propriedades antigas que forçavam quadrado */
    min-width: auto;
    height: auto;
}

.artigos-pagination .page-numbers.current,
.artigos-pagination .page-numbers:hover {
    background-color: #f2637e;
    color: white;
    border-color: #f2637e;
    font-weight: bold;
    /* Negrito no ativo */
}

.artigos-pagination .prev,
.artigos-pagination .next {
    font-weight: bold;
}

a.badge {
    text-decoration: none;
    transition: opacity 0.3s;
}

a.badge:hover {
    opacity: 0.85;
    color: white;
}

a.autor-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a.autor-link:hover {
    color: #f2637e;
    text-decoration: none;
}