/* =========================================================
   BLOG — list page, article page
   Uses existing design tokens from the main theme
   (--purple, --navy, --orange, --cream, --line, --text-dim,
   --font-display, --font-body, --container, --gutter).
   ========================================================= */

/* ---------- Blog hero / page head ---------- */
.blog-hero {
    background: var(--cream);
    padding-block: 90px 40px;
    text-align: center;
}

.blog-hero__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    color: var(--purple);
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.blog-hero__subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Grid ---------- */
.blog-grid-section {
    padding-block: 30px 90px;
    background: var(--cream);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 26px;
}

.blog-grid--compact {
    grid-template-columns: repeat(3, 1fr);
}

.blog-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 60px 0;
}

/* ---------- Card ---------- */
.blog-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--globe-sphere, #e5e6e8);
    margin-bottom: 16px;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card__image--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--orange-soft) 0%, var(--orange) 100%);
    opacity: 0.25;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.06);
}

.blog-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange);
    margin-bottom: 10px;
}

.blog-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 19px;
    line-height: 1.3;
    color: var(--purple);
    margin: 0 0 8px;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card__title {
    color: var(--orange);
}

.blog-card__excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0 0 10px;
}

.blog-card__meta {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

/* ---------- Pagination ---------- */
.blog-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.blog-pagination nav>div:first-child,
.blog-pagination nav>div:last-child {
    display: none;
}

.blog-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination span,
.blog-pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding-inline: 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid var(--line);
    transition: background 0.15s ease, color 0.15s ease;
}

.blog-pagination .active span {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.blog-pagination a:hover {
    background: var(--line);
}

/* =========================================================
   ARTICLE PAGE
   FIX: the previous version gave .post__head / .post__cover /
   .post__body-wrap a max-width but no margin: auto, so the
   block hugged the left edge of .container and left a huge
   unused gap on the right. Everything below is centered, and
   the column widths are tuned so the page reads intentionally
   framed instead of accidentally narrow.
   ========================================================= */
.post {
    background: var(--cream);
    padding-block: 84px 60px;
}

.post__head {
    max-width: 700px;
    margin-inline: auto;
    text-align: left;
}

.post__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    margin-bottom: 28px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.post__back:hover {
    color: var(--orange);
    gap: 11px;
}

.post__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #fff;
    background: var(--orange);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.post__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.1rem, 4.2vw, 3rem);
    line-height: 1.18;
    color: var(--purple);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.post__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 500;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.post__meta-dot {
    color: var(--line);
}

/* Cover sits on a wider column than the text so it reads as a
   deliberate visual break, still centered on the same axis. */
.post__cover {
    margin: 40px auto 0;
    max-width: 900px;
}

.post__cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 24px 60px rgba(26, 27, 28, 0.14);
}

.post__body-wrap {
    max-width: 700px;
    margin-inline: auto;
}

.post__body {
    margin-top: 48px;
    font-family: var(--font-body);
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--navy);
}

/* Lead-in paragraph gets a touch more presence so the opening
   of the article doesn't look identical to the rest of the copy. */
.post__body>p:first-of-type {
    font-size: 18px;
    line-height: 1.75;
    color: var(--navy);
}

.post__body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 27px;
    color: var(--purple);
    margin: 46px 0 18px;
    letter-spacing: -0.005em;
}

.post__body h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 20px;
    color: var(--purple);
    margin: 34px 0 14px;
}

.post__body p {
    margin: 0 0 20px;
}

.post__body ul,
.post__body ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

.post__body li {
    margin-bottom: 10px;
}

.post__body li::marker {
    color: var(--orange);
    font-weight: 600;
}

.post__body a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post__body blockquote {
    margin: 32px 0;
    padding: 6px 26px;
    border-left: 3px solid var(--orange);
    color: var(--text-dim);
    font-style: italic;
    font-size: 17px;
}

.post__body img {
    width: 100%;
    border-radius: 12px;
    margin: 28px 0;
    box-shadow: 0 12px 30px rgba(26, 27, 28, 0.1);
}

.post__body hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 40px 0;
}

/* ---------- Related ---------- */
.post-related {
    padding-block: 60px 90px;
    background: var(--cream);
    border-top: 1px solid var(--line);
}

.post-related__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--purple);
    margin: 0 0 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 780px) {

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

    .blog-hero {
        padding-block: 60px 30px;
    }

    .post {
        padding-block: 56px 40px;
    }

    .post__cover {
        margin-top: 30px;
    }

    .post__body {
        margin-top: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .blog-grid,
    .blog-grid--compact {
        grid-template-columns: 1fr;
    }

    .post__title {
        letter-spacing: -0.005em;
    }
}