:root {
    --fund-ink: #17313d;
    --fund-ink-soft: #59717b;
    --fund-accent: #0f7b6c;
    --fund-accent-dark: #095f53;
    --fund-gold: #d8a647;
    --fund-bg: #f5f7f3;
    --fund-surface: rgba(255, 255, 255, 0.92);
    --fund-border: rgba(23, 49, 61, 0.08);
    --fund-shadow: 0 22px 60px rgba(15, 35, 42, 0.13);
}

body.fund-public-body {
    margin: 0;
    min-height: 100vh;
    direction: rtl;
    color: var(--fund-ink);
    font-family: "Tajawal", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(216, 166, 71, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 123, 108, 0.18), transparent 24%),
        linear-gradient(180deg, #f7f9f6 0%, #eef3ef 100%);
}

body.fund-public-body,
body.fund-public-body button,
body.fund-public-body input,
body.fund-public-body select,
body.fund-public-body textarea {
    font-family: "Tajawal", sans-serif;
}

.fund-muted {
    color: var(--fund-ink-soft);
    line-height: 1.8;
}

.fund-page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.fund-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0 28px;
    flex-wrap: wrap;
}

.fund-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fund-brand img {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 14px 32px rgba(15, 123, 108, 0.18);
}

.fund-brand-title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 800;
}

.fund-brand-subtitle {
    margin: 4px 0 0;
    color: var(--fund-ink-soft);
    font-size: 0.98rem;
}

.fund-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fund-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 123, 108, 0.12);
    background: rgba(255, 255, 255, 0.68);
    color: var(--fund-ink);
    font-size: 0.92rem;
    font-weight: 700;
}

.fund-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 247, 0.92));
    border: 1px solid var(--fund-border);
    border-radius: 30px;
    box-shadow: var(--fund-shadow);
    overflow: hidden;
    position: relative;
}

.fund-hero::before,
.fund-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.fund-hero::before {
    width: 260px;
    height: 260px;
    left: -70px;
    top: -120px;
    background: rgba(216, 166, 71, 0.18);
}

.fund-hero::after {
    width: 220px;
    height: 220px;
    right: -60px;
    bottom: -90px;
    background: rgba(15, 123, 108, 0.13);
}

.fund-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 28px;
    padding: 42px;
    position: relative;
    z-index: 1;
}

.fund-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 123, 108, 0.12);
    color: var(--fund-accent-dark);
    font-weight: 700;
    margin-bottom: 16px;
}

.fund-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    font-weight: 800;
}

.fund-hero p {
    margin: 18px 0 0;
    font-size: 1.07rem;
    line-height: 1.9;
    color: var(--fund-ink-soft);
}

.fund-action-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.fund-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: none;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fund-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.fund-btn-primary {
    background: linear-gradient(135deg, var(--fund-accent), var(--fund-accent-dark));
    color: #fff;
    box-shadow: 0 18px 34px rgba(15, 123, 108, 0.22);
}

.fund-btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    color: var(--fund-ink);
    border: 1px solid rgba(23, 49, 61, 0.1);
}

.fund-stat-grid,
.fund-card-grid,
.fund-form-grid {
    display: grid;
    gap: 18px;
}

.fund-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fund-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.fund-surface-card {
    background: var(--fund-surface);
    border: 1px solid var(--fund-border);
    border-radius: 24px;
    box-shadow: var(--fund-shadow);
    padding: 24px;
}

.fund-stat-card h3,
.fund-program-card h3,
.fund-section-card h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 800;
}

.fund-stat-card strong {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
}

.fund-stat-card span {
    color: var(--fund-ink-soft);
    line-height: 1.7;
}

.fund-program-card p,
.fund-section-card p {
    margin: 0;
    color: var(--fund-ink-soft);
    line-height: 1.9;
}

.fund-program-card .fund-btn {
    width: 100%;
    margin-top: 18px;
}

.fund-bullet-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.fund-bullet-list li {
    position: relative;
    padding-right: 26px;
    margin-bottom: 12px;
    color: var(--fund-ink-soft);
}

