/* ==========================================================================
   listing.css — Listagens / Grids / Categorias
   EXTRAÍDO do style.css: seção 6 (posts grid) + seção 12 (grid A-Z)
   ========================================================================== */

/* ==========================================================================
   6. GRID DE POSTS (Listagem Padrão Blog)
   ========================================================================== */
.posts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    margin: 40px auto;
    padding: 0 10px;
    max-width: 1200px;
}

.column-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--cor-primaria);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--cor-borda);
    text-align: center;
}

.posts-columns { display: flex; flex-direction: column; gap: 20px; }

.post-card {
    background: #fff;
    border: 1px solid var(--cor-borda);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0, 0.05);
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.15);
    border-color: var(--cor-destaque);
}

.post-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 10px;
}

.post-thumbnail {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    margin-right: 15px;
}

.post-content { display: flex; flex-direction: column; justify-content: center; }

.post-content h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.post-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Responsivo do grid padrão */
@media (max-width: 767px) {
    .posts-section { grid-template-columns: 1fr; }
}

/* ==========================================================================
   12. ESTILOS DO GRID A-Z (NOVO CORRIGIDO)
   ========================================================================== */
/* --- MENU ALFABÉTICO COMPACTO --- */
.az-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 15px auto;
    max-width: 100%;
}

.az-nav a {
    text-decoration: none;
    color: #333;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    padding: 3px 8px;
    min-width: 25px;
    text-align: center;
    transition: all 0.2s ease;
}

.az-nav a:hover {
    background-color: #2c5e2e;
    color: #fff;
    border-color: #2c5e2e;
    transform: translateY(-1px);
}

/* Cabeçalho da Categoria */
.category-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    margin-bottom: 40px;
}

.category-header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category-header p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Divisor de Letra */
.letter-divider {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    color: var(--cor-primaria);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* O Grid A-Z / Grid normal (mesma base) */
.oils-grid,
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

/* O Cartão */
.article-card,
.art-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover,
.art-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Imagem 16:9 */
.card-image-link,
.card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-image-link img,
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 0;
}

/* Conteúdo Centralizado */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    align-items: center;
}

/* Remove sublinhado dos links dentro do card */
.article-card a,
.art-card a {
    text-decoration: none !important;
    color: inherit;
}

/* IMPORTANT: no seu HTML corrigido, use h2 (não h3) para não pular heading */
.card-content h2,
.card-content h3 {
    margin: 0 0 10px 0;
    color: var(--cor-primaria);
    font-size: 1.2rem;
}

.read-more,
.btn-text {
    margin-top: auto;
    color: var(--cor-destaque);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
}

