/* ============================================================
   Blog listing page — blog/index.html
   Articles use blog.css instead.
   ============================================================ */

/* ── Blog tag / badge ───────────────────────────────────────── */
.blog-tag {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--r);
    background: var(--navy-tint);
    color: var(--navy);
    line-height: 1;
}

.blog-tag--gold {
    background: var(--gold-soft);
    color: var(--gold-deep);
}

.blog-tag--new {
    background: var(--gold-soft);
    color: var(--gold-deep);
}

/* ── Link resets (override global a:link/visited) ───────────── */
.blog-hero__link,
.blog-hero__link:link,
.blog-hero__link:visited,
.blog-hero__link:hover,
.blog-hero__link:active,
.blog-card__link,
.blog-card__link:link,
.blog-card__link:visited,
.blog-card__link:hover,
.blog-card__link:active {
    color: inherit;
    text-decoration: none;
}

/* ── Featured hero card ─────────────────────────────────────── */
.blog-hero {
    border-radius: var(--r);
    overflow: hidden;
    background: var(--cream);
    border: 1px solid var(--rule);
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.blog-hero:hover {
    box-shadow: var(--shadow-deep);
    transform: translateY(-3px);
    border-color: var(--navy-soft);
}

.blog-hero:active {
    /* !important: beats the scroll-reveal entrance rule's higher specificity
       (html.js .reveal.is-visible), which otherwise forces transform: none */
    transform: scale(0.99) !important;
    box-shadow: var(--shadow-soft);
}

.blog-hero__link {
    display: grid;
    grid-template-columns: 3fr 2fr;
}

.blog-hero__media {
    overflow: hidden;
}

.blog-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.blog-hero:hover .blog-hero__img {
    transform: scale(1.04);
}

.blog-hero__body {
    padding: 36px 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

main .blog-hero__title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--navy-ink);
    margin: 0;
    line-height: 1.2;
}

.blog-hero__excerpt {
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink-mute);
    line-height: 1.65;
    margin: 0;
}

.blog-hero__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
}

.blog-hero__read-time {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.blog-hero__cta {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    display: inline-block;
    transition: transform 0.2s ease;
}

.blog-hero:hover .blog-hero__cta {
    transform: translateX(4px);
}

/* ── Blog grid ──────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ── Individual grid card ───────────────────────────────────── */
.blog-card {
    border-radius: var(--r);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease,
        border-color 0.25s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-deep);
    transform: translateY(-3px);
    border-color: var(--navy-soft);
}

.blog-card:active {
    /* !important: beats the scroll-reveal entrance rule's higher specificity
       (html.js .reveal.is-visible), which otherwise forces transform: none */
    transform: scale(0.98) !important;
    box-shadow: var(--shadow-soft);
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.blog-card:hover .blog-card__img {
    transform: scale(1.04);
}

.blog-card__body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

main .blog-card__title {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--navy-ink);
    margin: 0;
    line-height: 1.3;
}

.blog-card__excerpt {
    font-family: var(--sans);
    font-size: 0.875rem;
    color: var(--ink-mute);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
}

.blog-card__read-time {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.blog-card__arrow {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    opacity: 0.4;
    display: inline-block;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.blog-card:hover .blog-card__arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* ── Newsletter section ─────────────────────────────────────── */
.blog-newsletter .eyebrow {
    color: var(--gold);
}

main .blog-newsletter-heading {
    color: #fff;
    margin: 8px 0 12px;
}

.blog-newsletter .lede {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 48px;
}

.blog-newsletter-channels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 780px;
    align-items: start;
}

.blog-newsletter-channel-label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    display: block;
    margin-bottom: 18px;
}

.blog-newsletter-channel .form-control {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r);
    color: #fff;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 0.88rem;
    margin-bottom: 10px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.blog-newsletter-channel .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.blog-newsletter-channel .form-control:focus {
    border-color: var(--gold);
}

.blog-newsletter-wa-desc {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin: 0 0 20px;
}

/* ── FAQ section ────────────────────────────────────────────── */
.blog-faq-item {
    max-width: 760px;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--rule);
}

.blog-faq-item:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.blog-faq-q {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0 0 10px;
}

.blog-faq-a {
    font-family: var(--sans);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink-mute);
    margin: 0;
}

.blog-faq-a + .blog-faq-a {
    margin-top: 8px;
}

/* Scroll reveal now defined globally in all.css */

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
    .blog-hero__link {
        grid-template-columns: 1fr;
    }

    .blog-hero__media {
        aspect-ratio: 16 / 9;
    }

    .blog-hero__body {
        padding: 28px 32px 32px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-newsletter-channels {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .blog-hero__body {
        padding: 24px 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
