/* ==========================================================
   Blog - listing, single post and sidebar
   colours follow style.css: navy #0f3281, blue #4d72d0,
   orange #f3a712, text #3c3f42, light #f4f6fa
   ========================================================== */

.blog-hero { padding: 80px 0 70px; }
.blog-hero .detail-page-content { position: relative; z-index: 1; }
.blog-hero h1 { color: #fff; font-weight: 600; font-size: 2.6rem; line-height: 1.25; margin-bottom: 14px; }
.blog-hero p { color: rgba(255, 255, 255, .85); max-width: 680px; margin: 0 auto 18px; font-size: 1.05rem; }
.blog-hero--post h1 { font-size: 2.3rem; margin: 14px 0 18px; }

.blog-breadcrumb { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; padding: 0; margin: 0; font-size: .9rem; }
.blog-breadcrumb li { color: rgba(255, 255, 255, .75); }
.blog-breadcrumb li + li::before { content: "/"; margin: 0 8px; color: rgba(255, 255, 255, .5); }
.blog-breadcrumb a { color: #fff; }
.blog-breadcrumb a:hover { color: #f3a712; text-decoration: none; }

.blog-section { padding: 60px 0 40px; background: #f4f6fa; }
.blog-section-title { font-family: 'Poppins', sans-serif; font-weight: 600; color: #0f3281; font-size: 1.6rem; margin-bottom: 24px; }
.blog-section-title::after { content: ""; display: block; width: 70px; height: 4px; border-radius: 5px; background: #f3a712; margin-top: 10px; }

.blog-btn { display: inline-block; background: #4d72d0; color: #fff !important; padding: 10px 24px; border-radius: 30px; font-weight: 500; font-size: .95rem; transition: background .2s; }
.blog-btn:hover { background: #0f3281; text-decoration: none; }

.blog-badge { display: inline-block; background: rgba(77, 114, 208, .1); color: #4d72d0; font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px; }
.blog-badge:hover { background: #4d72d0; color: #fff; text-decoration: none; }

.blog-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: #7a7f87; }
.blog-meta i { color: #f3a712; margin-right: 4px; }
.blog-meta--hero { justify-content: center; color: rgba(255, 255, 255, .85); font-size: .95rem; }

/* cards */
.blog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(15, 50, 129, .07); margin-bottom: 30px; display: flex; flex-direction: column; width: 100%; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(15, 50, 129, .13); }
.blog-card__image { display: block; aspect-ratio: 1200 / 630; background: #e3e8f4; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card__image img { transform: scale(1.04); }
.blog-card__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.blog-card__title { font-family: 'Poppins', sans-serif; font-size: 1.12rem; line-height: 1.45; font-weight: 600; margin-bottom: 10px; }
.blog-card__title a { color: #0f3281; }
.blog-card__title a:hover { color: #4d72d0; text-decoration: none; }
.blog-card__excerpt { color: #5a5f66; font-size: .93rem; line-height: 1.65; margin-bottom: 16px; flex: 1; }

/* featured */
.blog-featured { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 28px rgba(15, 50, 129, .1); margin-bottom: 34px; }
.blog-featured__image { display: block; background: #e3e8f4; }
.blog-featured__image img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.blog-featured__body { padding: 28px 30px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.blog-featured__label { color: #f3a712; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.blog-featured__title { font-family: 'Poppins', sans-serif; font-size: 1.5rem; line-height: 1.35; font-weight: 600; margin-bottom: 12px; }
.blog-featured__title a { color: #0f3281; }
.blog-featured__title a:hover { color: #4d72d0; text-decoration: none; }
.blog-featured__body p { color: #5a5f66; line-height: 1.7; }
.blog-featured .blog-meta { margin-bottom: 18px; }

.blog-empty { background: #fff; border-radius: 12px; padding: 60px 30px; text-align: center; color: #5a5f66; }
.blog-empty i { font-size: 3rem; color: #c7d1ea; margin-bottom: 16px; }

.blog-pagination { display: flex; justify-content: center; margin: 10px 0 30px; }
.blog-pagination .page-link { color: #4d72d0; border-color: #e1e6f2; }
.blog-pagination .page-item.active .page-link { background: #4d72d0; border-color: #4d72d0; color: #fff; }

/* sidebar */
.blog-aside { position: sticky; top: 100px; }
.blog-widget { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 26px; box-shadow: 0 4px 20px rgba(15, 50, 129, .06); }
.blog-widget__title { font-family: 'Poppins', sans-serif; font-size: 1.05rem; font-weight: 600; color: #0f3281; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #f4f6fa; position: relative; }
.blog-widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: #f3a712; }

.blog-search { display: flex; border: 1px solid #dde3f0; border-radius: 30px; overflow: hidden; }
.blog-search input { flex: 1; border: 0; padding: 10px 16px; outline: none; min-width: 0; font-size: .93rem; }
.blog-search button { border: 0; background: #4d72d0; color: #fff; padding: 0 18px; cursor: pointer; }
.blog-search button:hover { background: #0f3281; }

.blog-categories, .blog-recent { list-style: none; padding: 0; margin: 0; }
.blog-categories li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: #3c3f42; border-bottom: 1px dashed #e5e9f2; font-size: .95rem; }
.blog-categories li:last-child a { border-bottom: 0; }
.blog-categories li a:hover, .blog-categories li.active a { color: #4d72d0; text-decoration: none; }
.blog-categories span { background: #f4f6fa; color: #4d72d0; border-radius: 20px; font-size: .78rem; padding: 2px 10px; font-weight: 600; }

.blog-recent li + li { margin-top: 14px; }
.blog-recent a { display: flex; gap: 12px; align-items: flex-start; color: #3c3f42; }
.blog-recent a:hover { text-decoration: none; }
.blog-recent a:hover strong { color: #4d72d0; }
.blog-recent img { width: 80px; height: 42px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.blog-recent strong { display: block; font-size: .87rem; line-height: 1.4; font-weight: 500; }
.blog-recent small { color: #8b9098; font-size: .78rem; }

.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tags a { background: #f4f6fa; color: #3c3f42; font-size: .82rem; padding: 5px 12px; border-radius: 20px; }
.blog-tags a:hover { background: #4d72d0; color: #fff; text-decoration: none; }

.blog-cta { background: linear-gradient(135deg, #0f3281, #4d72d0); color: #fff; text-align: center; }
.blog-cta h4 { color: #fff; font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 600; }
.blog-cta p { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.blog-cta .blog-btn { background: #f3a712; }
.blog-cta .blog-btn:hover { background: #fff; color: #0f3281 !important; }

.blog-toc ol { padding-left: 18px; margin: 0; }
.blog-toc li { margin-bottom: 8px; font-size: .9rem; line-height: 1.45; }
.blog-toc a { color: #3c3f42; }
.blog-toc a:hover { color: #4d72d0; }

/* single post */
.blog-article { background: #fff; border-radius: 14px; padding: 34px; box-shadow: 0 4px 20px rgba(15, 50, 129, .06); margin-bottom: 30px; }
.blog-article__image { width: 100%; height: auto; border-radius: 10px; margin-bottom: 26px; }
.blog-article__lead { font-size: 1.15rem; line-height: 1.75; color: #0f3281; font-weight: 500; border-left: 4px solid #f3a712; padding-left: 18px; margin-bottom: 26px; }

.blog-body { font-size: 1.04rem; line-height: 1.85; color: #3c3f42; overflow-wrap: break-word; }
.blog-body h2 { font-family: 'Poppins', sans-serif; font-size: 1.6rem; font-weight: 600; color: #0f3281; margin: 38px 0 14px; scroll-margin-top: 110px; }
.blog-body h3 { font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 600; color: #0f3281; margin: 28px 0 10px; }
/* style.css sets a global p size - restate it for article text */
.blog-body p, .blog-body li { font-size: inherit; line-height: inherit; color: inherit; margin-bottom: 18px; }
.blog-body li { margin-bottom: 8px; }
.blog-body ul, .blog-body ol { margin: 0 0 20px; padding-left: 24px; }
.blog-body li { margin-bottom: 8px; }
.blog-body a { color: #4d72d0; text-decoration: underline; text-underline-offset: 2px; }
.blog-body a:hover { color: #0f3281; }
.blog-body img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-body blockquote { background: #f4f6fa; border-left: 4px solid #4d72d0; padding: 16px 22px; margin: 24px 0; border-radius: 0 8px 8px 0; font-style: italic; color: #0f3281; }
.blog-body .table-wrap { overflow-x: auto; margin: 0 0 22px; }
.blog-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.blog-body th, .blog-body td { border: 1px solid #e1e6f2; padding: 10px 14px; text-align: left; vertical-align: top; }
.blog-body th { background: #0f3281; color: #fff; font-weight: 500; }
.blog-body tr:nth-child(even) td { background: #f8f9fc; }
.blog-body .tip { background: #fff8e8; border: 1px solid #f9dc9a; border-radius: 8px; padding: 14px 18px; margin: 22px 0; }
.blog-body .tip strong:first-child { color: #b47a00; }

.blog-article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0 0; padding-top: 22px; border-top: 1px solid #edf0f6; }
.blog-article__tags strong { color: #0f3281; font-size: .92rem; }

.blog-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.blog-share strong { color: #0f3281; font-size: .92rem; margin-right: 4px; }
.blog-share a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: transform .2s; }
.blog-share a:hover { transform: translateY(-2px); color: #fff; }
.blog-share .fb { background: #1877f2; }
.blog-share .tw { background: #111; }
.blog-share .li { background: #0a66c2; }
.blog-share .wa { background: #25d366; }

.blog-cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: linear-gradient(135deg, #0f3281, #4d72d0); border-radius: 12px; padding: 26px 28px; margin-top: 32px; color: #fff; }
.blog-cta-box h3 { color: #fff; font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.blog-cta-box p { color: rgba(255, 255, 255, .85); margin: 0; }
.blog-cta-box .blog-btn { background: #f3a712; white-space: nowrap; }
.blog-cta-box .blog-btn:hover { background: #fff; color: #0f3281 !important; }

.blog-prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; }
.blog-prevnext a { flex: 1 1 50%; max-width: 48%; background: #f4f6fa; border-radius: 10px; padding: 14px 18px; color: #0f3281; font-weight: 500; font-size: .93rem; line-height: 1.45; }
.blog-prevnext a:hover { background: #e7ecf8; text-decoration: none; }
.blog-prevnext .next { text-align: right; margin-left: auto; }
.blog-prevnext small { display: block; color: #7a7f87; font-size: .78rem; margin-bottom: 4px; }

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

@media (max-width: 991px) {
    .blog-aside { position: static; margin-top: 10px; }
}
@media (max-width: 767px) {
    .blog-hero { padding: 60px 0 50px; }
    .blog-hero h1, .blog-hero--post h1 { font-size: 1.7rem; }
    .blog-section { padding: 36px 0 20px; }
    .blog-article { padding: 20px; }
    .blog-body { font-size: 1rem; }
    .blog-body h2 { font-size: 1.35rem; }
    .blog-featured__body { padding: 20px; }
    .blog-featured__title { font-size: 1.25rem; }
    .blog-prevnext { flex-direction: column; }
    .blog-prevnext a { max-width: 100%; }
    .blog-cta-box { padding: 22px; }
}

/* comments */
.blog-meta--hero a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.blog-meta--hero a:hover { color: #f3a712; }

.blog-comments { background: #fff; border-radius: 14px; padding: 34px; box-shadow: 0 4px 20px rgba(15, 50, 129, .06); margin-bottom: 30px; scroll-margin-top: 110px; }
.blog-comments__empty, .blog-comments__closed { color: #7a7f87; margin-bottom: 24px; }
.blog-comments__closed { margin: 10px 0 0; padding-top: 18px; border-top: 1px solid #edf0f6; }

.blog-alert { border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; font-size: .95rem; }
.blog-alert i { margin-right: 6px; }
.blog-alert--success { background: #e8f6ef; color: #1d6b4f; border: 1px solid #bfe5d1; }
.blog-alert--error { background: #fdecea; color: #a3261f; border: 1px solid #f5c6c2; }

.blog-comment-list, .blog-comment-replies { list-style: none; margin: 0; padding: 0; }
.blog-comment-list > .blog-comment { padding: 20px 0; border-bottom: 1px solid #edf0f6; }
.blog-comment-list > .blog-comment:first-child { padding-top: 4px; }
.blog-comment-list > .blog-comment:last-child { border-bottom: 0; padding-bottom: 0; }
.blog-comment-replies { margin: 16px 0 0 54px; padding-left: 18px; border-left: 3px solid #edf0f6; }
.blog-comment-replies > .blog-comment + .blog-comment { margin-top: 16px; }
.blog-comment:target > .blog-comment__body { background: #fff8e8; border-radius: 10px; box-shadow: 0 0 0 8px #fff8e8; }

.blog-comment__body { display: flex; gap: 14px; align-items: flex-start; }
.blog-comment__body--team .blog-comment__main { background: #f4f6fa; border-radius: 10px; padding: 12px 16px; }
.blog-comment__avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.blog-comment__main { flex: 1; min-width: 0; }
.blog-comment__main header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.blog-comment__name { color: #0f3281; font-size: .98rem; }
.blog-comment__team { background: #f3a712; color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 10px; }
.blog-comment__main time { color: #8b9098; font-size: .8rem; }
.blog-comment__text { color: #3c3f42; font-size: .97rem; line-height: 1.7; overflow-wrap: anywhere; }
.blog-comment__reply { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 500; color: #4d72d0; }
.blog-comment__reply:hover { color: #0f3281; text-decoration: none; }

.blog-respond { margin-top: 28px; padding-top: 26px; border-top: 1px solid #edf0f6; }
.blog-comment-list:empty + .blog-respond, .blog-comments__empty + .blog-respond { margin-top: 0; padding-top: 0; border-top: 0; }
.blog-respond h3 { font-family: 'Poppins', sans-serif; font-weight: 600; color: #0f3281; font-size: 1.3rem; margin-bottom: 6px; }
.blog-respond__note { color: #7a7f87; font-size: .88rem; margin-bottom: 20px; }
.blog-respond label { font-size: .9rem; font-weight: 500; color: #3c3f42; }
.blog-respond .form-control { border-color: #dde3f0; border-radius: 8px; font-size: .95rem; }
.blog-respond .form-control:focus { border-color: #4d72d0; box-shadow: 0 0 0 3px rgba(77, 114, 208, .15); }
.blog-respond .blog-btn { border: 0; cursor: pointer; }
.blog-replying { background: #f4f6fa; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: .9rem; color: #3c3f42; }
.blog-replying button { border: 0; background: none; color: #a3261f; font-size: .85rem; margin-left: 8px; cursor: pointer; text-decoration: underline; }
/* honeypot - off-screen rather than display:none, which some bots detect */
.blog-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 767px) {
    .blog-comments { padding: 20px; }
    .blog-comment-replies { margin-left: 10px; padding-left: 12px; }
}

/* rss */
.blog-rss { float: right; width: 28px; height: 28px; border-radius: 6px; background: #f3a712; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.blog-rss:hover { background: #0f3281; text-decoration: none; }

/* homepage: latest posts */
.home-blog { background: #f4f6fa; padding: 70px 0 60px; }
.home-blog .home-blog__bar { margin: 16px auto 0 !important; }
.home-blog__intro { color: #5a5f66; max-width: 600px; margin: 16px auto 36px; font-size: 1rem; }
.home-blog .blog-btn { margin-top: 6px; }
.home-blog .blog-btn i { margin-left: 6px; font-size: .85em; }
@media (max-width: 767px) {
    .home-blog { padding: 46px 0 40px; }
}
