/* Inoculand_Auditoria_Ejecutiva_2026-03-09
   Homepage Blog Cards
   Replaces: .latest-post-section / .featured-posts-carousel
*/

/* Section wrapper */
#latest-post-section.blog-cards-section {
    padding: 60px 0;
    background: #f7f8f6;
}

/* Section header */
#latest-post-section .blog-cards-header {
    margin-bottom: 28px;
}
#latest-post-section .blog-cards-heading {
    font-family: Lato, Helvetica Neue, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}
#latest-post-section .blog-cards-subheading {
    font-family: Lato, sans-serif;
    font-size: 14px;
    color: #777;
    margin: 0;
}

/* Grid */
#latest-post-section .blog-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    align-items: start;
}

/* Card */
#latest-post-section .blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
    display: flex !important;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    float: none !important;
    width: auto !important;
}
#latest-post-section .blog-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Card link (image + title) */
#latest-post-section .blog-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

/* Image */
#latest-post-section .blog-card__img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
    flex-shrink: 0;
}
#latest-post-section .blog-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    aspect-ratio: unset !important;
    transition: transform 0.4s ease;
}
#latest-post-section .blog-card:hover .blog-card__img {
    transform: scale(1.04);
}

/* Badge */
#latest-post-section .blog-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: Lato, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.3;
    color: #fff;
    z-index: 2;
}
#latest-post-section .badge--red   { background: #dc2626; }
#latest-post-section .badge--amber { background: #d97706; }
#latest-post-section .badge--green { background: #5ba847; }

/* Title area (inside link) */
#latest-post-section .blog-card__title-wrap {
    padding: 18px 20px 0;
}
#latest-post-section .blog-card__cat {
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #5ba847;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}
#latest-post-section .blog-card__title {
    font-family: Lato, Helvetica Neue, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.42;
    margin: 0;
    color: #1a1a1a;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
#latest-post-section .blog-card:hover .blog-card__title {
    color: #5ba847;
}

/* Body (below link) */
#latest-post-section .blog-card__body {
    padding: 10px 20px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
#latest-post-section .blog-card__excerpt {
    font-family: Lato, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta (author + date) */
#latest-post-section .blog-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: auto;
}
#latest-post-section .blog-card__author {
    display: flex;
    align-items: center;
    gap: 6px;
}
#latest-post-section .blog-card__author-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}
#latest-post-section .blog-card__author-link:hover .blog-card__author-name {
    color: #5ba847;
}
#latest-post-section .blog-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5ba847, #3d7a30);
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: Lato, sans-serif;
    flex-shrink: 0;
    line-height: 1;
}
#latest-post-section .blog-card__author-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
#latest-post-section .blog-card__author-name {
    font-family: Lato, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    transition: color 0.2s;
}
#latest-post-section .blog-card__author-cred {
    font-family: Lato, sans-serif;
    font-size: 11px;
    color: #888;
}
#latest-post-section .blog-card__date-wrap {
    text-align: right;
    line-height: 1.3;
}
#latest-post-section .blog-card__date {
    font-family: Lato, sans-serif;
    font-size: 12px;
    color: #999;
    display: block;
}
#latest-post-section .blog-card__read {
    font-family: Lato, sans-serif;
    font-size: 11px;
    color: #aaa;
    display: block;
}

/* CTA */
#latest-post-section .blog-cards-cta {
    text-align: center;
    margin-top: 48px;
}
#latest-post-section .blog-cards-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Lato, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #5ba847;
    background: transparent;
    border: 2px solid #5ba847;
    border-radius: 6px;
    padding: 12px 32px;
    text-decoration: none;
    transition: all 0.25s ease;
}
#latest-post-section .blog-cards-cta__btn:hover {
    color: #fff;
    background: #5ba847;
}

/* Responsive */
@media (max-width: 900px) {
    #latest-post-section .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 580px) {
    #latest-post-section .blog-cards-grid {
        grid-template-columns: 1fr !important;
    }
    #latest-post-section .blog-cards-heading {
        font-size: 22px;
    }
    #latest-post-section .blog-card__title {
        font-size: 18px;
        line-height: 1.4;
    }
    #latest-post-section .blog-card__excerpt {
        font-size: 15px;
        line-height: 1.65;
    }
}
