:root {
    --maw-bg: #f6f8fb;
    --maw-surface: #ffffff;
    --maw-surface-soft: #f9fbff;
    --maw-text: #172033;
    --maw-muted: #667085;
    --maw-border: #dfe6ef;
    --maw-primary: #1457a8;
    --maw-primary-dark: #0c3468;
    --maw-accent: #d4a21f;
    --maw-accent-soft: #fff6d9;
    --maw-shadow: 0 18px 45px rgba(16, 36, 73, .10);
    --maw-shadow-soft: 0 8px 24px rgba(16, 36, 73, .08);
    --maw-radius: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
}

body {
    background:
        linear-gradient(180deg, rgba(20, 87, 168, .06), rgba(255, 255, 255, 0) 360px),
        var(--maw-bg) !important;
    color: var(--maw-text) !important;
}

a {
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.public-navbar {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid rgba(223, 230, 239, .9) !important;
    backdrop-filter: blur(14px);
}

.public-nav-container {
    max-width: 1680px;
    margin: 0 auto;
    padding-inline: clamp(16px, 3vw, 42px);
}

.public-main {
    width: 100%;
    max-width: 1680px !important;
    padding: clamp(16px, 2.6vw, 44px) !important;
}

.public-hero {
    min-height: clamp(300px, 30vw, 460px) !important;
    padding: clamp(22px, 3vw, 42px) !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    background:
        linear-gradient(135deg, rgba(12, 52, 104, .96), rgba(21, 93, 128, .92)),
        url('/Content/Images/Logo.png') left 8% center / 260px auto no-repeat !important;
    box-shadow: var(--maw-shadow) !important;
    overflow: hidden;
}

.public-hero h1 {
    max-width: 760px;
    font-size: clamp(2rem, 3.2vw, 3.8rem) !important;
    line-height: 1.08 !important;
}

.public-hero p {
    font-size: clamp(1rem, 1.25vw, 1.28rem);
    line-height: 1.9;
}

.hero-search {
    width: min(100%, 720px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 22px;
}

.hero-search .form-control {
    min-height: 54px;
    border: 0;
    border-radius: var(--maw-radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.hero-search .btn,
.hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: var(--maw-radius);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-feature-card {
    width: min(420px, 36%);
    align-self: stretch;
    display: grid;
    grid-template-rows: minmax(180px, 1fr) auto;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--maw-radius);
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .20);
}

.hero-feature-card:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, .5);
}

.hero-feature-image img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
}

.hero-feature-content {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.hero-feature-content small {
    color: #ffe49b;
    font-weight: 800;
}

.hero-feature-content strong {
    font-size: 1.25rem;
    line-height: 1.55;
}

.hero-feature-content span {
    color: rgba(255, 255, 255, .80);
    line-height: 1.7;
}

.public-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(18px, 2vw, 30px);
    align-items: start;
}

.home-layout,
.list-layout,
.article-layout {
    margin-top: clamp(22px, 2.4vw, 38px);
}

.public-content-column {
    min-width: 0;
}

.public-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.sidebar-card,
.public-panel,
.article-card,
.content-card,
.show-all-articles,
.article-nav-card,
.feature-card {
    border-color: var(--maw-border) !important;
    border-radius: var(--maw-radius) !important;
    box-shadow: var(--maw-shadow-soft) !important;
}

.sidebar-card {
    background: var(--maw-surface);
    padding: 18px;
}

.sidebar-card h2 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 900;
}

.sidebar-card p {
    color: var(--maw-muted);
    line-height: 1.8;
    margin: 0;
}

.sidebar-article-list {
    display: grid;
    gap: 12px;
}

.sidebar-article {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--maw-text);
}

.sidebar-article img {
    width: 76px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--maw-radius);
    background: #eef2f7;
}

.sidebar-article strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--maw-text);
    font-size: .92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-article small {
    display: block;
    margin-top: 4px;
    color: var(--maw-muted);
}

.public-section {
    margin: clamp(22px, 2.4vw, 36px) 0 !important;
}

.compact-section {
    margin-top: 0 !important;
}

.section-heading {
    border-right-color: var(--maw-primary) !important;
}

.section-heading h2 {
    color: var(--maw-text);
}

.chips a,
.card-tags a,
.article-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px !important;
    border: 1px solid var(--maw-border) !important;
    border-radius: 999px;
    background: var(--maw-surface-soft) !important;
    color: #344054 !important;
    font-weight: 700;
}

