/* =========================
   Blog Page Styles
   ========================= */

.page-hero {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8)), var(--bg-image) center/cover no-repeat;
    background-attachment: fixed;
    padding: 120px 0 60px;
    color: white;
    text-align: center;
    border-radius: 28px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-hero-content {
    z-index: 2;
    position: relative;
}

.page-hero .eyebrow {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 56px;
    margin: 0 0 20px;
}

.page-hero .sub {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.blog {
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Categories */
.blog-categories {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
    /* Space for scrollbar if present */
    margin-bottom: 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 106, 60, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.blog-categories::-webkit-scrollbar {
    height: 6px;
}

.blog-categories::-webkit-scrollbar-thumb {
    background: rgba(11, 106, 60, 0.2);
    border-radius: 999px;
}

.category-pill {
    padding: 10px 24px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(11, 106, 60, 0.12);
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(11, 106, 60, 0.04);
}

.category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(11, 106, 60, 0.2);
}

.blog-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.blog-card-premium {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.blog-thumb {
    height: 240px;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, rgba(11, 106, 60, 0.1), rgba(0,0,0,0.3)), var(--bg-image) center/cover;
}

.blog-details {
    padding: 30px;
}

.blog-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 0 0 12px;
    line-height: 1.3;
}

.blog-excerpt {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.page-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
.animate-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 980px) {
    .blog-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: 100px 20px 60px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .blog-grid-premium {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card-premium {
        border-radius: 20px;
    }
}