/* =====================================================================
   css/blog.css
   Styles for blog.php (listing) and blog-detail.php (single post).
   Brand accent (#39a79c) matches css/our-team.css / css/common.css.
   ===================================================================== */
h1,h2,h3,h,h5,h6{
    color:#39a79c !important;
    margin-bottom:12px;
}
#blog-head {
    padding-top: 5rem;
    padding-bottom: 1rem;
    background-color: #F9F3EE;
    background-image: url("../img/about-banner_bg.webp");
    background-size: contain;
}

#blog-listing { padding: 4rem 0 5rem; }

.blog-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-pill {
    display: inline-block;
    padding: 8px 18px;
    border: 1.5px solid #39a79c;
    border-radius: 999px;
    color: #39a79c;
    font-size: 14px;
    font-weight: 500;
    transition: all .25s;
}
.filter-pill:hover, .filter-pill.active {
    background: #39a79c;
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
    display: block;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    color: inherit;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.14);
    color: inherit;
}
.blog-card-img { position: relative; height: 200px; overflow: hidden; background: #eee; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #39a79c;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 999px;
}
.blog-card-tag.static { position: static; display: inline-block; margin-bottom: 14px; }

.blog-card-body { padding: 20px 22px 24px; }
.blog-card-date { font-size: 12.5px; color: #888; text-transform: uppercase; letter-spacing: .04em; }
.blog-card-body h3 {
    font-size: 19px;
    font-weight: 500;
    margin: 8px 0 10px;
    color: #14312d;
    line-height: 1.35;
}
.blog-card-body p { font-size: 14.5px; color: #666; margin-bottom: 14px; }
.blog-read-more { font-size: 14px; font-weight: 700; color: #39a79c; }

.empty-blog { text-align: center; padding: 60px 20px; color: #777; font-size: 16px; }

.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 46px; }
.page-num {
    min-width: 40px;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
}
.page-num.current, .page-num:hover { background: #39a79c; color: #fff; border-color: #39a79c; }

/* ---------- Single post page ---------- */
#blog-detail { padding: 130px 0 60px; }

.blog-breadcrumb { font-size: 13.5px; color: #888; margin-bottom: 22px; }
.blog-breadcrumb a { color: #39a79c; }
.blog-breadcrumb span { color: #333; }

.blog-article { max-width: 860px; margin: 0 auto; }
.blog-article-head h1 {
    font-size: 34px;
    font-weight: 800;
    color: #14312d;
    line-height: 1.3;
    margin: 6px 0 14px;
}
.blog-article-meta { font-size: 14px; color: #888; display: flex; gap: 10px; margin-bottom: 26px; }

.blog-article-image { border-radius: 16px; overflow: hidden; margin-bottom: 32px; }
.blog-article-image img { width: 100%; display: block; }

.blog-article-content {
    font-size: 16.5px;
    line-height: 1.85;
    color: #333;
}
.blog-article-content h2, .blog-article-content h3 { color: #14312d; margin-top: 34px; margin-bottom: 14px; }
.blog-article-content p { margin-bottom: 18px; }
.blog-article-content img { max-width: 100%; border-radius: 10px; margin: 18px 0; }
.blog-article-content ul, .blog-article-content ol { margin-bottom: 18px; padding-left: 22px; }
.blog-article-content a { color: #39a79c; text-decoration: underline; }
.blog-article-content blockquote {
    border-left: 4px solid #39a79c;
    padding: 10px 20px;
    background: #f7fbfa;
    color: #444;
    margin: 22px 0;
    font-style: italic;
}
.blog-article-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.blog-article-content table td, .blog-article-content table th { border: 1px solid #e5e7eb; padding: 8px 12px; }

.related-posts { max-width: 1100px; margin: 60px auto 0; }
.related-posts h3 { font-size: 24px; font-weight: 700; margin-bottom: 24px; color: #14312d; }

.blog-back-link { text-align: center; margin-top: 50px; }
.blog-back-link a { color: #39a79c; font-weight: 700; }
