/* ═══════════════════════════════════════════
   Wild Legacy | Blog & Post Pages
   Clean, theme-driven version
   ═══════════════════════════════════════════ */

/* Page Hero — POP VERSION */
.blog-section .blog-hero {
    padding: 60px 0;
    background-image: url('/assets/img/desert.valley.banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

    .blog-section .blog-hero h1,
    .blog-section .blog-hero h2,
    .blog-section .blog-hero h3 {
        color: var(--white);
        font-size: 3rem;
        font-weight: 900;
        letter-spacing: -1px;
        margin-bottom: 12px;
    }

    .blog-section .blog-hero p {
        font-size: 1.25rem;
        font-weight: 500;
        color: rgba(255,255,255,0.9);
        max-width: 700px;
        margin: 0 auto;
    }

/* Blog list page */
.blog-section {
    padding: 0;
}

/* Post detail page */
.post-detail {
    padding: 40px 0 80px;
}

    /* Title + meta */
    .post-detail h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
        font-family: var(--heading-font);
        color: var(--text);
    }

    .post-detail .post-meta {
        color: var(--text-muted);
        margin-bottom: 24px;
        font-family: var(--body-font);
    }

    /* Content typography */
    .post-detail .post-content {
        line-height: 1.8;
        font-size: 1.05rem;
        color: var(--text);
        font-family: var(--body-font);
    }

        .post-detail .post-content h2,
        .post-detail .post-content h3 {
            margin-top: 32px;
            margin-bottom: 16px;
            font-weight: 600;
            font-family: var(--heading-font);
            color: var(--text);
        }

        .post-detail .post-content h2 {
            font-size: 1.6rem;
        }

        .post-detail .post-content h3 {
            font-size: 1.3rem;
        }

        .post-detail .post-content p {
            margin-bottom: 18px;
        }

        .post-detail .post-content a {
            color: var(--link-color);
            text-decoration: underline;
        }

/* ═══════════════════════════════════════════
   GRID LAYOUT (POST PAGE)
   ═══════════════════════════════════════════ */
.post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
}

/* Main article container */
.post-main {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    max-width: 900px;
    margin: 0 auto;
}

/* Featured image */
.post-hero-img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-family: var(--body-font);
}

    .breadcrumb a {
        color: var(--link-color);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

/* Post footer */
.post-footer {
    margin-top: 40px;
}

/* ═══════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════ */
.post-sidebar .sidebar-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
}

.sidebar-box h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--text);
    font-family: var(--heading-font);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sidebar-list li {
        margin-bottom: 14px;
    }

    .sidebar-list a {
        font-weight: 600;
        color: var(--link-color);
        text-decoration: none;
        font-family: var(--body-font);
    }

        .sidebar-list a:hover {
            text-decoration: underline;
        }

    .sidebar-list time {
        display: block;
        font-size: 0.85rem;
        color: var(--text-muted);
    }

/* CTA box */
.cta-box {
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ═══════════════════════════════════
   BLOG GRID
   ═══════════════════════════════════ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Blog card */
.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

/* Featured image */
.blog-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Card body */
.blog-card-body {
    padding: 1.2rem 1.4rem;
    color: var(--card-text);
    )
}

    .blog-card-body time {
        display: block;
        font-size: .85rem;
        color: var(--text-muted);
        margin-bottom: .4rem;
    }

    .blog-card-body h3 {
        font-size: 1.25rem;
        margin: .3rem 0 .6rem;
        color: var(--card-text);
        font-family: var(--heading-font);
    }

    .blog-card-body p {
        color: var(--card-text);
        margin-bottom: 1rem;
        line-height: 1.5;
        font-family: var(--body-font);
    }

.read-more {
    font-weight: 700;
    color: color-mix(in srgb, var(--card-text) 80%, black);
    font-size: .9rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.page-info {
    color: var(--text);
}