.chips a:hover,
.card-tags a:hover,
.article-tags a:hover {
    color: #fff !important;
    border-color: var(--maw-primary) !important;
    background: var(--maw-primary) !important;
}

.filter-chip-wrap {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.filter-chip-group {
    display: grid;
    gap: 8px;
}

.filter-chip-group strong {
    color: var(--maw-muted);
    font-size: .9rem;
}

.chip-details {
    margin-top: 2px;
}

.chip-details summary {
    width: max-content;
    cursor: pointer;
    color: var(--maw-primary);
    font-size: .86rem;
    font-weight: 800;
    list-style-position: inside;
}

.chip-details .chips {
    margin-top: 8px;
}

.articles-title {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
    gap: 20px;
    align-items: start;
}

.articles-title .filter-chip-wrap {
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    margin-top: 0;
}

.article-filter-form {
    margin-top: 0 !important;
}

.filter-grid {
    grid-template-columns: repeat(5, minmax(120px, 1fr)) !important;
}

.article-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)) !important;
}

.article-card {
    overflow: hidden;
    background: var(--maw-surface);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(20, 87, 168, .45) !important;
    box-shadow: var(--maw-shadow) !important;
}

.article-card img {
    height: 210px !important;
}

.article-card h3 a,
.content-card h3 a {
    color: var(--maw-text);
}

.article-card h3 a:hover,
.content-card h3 a:hover {
    color: var(--maw-primary);
}

.read-more {
    color: var(--maw-primary);
}

.category a {
    color: var(--maw-primary-dark) !important;
    background: var(--maw-accent-soft);
    border-radius: 999px;
    padding: 3px 9px;
}

.article {
    max-width: none !important;
}

.article h1 {
    margin-bottom: 12px;
    color: var(--maw-text);
    font-size: clamp(1.7rem, 2.35vw, 2.75rem) !important;
    line-height: 1.28 !important;
}

.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--maw-muted);
    font-size: .95rem;
}

.article-meta-line > * {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 4px 12px;
    border: 1px solid var(--maw-border);
    border-radius: 999px;
    background: var(--maw-surface-soft);
}

.article-cover {
    margin: 14px 0 20px !important;
}

.article-cover img {
    max-height: 460px !important;
}

.article-body {
    max-width: 860px;
    color: #27364d;
    font-size: clamp(1.05rem, 1vw, 1.18rem) !important;
}

.article-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--maw-border);
}

.article-footer .article-tags {
    margin-bottom: 0;
}

.public-static-page,
.contact-page {
    max-width: none !important;
}

.public-static-page .article-body,
.contact-page .article-body {
    max-width: none;
    width: 100%;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin-top: 1.6em;
    color: var(--maw-text);
    font-weight: 900;
}

.article-body p,
.article-body li {
    line-height: 2;
}

.article-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-inline-start: 4px solid var(--maw-primary);
    background: #f3f7fc;
    border-radius: var(--maw-radius);
}

.article-nav-grid {
    max-width: none !important;
}

.article-nav-card {
    min-height: 170px;
}

.pager {
    position: relative;
}

.pager .btn,
.pager-select {
    border-radius: var(--maw-radius);
}

.show-all-articles {
    width: min(100%, 520px);
    background: linear-gradient(135deg, #fff, #f7fbff) !important;
}

.public-footer {
    margin-top: 56px !important;
    padding: 30px clamp(16px, 3vw, 42px) !important;
    background: #111827 !important;
}

.wrapper > .bg-white.fixed-bottom {
    position: static !important;
    margin-top: 40px;
    padding: 22px clamp(16px, 3vw, 42px) !important;
    color: #d4d9e3;
    background: #111827 !important;
    border-top: 0 !important;
}

.wrapper > .bg-white.fixed-bottom a {
    color: #f3f6fb;
}

.public-footer .inner,
.footer-bottom {
    max-width: 1680px !important;
}

.maw-cookie-consent[hidden],
.maw-cookie-banner[hidden],
.maw-cookie-modal[hidden] {
    display: none !important;
}

.maw-cookie-consent {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 1080;
    padding: 16px;
    pointer-events: none;
}

.maw-cookie-banner {
    width: min(1120px, 100%);
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 20px;
    color: var(--maw-text);
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--maw-border);
    border-radius: var(--maw-radius);
    box-shadow: 0 18px 50px rgba(17, 24, 39, .18);
    pointer-events: auto;
    overflow: auto;
    overscroll-behavior: contain;
}

