.blogs-page {
    --blog-navy: #061a42;
    --blog-blue: #087ceb;
    --blog-sky: #eaf5ff;
    --blog-gold: #e7ad42;
    background: #f7fbff !important;
    color: var(--blog-navy) !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.blog-categories-toggle, .blog-categories-drawer, .blog-categories-backdrop { display: none; }
body.blog-categories-open { overflow: hidden; }

.blogs-hero {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    color: #fff;
    background: linear-gradient(90deg, rgba(3, 22, 55, .96), rgba(4, 44, 91, .84)), url('../images/about-us/about-hero-scripture.png') center/cover;
}

.blogs-hero::after {
    position: absolute;
    right: 6%;
    bottom: -130px;
    width: 370px;
    height: 370px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(255, 255, 255, .035), 0 0 0 98px rgba(255, 255, 255, .025);
    content: "";
}

.blogs-hero__inner { position: relative; z-index: 1; min-height: 200px; padding-block: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.blogs-breadcrumbs { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.blogs-breadcrumbs a:hover { color: #fff; }
.blogs-kicker, .blogs-results__heading p { margin: 0 0 10px; color: #4fb8ff; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.blogs-hero h1 { margin: 0; color: #fff; font: 400 clamp(42px,4.5vw,58px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.025em; text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.blogs-ornament { margin: 9px 0 7px; display: flex; align-items: center; justify-content: center; gap: 11px; }
.blogs-ornament i { width: 58px; height: 1px; background: #d0a34d; }
.blogs-ornament img { width: 23px; height: 23px; object-fit: contain; filter: sepia(1) saturate(2.3) hue-rotate(348deg) brightness(.95); }
.blogs-hero__lead { margin: 7px 0 0; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.4; }

.blogs-content { padding: 76px 0 90px; background: radial-gradient(circle at 95% 3%, #e9f5ff 0, transparent 32%), #f7fbff; }
.blogs-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 54px; align-items: start; }
.blogs-sidebar { position: sticky; top: 24px; display: grid; gap: 28px; }
.blogs-search, .blogs-filter-block { padding: 24px; background: #fff; border: 1px solid #dce8f4; border-radius: 16px; box-shadow: 0 12px 32px rgba(13, 42, 76, .07); }
.blogs-search label, .blogs-filter-block h2 { display: block; margin: 0 0 14px; color: var(--blog-navy); font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; }
.blogs-search > div { display: flex; border: 1px solid #cfdeed; border-radius: 9px; overflow: hidden; }
.blogs-search input { min-width: 0; flex: 1; padding: 12px 13px; border: 0; outline: 0; color: #324760; font: 14px Arial, sans-serif; }
.blogs-search button { width: 44px; border: 0; color: #fff; background: var(--blog-blue); cursor: pointer; }
.blogs-filter-block nav { display: grid; }
.blogs-filter-block nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 2px; color: #61738b; border-bottom: 1px solid #e7eef5; font-size: 14px; font-weight: 700; }
.blogs-filter-block nav a:last-child { border: 0; }
.blogs-filter-block nav a:hover, .blogs-filter-block nav a.is-active { color: var(--blog-blue); }
.blogs-filter-block nav a.is-active span::before { margin-right: 8px; color: var(--blog-gold); content: "•"; }
.blogs-popular > a { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #e7eef5; }
.blogs-popular > a:last-child { padding-bottom: 0; border-bottom: 0; }
.blogs-popular img { width: 68px; height: 58px; object-fit: cover; border-radius: 8px; }
.blogs-popular span { min-width: 0; }
.blogs-popular strong { display: -webkit-box; overflow: hidden; color: var(--blog-navy); font-size: 13px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.blogs-popular small { display: block; margin-top: 5px; color: #8090a4; font-size: 11px; }

.blogs-results__heading { min-height: 62px; margin-bottom: 26px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.blogs-results__heading p { color: var(--blog-blue); }
.blogs-results__eyebrow-row { display: flex; align-items: center; gap: 15px; }
.blogs-results__heading h2 { margin: 0; color: var(--blog-navy); font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; }
.blogs-results__heading > a { flex: 0 0 auto; padding-bottom: 6px; color: #677b93; font-size: 13px; font-weight: 700; }
.blogs-results__heading > a i { margin-left: 6px; }
.blogs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.blog-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid #d7e5f2; border-radius: 17px; box-shadow: 0 15px 34px rgba(12, 42, 78, .08); transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(12,42,78,.13); }
.blog-card__image { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #e9f1f8; }
.blog-card__image img { display: block; }
.blog-card__backdrop { position: absolute; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px); object-fit: cover; filter: blur(16px); opacity: .2; transform: scale(1.05); }
.blog-card__artwork { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.blog-card:hover .blog-card__image img { transform: none; }
.blog-card__body { flex: 1; padding: 24px; display: flex; flex-direction: column; }
.blog-card__categories { min-height: 25px; display: flex; flex-wrap: wrap; gap: 7px; }
.blog-card__categories span, .blog-card__categories a { padding: 5px 10px; color: #076bcc; background: #e9f5ff; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.blog-card__date { margin: 15px 0 8px; color: #7c8da1; font-size: 12px; }
.blog-card__date i { margin-right: 5px; color: var(--blog-gold); }
.blog-card h3 { margin: 0; color: var(--blog-navy); font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.2; }
.blog-card h3 a:hover { color: var(--blog-blue); }
.blog-card__excerpt { margin: 13px 0 22px; color: #667991; font-size: 14px; line-height: 1.7; }
.blog-card__footer { margin-top: auto; padding-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #e4ecf3; }
.blog-card__footer span { overflow: hidden; color: #788ba1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.blog-card__footer span i { color: var(--blog-gold); }
.blog-card__footer a { flex: 0 0 auto; color: var(--blog-blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.blog-card__footer a i { margin-left: 6px; }

.blogs-empty { padding: 70px 28px; text-align: center; background: #fff; border: 1px solid #dce8f4; border-radius: 17px; }
.blogs-empty > i { color: #a9c9e8; font-size: 44px; }
.blogs-empty h3 { margin: 15px 0 6px; font: 700 27px Georgia, serif; }
.blogs-empty p { margin: 0 0 20px; color: #687b91; }
.blogs-empty a { display: inline-block; padding: 11px 18px; color: #fff; background: var(--blog-blue); border-radius: 8px; font-weight: 700; }
.blogs-pagination { margin-top: 40px; }
.blogs-pagination nav { display: flex; justify-content: center; }
.blogs-pagination .pagination { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.blogs-pagination li a { min-width: 40px; height: 40px; padding: 0 11px; display: grid; place-items: center; color: #5f748d; background: #fff; border: 1px solid #d7e5f2; border-radius: 8px; font-size: 13px; font-weight: 700; }
.blogs-pagination li.active a, .blogs-pagination li a:hover { color: #fff; background: var(--blog-blue); border-color: var(--blog-blue); }
.blogs-pagination li.disabled a { color: #aebac7; pointer-events: none; }

.blogs-footer { padding: 42px 0 20px; color: #fff; background: #051a3e; }
.blogs-footer__inner { display: flex; align-items: center; gap: 24px; }
.blogs-footer__inner img { width: 178px; }
.blogs-footer__inner p { margin: 0; color: rgba(255,255,255,.72); }
.blogs-footer__inner > div { margin-left: auto; display: flex; gap: 9px; }
.blogs-footer__inner > div a { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); border-radius: 50%; }
.blogs-footer__copyright { margin: 28px 0 0; padding-top: 18px; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 12px; }

.blog-detail-hero { padding: 62px 0 70px; color: #fff; background: linear-gradient(135deg, #061a42, #063f80); }
.blog-detail-hero .blogs-breadcrumbs { margin-bottom: 38px; }
.blog-detail-hero__inner { max-width: 980px; }
.blog-detail-hero .blog-card__categories { margin-bottom: 17px; }
.blog-detail-hero h1 { max-width: 930px; margin: 0; color: #fff; font: 700 clamp(40px, 6vw, 68px)/1.08 Georgia, serif; letter-spacing: -.03em; }
.blog-detail-hero__lead { max-width: 790px; margin: 22px 0 0; color: rgba(255,255,255,.78); font-size: 19px; line-height: 1.65; }
.blog-detail-hero__meta { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 24px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700; }
.blog-detail-hero__meta i { margin-right: 6px; color: #55baff; }
.blog-detail { max-width: 980px; padding-top: 64px; padding-bottom: 90px; }
.blog-detail__image { width: 100%; max-height: 610px; display: block; object-fit: contain; background: #edf4fa; border-radius: 18px; box-shadow: 0 20px 45px rgba(10,35,68,.12); }
.blog-detail__content { max-width: 780px; margin: 48px auto 0; color: #43566d; font: 17px/1.85 Georgia, serif; }
.blog-detail__content p { margin: 0 0 23px; }
.blog-detail__intro { padding-left: 22px; color: var(--blog-navy); border-left: 4px solid var(--blog-blue); font-size: 21px; font-weight: 700; line-height: 1.65 !important; }
.blog-detail__back { margin-top: 28px; padding-top: 24px; display: inline-block; color: var(--blog-blue); border-top: 1px solid #dce6ef; font: 800 13px Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.blog-detail__back i { margin-right: 8px; }

@media (max-width: 1040px) {
    .blogs-layout { grid-template-columns: 240px minmax(0,1fr); gap: 30px; }
    .blog-card__body { padding: 20px; }
    .blog-card h3 { font-size: 22px; }
}

@media (max-width: 820px) {
    .blogs-hero, .blogs-hero__inner { min-height: 180px; }
    .blogs-hero__inner { padding-block: 18px; }
    .blogs-layout { grid-template-columns: 1fr; }
    .blogs-sidebar { position: static; grid-template-columns: 1fr; }
    .blogs-sidebar > .blogs-filter-block { display: none; }
    .blogs-content { padding-block: 52px 68px; }
    .blogs-results__eyebrow-row { margin-bottom: 10px; justify-content: space-between; gap: 16px; }
    .blogs-results__eyebrow-row > p { margin: 0; }
    .blog-categories-toggle { min-height: 40px; padding: 0 14px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; color: #1768ad; background: rgba(255,255,255,.78); border: 1px solid #a9cce8; border-radius: 999px; box-shadow: 0 4px 12px rgba(8,69,124,.07); cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
    .blog-categories-toggle i { color: var(--blog-blue); font-size: 14px; }
    .blog-categories-toggle:hover, .blog-categories-toggle:focus-visible { color: #fff; background: var(--blog-blue); border-color: var(--blog-blue); outline: none; }
    .blog-categories-toggle:hover i, .blog-categories-toggle:focus-visible i { color: #fff; }
    .blog-categories-drawer { position: fixed; z-index: 191; right: 0; bottom: 0; left: 0; width: 100%; max-height: 65vh; padding: 20px max(18px,calc((100% - 620px)/2)); overflow-y: auto; background: #f8fbff; border: 0; border-top: 1px solid #9fc7e6; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(3,29,63,.28); overscroll-behavior: contain; }
    .blog-categories-drawer::before { width: 45px; height: 4px; margin: -9px auto 12px; display: block; background: #b9ccdc; border-radius: 999px; content: ""; }
    .blog-categories-drawer[hidden], .blog-categories-backdrop[hidden] { display: none; }
    .blog-categories-drawer:not([hidden]), .blog-categories-backdrop:not([hidden]) { display: block; }
    .blog-categories-drawer__header { position: sticky; top: -20px; z-index: 1; padding-top: 2px; display: flex; align-items: center; justify-content: space-between; background: #f8fbff; border-bottom: 1px solid #ccdeee; }
    .blog-categories-drawer__header h2 { margin: 0 0 10px; color: var(--blog-navy); font: 400 27px Georgia,serif; }
    .blog-categories-drawer__header button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--blog-navy); background: #fff; border: 1px solid #b8d4ea; border-radius: 7px; cursor: pointer; font-size: 19px; }
    .blog-categories-drawer > a { min-height: 58px; display: grid; grid-template-columns: 34px minmax(0,1fr) 12px; gap: 10px; align-items: center; color: #405a75; border-bottom: 1px solid #dce8f2; font-size: 15px; font-weight: 700; }
    .blog-categories-drawer > a:last-child { border-bottom: 0; }
    .blog-categories-drawer > a > i:first-child { color: #7793ad; font-size: 18px; text-align: center; }
    .blog-categories-drawer > a > i:last-child { color: #8299af; }
    .blog-categories-drawer > a.is-active { color: var(--blog-blue); }
    .blog-categories-drawer > a.is-active > i:first-child { color: var(--blog-gold); }
    .blog-categories-backdrop { position: fixed; z-index: 190; inset: 0; background: rgba(3,17,37,.4); backdrop-filter: blur(2px); }
}

@media (max-width: 600px) {
    .blogs-page .about-container { width: min(100% - 30px, 1240px); }
    .blogs-hero h1 { font-size: 40px; }
    .blogs-ornament { margin-block: 8px 6px; }
    .blogs-ornament i { width: 48px; }
    .blogs-breadcrumbs { font-size: 12px; }
    .blogs-hero__lead { margin-top: 6px; font-size: 14px; }
    .blogs-sidebar, .blogs-grid { grid-template-columns: 1fr; }
    .blogs-results__heading { align-items: start; flex-direction: column; gap: 12px; }
    .blogs-results__eyebrow-row { justify-content: space-between; }
    .blog-card h3 { font-size: 23px; }
    .blogs-footer__inner { flex-direction: column; text-align: center; }
    .blogs-footer__inner > div { margin-left: 0; }
    .blog-detail-hero { padding-block: 42px 50px; }
    .blog-detail-hero h1 { font-size: 38px; }
    .blog-detail { padding-top: 34px; }
    .blog-detail__content { margin-top: 32px; font-size: 16px; }
}
