:root {
    --ink: #14213d;
    --muted: #64748b;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #22c55e;
    --surface: #ffffff;
    --page: #f5f7fb;
    --border: #e2e8f0;
    --shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

body {
    background: var(--page);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.65;
}

.site-header {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
    padding: 0 !important;
}

.site-header__inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 78px;
}

.site-brand {
    align-items: center;
    color: var(--ink) !important;
    display: inline-flex;
    font-size: 20px;
    font-weight: 500;
    gap: 11px;
    letter-spacing: -.8px;
    line-height: 1;
    text-decoration: none !important;
}

.site-brand strong { color: var(--primary); font-weight: 800; }
.site-brand small { color: var(--muted); display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; margin-top: 6px; text-transform: uppercase; }
.site-brand__mark { align-items: center; background: linear-gradient(135deg, var(--primary), #60a5fa); border-radius: 12px; box-shadow: 0 6px 14px rgba(37, 99, 235, .25); color: #fff; display: inline-flex; font-size: 20px; height: 39px; justify-content: center; width: 39px; }

.top-menu { align-items: center; display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top-menu > li { margin: 0 !important; }
.top-menu > li > a { border-radius: 8px; color: #475569 !important; display: block; font-size: 14px; font-weight: 600; padding: 10px 13px !important; text-decoration: none; transition: background .2s ease, color .2s ease; }
.top-menu > li > a:hover, .top-menu > li > a:focus { background: #eff6ff; color: var(--primary) !important; }

.hero-search { background: radial-gradient(circle at 78% 10%, rgba(96, 165, 250, .31), transparent 30%), linear-gradient(120deg, #0f274f 0%, #183b76 52%, #2563eb 100%) !important; overflow: hidden; padding: 76px 0 !important; position: relative; }
.hero-search:before, .hero-search:after { border: 1px solid rgba(255, 255, 255, .13); border-radius: 50%; content: ""; position: absolute; }
.hero-search:before { height: 390px; right: -135px; top: -190px; width: 390px; }
.hero-search:after { bottom: -280px; height: 430px; left: -180px; width: 430px; }
.hero-search__content { position: relative; z-index: 1; }
.hero-search__copy { color: #fff; padding: 15px 38px 15px 0; }
.hero-search__copy .text-mediums { color: #fff; font-size: clamp(29px, 3.2vw, 44px) !important; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 18px; }
.hero-search__copy .text-mediums:before { background: #86efac; border-radius: 99px; content: ""; display: block; height: 5px; margin-bottom: 20px; width: 42px; }
.hero-search__copy p { color: #dbeafe; font-size: 16px; max-width: 520px; }
.hero-search__form { align-items: center; display: flex; height: 100%; justify-content: center; }
.site-search { background: #fff; border-radius: 16px; box-shadow: 0 22px 50px rgba(2, 10, 30, .25); padding: 20px; width: 100%; }
.site-search .form-group { margin: 0; }
.site-search .form-group + .form-group { margin-top: 11px; }
.site-search .form-control { background: #f8fafc; border: 1px solid #dbe3ee; border-radius: 9px; box-shadow: none !important; color: var(--ink); font-size: 15px; height: 54px; padding: 0 16px; }
.site-search .form-control:focus { background: #fff; border-color: #60a5fa; }
.site-search .btn { background: var(--accent) !important; border: 0 !important; border-radius: 9px; box-shadow: 0 7px 14px rgba(34, 197, 94, .22); font-size: 14px; font-weight: 800; letter-spacing: .2px; min-height: 52px; text-transform: none; }
.site-search .btn:hover { background: #16a34a !important; transform: translateY(-1px); }
.hero-search--compact { padding: 46px 0 !important; }
.hero-search--compact .hero-search__copy .text-mediums { font-size: 28px !important; }

.category-section, .document-results { background: var(--page); padding: 70px 0 !important; }
.section-heading { margin-bottom: 30px; text-align: center; }
.section-heading > span { color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.section-heading h2 { color: var(--ink); font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -1px; margin: 6px 0 0; }
.category-grid { margin-left: -12px; margin-right: -12px; }
.category-grid > [class*="col-"] { padding: 12px; }
.category-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 3px 10px rgba(15, 23, 42, .025); height: 100%; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.category-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.category-card a { display: block; overflow: hidden; }
.category-card .cat-img { border: 0; height: 166px; object-fit: cover; transition: transform .35s ease; width: 100%; }
.category-card:hover .cat-img { transform: scale(1.05); }
.category-card .card-body { padding: 17px !important; }
.category-card .card-title { color: var(--ink); font-size: 15px; font-weight: 750; line-height: 1.4; margin: 0; }

.page-hero, #page-title.dark { background-blend-mode: soft-light; background-color: #173a70 !important; padding: 52px 0 !important; }
#page-title .breadcrumb { margin-bottom: 12px; }
#page-title .breadcrumb a { color: #bfdbfe; font-size: 13px; }
#page-title .page-title h1 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -1px; }
#page-title .page-title > span { color: #dbeafe; font-size: 15px; }

.document-results .row > .col-lg-12.m-b-10 { margin-bottom: 16px !important; }
.document-result { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 3px 10px rgba(15, 23, 42, .025); overflow: hidden; padding: 14px; transition: box-shadow .2s ease, transform .2s ease; }
.document-result:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.document-result .cat-img { border: 0 !important; border-radius: 9px; height: 126px; object-fit: cover; width: 100%; }
.document-result .border-left { border-left: 0 !important; }
.document-result .d-flex.align-items-start.flex-column { height: 100%; justify-content: space-between; padding: 5px 10px; width: 100%; }
.document-result .title-size { color: var(--ink); font-size: 18px; font-weight: 760; line-height: 1.35; margin: 0 0 18px; }
.document-result .btn { border-radius: 8px; font-size: 13px; font-weight: 700; margin: 0 5px 0 0; padding: 8px 12px; text-transform: none; }
.document-result .btn-primary { background: var(--primary); border-color: var(--primary); }
.document-result .btn-outline { border-color: #bfdbfe; color: var(--primary); }
.document-result .btn-dark { background: #64748b; border-color: #64748b; }

#page-content .post-item-wrap { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: clamp(24px, 5vw, 52px); }
#page-content .post-item-description h2 { color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: -.7px; margin-top: 30px; }
#page-content .post-item-description h2:first-child { margin-top: 0; }
#page-content .post-item-description p, #page-content .post-item-description li { color: #475569; font-size: 16px; }
#page-content .post-item-description li { margin-bottom: 8px; }

.site-footer { background: #102649 !important; border: 0 !important; color: #cbd5e1; padding: 0 !important; }
.site-footer__inner { align-items: center; display: flex; justify-content: space-between; min-height: 76px; }
.site-footer__brand { color: #fff; font-size: 15px; font-weight: 700; }
.site-footer__brand i { color: #86efac; margin-right: 7px; }
.site-footer .copyright-text { color: #94a3b8; font-size: 13px; }
#scrollTop { background: var(--primary); border-radius: 9px 9px 0 0; }

/* Refined interface layer */
body:before { background: radial-gradient(circle at 9% 32%, rgba(37, 99, 235, .035), transparent 26rem), radial-gradient(circle at 92% 58%, rgba(34, 197, 94, .035), transparent 22rem); content: ""; inset: 0; pointer-events: none; position: fixed; z-index: -1; }
.site-header { backdrop-filter: blur(16px); position: relative; z-index: 20; }
.site-header__inner { min-height: 84px; }
.hero-search { background: radial-gradient(circle at 83% 17%, rgba(96, 165, 250, .32), transparent 26%), radial-gradient(circle at 8% 90%, rgba(34, 197, 94, .13), transparent 30%), linear-gradient(122deg, #091b38 0%, #12366e 54%, #2563eb 100%) !important; }
.hero-search__copy { padding-right: 54px; }
.hero-kicker { align-items: center; background: rgba(219, 234, 254, .12); border: 1px solid rgba(219, 234, 254, .22); border-radius: 99px; color: #dbeafe; display: inline-flex; font-size: 11px; font-weight: 800; gap: 7px; letter-spacing: .65px; margin-bottom: 22px; padding: 7px 11px; text-transform: uppercase; }
.hero-kicker i { color: #86efac; }
.hero-points { display: flex; flex-wrap: wrap; gap: 13px 24px; list-style: none; margin: 25px 0 0; padding: 0; }
.hero-points li { color: #dbeafe; font-size: 13px; font-weight: 600; }
.hero-points i { color: #86efac; margin-right: 5px; }
.site-search { border: 1px solid rgba(255, 255, 255, .7); border-radius: 20px; padding: 25px; }
.site-search__label { color: #334155; display: block; font-size: 12px; font-weight: 800; letter-spacing: .25px; margin-bottom: 9px; }
.site-search .form-control { border-radius: 11px; font-weight: 500; }
.site-search .btn { border-radius: 11px; letter-spacing: .4px; }
.section-heading { margin-bottom: 38px; }
.section-heading h2 { font-size: clamp(27px, 3vw, 36px); }
.category-card { border-radius: 18px; box-shadow: 0 8px 22px rgba(15, 23, 42, .045); position: relative; }
.category-card:after { background: linear-gradient(90deg, var(--primary), #60a5fa); bottom: 0; content: ""; height: 3px; left: 18px; opacity: 0; position: absolute; right: 18px; transform: scaleX(.2); transition: opacity .25s ease, transform .25s ease; }
.category-card:hover:after { opacity: 1; transform: scaleX(1); }
.category-card .cat-img { height: 176px; }
.category-card .card-body { padding: 19px 18px 21px !important; }
.category-card .card-title { font-size: 15px; min-height: 42px; }
.category-card__action { color: var(--primary) !important; display: inline-block; font-size: 12px; font-weight: 800; margin-top: 12px; text-decoration: none !important; }
.category-card__action i { font-size: 10px; margin-left: 5px; transition: transform .2s ease; }
.category-card:hover .category-card__action i { transform: translateX(3px); }
.document-result { border-radius: 17px; box-shadow: 0 6px 18px rgba(15, 23, 42, .04); padding: 16px; }
.document-result .cat-img { height: 132px; }
.document-result__type { color: var(--primary); display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px; margin-bottom: 7px; text-transform: uppercase; }
.document-result__type i { margin-right: 4px; }
.document-result .title-size { font-size: 19px; }
.document-result .btn { min-width: 104px; }

@media (max-width: 767px) {
    .site-header__inner { align-items: flex-start; flex-direction: column; gap: 10px; padding: 16px 0; }
    .top-menu { flex-wrap: wrap; gap: 0; }
    .top-menu > li > a { font-size: 12px; padding: 6px 9px !important; }
    .hero-search { padding: 48px 0 !important; }
    .hero-search__copy { padding: 0 0 20px; text-align: center; }
    .hero-kicker { margin-bottom: 16px; }
    .hero-points { display: block; margin-top: 18px; }
    .hero-points li + li { margin-top: 6px; }
    .hero-search__copy .text-mediums:before { margin-left: auto; margin-right: auto; }
    .hero-search__copy p { font-size: 14px; }
    .category-section, .document-results { padding: 42px 0 !important; }
    .category-card .cat-img { height: 118px; }
    .category-card .card-body { padding: 12px !important; }
    .category-card .card-title { font-size: 13px; }
    .document-result { padding: 9px; }
    .document-result .cat-img { height: 92px; }
    .document-result .title-size { font-size: 14px !important; margin-bottom: 12px; }
    .document-result .btn { font-size: 11px; margin-bottom: 4px; padding: 6px 8px; }
    .site-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 16px 0; }
}
