/*
Theme Name: FG Grant Loan Premium
Theme URI: https://fggrantloan.ng/
Author: FG Grant Loan
Description: Lightweight, accessible editorial theme for FG Grant Loan. Preserves WordPress posts, categories, URLs, and existing ad integrations.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: fggrantloan-premium
*/
:root{--fgl-green:#123d2c;--fgl-green-2:#1b6548;--fgl-gold:#c99b42;--fgl-ink:#17231e;--fgl-muted:#66736c;--fgl-line:#e4eae6;--fgl-soft:#f4f8f5;--fgl-white:#fff;--fgl-radius:14px;--fgl-shadow:0 12px 34px rgba(17,55,39,.08);--fgl-width:1160px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--fgl-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.72;-webkit-font-smoothing:antialiased}img{max-width:100%;height:auto}a{color:var(--fgl-green-2);text-decoration:none}a:hover{color:#0b3b29}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #e3b858;outline-offset:3px}button,input{font:inherit}.wrap{width:min(calc(100% - 36px),var(--fgl-width));margin-inline:auto}.skip-link{position:absolute;left:-9999px;top:0;background:#fff;padding:12px;z-index:9999}.skip-link:focus{left:12px}.site-topline{background:var(--fgl-green);color:#e7f0ea;font-size:12px;letter-spacing:.02em}.site-topline .wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px}.site-header{background:#fff;border-bottom:1px solid var(--fgl-line);position:relative;z-index:50}.header-main{min-height:82px;display:flex;align-items:center;gap:26px;justify-content:space-between}.brand{display:flex;align-items:center;gap:11px;min-width:190px;color:var(--fgl-green);font-weight:800;letter-spacing:-.04em;font-size:22px;line-height:1.1}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--fgl-green);color:#f0cf7d;font-size:17px;font-weight:900;letter-spacing:-.05em}.brand img{max-width:54px;max-height:54px;object-fit:contain}.brand .custom-logo{width:auto;max-width:58px;max-height:58px}.brand small{display:block;font-size:10px;font-weight:650;letter-spacing:.09em;text-transform:uppercase;color:#728078;margin-top:5px}.main-nav{margin-left:auto}.main-nav ul{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}.main-nav a{font-size:13px;font-weight:700;color:#2b3932;white-space:nowrap}.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--fgl-green-2)}.header-actions{display:flex;align-items:center;gap:12px}.search-toggle,.menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--fgl-line);background:#fff;border-radius:50%;color:var(--fgl-green);cursor:pointer}.menu-toggle{display:none}.header-search{display:none;padding:0 0 18px}.header-search.is-open{display:block}.header-search form{display:flex;max-width:620px;margin-left:auto}.header-search input[type=search]{min-width:0;flex:1;padding:13px 15px;border:1px solid var(--fgl-line);border-radius:9px 0 0 9px}.header-search button,.button{border:0;background:var(--fgl-green);color:#fff;font-weight:750;padding:12px 18px;border-radius:0 9px 9px 0;cursor:pointer}.button{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;gap:8px}.button:hover,.header-search button:hover{background:#0a2e20;color:#fff}.hero{position:relative;isolation:isolate;overflow:hidden;background:#102f24 url('assets/images/hero-finance.svg') center/cover no-repeat;color:#fff;padding:58px 0 52px}.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,35,25,.97) 0%,rgba(12,53,37,.91) 48%,rgba(15,57,41,.55) 100%)}.hero-inner{max-width:760px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#e8c777;font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;margin:0 0 14px}.eyebrow:before{content:"";width:24px;height:2px;background:var(--fgl-gold)}.hero h1{font-size:clamp(32px,4.2vw,52px);line-height:1.1;letter-spacing:-.045em;max-width:720px;margin:0 0 14px;color:#fff}.hero p{font-size:16px;line-height:1.65;color:#e0ebe4;max-width:600px;margin:0 0 25px}.hero-search{display:flex;max-width:640px;background:#fff;border-radius:10px;padding:5px;box-shadow:0 14px 34px rgba(0,0,0,.16)}.hero-search input{border:0;outline:0;min-width:0;flex:1;padding:12px 14px;color:#17231e;background:transparent}.hero-search button{border:0;border-radius:7px;background:var(--fgl-gold);color:#1b2a20;font-weight:800;padding:0 22px;cursor:pointer}.hero-search button:hover{background:#e0b85f}.popular-searches{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:15px;font-size:12px;color:#d4e0d8}.popular-searches a{display:inline-flex;padding:5px 10px;border:1px solid rgba(255,255,255,.24);border-radius:30px;color:#fff;font-size:11px}.popular-searches a:hover{background:rgba(255,255,255,.12)}.section{padding:42px 0}.section.soft{background:var(--fgl-soft)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}.section-head h2{margin:0;font-size:clamp(22px,2.5vw,29px);line-height:1.2;letter-spacing:-.035em;color:var(--fgl-ink)}.section-head p{margin:7px 0 0;color:var(--fgl-muted);font-size:13px}.text-link{font-size:13px;font-weight:800;white-space:nowrap}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.category-card{display:flex;flex-direction:column;gap:12px;min-height:0;padding:12px;border:1px solid var(--fgl-line);border-radius:12px;background:#fff;color:var(--fgl-ink);transition:transform .18s,border-color .18s,box-shadow .18s}.category-card:hover{transform:translateY(-3px);border-color:#c8d9ce;box-shadow:var(--fgl-shadow);color:var(--fgl-green)}.category-photo{display:block;width:100%;aspect-ratio:16/7;overflow:hidden;border-radius:8px;background:#edf2ee}.category-photo img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}.category-card:hover .category-photo img{transform:scale(1.035)}.category-card strong{font-size:14px;line-height:1.3}.category-card span:last-child{font-size:11px;color:var(--fgl-muted)}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.post-card{min-width:0;background:#fff;border:1px solid var(--fgl-line);border-radius:12px;overflow:hidden;transition:transform .18s,box-shadow .18s}.post-card:hover{transform:translateY(-3px);box-shadow:var(--fgl-shadow)}.post-thumb{display:block;aspect-ratio:16/9;background:#edf2ee;overflow:hidden}.post-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s}.post-card:hover .post-thumb img{transform:scale(1.025)}.post-card-body{padding:15px 16px 17px}.post-category{display:inline-block;color:var(--fgl-green-2);font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px}.post-card h3{font-size:17px;line-height:1.38;letter-spacing:-.02em;margin:0 0 9px}.post-card h3 a{color:var(--fgl-ink)}.post-card h3 a:hover{color:var(--fgl-green-2)}.post-meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--fgl-muted);font-size:11px}.post-excerpt{font-size:13px;line-height:1.6;color:var(--fgl-muted);margin:9px 0 0}.featured-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.featured-lead .post-thumb{aspect-ratio:16/9}.featured-lead .post-card-body{padding:18px}.featured-lead h3{font-size:23px}.compact-list{display:flex;flex-direction:column;gap:13px}.compact-post{display:grid;grid-template-columns:110px 1fr;gap:13px;align-items:center;padding-bottom:13px;border-bottom:1px solid var(--fgl-line)}.compact-post:last-child{padding-bottom:0;border:0}.compact-post .post-thumb{aspect-ratio:4/3;border-radius:8px}.compact-post h3{font-size:14px;line-height:1.4;margin:0 0 5px}.compact-post h3 a{color:var(--fgl-ink)}.compact-post .post-meta{font-size:10px}.trust-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.trust-item{display:flex;gap:13px;align-items:flex-start}.trust-check{flex:0 0 34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e7f2eb;color:var(--fgl-green);font-weight:900}.trust-item h3{font-size:14px;margin:0 0 4px}.trust-item p{font-size:12px;line-height:1.6;color:var(--fgl-muted);margin:0}.disclaimer-box{margin-top:22px;border-left:3px solid var(--fgl-gold);padding:12px 15px;background:#fffaf0;color:#5b513c;font-size:12px;line-height:1.65}.site-footer{background:#102c21;color:#dce8e0;padding:42px 0 18px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px}.footer-brand{color:#fff;font-size:21px;font-weight:850;letter-spacing:-.04em}.footer-about p{max-width:310px;color:#c0d0c6;font-size:12px;line-height:1.7}.footer-col h2{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#fff;margin:0 0 13px}.footer-col ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.footer-col a{font-size:12px;color:#c8d8ce}.footer-col a:hover{color:#f2cf7a}.footer-bottom{border-top:1px solid rgba(255,255,255,.13);margin-top:28px;padding-top:15px;display:flex;justify-content:space-between;gap:14px;color:#b8c9bf;font-size:11px}.breadcrumbs{font-size:12px;color:var(--fgl-muted);padding:18px 0;line-height:1.5}.breadcrumbs a{color:#4e6659}.breadcrumbs .sep{margin:0 8px;color:#9aa69f}.page-title{font-size:clamp(27px,3vw,40px);line-height:1.18;letter-spacing:-.04em;margin:0 0 12px}.archive-intro{max-width:780px;color:var(--fgl-muted);font-size:14px;margin:0 0 25px}.archive-layout{padding:10px 0 50px}.archive-layout .post-grid{margin-top:20px}.pagination{margin:28px 0 0}.pagination .nav-links{display:flex;gap:7px;flex-wrap:wrap}.page-numbers{padding:8px 12px;border:1px solid var(--fgl-line);border-radius:7px;font-size:13px}.page-numbers.current{background:var(--fgl-green);color:#fff;border-color:var(--fgl-green)}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:42px;padding-bottom:54px}.article{min-width:0}.article-header{padding:2px 0 18px;border-bottom:1px solid var(--fgl-line);margin-bottom:22px}.article-title{font-size:clamp(30px,3.5vw,44px);line-height:1.12;letter-spacing:-.045em;margin:4px 0 14px}.article-deck{font-size:17px;color:#52645a;line-height:1.65;margin:0 0 15px}.article-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--fgl-muted);font-size:12px}.article-featured{margin:0 0 22px}.article-featured img{display:block;width:100%;height:auto;max-height:420px;object-fit:cover;border-radius:12px}.entry-content{font-size:17px;line-height:1.82;color:#28362f;overflow-wrap:anywhere}.entry-content h2{font-size:27px;line-height:1.25;letter-spacing:-.03em;color:var(--fgl-ink);margin:34px 0 12px}.entry-content h3{font-size:21px;line-height:1.35;color:var(--fgl-ink);margin:26px 0 10px}.entry-content p{margin:0 0 20px}.entry-content ul,.entry-content ol{padding-left:25px;margin:0 0 22px}.entry-content li{padding-left:3px;margin:0 0 8px}.entry-content blockquote{border-left:4px solid var(--fgl-gold);margin:24px 0;padding:12px 20px;background:var(--fgl-soft);color:#425349}.entry-content table{width:100%;border-collapse:collapse;font-size:14px;display:block;overflow-x:auto}.entry-content th,.entry-content td{border:1px solid var(--fgl-line);padding:10px 12px;text-align:left}.entry-content th{background:var(--fgl-soft)}.entry-content img{border-radius:9px}.post-tags{margin-top:25px;font-size:12px}.post-tags a{display:inline-block;background:var(--fgl-soft);padding:5px 9px;border-radius:5px;margin:0 4px 4px 0}.article-sidebar{min-width:0}.sidebar-widget{border:1px solid var(--fgl-line);border-radius:12px;padding:17px;margin-bottom:18px;background:#fff}.sidebar-widget h2{font-size:15px;line-height:1.35;margin:0 0 15px;letter-spacing:-.02em}.related-list{display:flex;flex-direction:column;gap:14px}.related-item{display:grid;grid-template-columns:84px minmax(0,1fr);gap:11px;align-items:start}.related-item img{width:84px;height:66px;object-fit:cover;border-radius:7px;background:#edf2ee}.related-item h3{font-size:12px;line-height:1.45;margin:0 0 5px}.related-item h3 a{color:var(--fgl-ink)}.related-item h3 a:hover{color:var(--fgl-green-2)}.related-item time{font-size:10px;color:var(--fgl-muted)}.sidebar-search form{display:flex}.sidebar-search input{width:100%;min-width:0;border:1px solid var(--fgl-line);border-radius:7px 0 0 7px;padding:10px;font-size:12px}.sidebar-search button{border:0;border-radius:0 7px 7px 0;background:var(--fgl-green);color:#fff;padding:0 12px;cursor:pointer}.author-box{margin-top:28px;padding:18px;border:1px solid var(--fgl-line);border-radius:12px;background:var(--fgl-soft);font-size:13px}.author-box strong{display:block;margin-bottom:5px}.related-below{padding:30px 0 45px;border-top:1px solid var(--fgl-line)}.related-below .post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.search-results-title{margin:0 0 20px}.empty-state{padding:35px;border:1px dashed #cad8cf;border-radius:12px;text-align:center;background:var(--fgl-soft)}.whatsapp-float{position:fixed;z-index:90;right:18px;bottom:22px;display:flex;align-items:center;gap:10px;padding:10px 15px 10px 11px;border-radius:999px;background:#168b50;color:#fff;box-shadow:0 8px 24px rgba(10,55,31,.25);font-size:12px;font-weight:800;transition:transform .18s,box-shadow .18s}.whatsapp-float:hover{color:#fff;transform:translateY(-2px);box-shadow:0 12px 28px rgba(10,55,31,.3)}.whatsapp-icon{width:31px;height:31px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.45);border-radius:50%;font-size:17px}.whatsapp-label{max-width:145px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px){.main-nav ul{gap:14px}.main-nav a{font-size:12px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.footer-grid{grid-template-columns:1.3fr 1fr 1fr}.footer-col:last-child{grid-column:2/4}}
@media(max-width:820px){.header-main{min-height:70px}.menu-toggle{display:inline-flex}.main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--fgl-line);padding:12px 18px 18px;box-shadow:0 15px 20px rgba(17,55,39,.08)}.main-nav.is-open{display:block}.main-nav ul{display:grid;gap:0}.main-nav li a{display:block;padding:12px 3px;border-bottom:1px solid #eef2ef;font-size:14px}.header-actions{margin-left:auto}.hero{padding:45px 0 40px}.featured-grid{grid-template-columns:1fr}.featured-lead .post-thumb{aspect-ratio:16/7}.content-layout{grid-template-columns:minmax(0,1fr) 260px;gap:24px}.entry-content{font-size:16px}.related-below .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.wrap{width:min(calc(100% - 28px),var(--fgl-width))}.site-topline .wrap{justify-content:center;text-align:center;min-height:30px}.site-topline .topline-extra{display:none}.brand{font-size:19px;min-width:0}.brand img,.brand .custom-logo{max-width:46px;max-height:46px}.header-main{gap:10px}.header-actions{gap:7px}.search-toggle,.menu-toggle{width:38px;height:38px}.hero{padding:39px 0 35px;background-position:58% center}.hero:before{background:linear-gradient(90deg,rgba(8,35,25,.96),rgba(12,53,37,.84))}.hero h1{font-size:34px}.hero p{font-size:14px}.hero-search{padding:4px}.hero-search input{padding:10px;font-size:13px}.hero-search button{padding:0 13px;font-size:12px}.popular-searches{gap:6px}.section{padding:31px 0}.section-head{align-items:start}.section-head h2{font-size:23px}.section-head p{font-size:12px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-card{min-height:0;padding:10px;gap:8px}.category-photo{aspect-ratio:16/8}.category-card strong{font-size:13px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.post-card-body{padding:11px 11px 13px}.post-card h3{font-size:14px}.post-meta{font-size:10px}.post-excerpt{display:none}.post-category{font-size:9px}.featured-lead .post-thumb{aspect-ratio:16/9}.featured-lead h3{font-size:18px}.compact-post{grid-template-columns:86px 1fr;gap:10px}.compact-post h3{font-size:12px}.compact-post .post-thumb{aspect-ratio:1/1}.trust-strip{grid-template-columns:1fr;gap:18px}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 17px}.footer-about{grid-column:1/-1}.footer-col:last-child{grid-column:auto}.footer-bottom{flex-direction:column;gap:5px}.content-layout{display:flex;flex-direction:column;gap:25px}.article-sidebar{order:2}.article-title{font-size:31px}.article-deck{font-size:15px}.entry-content h2{font-size:23px}.entry-content h3{font-size:19px}.article-featured img{max-height:280px}.related-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.related-item{grid-template-columns:1fr;gap:7px}.related-item img{width:100%;height:auto;aspect-ratio:16/9}.sidebar-widget{padding:14px}.related-below .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.whatsapp-float{right:12px;bottom:14px;padding:7px 11px 7px 7px;gap:7px}.whatsapp-icon{width:29px;height:29px}.whatsapp-label{font-size:11px;max-width:125px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

/* Optional in-content AdSense placements. */
.fglp-incontent-ad{clear:both;display:block;width:100%;max-width:100%;margin:28px auto 30px;padding:12px 0;text-align:center;overflow:hidden;border-top:1px solid var(--fgl-line);border-bottom:1px solid var(--fgl-line)}.fglp-ad-label{display:block;margin:0 0 7px;color:var(--fgl-muted);font-size:10px;line-height:1.3;letter-spacing:.08em;text-transform:uppercase}.fglp-incontent-ad ins.adsbygoogle{display:block;min-height:100px;max-width:100%;margin-inline:auto}.fglp-incontent-ad script{display:none}

/* Homepage: four newest updated articles in a clean feature grid. */
.featured-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.featured-articles-grid .post-card { height: 100%; }
.featured-articles-grid .post-thumb { aspect-ratio: 16 / 10; }
.featured-articles-grid .post-card-body { padding: 14px; }
.featured-articles-grid .post-card h3 { font-size: 16px; line-height: 1.4; }

/* The next ten items are a separate list, never repeated in Featured Articles. */
.latest-guides-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
}
.latest-guides-grid .compact-post {
    min-width: 0;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--fgl-line);
}
.latest-guides-grid .compact-post .post-thumb { aspect-ratio: 4 / 3; }
.latest-guides-grid .compact-post h3 { font-size: 14px; }

