/* ============================================
   BLOG POSTS GRID SECTION
   ============================================ */
.blog-posts-grid-section {
    width: 100%;
    padding: 40px 0;
    background: #ffffff;
}

.blog-posts-grid-section .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

.blog-posts-grid-section .section-title {
    color: #004483;
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 40px;
    text-align: left;
}

/* ============================================
   POSTS GRID — 3 columns
   ============================================ */
.blog-posts-grid-section .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================
   INDIVIDUAL POST CARD
   ============================================ */
.blog-posts-grid-section .post-card {
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* .blog-posts-grid-section .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
} */

/* ============================================
   TITLE OVERLAY (Gray background on top)
   ============================================ */
.blog-posts-grid-section .post-title-overlay {
    background: #6d6d6d;
    padding: 22px 24px;
    min-height: 100px;
    display: flex;
    align-items: center;
}

.blog-posts-grid-section .post-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
}

.blog-posts-grid-section .post-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

/* .blog-posts-grid-section .post-title a:hover {
    color: #FFCC35;
} */

/* ============================================
   FEATURED IMAGE
   ============================================ */
.blog-posts-grid-section .post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-posts-grid-section .post-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-posts-grid-section .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

/* .blog-posts-grid-section .post-card:hover .post-image img {
    transform: scale(1.05);
} */

/* ============================================
   EXCERPT SECTION (Light gray background)
   ============================================ */
/* ============================================
   EXCERPT SECTION (Light gray background)
   ============================================ */
/* ============================================
   EXCERPT SECTION (Light gray background)
   ============================================ */
.blog-posts-grid-section .post-excerpt-section {
    background: #f0f0f0;
    padding: 20px 24px;
    min-height: 80px;
    display: flex;
    align-items: flex-start;  /* Changed from center to flex-start */
    flex-grow: 1;
}

.blog-posts-grid-section .post-excerpt {
    color: #1a1a1a;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    
    /* Two-line ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   META TAGS FOOTER (Dark gray background)
   ============================================ */
.blog-posts-grid-section .post-meta {
    background: #6d6d6d;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.blog-posts-grid-section .meta-tag {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

/* .blog-posts-grid-section .meta-tag:hover {
    color: #FFCC35;
    border-bottom-color: #FFCC35;
} */

/* No posts message */
.blog-posts-grid-section .no-posts {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 40px 0;
}

/* ============================================
   READ MORE BUTTON
   ============================================ */
.blog-posts-grid-section .read-more-container {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.blog-posts-grid-section .read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFCC35;
    color: #004483;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    padding: 20px 32px;
    transition: background-color 0.3s, transform 0.2s;
}
.read-more-container{
    text-align: center;
}
/* .blog-posts-grid-section .read-more-btn:hover {
    background-color: #e6be00;
    transform: translateY(-2px);
} */

/* Mobile adjustment */
@media screen and (max-width: 600px) {
    .blog-posts-grid-section .read-more-container {
        justify-content: center;
        margin-top: 40px;
    }
}
/* ============================================
   RESPONSIVE — TABLET (2 columns)
   ============================================ */
@media screen and (max-width: 968px) {
    .blog-posts-grid-section{
        padding: 40px 16px !important;
    }
    .blog-posts-grid-section .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog-posts-grid-section .section-container {
        padding: 0px;
    }

    .blog-posts-grid-section .section-title {
        font-size: 1.9rem;
        margin-bottom: 40px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (1 column)
   ============================================ */
@media screen and (max-width: 600px) {
    
    .blog-posts-grid-section {
        padding: 60px 0;
    }

    .blog-posts-grid-section .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-posts-grid-section .section-title {
        font-size: 1.7rem;
        margin-bottom: 32px;
    }

    .blog-posts-grid-section .post-title-overlay {
        padding: 18px 20px;
        min-height: 90px;
    }

    .blog-posts-grid-section .post-title {
        font-size: 1.1rem;
    }

    .blog-posts-grid-section .post-image {
        height: 200px;
    }

    .blog-posts-grid-section .post-excerpt-section {
        padding: 18px 20px;
    }

    .blog-posts-grid-section .post-meta {
        padding: 14px 20px;
    }
}