/* =========================================================
   Blog listing (archive) page
   Scoped under .blog-grid-section so nothing else on the
   site is affected. Matches the palette & card language used
   on products.php / project-details.php. Header, hero banner
   and footer are the site's existing includes and are left
   untouched.
   ========================================================= */

:root {
    --navy: #0e1c3f;
    --logo-navy: #0e2745;
    --logo-navy-dark: #091829;
    --blue: #1d4fd8;
    --blue-dark: #1640b8;
    --border: #e6e9f0;
    --placeholder: #eef1f7;
    --placeholder-line: #dde2ee;
    --text-body: #5b6472;
    --text-heading: #12183a;
    --text-muted: #8891a3;
}

.blog-grid-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

.blog-grid-section .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.blog-grid-section .blog-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(14, 39, 69, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-grid-section .blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(14, 39, 69, 0.16);
}

.blog-grid-section .blog-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(160deg, var(--placeholder) 0%, #e4e9f4 100%);
    border-bottom: 1px solid var(--placeholder-line);
    overflow: hidden;
}

.blog-grid-section .blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.blog-grid-section .blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-grid-section .blog-card-body {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-grid-section .blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin: 0 0 14px;
}

.blog-grid-section .blog-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.blog-grid-section .blog-card-meta .meta-item svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--blue);
}

.blog-grid-section .blog-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.blog-grid-section .blog-card-body h3 a {
    color: var(--logo-navy);
    text-decoration: none;
}

.blog-grid-section .blog-card-body h3 a:hover {
    color: var(--blue);
}

.blog-grid-section .blog-card-body p {
    display: none;
}

.blog-grid-section .blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--logo-navy);
    border-radius: 7px;
    text-decoration: none;
    transition: background 0.25s ease, gap 0.25s ease;
}

.blog-grid-section .blog-read-more svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    transition: transform 0.25s ease;
}

.blog-grid-section .blog-read-more:hover {
    background: var(--logo-navy-dark);
    gap: 10px;
}

.blog-grid-section .blog-read-more:hover svg {
    transform: translateX(4px);
}

/* ---------- Pagination ---------- */
.blog-grid-section .blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 56px 0 0;
    padding: 0;
}

.blog-grid-section .blog-pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--logo-navy);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-grid-section .blog-pagination li a:hover,
.blog-grid-section .blog-pagination li a.active {
    background: var(--logo-navy);
    border-color: var(--logo-navy);
    color: #fff;
}

@media (max-width: 640px) {
    .blog-grid-section {
        padding: 55px 18px 70px;
    }
}