:root {
    --blue: #2f74c8;
    --blue-dark: #235ca3;
    --blue-soft: #e8f1fb;
    --yellow: #f0c11a;
    --yellow-dark: #e0b000;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f6f8fb;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(15, 23, 42, .08);
    --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 86px;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand img {
    height: 72px;
    width: auto;
    background: transparent;
    object-fit: contain;
}
.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav a {
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    position: relative;
}
.nav a.active,
.nav a:hover { color: var(--blue); }
.nav a.active::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: -10px;
    height: 3px;
    background: var(--blue);
    border-radius: 99px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    transition: .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-yellow { background: var(--yellow); color: #1f2937; }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-block { width: 100%; }
.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.card-actions .btn { padding: 12px 12px; }
.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--blue);
    font-weight: 800;
    font-size: 13px;
}
.lang-switch:hover {
    background: var(--blue-soft);
    border-color: transparent;
}

.hero {
    position: relative;
    z-index: 1;
    min-height: 580px;
    color: #fff;
    overflow: hidden;
    background: #081730;
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s ease;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.hero-slide-bg,
.hero-slide-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-slide-bg {
    object-fit: cover;
    filter: blur(28px);
    transform: scale(1.12);
    opacity: .55;
}
.hero-slide-photo {
    object-fit: contain;
    object-position: center;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,23,48,.55), rgba(8,23,48,.72));
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    padding: 72px 16px;
}
.hero h1 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 12px; line-height: 1.3; }
.hero p { margin: 0 0 24px; font-size: 18px; color: #e5e7eb; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
}
.hero-dots button.active { background: #fff; }
.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #10233d;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}
.hero-arrow:hover { background: var(--yellow); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow-prev { left: 16px; right: auto; }
.hero-arrow-next { right: 16px; left: auto; }
[dir="rtl"] .hero-arrow-prev { left: auto; right: 16px; }
[dir="rtl"] .hero-arrow-next { right: auto; left: 16px; }

.stats {
    margin-top: 0;
    padding: 32px 0 8px;
    position: relative;
    z-index: 1;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.stat-card,
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.stat-card {
    padding: 22px 16px;
    text-align: center;
}
.stat-card strong {
    display: block;
    color: var(--yellow-dark);
    font-size: 28px;
    margin: 8px 0 4px;
}
.stat-card span { color: var(--muted); font-size: 14px; }
.icon-bubble {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 12px;
}

.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}
.section-head h2,
.page-hero h1 {
    margin: 0;
    font-size: 30px;
}
.section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-head h2::before {
    content: "";
    width: 6px;
    height: 26px;
    background: var(--blue);
    border-radius: 99px;
}
.link-more { color: var(--blue); font-weight: 700; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0b0b0b;
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p, .muted { color: var(--muted); }
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--yellow);
    color: #1f2937;
    font-size: 12px;
    font-weight: 700;
}
.badge-abs {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: calc(100% - 24px);
}
.media-wrap { position: relative; }
.meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 12px 0; }
.progress {
    height: 8px;
    background: #edf2f7;
    border-radius: 99px;
    overflow: hidden;
    margin: 8px 0 12px;
}
.progress > span {
    display: block;
    height: 100%;
    background: var(--yellow);
}
.progress.blue > span { background: var(--blue); }
.money { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; padding: 10px 12px; font-size: 14px; }

.quote-card { padding: 24px; }
.quote-card p { font-size: 16px; color: #374151; }
.quote-card strong { display: block; margin-top: 16px; color: var(--blue); }

.stories-slider {
    overflow: hidden;
    margin-inline: -8px;
    padding-inline: 8px;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.stories-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}
.stories-track.is-ready {
    animation: stories-marquee linear infinite;
}
html[dir="rtl"] .stories-track.is-ready {
    animation-name: stories-marquee-rtl;
}
.stories-slider:hover .stories-track.is-ready,
.stories-slider:focus-within .stories-track.is-ready {
    animation-play-state: paused;
}
.stories-track .quote-card {
    flex: 0 0 min(360px, 82vw);
    min-height: 100%;
}
@keyframes stories-marquee {
    to { transform: translateX(-50%); }
}
@keyframes stories-marquee-rtl {
    to { transform: translateX(50%); }
}
@media (prefers-reduced-motion: reduce) {
    .stories-track.is-ready { animation: none; }
}

.cta-band {
    background: var(--blue);
    color: #fff;
    text-align: center;
    padding: 48px 16px;
}
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0 0 20px; color: #e8f1fb; }
.program-card { text-align: center; }
.program-card .icon-bubble { margin: 0 auto 14px; }
.site-footer .brand img {
    height: 88px;
    mix-blend-mode: multiply;
}

.page-content {
    line-height: 1.9;
}
.page-content * {
    letter-spacing: normal !important;
}
.page-content p,
.page-content div {
    margin: 0 0 14px;
}
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin: 24px 0 12px;
    line-height: 1.4;
}
.page-content ul,
.page-content ol {
    margin: 0 0 14px;
    padding-inline-start: 1.4em;
}
.page-content li { margin-bottom: 6px; }
.page-content img {
    max-width: 100%;
    height: auto;
}
.page-hero { padding: 36px 0 10px; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.page-hero p { max-width: 680px; color: var(--muted); }

.filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 24px;
    align-items: center;
}
.filter-bar input,
.filter-bar select,
.form-control {
    border: 1px solid var(--line);
    background: #f3f4f6;
    border-radius: 12px;
    padding: 12px 14px;
    width: 100%;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    font-weight: 600;
}
.pill.active { background: var(--blue-soft); color: var(--blue); border-color: transparent; }

