/* =========================================================
   صفحة سياسات الحوكمة — تصميم احترافي متجاوب ومحدود النطاق
   ========================================================= */

.gov-page {
    --gov-navy-950: #06263a;
    --gov-navy-900: #073a55;
    --gov-navy-800: #0b4a69;
    --gov-teal-700: #087f79;
    --gov-teal-600: #0b9b8c;
    --gov-emerald-600: #199b68;
    --gov-blue-600: #2d6ed0;
    --gov-violet-600: #7356c8;
    --gov-gold-600: #c89531;
    --gov-orange-600: #dc792e;
    --gov-rose-600: #cf4d69;
    --gov-text: #183241;
    --gov-muted: #647984;
    --gov-line: #dce7eb;
    --gov-soft: #f3f8f9;
    --gov-white: #ffffff;
    --gov-shadow-sm: 0 10px 28px rgba(12, 54, 73, 0.08);
    --gov-shadow-md: 0 18px 48px rgba(9, 48, 66, 0.12);
    --gov-shadow-lg: 0 28px 75px rgba(4, 36, 54, 0.18);
    --gov-radius-sm: 14px;
    --gov-radius-md: 22px;
    --gov-radius-lg: 32px;
    direction: rtl;
    font-family: "Noto Kufi Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--gov-text);
    background: var(--gov-soft);
    overflow-x: hidden;
    overflow-x: clip;
}

.gov-page *,
.gov-page *::before,
.gov-page *::after {
    box-sizing: border-box;
}

.gov-page button,
.gov-page input,
.gov-page a {
    font: inherit;
}

.gov-page a {
    text-decoration: none;
}

.gov-page [hidden] {
    display: none !important;
}

.gov-svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.gov-page svg {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.gov-page :focus-visible {
    outline: 3px solid rgba(45, 110, 208, 0.35);
    outline-offset: 3px;
}

/* Hero */
.gov-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(5rem, 8vw, 7.8rem);
    color: var(--gov-white);
    background:
        radial-gradient(circle at 15% 20%, rgba(45, 174, 151, 0.3), transparent 28%),
        radial-gradient(circle at 83% 18%, rgba(198, 149, 49, 0.22), transparent 24%),
        linear-gradient(135deg, var(--gov-navy-950) 0%, var(--gov-navy-800) 46%, var(--gov-teal-700) 100%);
}

.gov-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.26;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.gov-hero__shape {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 42% 58% 62% 38% / 38% 45% 55% 62%;
    pointer-events: none;
}

.gov-hero__shape--one {
    width: 320px;
    height: 320px;
    inset: auto -115px -105px auto;
    transform: rotate(18deg);
    background: rgba(255, 255, 255, 0.045);
}

.gov-hero__shape--two {
    width: 210px;
    height: 210px;
    inset: 42px auto auto 3%;
    transform: rotate(-20deg);
    background: rgba(200, 149, 49, 0.08);
}

.gov-hero__inner {
    position: relative;
}

.gov-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.72);
}

.gov-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    transition: color 0.2s ease;
}

.gov-breadcrumb a:hover {
    color: #f5d489;
}

.gov-breadcrumb svg {
    width: 1rem;
    height: 1rem;
}

.gov-hero__content {
    width: min(780px, 100%);
}

.gov-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.66rem 1rem;
    margin-bottom: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #f8dca0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    font-size: clamp(0.78rem, 1.8vw, 0.92rem);
    font-weight: 700;
}

.gov-hero__eyebrow svg {
    width: 1.15rem;
    height: 1.15rem;
}

.gov-hero h1 {
    margin: 0;
    font-size: clamp(2.15rem, 6vw, 4.75rem);
    line-height: 1.28;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.gov-hero__content > p {
    max-width: 720px;
    margin: 1.35rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.98rem, 2vw, 1.16rem);
    line-height: 2;
}

.gov-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    width: min(940px, 100%);
    margin-top: clamp(2.5rem, 6vw, 4.4rem);
}

.gov-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(15px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.09);
}

