/* ==========================================================================
   Página de Blog / Mentes Curiosas (Diseño Premium)
   ========================================================================== */

/* Fondo y contenedor principal */
.tacta-blog-wrapper {
    background-color: #FAFAFA;
    padding-top: 15px !important;
    /* Elimina el enorme espacio en blanco arriba */
    padding-bottom: 80px;
    min-height: 70vh;
}

/* Neutralizar padding nativo de Astra */
.tacta-blog-wrapper .ast-container {
    padding-top: 0 !important;
}

/* ==================================================
   Cabecera del Blog (Título centrado)
   ================================================== */
.blog-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    padding-top: 20px;
}

.blog-main-title {
    color: var(--tacta-blue);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

/* Línea naranja decorativa */
.blog-main-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background-color: var(--tacta-orange);
    margin: 15px auto 0;
    border-radius: 5px;
}

.blog-subtitle {
    color: #666;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ==================================================
   Lista de Artículos y Tarjeta Horizontal
   ================================================== */
.tacta-blog-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* Más aire visual entre cada artículo */
    max-width: 1000px;
    /* Tarjeta más ancha para formato escritorio */
    margin: 0 auto;
    padding: 0 20px;
}

.news-card-horizontal {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 320px;
    /* Obliga a la imagen a tener buena presencia */
}

.news-card-horizontal:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(229, 159, 85, 0.3);
    /* Tacta orange sutil */
}

/* Imagen lateral */
.news-img {
    width: 45%;
    background-color: var(--tacta-bg-cream);
    background-size: cover;
    background-position: center;
    display: block;
}

/* Textos de la tarjeta */
.news-content {
    width: 55%;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-tag {
    display: inline-block;
    background-color: var(--tacta-yellow-border);
    color: #333;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.news-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.news-content h3 a {
    color: var(--tacta-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.news-content h3 a:hover {
    color: var(--tacta-orange);
}

.news-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.btn-text-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--tacta-red);
    font-weight: bold;
    font-size: 1.05rem;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
    gap: 8px;
    margin-top: auto;
}

.btn-text-arrow:hover {
    gap: 15px;
    color: var(--tacta-pink);
}

/* ==================================================
   Paginación y Mensaje Vacío
   ================================================== */
.tacta-pagination {
    text-align: center;
    margin-top: 60px;
}

.tacta-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 12px;
    background: white;
    color: var(--tacta-blue);
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.tacta-pagination .page-numbers.current,
.tacta-pagination .page-numbers:hover {
    background: var(--tacta-blue);
    color: white;
}

.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.no-posts-message h3 {
    color: var(--tacta-blue);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* ==================================================
   Adaptación para Celulares
   ================================================== */
@media (max-width: 992px) {
    .blog-main-title {
        font-size: 2.2rem;
    }

    .news-card-horizontal {
        flex-direction: column;
        min-height: auto;
    }

    .news-img {
        width: 100%;
        min-height: 250px;
    }

    .news-content {
        width: 100%;
        padding: 30px 25px;
    }
}