/* ==========================================================================
   KRIS Blog – styles for the public blog pages.
   Uses the site's palette: maroon #84221C, headline #404040, navy #1b1640, Cairo font.
   ========================================================================== */
.blog-area { --kris-maroon: #84221C; --kris-maroon-dark: #6a1a15; --kris-head: #404040; --kris-muted: #6c6c6c; --kris-line: #e9e4e2; --kris-soft: #f8f4f3; }
.blog-area { background: #fff; }
.blog-intro { max-width: 760px; margin: 0 auto 40px; color: var(--kris-muted); font-size: 1.05rem; text-align: center; }
.blog-breadcrumb li a { color: #fff; }

/* ---------- Featured post ---------- */
.blog-featured { display: flex; flex-wrap: wrap; background: var(--kris-soft); border: 1px solid var(--kris-line); margin-bottom: 40px; overflow: hidden; }
.blog-featured-img { flex: 1 1 55%; min-height: 320px; position: relative; display: block; background: #ddd; }
.blog-featured-img img, .blog-featured-img .blog-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-featured-body { flex: 1 1 45%; padding: 36px 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kris-maroon); margin-bottom: 8px; }
.blog-featured-body h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.25; margin: 0 0 12px; }
.blog-featured-body h2 a { color: var(--kris-head); }
.blog-featured-body h2 a:hover { color: var(--kris-maroon); text-decoration: none; }
.blog-featured-body p { color: #333; margin-bottom: 20px; }

/* ---------- Cards ---------- */
.blog-grid { margin-bottom: 10px; }
.blog-grid > [class*="col-"] { display: flex; margin-bottom: 30px; }
.blog-card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--kris-line); transition: box-shadow .25s ease, transform .25s ease; }
.blog-card:hover { box-shadow: 0 10px 28px rgba(132, 34, 28, .12); transform: translateY(-3px); }
.blog-card-img { display: block; position: relative; padding-top: 60%; overflow: hidden; background: #ddd; }
.blog-card-img img, .blog-card-img .blog-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.blog-card-title { font-size: 1.2rem; font-weight: 700; line-height: 1.35; margin: 6px 0 8px; }
.blog-card-title a { color: var(--kris-head); }
.blog-card-title a:hover { color: var(--kris-maroon); text-decoration: none; }
.blog-card-text { color: #444; font-size: .95rem; flex: 1; }
.blog-more { align-self: flex-start; padding: 4px 16px; }
.blog-noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #84221C 0%, #5a1612 100%); }
.blog-noimg span { color: rgba(255,255,255,.85); font-size: 1.6rem; font-weight: 700; letter-spacing: .3em; }

.blog-cat { display: inline-block; align-self: flex-start; background: var(--kris-maroon); color: #fff !important; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; line-height: 1.5; }
.blog-cat:hover { background: var(--kris-maroon-dark); text-decoration: none; }

.blog-meta { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--kris-muted); font-size: .85rem; }
.blog-meta li { display: inline-flex; align-items: center; gap: 5px; }
.blog-meta a { color: var(--kris-muted); }
.blog-meta a:hover { color: var(--kris-maroon); }

.blog-empty { text-align: center; padding: 60px 20px; background: var(--kris-soft); border: 1px dashed #d8c9c6; }
.blog-empty i { font-size: 2.6rem; color: var(--kris-maroon); margin-bottom: 14px; }
.blog-empty h2 { font-size: 1.4rem; color: var(--kris-head); }
.blog-empty p { text-align: center; margin-bottom: 0; }
.blog-filter-note { background: var(--kris-soft); border-left: 4px solid var(--kris-maroon); padding: 12px 16px; margin-bottom: 26px; }
.blog-filter-note a { font-weight: 600; }

/* ---------- Pagination ---------- */
.blog-pagination .page-link { color: var(--kris-maroon); border-color: var(--kris-line); min-width: 42px; text-align: center; }
.blog-pagination .page-item.active .page-link { background: var(--kris-maroon); border-color: var(--kris-maroon); color: #fff; }
.blog-pagination .page-link:hover { background: var(--kris-soft); color: var(--kris-maroon-dark); }
.blog-pagination .page-link:focus { box-shadow: 0 0 0 .2rem rgba(132, 34, 28, .2); }

/* ---------- Sidebar ---------- */
.blog-sidebar { position: sticky; top: 90px; }
.blog-widget { background: #fff; border: 1px solid var(--kris-line); padding: 22px; margin-bottom: 26px; }
.blog-widget-title { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--kris-head); margin: 0 0 16px; padding-bottom: 10px; position: relative; }
.blog-widget-title:after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--kris-maroon); }
.blog-search { position: relative; }
.blog-search .form-control { height: 46px; padding-right: 48px; border-radius: 0; border-color: #d7cfcd; }
.blog-search .form-control:focus { border-color: var(--kris-maroon); box-shadow: 0 0 0 .2rem rgba(132, 34, 28, .15); }
.blog-search button { position: absolute; right: 0; top: 0; height: 46px; width: 46px; border: 0; background: var(--kris-maroon); color: #fff; cursor: pointer; }
.blog-search button:hover { background: var(--kris-maroon-dark); }
.blog-list { list-style: none; padding: 0; margin: 0; }
.blog-list li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--kris-line); }
.blog-list li:last-child { border-bottom: 0; }
.blog-list a { color: #333; }
.blog-list a:hover { color: var(--kris-maroon); text-decoration: none; }
.blog-count { background: var(--kris-soft); color: var(--kris-maroon); font-size: .78rem; font-weight: 700; min-width: 26px; text-align: center; padding: 1px 7px; }
.blog-mini-list { list-style: none; padding: 0; margin: 0; }
.blog-mini-list li { display: flex; gap: 12px; margin-bottom: 14px; }
.blog-mini-list li:last-child { margin-bottom: 0; }
.blog-mini-img { flex: 0 0 72px; height: 56px; position: relative; overflow: hidden; display: block; }
.blog-mini-img img, .blog-mini-img .blog-noimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blog-mini-img .blog-noimg span { font-size: .7rem; letter-spacing: .15em; }
.blog-mini-list a { color: #333; font-weight: 600; line-height: 1.3; display: block; font-size: .92rem; }
.blog-mini-list a:hover { color: var(--kris-maroon); text-decoration: none; }
.blog-mini-list small { color: var(--kris-muted); }
.blog-popular { padding-left: 20px; margin: 0; }
.blog-popular li { margin-bottom: 8px; color: var(--kris-maroon); font-weight: 700; }
.blog-popular a { color: #333; font-weight: 600; }
.blog-popular a:hover { color: var(--kris-maroon); }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tags a { border: 1px solid #d8c9c6; color: #555; padding: 3px 10px; font-size: .85rem; transition: all .2s; }
.blog-tags a:hover { background: var(--kris-maroon); border-color: var(--kris-maroon); color: #fff; text-decoration: none; }
.blog-widget-rss a { color: var(--kris-maroon); font-weight: 700; }

/* ---------- Single post ---------- */
.blog-post-header { margin-bottom: 24px; }
.blog-post-header h1 { font-size: 2.2rem; font-weight: 700; color: var(--kris-head); line-height: 1.25; margin: 12px 0 14px; text-transform: none; }
.blog-post-lead { font-size: 1.15rem; color: #555; border-left: 4px solid var(--kris-maroon); padding-left: 16px; margin-bottom: 24px; }
.blog-post-image { margin: 0 0 28px; }
.blog-post-image img { width: 100%; height: auto; display: block; }
.blog-post-image figcaption { font-size: .85rem; color: var(--kris-muted); padding-top: 6px; }
.blog-content { font-size: 1.07rem; line-height: 1.85; color: #000; overflow-wrap: break-word; }
.blog-content h2, .blog-content h3, .blog-content h4 { color: var(--kris-head); font-weight: 700; margin: 1.6em 0 .6em; line-height: 1.3; }
.blog-content h2 { font-size: 1.6rem; }
.blog-content h3 { font-size: 1.3rem; }
.blog-content p { margin-bottom: 1.15em; }
.blog-content a { color: var(--kris-maroon); text-decoration: underline; }
/* The site theme colours b/u/sup/sub yellow (style.css: "b, sup, sub, u { color: #f8b600 }"). Keep post text black. */
.blog-content b, .blog-content strong, .blog-content u, .blog-content sup, .blog-content sub,
.blog-content em, .blog-content i, .blog-content span, .blog-content td, .blog-content th, .blog-content li { color: inherit; }
.blog-content a b, .blog-content a strong, .blog-content a u { color: inherit; }
/* Google Docs wraps pasted text in <b id="docs-internal-guid-…"> that is not meant to be bold. */
.blog-content b[id^="docs-internal-guid"] { font-weight: inherit; }
.blog-content img { max-width: 100%; height: auto; }
.blog-content figure { margin: 1.5em 0; }
.blog-content blockquote { border-left: 4px solid var(--kris-maroon); background: var(--kris-soft); padding: 16px 20px; margin: 1.5em 0; font-style: italic; color: #333; }
.blog-content ul, .blog-content ol { padding-left: 1.4em; margin-bottom: 1.15em; }
.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: .35em; }
.blog-content table { width: 100%; margin: 1.5em 0; border-collapse: collapse; }
.blog-content table td, .blog-content table th { border: 1px solid var(--kris-line); padding: 8px 10px; }
.blog-content table th { background: var(--kris-soft); }
.blog-content iframe { max-width: 100%; }
.blog-content .blog-embed, .blog-content p > iframe[src*="youtube"], .blog-content p > iframe[src*="vimeo"] { aspect-ratio: 16 / 9; width: 100%; height: auto; }
.blog-content pre { background: #f4f4f4; padding: 14px; overflow: auto; }

.blog-post-tags { margin: 30px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.blog-post-tags strong { margin-right: 4px; color: var(--kris-head); }
.blog-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; border-top: 1px solid var(--kris-line); border-bottom: 1px solid var(--kris-line); margin: 24px 0 30px; }
.blog-share strong { margin-right: 6px; color: var(--kris-head); }
.blog-share a, .blog-share button { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; border: 0; font-size: 1rem; cursor: pointer; transition: opacity .2s; }
.blog-share a:hover, .blog-share button:hover { opacity: .85; text-decoration: none; color: #fff; }
.blog-share .s-fb { background: #3b5998; } .blog-share .s-tw { background: #111; } .blog-share .s-in { background: #0a66c2; }
.blog-share .s-wa { background: #25d366; } .blog-share .s-em { background: #6c6c6c; } .blog-share .s-cp { background: var(--kris-maroon); }
.blog-share .s-copied { font-size: .85rem; color: var(--kris-maroon); display: none; }

.blog-author-box { display: flex; gap: 20px; background: var(--kris-soft); padding: 24px; margin-bottom: 30px; border-top: 3px solid var(--kris-maroon); }
.blog-author-box .blog-avatar { width: 84px; height: 84px; flex: 0 0 84px; font-size: 1.6rem; }
.blog-author-box h3 { font-size: 1.15rem; margin: 0 0 2px; }
.blog-author-box h3 a { color: var(--kris-head); }
.blog-author-box .role { color: var(--kris-maroon); font-size: .85rem; font-weight: 600; display: block; margin-bottom: 8px; }
.blog-author-box p { margin: 0; color: #444; font-size: .95rem; }
.blog-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--kris-maroon); color: #fff; font-weight: 700; overflow: hidden; }
.blog-avatar img { width: 100%; height: 100%; object-fit: cover; }

.blog-postnav { display: flex; gap: 16px; margin-bottom: 40px; }
.blog-postnav a { flex: 1; border: 1px solid var(--kris-line); padding: 14px 18px; color: var(--kris-head); transition: all .2s; }
.blog-postnav a:hover { border-color: var(--kris-maroon); color: var(--kris-maroon); text-decoration: none; }
.blog-postnav small { display: block; text-transform: uppercase; letter-spacing: .08em; color: var(--kris-muted); font-size: .72rem; margin-bottom: 2px; }
.blog-postnav .next { text-align: right; }
.blog-postnav span.placeholder { flex: 1; }

.blog-section-title { font-size: 1.35rem; font-weight: 700; color: var(--kris-head); text-transform: uppercase; margin: 0 0 22px; padding-bottom: 12px; position: relative; }
.blog-section-title:after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 2px; background: var(--kris-maroon); }
.blog-related .blog-card-title { font-size: 1.02rem; }
.blog-related .blog-card-text, .blog-related .blog-more { display: none; }

/* ---------- Comments ---------- */
.blog-comments { margin-top: 20px; }
.blog-comment { display: flex; gap: 14px; margin-bottom: 22px; }
.blog-comment .blog-avatar { width: 48px; height: 48px; flex: 0 0 48px; }
.blog-comment-body { flex: 1; background: #fafafa; border: 1px solid var(--kris-line); padding: 14px 18px; }
.blog-comment-body header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.blog-comment-body header strong { color: var(--kris-head); }
.blog-comment-body header time { color: var(--kris-muted); font-size: .82rem; }
.blog-comment-body p { margin: 0 0 6px; overflow-wrap: anywhere; }
.blog-staff-badge { background: var(--kris-maroon); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 1px 7px; letter-spacing: .06em; }
.blog-reply-link { background: none; border: 0; padding: 0; color: var(--kris-maroon); font-weight: 600; font-size: .85rem; cursor: pointer; }
.blog-replies { margin: 16px 0 0; }
.blog-replies .blog-comment { margin-bottom: 14px; }
.blog-replies .blog-comment-body { background: #fff; }
.blog-comment-form { background: var(--kris-soft); padding: 26px; border-top: 3px solid var(--kris-maroon); }
.blog-comment-form .form-control { border-radius: 0; border-color: #d7cfcd; }
.blog-comment-form .form-control:focus { border-color: var(--kris-maroon); box-shadow: 0 0 0 .2rem rgba(132, 34, 28, .15); }
.blog-comment-form label { font-weight: 600; color: var(--kris-head); }
.blog-comment-form .blog-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.blog-replying { display: none; background: #fff; border: 1px dashed var(--kris-maroon); padding: 8px 12px; margin-bottom: 14px; font-size: .9rem; }
.blog-replying button { background: none; border: 0; color: var(--kris-maroon); font-weight: 600; cursor: pointer; }
.blog-alert { padding: 12px 16px; margin-bottom: 20px; border-left: 4px solid; }
.blog-alert-success { background: #edf7ee; border-color: #2e7d32; color: #1b5e20; }
.blog-alert-error { background: #fdecea; border-color: #c62828; color: #8e1c1c; }
.blog-alert ul { margin: 6px 0 0; padding-left: 18px; }
.blog-preview-bar { background: #fff3cd; border-bottom: 2px solid #e0a800; color: #6b5100; text-align: center; padding: 8px; font-weight: 600; }

/* ---------- Author page ---------- */
.blog-author-hero { display: flex; gap: 24px; align-items: center; background: var(--kris-soft); padding: 28px; margin-bottom: 36px; border-top: 3px solid var(--kris-maroon); }
.blog-author-hero .blog-avatar { width: 110px; height: 110px; flex: 0 0 110px; font-size: 2rem; }
.blog-author-hero h2 { margin: 0; font-size: 1.6rem; color: var(--kris-head); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.blog-sidebar { position: static; margin-top: 30px; }
}
@media (max-width: 767px) {
	.blog-featured-img { flex-basis: 100%; min-height: 220px; }
	.blog-featured-body { flex-basis: 100%; padding: 22px; }
	.blog-featured-body h2 { font-size: 1.35rem; }
	.blog-post-header h1 { font-size: 1.6rem; }
	.blog-content { font-size: 1rem; }
	.blog-author-box, .blog-author-hero { flex-direction: column; text-align: center; align-items: center; }
	.blog-postnav { flex-direction: column; }
	.blog-postnav .next { text-align: left; }
}
