/* 
 * Custom CSS for News Pages
 * Ajustes para garantizar que las imágenes se muestren correctamente
 */

/* Asegurar que las imágenes de noticias recientes mantengan su tamaño */
.recent-thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    width: 78px;
    height: 79px;
    flex-shrink: 0;
}

.recent-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Asegurar que las imágenes destacadas mantengan proporción */
.news-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.news-thumb img {
    width: 100% !important;
    height: 380px !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 991px) {
    .news-thumb img {
        height: 320px !important;
    }
}

@media (max-width: 767px) {
    .news-thumb img {
        height: 280px !important;
    }
}

/* Asegurar que los enlaces de las imágenes sean bloque completo */
.news-thumb a,
.recent-thumb a {
    display: block !important;
    width: 100%;
    height: 100%;
}

.news-thumb a img,
.recent-thumb a img {
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.news-thumb a:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

.recent-thumb a:hover img {
    transform: scale(1.08);
}

/* Para la imagen destacada en news-details con background */
.post-featured-thumb.bg-cover {
    min-height: 430px;
    background-size: cover;
    background-position: center;
}

/* Contenedor de noticias recientes - evitar deformación */
.recent-items {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-items .recent-thumb {
    flex-shrink: 0;
}

.recent-items .recent-content {
    flex: 1;
    min-width: 0; /* Prevenir overflow */
}

/* Footer - Noticias recientes */
.recent-post-items .thumb img {
    width: 78px;
    height: 79px;
    object-fit: cover;
    display: block;
}

.recent-post-items {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.recent-post-items .thumb {
    flex-shrink: 0;
}

.recent-post-items .content {
    flex: 1;
    min-width: 0;
}
