/* --- POST CARDS ENTRADAS --- */
.archive .loop,
.noticias .loop,
#novedades .loop {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 2rem;
    justify-content: flex-start;
    /* So last row aligns to start */
}

.post-card {
    max-width: 500px;
    display: flex;
    flex-direction: column;
}

.post-card-link {
    position: relative;
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.destacada-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 65px;
    height: 65px;
    background-color: var(--color-dark-yellow);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    z-index: 10;
    pointer-events: none;
}

.destacada-badge img {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 22px;
    height: 22px;
    z-index: 11;
}

.post-card-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 2;
    /* Mobile: rectangular proportion */
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.post-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.post-card-link:hover .post-card-image {
    transform: scale(1.1);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    font-size: 1.5rem;
    color: #44596b;
    line-height: 1.3;
    margin: 0 0 1rem 0;
    font-weight: 600;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-card-link:hover .post-card-title {
    color: var(--color-dark-yellow);
    /* Matching theme hover color */
}

.post-card-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: auto 0 1rem 0;
    width: 100%;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.post-card-category {
    background-color: var(--color-green-medium);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: capitalize;
    font-weight: 600;
}

.post-card-date {
    color: #888;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Tablet / Desktop Grid Updates */
@media (min-width: 768px) {
    .post-card {
        width: calc(50% - 1rem);
        /* 2 columns */
    }

    .post-card-image-wrapper {
        aspect-ratio: 1 / 1;
        /* Square proportion */
    }
}

@media (min-width: 1024px) {
    .post-card {
        width: calc(33.333% - 1.34rem);
        /* 3 columns */
    }
}