.gov-stat__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.gov-stat--years .gov-stat__icon { color: #a8e6ff; }
.gov-stat--categories .gov-stat__icon { color: #aef0d7; }
.gov-stat--policies .gov-stat__icon { color: #f4d58b; }

.gov-stat div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gov-stat strong {
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.2;
    font-weight: 900;
}

.gov-stat div span {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.78rem;
    line-height: 1.7;
}

/* Main content */
.gov-content {
    position: relative;
    padding: clamp(3.7rem, 7vw, 6.7rem) 0 clamp(5rem, 8vw, 8rem);
    background:
        radial-gradient(circle at 12% 16%, rgba(11, 155, 140, 0.08), transparent 23%),
        radial-gradient(circle at 90% 80%, rgba(115, 86, 200, 0.07), transparent 22%),
        var(--gov-soft);
}

.gov-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.gov-section-heading > div {
    max-width: 790px;
}

.gov-section-heading span {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--gov-teal-700);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.gov-section-heading h2 {
    margin: 0;
    color: var(--gov-navy-950);
    font-size: clamp(1.55rem, 3.8vw, 2.55rem);
    line-height: 1.55;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.gov-section-heading p {
    margin: 0.8rem 0 0;
    color: var(--gov-muted);
    font-size: 0.96rem;
    line-height: 1.95;
}

/* Toolbar */
.gov-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 0.9rem 1rem;
    padding: 1rem;
    margin-bottom: 1.4rem;
    border: 1px solid rgba(193, 213, 220, 0.8);
    border-radius: var(--gov-radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--gov-shadow-sm);
    backdrop-filter: blur(16px);
}

.gov-search-box {
    position: relative;
    min-width: 0;
}

.gov-search-box > svg {
    position: absolute;
    top: 50%;
    right: 1rem;
    z-index: 2;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gov-teal-700);
    transform: translateY(-50%);
    pointer-events: none;
}

.gov-search-box input {
    width: 100%;
    min-height: 54px;
    padding: 0.75rem 3rem 0.75rem 3rem;
    border: 1px solid #cedee3;
    border-radius: 16px;
    outline: none;
    color: var(--gov-text);
    background: #f8fbfc;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gov-search-box input::placeholder {
    color: #8ca0aa;
}

.gov-search-box input:focus {
    border-color: var(--gov-teal-600);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(11, 155, 140, 0.11);
}

.gov-search-clear {
    position: absolute;
    top: 50%;
    left: 0.7rem;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 11px;
    color: #607983;
    background: #eaf1f3;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.gov-search-clear:hover {
    color: var(--gov-white);
    background: var(--gov-rose-600);
}

.gov-search-clear svg {
    width: 1rem;
    height: 1rem;
}

.gov-toolbar__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.gov-tool-button,
.gov-reset-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    border: 1px solid #d3e0e4;
    border-radius: 14px;
    color: var(--gov-navy-800);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.gov-tool-button:hover,
.gov-reset-search:hover {
    color: var(--gov-white);
    border-color: var(--gov-teal-700);
    background: var(--gov-teal-700);
    box-shadow: 0 10px 22px rgba(8, 127, 121, 0.2);
    transform: translateY(-2px);
}

.gov-tool-button--print {
    color: #8c621d;
    border-color: #ead7ae;
    background: #fffaf0;
}

.gov-tool-button--print:hover {
    border-color: var(--gov-gold-600);
    background: var(--gov-gold-600);
}

.gov-tool-button svg {
    width: 1.05rem;
    height: 1.05rem;
}

.gov-search-summary {
    grid-column: 1 / -1;
    margin: 0;
    padding-inline: 0.2rem;
    color: var(--gov-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

/* Years tabs */
.gov-tabs-shell {
    position: relative;
    margin-bottom: 1.4rem;
    padding: 0.6rem;
    border: 1px solid rgba(190, 211, 218, 0.8);
    border-radius: var(--gov-radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--gov-shadow-sm);
    overflow: hidden;
}

.gov-year-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0.15rem;
    border: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #aac4cc transparent;
}

.gov-year-tabs::-webkit-scrollbar {
    height: 6px;
}

.gov-year-tabs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #aac4cc;
}

.gov-year-tabs .nav-item {
    flex: 0 0 auto;
}

.gov-year-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 52px;
    margin: 0;
    padding: 0.7rem 1rem;
    border: 1px solid transparent;
    border-radius: 15px;
    color: #4b6672;
    background: transparent;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 800;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.gov-year-tabs .nav-link svg {
    width: 1.1rem;
    height: 1.1rem;
}

.gov-year-tabs .nav-link small {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 0.42rem;
    border-radius: 999px;
    color: #49636d;
    background: #e6eef1;
    font-size: 0.7rem;
    font-weight: 900;
}

.gov-year-tabs .nav-link:hover {
    color: var(--gov-teal-700);
    background: #ecf7f6;
}

.gov-year-tabs .nav-link.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gov-navy-800), var(--gov-teal-700));
    box-shadow: 0 12px 26px rgba(7, 87, 97, 0.22);
    transform: translateY(-1px);
}