@media (max-width: 900px) {
    .featured-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
    .featured-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .featured-articles-grid .post-card-body { padding: 10px; }
    .featured-articles-grid .post-card h3 { font-size: 14px; }
    .latest-guides-grid { grid-template-columns: 1fr; gap: 13px; }
    .latest-guides-grid .compact-post { grid-template-columns: 94px minmax(0, 1fr); gap: 11px; }
}
@media (max-width: 380px) {
    .featured-articles-grid { grid-template-columns: 1fr; }
}



/* Homepage begins with the featured article grid; the hero is removed. */
.home .featured-articles-section { padding-top: 34px; }
.home .featured-articles-grid { align-items: stretch; }
.home .featured-articles-grid .post-card { display: flex; flex-direction: column; }
.home .featured-articles-grid .post-card-body { flex: 1; }
@media (max-width: 650px) {
  .home .featured-articles-section { padding-top: 24px; }
  .home .featured-articles-grid { gap: 12px; }
}


/* Featured articles: consistent card grid, including 2 x 2 on mobile. */
.home .featured-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.home .featured-articles-grid > .post-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--fgl-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(17, 55, 39, .045);
}
.home .featured-articles-grid .post-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #edf2ee;
}
.home .featured-articles-grid .post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home .featured-articles-grid .post-card-body {
    flex: 1;
    padding: 14px;
}
.home .featured-articles-grid .post-card h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0 0 8px;
}
@media (max-width: 900px) {
    .home .featured-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}
