/* Estilos para o grid de categorias */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 30px;
    margin-bottom: 40px;
}

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

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
}

.grid-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.grid-post-image {
    position: relative;
    overflow: hidden;
}

.grid-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-post:hover .grid-post-image img {
    transform: scale(1.05);
}

.grid-post-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.grid-post-category a {
    color: #fff;
    text-decoration: none;
}

.grid-post-content {
    padding: 15px;
}

.grid-post-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.grid-post-title a {
    color: #333;
    text-decoration: none;
}

.grid-post-title a:hover {
    color: #0066cc;
}

.grid-post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
}

.post-author, .post-comments {
    display: inline-block;
}

.post-comments {
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Estilos para a paginação */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination ul {
    display: inline-flex;
    flex-direction: row; /* Garante que os itens fiquem em linha */
    flex-wrap: wrap; /* Permite quebra de linha em telas muito pequenas */
    justify-content: center; /* Centraliza os itens */
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
}

.pagination ul li {
    margin: 0;
    padding: 0;
    display: inline-block; /* Garante que os itens fiquem em linha */
}

.pagination ul li a,
.pagination ul li span {
    display: block;
    padding: 8px 16px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-right: none;
    transition: all 0.3s ease;
}

.pagination ul li:last-child a,
.pagination ul li:last-child span {
    border-right: 1px solid #ddd;
}

.pagination ul li a:hover {
    background-color: #f5f5f5;
}

.pagination ul li span.current {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Estilos para o cabeçalho da página */
.page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #333;
}

.archive-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Ajustes responsivos adicionais */
@media (max-width: 768px) {
    .grid-post-title {
        font-size: 16px;
    }
    
    .grid-post-image img {
        height: 180px;
    }
    
    .page-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .grid-post-image img {
        height: 160px;
    }
    
    .grid-post-content {
        padding: 12px;
    }
    
    .pagination ul li a,
    .pagination ul li span {
        padding: 6px 12px;
        font-size: 14px;
    }
}