.gov-year-tabs .nav-link.active small {
    color: var(--gov-navy-900);
    background: #fff;
}

.gov-year-tabs .nav-link.gov-tab-empty:not(.active) {
    opacity: 0.48;
}

/* Year panel */
.gov-tab-content {
    min-height: 220px;
}

.gov-year-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.3rem;
    margin-bottom: 1rem;
    border: 1px solid #d9e6ea;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f4f9fa);
    box-shadow: 0 8px 22px rgba(11, 55, 72, 0.055);
}

.gov-year-heading div {
    min-width: 0;
}

.gov-year-heading span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--gov-teal-700);
    font-size: 0.72rem;
    font-weight: 800;
}

.gov-year-heading h3 {
    margin: 0;
    color: var(--gov-navy-950);
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    font-weight: 900;
}

.gov-year-heading p {
    margin: 0;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    color: #506974;
    background: #edf4f6;
    font-size: 0.78rem;
    white-space: nowrap;
}

.gov-year-heading p strong {
    color: var(--gov-navy-900);
    font-size: 0.95rem;
}

/* Accordion */
.gov-accordion {
    display: grid;
    gap: 1rem;
}

.gov-category {
    --gov-accent: var(--gov-teal-600);
    --gov-accent-rgb: 11, 155, 140;
    position: relative;
    margin: 0;
    border: 1px solid #d8e5e9 !important;
    border-radius: var(--gov-radius-md) !important;
    background: #fff;
    box-shadow: var(--gov-shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gov-category::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 3;
    width: 5px;
    background: var(--gov-accent);
}

.gov-category:hover {
    border-color: rgba(var(--gov-accent-rgb), 0.38) !important;
    box-shadow: var(--gov-shadow-md);
    transform: translateY(-2px);
}

.gov-accent-1 { --gov-accent: var(--gov-teal-600); --gov-accent-rgb: 11, 155, 140; }
.gov-accent-2 { --gov-accent: var(--gov-blue-600); --gov-accent-rgb: 45, 110, 208; }
.gov-accent-3 { --gov-accent: var(--gov-violet-600); --gov-accent-rgb: 115, 86, 200; }
.gov-accent-4 { --gov-accent: var(--gov-gold-600); --gov-accent-rgb: 200, 149, 49; }
.gov-accent-5 { --gov-accent: var(--gov-emerald-600); --gov-accent-rgb: 25, 155, 104; }
.gov-accent-6 { --gov-accent: var(--gov-orange-600); --gov-accent-rgb: 220, 121, 46; }

.gov-category .accordion-header {
    margin: 0;
}

.gov-category .accordion-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 94px;
    padding: 1rem 1.25rem;
    border: 0;
    border-radius: 0 !important;
    color: var(--gov-text);
    background: #fff;
    box-shadow: none !important;
    text-align: right;
}

.gov-category .accordion-button::after {
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    margin-left: 0;
    background-size: 1rem;
    filter: none;
}