@media (max-width: 650px) {
    .home .featured-articles-section { padding-top: 24px; }
    .home .featured-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }
    .home .featured-articles-grid .post-card-body { padding: 10px; }
    .home .featured-articles-grid .post-card h3 {
        font-size: 13px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }
    .home .featured-articles-grid .post-meta { font-size: 10px; gap: 5px; }
    .home .featured-articles-grid .post-category { font-size: 9px; }
}
@media (max-width: 380px) {
    .home .featured-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px;
    }
    .home .featured-articles-grid .post-card-body { padding: 8px; }
    .home .featured-articles-grid .post-card h3 { font-size: 12px; }
}


/* Responsive image logo: overrides legacy 54px/58px logo limits. */
.site-header .header-main > a.brand {
  display:flex !important; align-items:center; flex:0 1 360px !important;
  width:min(100%,360px) !important; max-width:360px !important; min-width:0 !important;
  margin:0 !important; padding:0 !important; gap:0 !important; line-height:0 !important;
}
.site-header .header-main > a.brand img,
.site-header .header-main > a.brand img.custom-logo {
  display:block !important; width:100% !important; max-width:360px !important;
  height:auto !important; max-height:none !important; min-width:0 !important;
  margin:0 !important; padding:0 !important; object-fit:contain !important; object-position:left center !important;
}
.site-header .header-main > a.brand .brand-fallback {font-size:clamp(20px,2vw,30px);font-weight:800;line-height:1.2;white-space:nowrap;color:var(--fgl-green,#123d2c)}
@media(max-width:1200px){.site-header .header-main > a.brand{flex-basis:300px !important;width:min(100%,300px) !important;max-width:300px !important}}
@media(max-width:900px){.site-header .header-main{flex-wrap:nowrap !important;gap:10px}.site-header .header-main > a.brand{flex-basis:280px !important;width:min(100%,280px) !important;max-width:280px !important;margin-right:auto !important}.site-header .header-main .header-actions{flex:0 0 auto;margin-left:auto}}
@media(max-width:600px){.site-header .header-main > a.brand{flex-basis:235px !important;width:min(100%,235px) !important;max-width:235px !important}}
@media(max-width:420px){.site-header .header-main > a.brand{flex-basis:205px !important;width:min(100%,205px) !important;max-width:205px !important}.site-header .header-main{gap:7px}}
@media(max-width:360px){.site-header .header-main > a.brand{flex-basis:175px !important;width:min(100%,175px) !important;max-width:175px !important}}

/* Single-post layout fixes: give the headline full width before the article/sidebar columns. */
.single-post-main .single-article-heading{padding-bottom:4px}
.single-post-main .single-article-heading .article-header{max-width:100%;margin:0 0 24px;padding:2px 0 20px}
.single-post-main .article-title{max-width:100%;font-size:clamp(32px,4vw,50px);line-height:1.12;text-wrap:pretty;overflow-wrap:normal;word-break:normal}
.single-post-main .content-layout{align-items:start;grid-template-columns:minmax(0,1fr) 300px;gap:38px}
.single-post-main .article{min-width:0;max-width:100%}
.single-post-main .entry-content{max-width:100%;overflow-wrap:break-word}
@media(max-width:1024px){.single-post-main .content-layout{display:flex;flex-direction:column;gap:25px}.single-post-main .article-sidebar{width:100%;order:2}}
@media(max-width:650px){.single-post-main .single-article-heading .article-header{margin-bottom:18px}.single-post-main .article-title{font-size:clamp(29px,7vw,36px);line-height:1.14}.single-post-main .content-layout{display:flex;flex-direction:column;gap:25px}.single-post-main .article-sidebar{order:2}}

/* Sticky related-post sidebar: stays visible while the article scrolls on desktop. */
@media (min-width: 1025px){.single-post-main .article-sidebar{position:sticky;top:18px;align-self:start;max-height:calc(100vh - 36px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:2px}.single-post-main .related-sidebar-widget{box-shadow:0 5px 18px rgba(20,48,34,.045)}}
@media (max-width:1024px){.single-post-main .article-sidebar{position:static;top:auto;max-height:none;overflow:visible}}

/* Refined single-article reading layout. Homepage styles are intentionally untouched. */
.single-post-main { padding-bottom: 28px; }
.single-post-main > .wrap:first-child,
.single-post-main > .single-article-heading,
.single-post-main > .content-layout { width: min(calc(100% - 48px), 1120px); }
.single-post-main .breadcrumbs { padding: 22px 0 14px; font-size: 12px; }
.single-post-main .single-article-heading { padding-bottom: 0; }
.single-post-main .single-article-heading .article-header { max-width: 900px; margin: 0 0 26px; padding: 0 0 22px; }
.single-post-main .article-header .post-category { margin-bottom: 10px; }
.single-post-main .article-title { max-width: 900px; font-size: clamp(30px, 3.2vw, 43px); line-height: 1.14; letter-spacing: -.04em; margin: 0 0 14px; color: var(--fgl-ink); }
.single-post-main .article-deck { max-width: 780px; font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.single-post-main .article-meta { gap: 9px 16px; font-size: 12px; }
.single-post-main .content-layout { grid-template-columns: minmax(0, 730px) minmax(270px, 330px); justify-content: space-between; align-items: start; gap: 38px; padding-bottom: 38px; }
.single-post-main .article { min-width: 0; }
.single-post-main .article-featured { margin: 0 0 26px; }
.single-post-main .article-featured img { width: 100%; max-height: 440px; object-fit: contain; object-position: center; border-radius: 12px; background: #f4f7f5; }
.single-post-main .entry-content { max-width: 100%; font-size: 17px; line-height: 1.82; overflow-wrap: break-word; }
.single-post-main .entry-content > *:first-child { margin-top: 0; }
.single-post-main .entry-content h2 { margin-top: 32px; font-size: 26px; }
.single-post-main .entry-content h3 { margin-top: 24px; font-size: 20px; }
.single-post-main .entry-content p { margin-bottom: 19px; }
.single-post-main .article-sidebar { min-width: 0; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 3px 4px 0; }
.single-post-main .sidebar-widget { padding: 18px; border-radius: 13px; box-shadow: 0 5px 18px rgba(20,48,34,.035); }
.single-post-main .related-sidebar-widget .related-list { gap: 0; }
.single-post-main .related-sidebar-widget .related-item { grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf1ee; }
.single-post-main .related-sidebar-widget .related-item:first-child { padding-top: 0; }
.single-post-main .related-sidebar-widget .related-item:last-child { padding-bottom: 0; border-bottom: 0; }
.single-post-main .related-sidebar-widget .related-item img { width: 88px; height: 68px; }
.single-post-main .related-sidebar-widget .related-item h3 { font-size: 13px; line-height: 1.42; }
.single-post-main .related-sidebar-widget .related-item time { font-size: 11px; }
.single-post-main .sidebar-search { margin-bottom: 16px; }
.single-post-main .author-box { margin-top: 28px; line-height: 1.7; }
@media (max-width: 1100px) {
  .single-post-main > .wrap:first-child,
  .single-post-main > .single-article-heading,
  .single-post-main > .content-layout { width: min(calc(100% - 36px), 960px); }
  .single-post-main .content-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; }
}
@media (max-width: 900px) {
  .single-post-main > .wrap:first-child,
  .single-post-main > .single-article-heading,
  .single-post-main > .content-layout { width: min(calc(100% - 32px), 760px); }
  .single-post-main .single-article-heading .article-header { margin-bottom: 22px; }
  .single-post-main .content-layout { display: flex; flex-direction: column; gap: 28px; }
  .single-post-main .article, .single-post-main .article-sidebar { width: 100%; }
  .single-post-main .article-sidebar { position: static; max-height: none; overflow: visible; padding: 0; }
  .single-post-main .related-sidebar-widget .related-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 18px; }
  .single-post-main .related-sidebar-widget .related-item { border-bottom: 1px solid #edf1ee; padding: 12px 0; }
}
@media (max-width: 600px) {
  .single-post-main > .wrap:first-child,
  .single-post-main > .single-article-heading,
  .single-post-main > .content-layout { width: calc(100% - 28px); }
  .single-post-main .breadcrumbs { padding: 16px 0 12px; }
  .single-post-main .single-article-heading .article-header { padding-bottom: 18px; margin-bottom: 20px; }
  .single-post-main .article-title { font-size: clamp(28px, 7.4vw, 35px); line-height: 1.15; letter-spacing: -.035em; }
  .single-post-main .article-deck { font-size: 15px; }
  .single-post-main .article-meta { font-size: 11px; }
  .single-post-main .article-featured img { max-height: none; object-fit: contain; }
  .single-post-main .entry-content { font-size: 16px; line-height: 1.78; }
  .single-post-main .entry-content h2 { font-size: 23px; }
  .single-post-main .entry-content h3 { font-size: 19px; }
  .single-post-main .related-sidebar-widget .related-list { grid-template-columns: 1fr; }
  .single-post-main .related-sidebar-widget .related-item { grid-template-columns: 90px minmax(0,1fr); }
}

/* Final sticky-sidebar fix: keep the related guides visible while the article scrolls.
   Scope is limited to single posts; homepage and other templates are unaffected. */
@media screen and (min-width: 901px) {
  body.single-post .single-post-main .content-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 730px) minmax(270px, 330px) !important;
    align-items: start !important;
    justify-content: space-between;
    overflow: visible !important;
  }
  body.single-post .single-post-main .article-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px !important;
    align-self: start !important;
    height: max-content !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    padding: 0 0 4px !important;
  }
}
@media screen and (max-width: 900px) {
  body.single-post .single-post-main .content-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.single-post .single-post-main .article-sidebar {
    position: static !important;
    top: auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}
/* Icon-only social share buttons */

.post-share .post-share-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
}

.post-share .share-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    color: #fff !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.post-share .share-button svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    flex: 0 0 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.post-share .share-whatsapp {
    background: #25D366 !important;
}

