/* Blog Hero Section (Modern Policy Style) */
.blog-hero {
    background: linear-gradient(135deg, #25452c 0%, #1b3321 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Container */
.blog-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px 0px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

/* Blog Card */
.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #6db34d;
}

.blog-card__img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-card__content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__date {
    font-size: 12px;
    font-weight: 600;
    color: #6db34d;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
}

.blog-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2b1f;
    margin-bottom: 10px;
    line-height: 1.3;
    /* Limit to 1 line */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt {
    font-size: 14px;
    color: #5c6e5e;
    line-height: 1.6;
    margin-bottom: 20px;
    /* Limit to 2 lines to keep consistent height */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    /* Pushes footer to bottom */
}

.blog-card__footer {
    padding: 16px 22px;
    border-top: 1px solid #f1f4f1;
    display: flex;
    align-items: center;
    color: #25452c;
    font-weight: 700;
    font-size: 14px;
    gap: 8px;
    background: #fafcf9;
}

/* Blog Single View */
.blog-post {
    max-width: 1350px;
    margin: 40px auto 80px;
}

.blog-post__header {
    margin-bottom: 40px;
}

.blog-post__meta {
    font-size: 14px;
    color: #6db34d;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-post__title {
    font-size: 40px;
    font-weight: 800;
    color: #1a2b1f;
    line-height: 1.2;
    margin-bottom: 25px;
}

.blog-post__hero {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.blog-post__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .blog-post__content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.blog-post__content p {
    margin-bottom: 25px;
}

.blog-post__content h2,
.blog-post__content h3 {
    color: #1a2b1f;
    margin: 40px 0 20px;
    font-weight: 700;
}

.blog-post__content blockquote {
    background: #f0f7ee;
    border-left: 4px solid #6db34d;
    padding: 30px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 12px 12px 0;
} */

/* 🚀 MODERN PAGINATION REFINED */
.pagination-container {
    /* margin-top: 60px;
    padding: 20px 0 60px; */
    display: flex;
    justify-content: center;
}

.pagination-container .flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-item {
    display: inline-flex;
    text-decoration: none;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    /* Fixed width for perfect squares */
    height: 44px;
    background: #fff;
    border: 1.5px solid #eef2f6;
    border-radius: 12px;
    color: #1a2b1f;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    padding: 0;
    /* Clear padding to keep width fixed */
}

/* 💠 STYLE FOR THE ELLIPSES (...) — Forced to match buttons */
.page-item.disabled .page-link {
    border: 1.5px solid #f1f4f1;
    background: #fafcf9;
    color: #99a;
    cursor: default;
    box-shadow: none;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #6db34d 0%, #5a943e 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 6px 15px rgba(109, 179, 77, 0.3) !important;
}

.page-link i {
    width: 20px;
    height: 20px;
}

/* 📱 COMPREHENSIVE RESPONSIVENESS */

/* Tablets (iPad, etc.) */
@media (max-width: 1024px) {
    .blog-header {
        padding: 60px 0;
    }

    .blog-header h1 {
        font-size: 36px;
    }

    .blog-grid {
        gap: 25px;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .blog-post {
        padding: 0 15px;
    }

    .blog-post__title {
        font-size: 34px;
    }

    .blog-post__hero {
        height: 380px;
    }

}

/* Mobile Devices (iPhone, Android) */
@media (max-width: 768px) {
    .blog-hero {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .blog-hero h1 {
        font-size: 28px;
    }

    .blog-container {
        padding: 0 15px 40px;
    }

    /* More edge space */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-card__img {
        height: 180px;
    }

    .blog-card__content {
        padding: 20px;
    }

    .blog-post {
        margin-top: 15px;
        padding: 0 10px;
    }

    .blog-post__title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .blog-post__hero {
        height: 220px;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    /* .blog-post__content {
        font-size: 15px;
        line-height: 1.6;
    } */

    .pagination-container {
        margin-top: 30px;
        padding-bottom: 30px;
    }

    .pagination-container nav {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-container nav a,
    .pagination-container nav span {
        min-width: 34px !important;
        height: 34px !important;
        margin: 2px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        padding: 0 !important;
    }

    .pagination-container nav span[aria-current="page"] {
        transform: none !important;
        /* Prevent "huge" look on mobile */
        box-shadow: 0 4px 10px rgba(109, 179, 77, 0.2) !important;
    }

    .blog-post__footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start !important;
    }
}

/* Small Phones (iPhone SE, etc.) */
@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 22px;
    }

    .blog-card__content {
        padding: 15px;
    }

    .blog-card__title {
        font-size: 17px;
    }

    .blog-post__hero {
        height: 180px;
    }

    .pagination-container nav a,
    .pagination-container nav span {
        min-width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }
}