.gov-category .accordion-button:not(.collapsed) {
    color: var(--gov-text);
    background: linear-gradient(135deg, rgba(var(--gov-accent-rgb), 0.08), #fff 58%);
}

.gov-category .accordion-button:not(.collapsed)::after {
    filter: none;
}

.gov-category__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    color: var(--gov-accent);
    background: rgba(var(--gov-accent-rgb), 0.11);
    box-shadow: inset 0 0 0 1px rgba(var(--gov-accent-rgb), 0.16);
}

.gov-category__icon svg {
    width: 1.55rem;
    height: 1.55rem;
}

.gov-category__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gov-category__copy strong {
    color: var(--gov-navy-950);
    font-size: clamp(0.93rem, 2vw, 1.08rem);
    line-height: 1.8;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.gov-category__copy small {
    margin-top: 0.15rem;
    color: var(--gov-muted);
    font-size: 0.7rem;
    line-height: 1.7;
}

.gov-category__count {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.72rem;
    border: 1px solid rgba(var(--gov-accent-rgb), 0.18);
    border-radius: 12px;
    color: var(--gov-accent);
    background: rgba(var(--gov-accent-rgb), 0.07);
    white-space: nowrap;
}

.gov-category__count strong {
    font-size: 0.9rem;
    font-weight: 900;
}

.gov-category__count small {
    font-size: 0.66rem;
    font-weight: 800;
}

.gov-category .accordion-body {
    padding: clamp(1rem, 3vw, 1.5rem);
    border-top: 1px solid #e3ecef;
    background: #fbfdfd;
}

/* Policy sections */
.gov-policy-section + .gov-child-group,
.gov-child-group + .gov-child-group,
.gov-policy-section + .gov-inline-empty {
    margin-top: 1.2rem;
}

.gov-policy-section__header,
.gov-child-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.gov-policy-section__header > div,
.gov-child-group__header > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.gov-mini-icon,
.gov-child-group__header > div > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    color: var(--gov-teal-700);
    background: #e7f5f3;
}

.gov-mini-icon svg,
.gov-child-group__header > div > span svg {
    width: 1.15rem;
    height: 1.15rem;
}

.gov-policy-section__header h5,
.gov-child-group__header h5 {
    margin: 0;
    color: var(--gov-navy-900);
    font-size: 0.88rem;
    line-height: 1.7;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.gov-policy-section__header > span,
.gov-child-group__header > strong {
    flex: 0 0 auto;
    padding: 0.42rem 0.65rem;
    border: 1px solid #d9e6ea;
    border-radius: 999px;
    color: #5c727c;
    background: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.gov-policy-list {
    display: grid;
    gap: 0.7rem;
}

.gov-policy-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #dce7ea;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(14, 55, 71, 0.045);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.gov-policy-item::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    right: 0;
    width: 3px;
    border-radius: 999px 0 0 999px;
    background: var(--gov-accent, var(--gov-teal-600));
    opacity: 0.8;
}

.gov-policy-item:hover {
    border-color: rgba(var(--gov-accent-rgb), 0.3);
    box-shadow: 0 13px 28px rgba(11, 64, 78, 0.085);
    transform: translateY(-2px);
}

.gov-policy-item__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: var(--gov-accent, var(--gov-teal-600));
    background: rgba(var(--gov-accent-rgb), 0.09);
}

.gov-policy-item__icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.gov-policy-item__content {
    min-width: 0;
}

.gov-policy-item__content > span {
    display: block;
    margin-bottom: 0.18rem;
    color: #7a9099;
    font-size: 0.65rem;
    font-weight: 700;
}

