/* ==========================================================================
   Blog loop styles (front page, archives, single post, comments)
   Added on top of the original LEADconcept static-site CSS. Colors/fonts
   are matched to assets/css/style.css: primary #023b81, accent #ffcd42,
   heading font "Cerebri Sans Pro", body font Roboto.
   ========================================================================== */

.blog-section {
    background-color: #f8f9fb;
}

/* When this section sits directly under the fixed sitewide header (archive,
   search and category pages via index.php have no hero banner above it),
   .page-main's own margin-top isn't enough clearance once Bootstrap's
   .py-5 (padding-top: 3rem !important) is factored in, so give it extra
   breathing room. Needs !important to beat Bootstrap's utility class. */
.page-main > .blog-section:first-child {
    padding-top: 140px !important;
}

.blog-grid {
    margin-top: 30px;
}

.blog-card {
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(2, 59, 129, 0.06);
    transition: transform .25s ease, box-shadow .25s ease;
    background: #fff;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(2, 59, 129, 0.14);
}

.blog-card-thumb {
    display: block;
    height: 174px;
    overflow: hidden;
    background: #eef1f6;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.06);
}

.blog-card-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #023b81, #0c56ab);
}

.blog-card-thumb--placeholder i {
    font-size: 2.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.blog-card .card-body {
    padding: 22px;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: #7a7f8a;
    margin-bottom: 10px;
}

.blog-card-meta i {
    color: #ffcd42;
    margin-right: 4px;
}

.blog-card .card-title {
    font-family: "Cerebri Sans Pro", Roboto, sans-serif;
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card .card-title a {
    color: #023b81;
    text-decoration: none !important;
}

.blog-card .card-title a:hover {
    color: #ef4738;
}

.blog-card .card-text {
    color: #5a5f6a;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #023b81;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
}

.blog-card-readmore:hover {
    color: #ef4738;
}

/* Pagination */
.blog-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e7e9ee;
    color: #023b81;
    text-decoration: none !important;
    font-weight: 600;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: #023b81;
    border-color: #023b81;
    color: #fff;
}

/* Single post */
.single-post-section {
    background-color: #fff;
    /* the sitewide fixed header (top bar + nav) needs more clearance than
       .page-main's own margin-top provides once Bootstrap's .py-5
       (padding-top: 3rem !important) is taken into account. Needs
       !important to beat Bootstrap's utility class. */
    padding-top: 140px !important;
}

.single-post-article {
    max-width: 860px;
    margin: 0 auto;
}

.single-post-title {
    font-family: "Cerebri Sans Pro", Roboto, sans-serif;
    color: #023b81;
    font-size: 32px;
    margin-bottom: 14px;
}

.single-post-header .blog-card-meta {
    margin-bottom: 24px;
}

.single-post-thumb {
    margin-bottom: 28px;
    border-radius: 10px;
    overflow: hidden;
}

.single-post-thumb img {
    width: 100%;
    height: auto;
}

.single-post-content {
    color: #4e4e4e;
    font-size: 16px;
    line-height: 1.8;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    font-family: "Cerebri Sans Pro", Roboto, sans-serif;
    color: #023b81;
    margin-top: 28px;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post-content a {
    color: #023b81;
    text-decoration: underline !important;
}

.single-post-tags {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.single-post-tags .blog-card-cat {
    background: #eef1f6;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #023b81 !important;
}

.page-links {
    margin-top: 24px;
    font-weight: 600;
}

/* Comments */
.comments-area {
    max-width: 860px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid #e7e9ee;
}

.comments-title {
    font-family: "Cerebri Sans Pro", Roboto, sans-serif;
    color: #023b81;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.comment-list .comment {
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.comment-list ol.children {
    list-style: none;
    padding-left: 28px;
    margin-top: 14px;
}

.comment-list .comment-author .fn {
    font-weight: 700;
    color: #023b81;
}

.comment-list .comment-metadata {
    font-size: 12px;
    color: #7a7f8a;
    margin-bottom: 8px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    border: 1px solid #d9dce3;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-family: Roboto, sans-serif;
}

.comment-respond .form-submit input[type="submit"] {
    background: #023b81;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 26px;
    font-weight: 600;
    cursor: pointer;
}

.comment-respond .form-submit input[type="submit"]:hover {
    background: #ef4738;
}

@media (max-width: 767px) {
    .single-post-title {
        font-size: 24px;
    }
}