.maw-cookie-error {
    width: min(1120px, 100%);
    margin: 10px auto 0;
    padding: 10px 12px;
    color: #7f1d1d;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: var(--maw-radius);
    font-size: .9rem;
    font-weight: 800;
    pointer-events: auto;
}

.maw-cookie-reject-button {
    background: var(--maw-primary-dark) !important;
    border-color: var(--maw-primary-dark) !important;
    color: #fff !important;
}

.maw-cookie-copy {
    display: grid;
    gap: 8px;
}

.maw-cookie-copy h2,
.maw-cookie-modal-head h2,
.privacy-preferences-page h1 {
    margin: 0;
    color: var(--maw-text);
    font-size: 1.35rem;
    line-height: 1.45;
    font-weight: 900;
}

.maw-cookie-copy h2 span {
    font-size: 1.05rem;
}

.maw-cookie-copy p,
.maw-cookie-category p,
.maw-cookie-page-category p {
    margin: 0;
    color: var(--maw-muted);
    line-height: 1.75;
}

.maw-cookie-eyebrow {
    margin: 0;
    color: var(--maw-primary);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.maw-cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .92rem;
    font-weight: 800;
}

.maw-cookie-actions,
.maw-cookie-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.maw-cookie-actions .btn,
.maw-cookie-modal-actions .btn {
    min-height: 42px;
    border-radius: var(--maw-radius);
    font-weight: 800;
    white-space: nowrap;
}

.maw-cookie-modal-actions {
    position: sticky;
    inset-block-end: 0;
    background: #fff;
    padding-top: 4px;
}

.maw-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .50);
    pointer-events: auto;
}

.maw-cookie-modal-panel {
    width: min(960px, 100%);
    max-height: min(90vh, 820px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--maw-border);
    border-radius: var(--maw-radius);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .25);
}

.maw-cookie-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.maw-cookie-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--maw-border);
    border-radius: var(--maw-radius);
    background: #fff;
    color: var(--maw-text);
    font-size: 1.4rem;
    line-height: 1;
}

.maw-cookie-close:focus,
.maw-cookie-actions .btn:focus,
.maw-cookie-modal-actions .btn:focus,
.maw-cookie-switch input:focus + .maw-cookie-switch-track,
.cookie-settings-link:focus {
    outline: 3px solid rgba(20, 87, 168, .28);
    outline-offset: 2px;
}

.maw-cookie-category-list,
.maw-cookie-page-list {
    display: grid;
    gap: 12px;
}

.maw-cookie-category-list {
    overflow: auto;
    padding-inline-end: 4px;
}

.maw-cookie-category {
    padding: 14px;
    border: 1px solid var(--maw-border);
    border-radius: var(--maw-radius);
    background: var(--maw-surface-soft);
}

.maw-cookie-category-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.maw-cookie-category h3,
.maw-cookie-page-category h3 {
    margin: 0 0 6px;
    color: var(--maw-text);
    font-size: 1.05rem;
    font-weight: 900;
}

.maw-cookie-switch {
    position: relative;
    width: 68px;
    min-height: 54px;
    display: grid;
    justify-items: center;
    gap: 5px;
    flex: 0 0 auto;
}

.maw-cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.maw-cookie-switch-label {
    color: var(--maw-muted);
    font-size: .72rem;
    font-weight: 900;
    line-height: 1;
}

.maw-cookie-switch-track {
    position: relative;
    width: 52px;
    height: 30px;
    cursor: pointer;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background-color .18s ease;
}

.maw-cookie-switch-track::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    inset-block-start: 3px;
    inset-inline-start: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .25);
    transition: transform .18s ease;
}

.maw-cookie-switch input:checked + .maw-cookie-switch-track {
    background: var(--maw-primary);
}

.maw-cookie-switch input:checked + .maw-cookie-switch-track::after {
    transform: translateX(22px);
}

[dir="rtl"] .maw-cookie-switch input:checked + .maw-cookie-switch-track::after {
    transform: translateX(-22px);
}

.maw-cookie-switch input:disabled + .maw-cookie-switch-track {
    cursor: not-allowed;
    background: #52627a;
}

.maw-cookie-definition-list {
    margin-top: 12px;
}

.maw-cookie-definition-table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: var(--maw-radius);
    font-size: .9rem;
}

.maw-cookie-definition-table th,
.maw-cookie-definition-table td {
    padding: 10px;
    border-bottom: 1px solid #e8eef6;
    vertical-align: top;
}