.post-share .share-facebook {
    background: #1877F2 !important;
}

.post-share .share-twitter {
    background: #000 !important;
}

.post-share .share-messenger {
    background: #0866FF !important;
}

.post-share .share-button:hover {
    filter: brightness(.9);
}

.post-share .share-button:focus-visible {
    outline: 3px solid #e3b858;
    outline-offset: 3px;
}
/* FGGrantLoan: Fix WhatsApp channel icon size */

.fgl-whatsapp-channel-invite {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.fgl-whatsapp-channel-invite .fgl-wa-join-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 40px !important;

    padding: 10px 15px !important;
    box-sizing: border-box !important;
}

.fgl-whatsapp-channel-invite .fgl-wa-join-button svg {
    display: inline-block !important;

    width: 19px !important;
    min-width: 19px !important;
    max-width: 19px !important;

    height: 19px !important;
    min-height: 19px !important;
    max-height: 19px !important;

    flex: 0 0 19px !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}

.fgl-whatsapp-channel-invite .fgl-wa-join-button span {
    display: inline-block !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.fgl-whatsapp-channel-invite .fgl-wa-arrow {
    font-size: 17px !important;
}

/* Prevent theme article-image rules from affecting the icon */
.single-post .entry-content .fgl-whatsapp-channel-invite svg {
    width: 19px !important;
    height: 19px !important;
    max-width: 19px !important;
    max-height: 19px !important;
}
/* =========================================
   FGGrantLoan — Compact WhatsApp Card
   Accessible and responsive
========================================= */

.fgl-whatsapp-channel-invite {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 18px 0 22px;
    padding: 13px 15px;
    box-sizing: border-box;

    background: #f3fbf5;
    border: 1px solid #c9e7d1;
    border-radius: 10px;

    box-shadow: 0 3px 0 #dceee1;
}

.fgl-whatsapp-channel-invite,
.fgl-whatsapp-channel-invite * {
    box-sizing: border-box;
}

.fgl-wa-invite-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}

