/* News Block (Home/List) Styles */

.noticias-container {
    display: flex;
    gap: 20px;
}

.noticias-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.noticia-item {
    display: flex;
    gap: 15px;
    padding: 0;
    background-color: transparent;
}

.noticia-item-container {
    position: relative;
}

.noticia-item > a > img {
    width: 320px !important;
    height: 180px !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
}

.noticia-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: 600;
}

.noticia-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.noticia-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0 0 5px;
    line-height: 1.3;
}

.noticia-title a {
    color: inherit;
    text-decoration: none;
}

.noticia-title a:hover {
    color: #FF5100;
}

.noticia-excerpt {
    font-size: 14px;
    color: #555;
    margin: 0 0 5px;
    line-height: 1.4;
}

.noticia-date {
    font-size: 14px;
    color: #595959;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mobile Version */
.mobile-latest-posts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 5px 0;
}

.mobile-latest-post-item {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.mobile-latest-post-item:last-child {
    border-bottom: none;
}

.mobile-latest-post-item > a > img {
    width: 130px;
    height: 76px;
    object-fit: cover;
    border-radius: 4px;
}

.mobile-latest-post-item h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.mobile-latest-post-item h3 a {
    text-decoration: none;
    color: inherit;
}

.mobile-latest-post-item p {
    margin: 5px 0;
    font-size: 14px;
    color: #575757;
}

/* Responsive — Tablet */
@media (max-width: 820px) {
    .noticias-container {
        flex-direction: column;
    }
}

/* Responsive — Mobile */
@media (max-width: 640px) {
    .noticias-container {
        gap: 0;
    }

    .noticias-column {
        gap: 0;
    }

    .noticia-item {
        flex-direction: row;
        gap: 12px;
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .noticia-item:last-child {
        border-bottom: none;
    }

    .noticia-item-container {
        flex-shrink: 0;
        width: 110px;
    }

    .noticia-item > a > img {
        width: 110px !important;
        height: 62px !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 4px !important;
    }

    .noticia-label {
        display: none;
    }

    .noticia-content {
        min-width: 0;
    }

    .noticia-title {
        font-size: 14px !important;
        font-weight: 700;
        margin: 0 0 4px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .noticia-excerpt {
        display: none;
    }

    .noticia-item .hatch-post-meta {
        font-size: 10px;
        margin: 4px 0 0;
    }

    .noticia-item:nth-child(n+5) {
        display: none !important; /* Muestra solo 4 noticias en mobile */
    }
}
