/* ==========================================================================
   Latest Posts Block — Smith 2.0 (Insights podcast / blog modules)
   ========================================================================== */

.latest-posts {
    background-color: var(--color-white, #fff);
    padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
}

.latest-posts__inner {
    max-width: 1280px;
    margin-inline: auto;
    width: 100%;
}

.latest-posts__head {
    max-width: 820px;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.latest-posts__eyebrow {
    margin: 0;
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-surfie-green, #0f7e7c);
}

.latest-posts__heading {
    margin: 0;
    font-family: var(--font-family-heading, "Hoefler Text", Georgia, serif);
    font-weight: 400; /* 400: Smith Style Guide - Hoefler Text is Regular. See docs/DECISIONS.md D8 */
    font-size: 3.25rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-blue-zodiac, #0e1b44);
}

.latest-posts__intro {
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--color-blue-zodiac, #0e1b44);
}
.latest-posts__intro > * { margin: 0; }

/* ---- Grid of cards ------------------------------------------------------- */
.latest-posts__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.latest-posts__card {
    display: flex;
    /* BugZap #130: cards come off the beige panel - transparent per
       Christine's 08-07 note ("these shouldn't be on beige background"). */
    background-color: transparent;
}

.latest-posts__card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.latest-posts__thumb {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #e7e3db;
}
.latest-posts__thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.latest-posts__card-link:hover .latest-posts__thumb-img { transform: scale(1.04); }
.latest-posts__thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e7e3db, #d7d2c8);
}

.latest-posts__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem;
}

.latest-posts__card-cat {
    margin: 0;
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-surfie-green, #0f7e7c);
}

.latest-posts__card-title {
    margin: 0;
    font-family: var(--font-family-heading, "Hoefler Text", Georgia, serif);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--color-blue-zodiac, #0e1b44);
}

.latest-posts__card-excerpt {
    margin: 0;
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-blue-zodiac, #0e1b44);
}

.latest-posts__card-more {
    margin-top: auto;
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-weight: 700;
    color: var(--color-surfie-green, #0f7e7c);
}

.latest-posts__empty {
    font-family: var(--font-family-base, "Barlow", sans-serif);
    color: var(--color-blue-zodiac, #0e1b44);
}

/* ---- CTA pill ------------------------------------------------------------ */
.latest-posts__actions {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}
.latest-posts__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 1.25rem;
    background-color: var(--color-accent-gold, #f0b200);
    border: 1px solid var(--color-accent-gold, #f0b200);
    color: var(--color-blue-zodiac, #0e1b44);
    font-family: var(--font-family-base, "Barlow", sans-serif);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 9999px;
    transition: filter 0.2s ease;
}
.latest-posts__button:hover,
.latest-posts__button:focus-visible { filter: brightness(0.93); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 991px) {
    .latest-posts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .latest-posts__grid { grid-template-columns: 1fr; }
}