.gov-policy-item h6 {
    margin: 0;
    color: #203b48;
    font-size: clamp(0.78rem, 1.7vw, 0.88rem);
    line-height: 1.9;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.gov-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.78rem;
    border: 1px solid rgba(var(--gov-accent-rgb), 0.27);
    border-radius: 12px;
    color: var(--gov-accent, var(--gov-teal-700));
    background: rgba(var(--gov-accent-rgb), 0.05);
    font-size: 0.7rem;
    font-weight: 900;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.gov-view-button:hover {
    color: #fff;
    border-color: var(--gov-accent, var(--gov-teal-700));
    background: var(--gov-accent, var(--gov-teal-700));
    box-shadow: 0 10px 22px rgba(var(--gov-accent-rgb), 0.22);
    transform: translateY(-1px);
}

.gov-view-button svg {
    width: 1rem;
    height: 1rem;
}

.gov-view-button__external {
    width: 0.8rem !important;
    height: 0.8rem !important;
    opacity: 0.65;
}

/* Child categories */
.gov-child-group {
    padding: 1rem;
    border: 1px solid #dde8eb;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbfc, #fff);
}

.gov-child-group__header small {
    display: block;
    margin-bottom: 0.1rem;
    color: var(--gov-teal-700);
    font-size: 0.62rem;
    font-weight: 800;
}

.gov-inline-empty {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 56px;
    padding: 0.75rem 0.9rem;
    border: 1px dashed #cddde2;
    border-radius: 14px;
    color: #718690;
    background: #f8fbfc;
    font-size: 0.76rem;
    line-height: 1.8;
}

.gov-inline-empty--group {
    margin-top: 1rem;
}

.gov-inline-empty svg {
    width: 1.15rem;
    height: 1.15rem;
    color: #93a7af;
}

/* Empty states */
.gov-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    padding: 2rem;
    border: 1px solid #d8e5e9;
    border-radius: var(--gov-radius-lg);
    text-align: center;
    background: #fff;
    box-shadow: var(--gov-shadow-md);
}

