:root {
    --primary: #243B84;
    --primary-dark: #172653;
    --secondary: #A8D0DF;
    --accent: #5A76B8;
    --light: #F6F9FC;
    --dark: #23313F;
    --muted: #5D6E7B;
    --white: #fff;
    --border: #DCE7EE;
    --shadow: 0 18px 55px rgba(36, 59, 132, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Nunito Sans", Arial, sans-serif; color: var(--dark); background: var(--white); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-header {
    background: var(--white);
    padding: 15px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 4px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-logo img { width: 260px; display: block; }
.header-contact { text-align: right; font-size: 15px; }
.header-contact > div a { color: var(--primary); font-weight: 900; }
.header-phone { display: inline-block; margin-top: 7px; background: var(--primary); color: white; padding: 10px 20px; border-radius: 999px; font-weight: 900; }

.nav-row { background: var(--primary); padding: 12px 5%; text-align: center; position: relative; z-index: 900; }
.nav-row a { display: inline-block; color: white; margin: 3px 4px; padding: 9px 14px; border-radius: 999px; font-size: 15px; font-weight: 800; transition: .25s ease; }
.nav-row a:hover { background: rgba(255,255,255,.14); }
.nav-row a.active { background: var(--secondary); color: var(--primary); box-shadow: 0 5px 14px rgba(0,0,0,.18); }

.blog-hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 80px 6%;
    color: white;
    background: linear-gradient(90deg, rgba(23,38,83,.96), rgba(36,59,132,.82), rgba(36,59,132,.48)), url('/Images-Main/Hero-About.jpg') center/cover;
}
.hero-inner { width: min(1180px, 100%); margin: auto; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 900; color: var(--primary); background: var(--secondary); padding: 8px 14px; border-radius: 999px; }
.blog-hero h1 { max-width: 850px; margin: 18px 0 18px; font-size: clamp(42px, 5vw, 66px); line-height: 1.05; font-weight: 900; }
.blog-hero p { max-width: 760px; margin: 0 0 28px; font-size: 21px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 24px; border-radius: 999px; font-weight: 900; transition: .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--primary); }
.button-secondary { color: var(--primary); background: var(--secondary); }
.button-light { color: var(--primary); background: white; border: 1px solid var(--border); }

.trust-strip { padding: 15px 6%; background: var(--primary); color: white; text-align: center; font-weight: 900; }
.section { padding: 78px 6%; }
.section-light { background: var(--light); }
.section-inner { width: min(1180px, 100%); margin: auto; }
.section-heading { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.section-heading h2 { color: var(--primary); font-size: clamp(32px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; }
.section-heading p { color: var(--muted); font-size: 18px; margin: 0; }

.resource-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resource-card { background: white; padding: 28px; border-radius: 22px; border: 1px solid var(--border); box-shadow: 0 12px 35px rgba(36,59,132,.08); }
.resource-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--secondary); font-size: 27px; }
.resource-card h3 { color: var(--primary); font-size: 22px; margin: 18px 0 8px; }
.resource-card p { color: var(--muted); margin: 0; }