.fgl-whatsapp-channel-invite .fgl-wa-invite-heading {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    color: #174b2b;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
}

.fgl-whatsapp-channel-invite .fgl-wa-live-dot {
    display: inline-block;
    flex: 0 0 8px;

    width: 8px;
    height: 8px;

    background: #168342;
    border-radius: 50%;
}

.fgl-whatsapp-channel-invite p {
    margin: 0;
    padding: 0;

    color: #35483b;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.fgl-whatsapp-channel-invite .fgl-wa-join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: auto;
    max-width: 100%;
    min-height: 36px;

    margin: 3px 0 2px;
    padding: 8px 12px;

    color: #fff !important;
    background: linear-gradient(180deg, #218c49, #176d38);

    border: 1px solid #176d38;
    border-radius: 7px;

    box-shadow: 0 3px 0 #10542b;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;

    transition: filter 0.15s ease, transform 0.15s ease;
}

.fgl-whatsapp-channel-invite .fgl-wa-join-button svg {
    display: block;
    flex: 0 0 18px;

    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;

    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;

    margin: 0 !important;
    padding: 0 !important;
}

.fgl-whatsapp-channel-invite .fgl-wa-arrow {
    font-size: 15px;
    line-height: 1;
}

.fgl-whatsapp-channel-invite .fgl-wa-join-button:hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.fgl-whatsapp-channel-invite .fgl-wa-join-button:active {
    transform: translateY(1px);
}

.fgl-whatsapp-channel-invite .fgl-wa-join-button:focus-visible {
    outline: 3px solid #174b2b;
    outline-offset: 3px;
}

/* Tablet and mobile */
@media (max-width: 600px) {
    .fgl-whatsapp-channel-invite {
        margin: 16px 0 20px;
        padding: 12px;
    }

    .fgl-whatsapp-channel-invite .fgl-wa-invite-heading {
        font-size: 14px;
    }

    .fgl-whatsapp-channel-invite p {
        font-size: 13px;
    }

    .fgl-whatsapp-channel-invite .fgl-wa-join-button {
        min-height: 40px;
        padding: 9px 11px;
    }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    .fgl-whatsapp-channel-invite .fgl-wa-join-button {
        transition: none;
    }
}