.fund-bullet-list li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fund-gold), var(--fund-accent));
}

.fund-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 30px;
}

.fund-form-shell {
    background: var(--fund-surface);
    border: 1px solid var(--fund-border);
    border-radius: 28px;
    box-shadow: var(--fund-shadow);
    padding: 28px;
}

.fund-form-shell .form-label {
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--fund-ink);
}

.fund-form-shell .form-control,
.fund-form-shell .form-select {
    min-height: 54px;
    border-radius: 16px;
    border-color: rgba(23, 49, 61, 0.12);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
}

.fund-form-shell textarea.form-control {
    min-height: 120px;
}

.fund-form-shell .form-control:focus,
.fund-form-shell .form-select:focus {
    border-color: rgba(15, 123, 108, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(15, 123, 108, 0.12);
}

.fund-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fund-section-card {
    padding: 24px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 248, 0.96));
    border: 1px solid rgba(23, 49, 61, 0.08);
    border-radius: 22px;
}

.fund-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.fund-section-index {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(15, 123, 108, 0.12);
    color: var(--fund-accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
}

.fund-progress-card {
    position: sticky;
    top: 18px;
    align-self: start;
}

.fund-progress-track {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.fund-progress-step {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(243, 247, 244, 0.85);
    border: 1px solid rgba(23, 49, 61, 0.08);
}

.fund-progress-step.is-complete {
    background: rgba(15, 123, 108, 0.12);
    border-color: rgba(15, 123, 108, 0.2);
}

.fund-progress-step.is-active {
    border-color: rgba(216, 166, 71, 0.32);
    box-shadow: inset 0 0 0 1px rgba(216, 166, 71, 0.18);
}

.fund-progress-step strong {
    display: block;
    font-size: 0.96rem;
}

.fund-progress-step span {
    color: var(--fund-ink-soft);
    font-size: 0.88rem;
}

.fund-progress-badge {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 123, 108, 0.16), rgba(216, 166, 71, 0.18));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.fund-soft-alert {
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(15, 123, 108, 0.12);
    background: rgba(15, 123, 108, 0.08);
    color: var(--fund-ink);
    line-height: 1.8;
}

.fund-soft-alert.warning {
    border-color: rgba(216, 166, 71, 0.2);
    background: rgba(216, 166, 71, 0.11);
}

.fund-upload-card {
    min-height: 100%;
    border: 1px dashed rgba(15, 123, 108, 0.26);
    background: rgba(247, 250, 248, 0.92);
    border-radius: 18px;
    padding: 18px;
}

.fund-upload-card small {
    display: block;
    margin-top: 8px;
    color: var(--fund-ink-soft);
}

.fund-file-caption {
    display: block;
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--fund-accent-dark);
    font-weight: 700;
}

.fund-confirm-box {
    padding: 18px;
    border-radius: 18px;
    background: rgba(23, 49, 61, 0.04);
    border: 1px solid rgba(23, 49, 61, 0.08);
}

.fund-submit-btn {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f7b6c, #0b5e52);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 20px 36px rgba(15, 123, 108, 0.24);
}

.fund-field-error {
    margin-top: 8px;
    color: #c0392b;
    font-size: 0.88rem;
    font-weight: 700;
}

.fund-inline-note {
    margin-top: 8px;
    color: var(--fund-ink-soft);
    font-size: 0.88rem;
}

.fund-footer-note {
    text-align: center;
    margin-top: 24px;
    color: var(--fund-ink-soft);
    font-size: 0.92rem;
}

@media (max-width: 991px) {
    .fund-hero-grid,
    .fund-form-layout {
        grid-template-columns: 1fr;
    }

    .fund-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .fund-page-shell {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .fund-hero-grid,
    .fund-form-shell {
        padding: 22px;
    }

    .fund-form-grid,
    .fund-stat-grid {
        grid-template-columns: 1fr;
    }

    .fund-hero h1 {
        font-size: 2rem;
    }
}
