/* =========================================
   BLOG PAGE STYLES
   ========================================= */

/* Blog Hero Section - Compact, No Decorative Elements */
.blog-hero {
    background: url('/wp-content/uploads/2026/01/hero-banner-scaled.webp') no-repeat center center;
    background-size: cover;
    height: 50vh;
    min-height: 400px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;

    /* Full Width Breakout */
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    margin-right: -50vw;
    right: 50%;
}

.blog-hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(1, 49, 19, 0.85), rgba(1, 49, 19, 0.6));
    z-index: 1;
}

.blog-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.blog-hero-content h1 {
    color: #fff;
    font-size: 4rem;
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Blog Posts Wrapper */
.blog-posts-wrapper {
    padding: 60px 0 80px;
    background: transparent;
}

.blog-posts-wrapper .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Blog Grid - Card Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Blog Card Image */
.blog-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f0f0;
}

.blog-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumbnail {
    transform: scale(1.05);
}

/* Blog Card Content */
.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Blog Meta */
.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #777;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--gold-accent);
}

/* Blog Title */
.blog-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 15px;
    line-height: 1.3;
}

.blog-title a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--gold-accent);
}

/* Blog Excerpt */
.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Read More Button */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: var(--gold-accent);
    gap: 12px;
}

.blog-read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.blog-read-more:hover i {
    transform: translateX(3px);
}

/* Blog Pagination */
.blog-pagination {
    text-align: center;
    margin-top: 40px;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: var(--primary-green);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--primary-green);
    color: #fff;
    border-color: var(--primary-green);
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.2rem;
    color: #666;
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */

/* Tablet and below (≤ 992px) */
@media (max-width: 992px) {
    .blog-hero {
        height: 45vh;
        min-height: 350px;
    }

    .blog-hero-content h1 {
        font-size: 2.2rem;
    }

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

    .blog-posts-wrapper .container {
        padding: 0 30px;
    }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    .blog-hero {
        height: 40vh;
        min-height: 300px;
    }

    .blog-hero-content h1 {
        font-size: 1.8rem;
        padding: 0 15px;
    }

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

    .blog-posts-wrapper .container {
        padding: 0 20px;
    }

    .blog-card-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.3rem;
    }

    .blog-pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Extra small devices (≤ 480px) */
@media (max-width: 480px) {
    .blog-posts-wrapper .container {
        padding: 0 15px;
    }

    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }
}