.site-footer {
    background: #f3f4f6;
    padding-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 24px;
    padding-bottom: 24px;
}
.site-footer h4 { margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-weight: 600;
    word-break: break-word;
}
.footer-contact a:hover { color: var(--blue); }
.footer-contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--blue);
}
.footer-social-label {
    margin: 18px 0 10px;
    font-weight: 700;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover {
    background: var(--yellow);
    color: #10233d;
    transform: translateY(-2px);
}
.copyright {
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    padding: 16px;
    font-size: 14px;
}

.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.sticky-card { position: sticky; top: 96px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; }
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #ecfdf3;
    color: #166534;
}
.alert-error { background: #fef2f2; color: #991b1b; }
.form-error { display: block; margin-top: .35rem; color: #991b1b; font-size: .85rem; }
.btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}
.donate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .7fr);
    gap: 24px;
    align-items: start;
}
.donate-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.donate-type {
    text-align: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.donate-type strong { display: block; margin-bottom: 4px; font-size: 18px; }
.donate-type span { color: var(--muted); font-size: 14px; }
.donate-type.is-active {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
}
.donate-card { margin-bottom: 0; }
.amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.amount-chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
}
.amount-chip.is-active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #1f2937;
}
.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.choice-card {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 700;
}
.choice-card:has(input:checked) {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
}
.choice-grid.compact { grid-template-columns: repeat(3, 1fr); }
.form-narrow { max-width: 560px; margin: 0 auto; }
.form-intro { text-align: center; margin-bottom: 22px; }
.form-intro h1 { margin: 12px 0 8px; font-size: 28px; }
.form-intro p { margin: 0; color: var(--muted); }
.community-card { text-align: center; padding: 28px 22px; }
.community-card .icon-bubble { margin-bottom: 12px; }
.community-card p { margin: 0 0 16px; }
.item-list { display: grid; gap: 10px; margin-bottom: 8px; }
.item-row {
    display: grid;
    grid-template-columns: 1.4fr .7fr 1fr auto;
    gap: 8px;
    align-items: center;
}
.summary-list { list-style: none; padding: 0; margin: 0 0 20px; }
.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.summary-list span { color: var(--muted); }
.donate-success { max-width: 640px; }
.donate-success h1 { margin: 8px 0 6px; }
.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ecfdf3;
    color: #166534;
    font-size: 28px;
}
.donate-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}
@media print {
    .site-header, .site-footer, .donate-success-actions, .page-hero { display: none !important; }
    .donate-success { max-width: none; }
}
.center { text-align: center; }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-bottom: 16px; }

.nav .nav-donate { display: none; }
.pagination { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 24px 0 0; flex-wrap: wrap; }
.pagination .page-link { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; display: block; }
.pagination .active .page-link { background: var(--blue); color: #fff; border-color: var(--blue); }

@media (max-width: 980px) {
    .stats-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-2, .two-col, .footer-grid, .donate-layout, .donate-types, .choice-grid, .choice-grid.compact, .item-row { grid-template-columns: 1fr; }
    .menu-toggle { display: grid; place-items: center; }
    .nav {
        display: none;
        position: absolute;
        inset: 78px 16px auto;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
    }
    .nav.open { display: flex; }
    .nav a.active::after { display: none; }
    .nav .nav-donate { display: inline-flex; }
    .header-cta { display: none; }
    .sticky-card { position: static; }
}
@media (max-width: 640px) {
    .stats-grid, .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .hero {
        min-height: 0;
        aspect-ratio: 3 / 4;
    }
    .hero-arrow { width: 40px; height: 40px; }
    .hero-arrow-prev { left: 10px; right: auto; }
    .hero-arrow-next { right: 10px; left: auto; }
    [dir="rtl"] .hero-arrow-prev { left: auto; right: 10px; }
    [dir="rtl"] .hero-arrow-next { right: auto; left: 10px; }
}