.articles-shell { background: white; border-radius: 30px; padding: 40px; box-shadow: var(--shadow); border-top: 6px solid var(--secondary); }
.articles-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.articles-toolbar h2 { color: var(--primary); font-size: 36px; margin: 0; }
.search-wrap { width: min(360px, 100%); }
.search-wrap label { display: block; font-weight: 800; margin-bottom: 7px; }
.search-wrap input { width: 100%; border: 1px solid var(--border); background: var(--light); border-radius: 14px; padding: 13px 15px; font: inherit; }

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.post-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 12px 35px rgba(36,59,132,.08); transition: .3s ease; }
.post-card:hover { transform: translateY(-7px); box-shadow: 0 20px 45px rgba(36,59,132,.16); }
.post-card[hidden] { display: none; }
.post-card-accent { min-height: 112px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-dark), var(--accent)); color: rgba(255,255,255,.92); font-size: 38px; letter-spacing: .06em; font-weight: 900; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--accent); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.post-card-title { color: var(--primary); font-size: 23px; line-height: 1.25; margin: 13px 0 10px; }
.post-card-description { color: var(--muted); margin: 0 0 22px; }
.post-card-readmore { margin-top: auto; color: var(--primary); font-weight: 900; }
.post-card-readmore:hover { color: var(--accent); }
.search-empty { text-align: center; color: var(--muted); padding: 24px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.pagination-link { background: var(--primary); color: white; padding: 10px 17px; border-radius: 999px; font-weight: 900; }
.pagination-status { color: var(--muted); font-weight: 800; }

.cta-band { padding: 70px 6%; background: var(--secondary); text-align: center; color: var(--primary); }
.cta-band h2 { font-size: 40px; margin: 0 0 10px; }
.cta-band p { max-width: 720px; margin: 0 auto 24px; font-size: 18px; }

.article-hero { padding: 64px 6%; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: white; }
.article-hero-inner { width: min(930px, 100%); margin: auto; }
.article-hero .eyebrow { margin-bottom: 18px; }
.article-hero h1 { margin: 0 0 15px; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; }
.article-meta { color: rgba(255,255,255,.78); font-weight: 800; }
.article-layout { width: min(1180px, calc(100% - 12%)); margin: 60px auto 80px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.article { background: white; border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(26px, 5vw, 52px); overflow: hidden; }
.article h2, .article h3, .article h4 { color: var(--primary); line-height: 1.25; }
.article p, .article li { font-size: 18px; color: #425563; }
.article a { color: var(--primary); text-decoration: underline; font-weight: 800; }
.article img { border-radius: 18px; }
.article blockquote { margin: 28px 0; padding: 22px 26px; border-left: 5px solid var(--secondary); background: var(--light); border-radius: 0 16px 16px 0; }
.article-sidebar { display: grid; gap: 22px; position: sticky; top: 150px; }
.sidebar-card { background: white; border: 1px solid var(--border); border-radius: 22px; padding: 25px; box-shadow: 0 12px 35px rgba(36,59,132,.08); }
.sidebar-card h2, .sidebar-card h3 { color: var(--primary); line-height: 1.2; }
.sidebar-card p { color: var(--muted); }
.sidebar-card .button { width: 100%; margin-top: 9px; }
.sidebar-help { background: linear-gradient(160deg, #F7FAFC, #EAF3F7); }
.text-link { color: var(--primary); font-weight: 900; }

.site-footer { background: var(--primary-dark); color: white; padding: 46px 6% 18px; }
.footer-inner { width: min(1180px, 100%); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-inner h2 { margin: 0 0 8px; }
.footer-inner p { margin: 0; max-width: 700px; color: rgba(255,255,255,.75); }
.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-actions a { border: 1px solid rgba(255,255,255,.35); padding: 10px 16px; border-radius: 999px; font-weight: 900; }
.footer-bottom { width: min(1180px, 100%); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.65); font-size: 14px; }

.floating-contact { position: fixed; right: 20px; bottom: 20px; z-index: 990; overflow: hidden; border-radius: 17px; background: var(--primary); box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.floating-contact a { display: block; color: white; text-align: center; padding: 11px 17px; font-weight: 900; border-bottom: 1px solid rgba(255,255,255,.18); }

@media (max-width: 1000px) {
    .post-list, .resource-cards { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .site-header { position: relative; flex-direction: column; text-align: center; }
    .header-contact { text-align: center; }
    .blog-hero { min-height: 470px; text-align: center; }
    .hero-actions { justify-content: center; }
    .articles-toolbar { flex-direction: column; align-items: stretch; }
    .search-wrap { width: 100%; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .floating-contact { display: none; }
}
@media (max-width: 620px) {
    .site-logo img { width: 225px; }
    .nav-row { padding-inline: 3%; }
    .nav-row a { font-size: 14px; padding: 8px 10px; }
    .section { padding: 58px 5%; }
    .post-list, .resource-cards, .article-sidebar { grid-template-columns: 1fr; }
    .articles-shell { padding: 24px; border-radius: 22px; }
    .article-layout { width: 90%; margin-top: 38px; }
    .cta-band h2 { font-size: 32px; }
}