.gov-empty-state > span {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin-bottom: 1.2rem;
    border-radius: 26px;
    color: var(--gov-teal-700);
    background: linear-gradient(135deg, #e5f6f3, #eef4fb);
}

.gov-empty-state > span svg {
    width: 2.25rem;
    height: 2.25rem;
}

.gov-empty-state h2 {
    margin: 0;
    color: var(--gov-navy-950);
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 900;
}

.gov-empty-state p {
    max-width: 540px;
    margin: 0.8rem 0 0;
    color: var(--gov-muted);
    font-size: 0.88rem;
    line-height: 1.9;
}

.gov-empty-state--search {
    min-height: 280px;
    margin-top: 1.2rem;
}

.gov-reset-search {
    margin-top: 1.25rem;
    color: #fff;
    border-color: var(--gov-teal-700);
    background: var(--gov-teal-700);
}

/* Search highlighting */
.gov-policy-item.gov-search-match {
    border-color: rgba(200, 149, 49, 0.48);
    background: linear-gradient(135deg, #fffdf6, #fff);
}

.gov-policy-item.gov-search-match::after {
    content: "نتيجة مطابقة";
    position: absolute;
    top: -9px;
    left: 14px;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    color: #704d16;
    background: #f6dfab;
    font-size: 0.56rem;
    font-weight: 900;
}

/* Responsive */
@media (max-width: 991.98px) {
    .gov-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gov-toolbar {
        grid-template-columns: 1fr;
    }

    .gov-toolbar__actions {
        justify-content: flex-start;
    }

    .gov-category .accordion-button {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
}

@media (max-width: 767.98px) {
    .gov-hero {
        padding-top: 3.6rem;
        padding-bottom: 4.4rem;
    }

    .gov-stats {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .gov-stat {
        padding: 0.85rem 0.95rem;
    }

    .gov-section-heading {
        display: block;
    }

    .gov-toolbar__actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .gov-tool-button {
        width: 100%;
        padding-inline: 0.55rem;
    }

    .gov-category .accordion-button {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 0.8rem;
        min-height: 86px;
        padding: 0.9rem;
    }

    .gov-category .accordion-button::after {
        position: absolute;
        left: 1rem;
        bottom: 1rem;
    }

    .gov-category__count {
        grid-column: 2;
        justify-self: start;
        padding: 0.35rem 0.55rem;
    }

    .gov-policy-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .gov-view-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .gov-view-button__external {
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .gov-content {
        padding-top: 3rem;
    }

    .gov-hero h1 {
        font-size: clamp(2rem, 12vw, 3rem);
    }

    .gov-hero__content > p {
        font-size: 0.9rem;
        line-height: 1.9;
    }

    .gov-toolbar {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .gov-search-box input {
        min-height: 52px;
        font-size: 0.78rem;
    }

    .gov-toolbar__actions {
        grid-template-columns: 1fr 1fr;
    }

    .gov-tool-button--print {
        grid-column: 1 / -1;
    }

    .gov-tool-button span {
        font-size: 0.68rem;
    }

    .gov-tabs-shell {
        margin-inline: -0.2rem;
        padding: 0.45rem;
        border-radius: 17px;
    }

    .gov-year-tabs .nav-link {
        min-height: 48px;
        padding: 0.6rem 0.8rem;
        font-size: 0.78rem;
    }

    .gov-year-heading {
        align-items: flex-start;
        padding: 0.95rem;
    }

    .gov-year-heading p {
        padding: 0.45rem 0.6rem;
        font-size: 0.66rem;
    }

    .gov-category__icon {
        width: 47px;
        height: 47px;
    }

    .gov-category__copy small {
        display: none;
    }

    .gov-policy-section__header,
    .gov-child-group__header {
        align-items: flex-start;
    }

    .gov-policy-section__header > span,
    .gov-child-group__header > strong {
        margin-top: 0.15rem;
    }

    .gov-policy-item {
        padding: 0.75rem;
    }

    .gov-policy-item__icon {
        width: 42px;
        height: 42px;
    }

    .gov-policy-item h6 {
        font-size: 0.76rem;
    }

    .gov-empty-state {
        min-height: 280px;
        padding: 1.5rem 1rem;
        border-radius: 22px;
    }
}

@media (max-width: 359.98px) {
    .gov-stat {
        gap: 0.7rem;
    }

    .gov-stat__icon {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
    }

    .gov-toolbar__actions {
        grid-template-columns: 1fr;
    }

    .gov-tool-button--print {
        grid-column: auto;
    }

    .gov-category .accordion-button {
        grid-template-columns: 1fr;
    }

    .gov-category__icon {
        display: none;
    }

    .gov-category__count {
        grid-column: 1;
    }
}

/* تحسين الوصول وتقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .gov-page *,
    .gov-page *::before,
    .gov-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* طباعة احترافية */
@media print {
    .gov-page {
        color: #000;
        background: #fff;
        overflow: visible;
    }

    .gov-hero {
        padding: 1.5cm 0 1cm;
        color: #000;
        background: #fff !important;
    }

    .gov-hero::before,
    .gov-hero__shape,
    .gov-breadcrumb,
    .gov-toolbar,
    .gov-tabs-shell,
    .gov-view-button,
    .gov-empty-state--search {
        display: none !important;
    }

    .gov-hero__eyebrow,
    .gov-hero__content > p,
    .gov-stat div span {
        color: #333 !important;
    }

    .gov-stats {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 0.7cm;
    }

    .gov-stat {
        border: 1px solid #bbb;
        color: #000;
        background: #fff;
        box-shadow: none;
    }

    .gov-content {
        padding: 0;
        background: #fff;
    }

    .gov-tab-content > .tab-pane {
        display: block !important;
        opacity: 1 !important;
    }

    .gov-category {
        break-inside: avoid;
        border: 1px solid #aaa !important;
        box-shadow: none;
    }

    .gov-category .accordion-collapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }

    .gov-category .accordion-button::after {
        display: none;
    }

    .gov-policy-item,
    .gov-child-group,
    .gov-year-heading {
        break-inside: avoid;
        box-shadow: none;
    }

    .gov-policy-item {
        grid-template-columns: auto 1fr;
    }

    .gov-policy-item h6::after {
        content: " — " attr(data-print-url);
    }
}