.maw-cookie-definition-table th {
    color: var(--maw-text);
    background: #f3f7fc;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.maw-cookie-definition-table tr:last-child td {
    border-bottom: 0;
}

.maw-cookie-definition-table td span,
.maw-cookie-page-category td span {
    display: block;
}

.maw-cookie-definition-table td span + span {
    margin-top: 4px;
}

.maw-cookie-definition-table td,
.maw-cookie-definition-table td span,
.maw-cookie-definition-empty,
.maw-cookie-required-note {
    color: var(--maw-muted);
    font-size: .84rem;
}

.maw-cookie-definition-empty {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed var(--maw-border);
    border-radius: var(--maw-radius);
    background: #fff;
}

.privacy-preferences-page {
    display: grid;
    gap: 22px;
}

.cookie-settings-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    text-decoration: none;
    cursor: pointer;
}

.cookie-settings-link:hover {
    color: #fff;
    text-decoration: underline;
}

.public-footer .inner {
    grid-template-columns: minmax(260px, .9fr) minmax(0, 2fr) !important;
}

.footer-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-weight: 800;
}

.footer-tag-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-social {
    margin-top: 12px;
}

@media (min-width: 1400px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
    }

    .article-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    }
}

@media (max-width: 1399px) {
    .hero-feature-card {
        display: none;
    }
}

@media (max-width: 1199px) {
    .public-layout-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    }

    .filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .public-layout-grid,
    .articles-title,
    .public-footer .inner,
    .footer-columns {
        grid-template-columns: 1fr !important;
    }

    .public-sidebar {
        position: static;
    }

    .public-hero {
        display: grid !important;
    }

    .hero-feature-card {
        display: none;
    }

    .hero-search {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 14px;
    }

    .footer-links {
        gap: 5px;
        font-size: .92rem;
    }

    .footer-links a:nth-of-type(n+7) {
        display: none;
    }

    .footer-brand p,
    .footer-bottom {
        line-height: 1.65;
    }
}

@media (max-width: 767px) {
    .public-main {
        padding: 14px !important;
    }

    .public-hero {
        min-height: 0 !important;
        padding: 22px !important;
    }

    .public-hero p {
        line-height: 1.75;
    }

    .filter-grid,
    .pager {
        grid-template-columns: 1fr !important;
    }

    .article-card img {
        height: 190px !important;
    }

    .article h1 {
        font-size: 1.55rem !important;
        line-height: 1.35 !important;
    }

    .article-cover {
        margin: 10px 0 14px !important;
    }

    .article-cover img {
        max-height: 240px !important;
    }

    .article-footer {
        margin-top: 20px;
        padding-top: 14px;
    }

    .article-nav-card {
        grid-template-columns: 104px 1fr !important;
    }

    .public-panel,
    .sidebar-card {
        padding: 18px !important;
    }

    .footer-tag-links {
        grid-template-columns: 1fr;
    }

    .maw-cookie-banner {
        grid-template-columns: 1fr;
        width: auto;
        max-height: 45vh;
        margin: 0;
        padding: 14px;
        border-radius: 12px;
        align-items: start;
    }

    .maw-cookie-consent {
        inset-inline: 0;
        inset-block-end: 0;
        padding: 0 12px 12px;
    }

    .maw-cookie-copy {
        gap: 6px;
    }

    .maw-cookie-copy h2,
    .maw-cookie-modal-head h2 {
        font-size: 1.05rem;
        line-height: 1.3;
    }

    .maw-cookie-copy h2 span {
        font-size: .95rem;
    }

    .maw-cookie-copy p,
    .maw-cookie-category p,
    .maw-cookie-page-category p {
        font-size: .88rem;
        line-height: 1.45;
    }

    .maw-cookie-links {
        gap: 8px;
        font-size: .86rem;
    }

    .maw-cookie-actions,
    .maw-cookie-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .maw-cookie-actions .btn,
    .maw-cookie-modal-actions .btn {
        width: 100%;
        min-height: 40px;
        white-space: normal;
    }

    .maw-cookie-category-main {
        grid-template-columns: 1fr;
    }

    .maw-cookie-modal {
        padding: 12px;
    }

    .maw-cookie-modal-panel {
        width: 100%;
        max-height: 90vh;
        padding: 16px;
        overflow-x: hidden;
    }

    .maw-cookie-modal-head {
        align-items: start;
    }

    .maw-cookie-definition-table {
        min-width: 620px;
    }

    .maw-cookie-error {
        width: auto;
        margin: 8px 0 0;
    }
}
