/* ============================================================
   Khota — Public Site Styles
   Olive / forest green brand · RTL/LTR
   ============================================================ */

:root {
    --primary: #435C50;
    --secondary: #7D875D;
    --accent: #628A59;
    --brand-gold: #A67A1F;
    --brand-gold-hero: #D4A017; /* عنوان الهيرو فقط */
    --brand-gold-dark: #C4921A; /* باقي العناوين: أغمق بدرجة قليلة */
    --primary-dark: #334840;
    --primary-light: #e9efe9;
    --secondary-light: #f2f3ea;
    --accent-light: #e8f0e6;
    --text: #2a332c;
    --text-muted: #5f6b62;
    --text-light: #8a948a;
    --bg: #ffffff;
    --bg-alt: #f7f8f4;
    --bg-section: #f0f3eb;
    --border: #dde3d8;
    --border-light: #eef1ea;
    --shadow-sm: 0 2px 8px rgba(67, 92, 80, 0.06);
    --shadow-md: 0 4px 20px rgba(67, 92, 80, 0.1);
    --shadow-lg: 0 8px 40px rgba(67, 92, 80, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --header-height: 80px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
    --font: 'Tajawal', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 1.25em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
    vertical-align: middle;
}

.gicon-sm { font-size: 1.125rem !important; }
.gicon-md { font-size: 1.5rem !important; }
.gicon-lg { font-size: 2rem !important; }
.gicon-xl { font-size: 2.75rem !important; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

.section-title {
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

.section-header { margin-bottom: 3rem; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    min-height: 48px;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: #b3924a;
    border-color: #b3924a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    border-color: #fff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* ---- Header ---- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-light);
    height: 70px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    text-decoration: none;
    color: var(--text);
}

.site-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

/* Navigation */
.main-nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.625rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link .nav-caret {
    font-size: 1.1rem !important;
    transition: transform var(--transition);
}

.nav-item:hover .nav-link .nav-caret,
.nav-item.open .nav-link .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-start: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    padding: 0.5rem;
    z-index: 100;
}

[dir="rtl"] .nav-dropdown { inset-inline-start: auto; inset-inline-end: 0; }

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.dropdown-link:hover,
.dropdown-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.lang-switch:hover {
    background: var(--primary);
    color: #fff;
}

.admin-panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.admin-panel-btn:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Main content offset ---- */
.site-main { padding-top: var(--header-height); min-height: 60vh; }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero.hero-wave {
    background: var(--primary);
    padding-bottom: 3.5rem;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2.75rem);
    padding: 2.5rem 0 1.5rem;
}

.hero-grid-solo {
    grid-template-columns: 1fr;
}

.hero-side {
    display: flex;
    justify-content: center;
}

.hero-side-frame {
    width: min(100%, 420px);
    aspect-ratio: 3 / 4;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    background: color-mix(in srgb, var(--primary) 70%, #000);
}

.hero-side-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* Keep the association name bar at the bottom visible */
    object-position: center bottom;
}

.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.hero-shape-1 {
    width: min(420px, 48vw);
    height: min(420px, 48vw);
    top: -8%;
    inset-inline-end: -6%;
    animation: hero-float 12s ease-in-out infinite;
}

.hero-shape-2 {
    width: min(280px, 36vw);
    height: min(280px, 36vw);
    bottom: 18%;
    inset-inline-start: -4%;
    animation: hero-float 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: min(160px, 22vw);
    height: min(160px, 22vw);
    top: 42%;
    inset-inline-end: 18%;
    opacity: 0.7;
    animation: hero-float 10s ease-in-out infinite 1s;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.03); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 720px;
    padding: 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    color: var(--brand-gold-hero);
    margin-bottom: 1rem;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-wave-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-wave-divider svg {
    display: block;
    width: 100%;
    height: clamp(70px, 12vw, 120px);
}

.hero-wave-back {
    fill: color-mix(in srgb, var(--bg-alt) 55%, #fff);
    opacity: 0.55;
}

.hero-wave-front {
    fill: var(--bg-alt);
}

.hero.hero-wave .btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.hero.hero-wave .btn-secondary:hover {
    background: color-mix(in srgb, var(--secondary) 85%, #000);
    border-color: color-mix(in srgb, var(--secondary) 85%, #000);
    color: #fff;
}

.hero.hero-wave .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
    background: transparent;
}

.hero.hero-wave .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

@media (max-width: 900px) {
    .hero {
        min-height: 0;
        padding-bottom: 3.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.75rem 0 0.75rem;
        gap: 1.35rem;
    }

    .hero-content {
        max-width: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-side-frame {
        width: min(100%, 280px);
        aspect-ratio: 4 / 5;
        max-height: none;
        border-radius: 1.15rem;
    }

    .hero-side-img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: cover;
        object-position: center bottom;
    }
}

/* ---- Page header (inner pages) ---- */
.page-header {
    background: var(--primary);
    color: #fff;
    padding: 1.5rem 0 1.15rem;
    text-align: center;
}

.page-header h1 { color: #fff; margin-bottom: 0.35rem; }
.page-header p { opacity: 0.9; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.page-header + .section {
    padding-top: 1.75rem;
}

.breadcrumb {
    display: none;
}

.breadcrumb a { color: #fff; }
.breadcrumb a:hover { opacity: 0.8; color: #fff; }
.breadcrumb-sep { opacity: 0.6; }

/* ---- Sections ---- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-tint { background: var(--bg-section); }

/* ---- Process rail (horizontal stages) ---- */
.process-section {
    background: var(--bg-alt);
}

.process-rail {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.process-rail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    min-width: 0;
}

.process-rail-top {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.15rem;
}

.process-rail-icon {
    position: relative;
    z-index: 1;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 25%, transparent);
    transition: transform var(--transition), box-shadow var(--transition);
}

.process-rail-item:hover .process-rail-icon {
    transform: translateY(-5px) rotate(-3deg);
    box-shadow: 0 18px 34px color-mix(in srgb, var(--primary) 32%, transparent);
}

.process-rail-curve {
    position: absolute;
    top: 50%;
    inset-inline-start: calc(50% + 2.2rem);
    width: calc(100% - 0.85rem);
    height: 34px;
    transform: translateY(-50%);
    pointer-events: none;
    color: color-mix(in srgb, var(--secondary) 70%, var(--primary));
    opacity: 0.75;
    overflow: visible;
}

[dir="ltr"] .process-rail-curve {
    transform: translateY(-50%) scaleX(-1);
}

.process-rail-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--secondary) 18%, #fff);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
}

.process-rail-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--text);
    max-width: 14rem;
}

@media (max-width: 1100px) {
    .process-rail {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 2rem;
    }

    .process-rail-curve {
        display: none;
    }
}

@media (max-width: 700px) {
    .process-rail {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .process-rail-item {
        display: grid;
        grid-template-columns: auto auto 1fr;
        align-items: center;
        text-align: start;
        gap: 0.85rem;
        padding: 0.9rem 1rem;
        background: #fff;
        border-radius: 1rem;
        border: 1px solid color-mix(in srgb, var(--primary) 10%, #e8ebe9);
    }

    .process-rail-top {
        width: auto;
        margin: 0;
    }

    .process-rail-icon {
        width: 3.25rem;
        height: 3.25rem;
        border-radius: 0.95rem;
    }

    .process-rail-text {
        max-width: none;
        grid-column: 3;
        grid-row: 1;
    }

    .process-rail-num {
        grid-column: 2;
    }
}

/* ---- Impact / Partner CTA ---- */
.impact-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: var(--bg-alt);
}

.impact-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: var(--radius-xl);
    background: #c76445;
    box-shadow: var(--shadow-md);
}

.impact-panel-head {
    text-align: center;
    max-width: 46rem;
    margin-inline: auto;
}

.impact-title {
    color: #fff;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.35;
    margin: 0;
    font-weight: 800;
}

.impact-title-lead {
    color: #fff;
}

.impact-title-highlight {
    color: var(--primary);
    display: inline;
}

.impact-text {
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    line-height: 1.85;
    max-width: 38rem;
}

.impact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.btn-impact-donate {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
}

.btn-impact-donate:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-impact-volunteer {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    font-weight: 700;
}

.btn-impact-volunteer:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.impact-ways {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.impact-way {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    min-height: 150px;
    padding: 1.5rem 1rem;
    background: #d89681;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: none;
    color: var(--text);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.impact-way:hover {
    transform: translateY(-4px);
    background: #dfa08c;
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.impact-way-icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
}

.impact-way-icon .material-symbols-outlined,
.impact-way-icon .gicon-lg {
    color: #fff;
    font-size: 1.85rem !important;
}

.impact-way-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

@media (max-width: 900px) {
    .impact-ways {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .impact-ways {
        grid-template-columns: 1fr;
    }

    .impact-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* الهيرو: ذهبي فاتح */
.page-home .hero-title {
    color: var(--brand-gold-hero) !important;
}

/* باقي العناوين: أغمق بدرجة قليلة */
.page-home .section-title,
.page-home .about-intro-title,
.page-home .about-pillar h3 {
    color: var(--brand-gold-dark) !important;
}

/* سكشن الأثر: الخلفية ذهبية و«كن شريكاً» أبيض */
.page-home .impact-title,
.page-home .impact-title-lead {
    color: #fff !important;
}

.page-home .impact-title-highlight {
    color: var(--primary) !important;
}

/* ---- About 2-col ---- */
/* About section — intro first, then equal vision/mission pillars */
.about-intro {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.about-kicker {
    display: inline-block;
    margin: 0 0 0.75rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.about-intro-title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    color: var(--text);
    line-height: 1.35;
}

.about-intro-text {
    margin: 0 auto 1.75rem;
    color: #000;
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 100%;
    width: 100%;
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.about-pillar {
    text-align: center;
    padding: 2.25rem 1.75rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.about-pillar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border-light));
}

.about-pillar-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
}

.about-pillar h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: var(--text);
}

.about-pillar p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* ---- Stats / Counters ---- */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    flex: 0 1 calc(25% - 1.125rem);
    max-width: calc(25% - 1.125rem);
    min-width: 180px;
    box-sizing: border-box;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
}

.stat-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- Partners ---- */
.partners-slider {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.partner-logo {
    flex: 0 0 auto;
    padding: 1.25rem 2rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    max-width: 180px;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.partner-logo img {
    height: 60px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    margin: 0 auto;
    filter: grayscale(30%);
    transition: filter var(--transition);
}

.partner-logo:hover img { filter: grayscale(0%); }

/* ---- Cards ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-section);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img { transform: scale(1.06); }

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 3rem;
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer { margin-top: auto; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.card-link:hover { gap: 0.6rem; }

[dir="rtl"] .card-link-icon { transform: none; }
[dir="ltr"] .card-link-icon { transform: scaleX(-1); }

/* List view */
.cards-list { display: flex; flex-direction: column; gap: 1.25rem; }

.card-list-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.card-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

[dir="rtl"] .card-list-item:hover { transform: translateX(-4px); }

.card-list-image {
    flex: 0 0 240px;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-section);
}

.card-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-list-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ---- About page full-width blocks ---- */
.about-full-block {
    max-width: 860px;
    margin: 0 auto 3rem;
    text-align: center;
}

.about-full-block + .about-full-block {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.about-full-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
}

.about-full-block h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-full-block p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.9;
}

.about-featured {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 2.25rem;
}

.about-featured-card {
    width: 100%;
    padding: 2.75rem 1rem;
}

.about-featured-card .info-card-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
}

.about-featured-card .info-card-icon .gicon-xl {
    font-size: 3.25rem !important;
}

.about-featured-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.about-featured-card p {
    font-size: 1.15rem;
    line-height: 2;
    max-width: none;
    margin-inline: 0;
}

.about-featured-body {
    font-size: 1.12rem;
    line-height: 2;
    color: #000;
    max-width: none;
    width: 100%;
    margin-inline: 0;
    text-align: right;
}

.about-featured-body p {
    max-width: none;
    margin-inline: 0;
}

.about-featured-body > strong {
    display: block;
    color: var(--text);
    font-size: 1.2rem;
    margin: 1.25rem 0 0.5rem;
}

.about-featured-body > strong:first-child {
    margin-top: 0;
}

.about-chairman-card .about-featured-body > strong.about-chairman-sign-line {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    color: var(--text);
}

.about-chairman-card .about-featured-body > strong.about-chairman-sign-line:first-of-type {
    margin-top: 1.75rem;
}

/* غامق داخل الفقرات (مثل اسم الجمعية ورقم الترخيص) */
.about-featured-body p strong {
    display: inline;
    font-size: inherit;
    font-weight: 800;
    margin: 0;
    color: inherit;
}

.about-cards {
    margin-top: 0;
    gap: 2.25rem;
}

.about-cards .info-card {
    padding: 2.5rem 2rem;
}

.about-pair-row {
    margin-top: 1.75rem;
    align-items: stretch;
}

.about-pillar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-pillar-card p {
    text-align: center !important;
}

.about-goals-section {
    margin-top: 1.75rem;
    margin-inline: auto;
    max-width: 52rem;
    width: 100%;
    padding: 1.5rem 1.35rem;
    text-align: center;
}

.about-goals-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
}

.about-goals-head h3 {
    margin: 0;
}

.about-goals-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1.5rem;
    text-align: right;
}

.about-goals-list li {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    background: var(--primary-light, rgba(67, 92, 80, 0.08));
    border-radius: var(--radius-md, 12px);
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.7;
    text-align: right;
}

.about-goals-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    background: var(--primary);
}

@media (max-width: 768px) {
    .about-goals-list {
        grid-template-columns: 1fr;
    }
}

.about-values-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 0.75rem;
    margin-top: 0.35rem;
}

.about-value-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
}

.about-pair-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.25rem !important;
}

.about-pair-card .about-featured-body {
    max-width: 100% !important;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: right;
    flex: 1;
}

.about-pair-card .about-featured-body p {
    max-width: 100% !important;
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    line-height: 1.9;
}

.about-pair-card .about-featured-body strong {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 1.1rem 0 0.35rem;
}

.about-goals-card p {
    text-align: right;
    font-size: 1.05rem;
    line-height: 1.95;
    color: #000;
}

.about-pair-card .about-featured-body,
.about-pair-card .about-featured-body p {
    color: #000;
}

.about-pair-card h3,
.about-intro-title {
    color: #000;
}

.about-featured-card .about-featured-body,
.about-featured-card .about-featured-body p {
    max-width: 100% !important;
    width: 100%;
    margin-inline: 0;
}

.about-page > .container {
    max-width: min(1400px, 100%);
    padding-inline: 0.75rem;
}

.about-cards .info-card h3 {
    font-size: 1.35rem;
    text-align: center;
}

.about-cards .info-card p {
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: right;
}

/* About page: keep titles centered, body text right-aligned */
.about-page .info-card h3,
.about-page .about-featured-card h3,
.about-page .about-pair-card h3,
.about-page .about-pillar-card h3 {
    text-align: center;
}

/* عناوين صفحة من نحن بالذهبي الجديد */
.page-about .about-page .info-card h3,
.page-about .about-page .about-featured-card h3,
.page-about .about-page .about-pillar-card h3 {
    color: var(--brand-gold-dark) !important;
}

.about-page .info-card p,
.about-page .about-featured-body,
.about-page .about-featured-body p,
.about-page .about-featured-body strong {
    text-align: right;
}

/* ---- Info cards (about page) ---- */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

/* ثلاث بطاقات جنب بعض: رؤيتنا / رسالتنا / قيمنا */
.info-cards-grid.about-pillars-row {
    margin-top: 1.75rem;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .info-cards-grid.about-pillars-row {
        grid-template-columns: 1fr !important;
    }
}

.info-card {
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    text-align: center;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.info-card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.75rem;
}

.info-card h3 { margin-bottom: 0.75rem; color: #000; }
.info-card p { color: #000; }

/* ---- Board member cards ---- */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.board-layout {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.board-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.75rem;
}

.board-row-1 .board-card {
    flex: 0 1 min(320px, 100%);
    max-width: 320px;
}

.board-row-2 .board-card {
    flex: 0 1 min(320px, calc(50% - 0.9rem));
    max-width: 320px;
}

.board-row-3 .board-card {
    flex: 0 1 min(300px, calc(33.333% - 1.2rem));
    max-width: 300px;
}

.board-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    text-align: center;
    width: 100%;
}

.board-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.board-photo {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-section);
}

.board-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-photo-line {
    background: var(--primary-light);
}

.board-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 4rem;
    font-weight: 700;
}

.board-line-icon {
    background: transparent !important;
    color: var(--primary);
}

.board-line-img {
    width: 78% !important;
    height: 78% !important;
    object-fit: contain !important;
    background: transparent !important;
    filter: none;
}

.board-info { padding: 1.5rem; }

.board-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.board-position {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* ---- Executive director ---- */
.executive-card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.executive-header {
    background: var(--primary);
    padding: 2.5rem 2rem;
    text-align: center;
    color: #fff;
}

.executive-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 4px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.executive-photo img {
    width: 78%;
    height: 78%;
    object-fit: contain;
}

.executive-name { color: #fff; font-size: 1.65rem; margin-bottom: 0.35rem; }
.executive-title { opacity: 0.9; font-size: 1.05rem; }

.executive-body { padding: 2rem; }

.executive-bio {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.executive-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition);
}

.contact-chip:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.contact-chip svg { color: var(--primary); flex-shrink: 0; }

/* ---- Assembly members ---- */
.assembly-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.assembly-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
}

.assembly-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.assembly-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.assembly-name { font-weight: 600; margin-bottom: 0.15rem; }
.assembly-role { color: var(--text-muted); font-size: 0.875rem; }

.assembly-list .assembly-card { border-radius: var(--radius-sm); }

/* ---- Governance / PDF cards ---- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color var(--transition);
    min-height: 48px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 92, 80, 0.15);
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-alt);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 40px;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.doc-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.doc-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.doc-icon .pdf-icon {
    position: relative;
    width: 34px;
    height: 45px;
    display: block;
}

.doc-icon .pdf-icon-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.doc-icon .pdf-icon-img--red {
    opacity: 1;
}

.doc-icon .pdf-icon-img--gold {
    opacity: 0;
}

.doc-card:hover .doc-icon .pdf-icon-img--red,
.doc-list-item:hover .doc-icon .pdf-icon-img--red {
    opacity: 0;
}

.doc-card:hover .doc-icon .pdf-icon-img--gold,
.doc-list-item:hover .doc-icon .pdf-icon-img--gold {
    opacity: 1;
}

.doc-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    margin-top: auto;
}

.doc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.doc-actions {
    display: flex;
    gap: 0.5rem;
}

.doc-list-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    margin-bottom: 0.75rem;
}

.doc-list-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.doc-list-item .doc-icon { margin-bottom: 0; flex-shrink: 0; }
.doc-list-item .doc-info { flex: 1; min-width: 0; }
.doc-list-item .doc-actions { flex-shrink: 0; }

/* ---- Article / Project detail ---- */
.article-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
    aspect-ratio: 21/9;
    background: var(--bg-section);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.article-content p { margin-bottom: 1.25rem; }

.article-back {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info-card {
    background: var(--primary);
    color: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-info-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    opacity: 0.85;
}

.contact-info-item a { color: #fff; }
.contact-info-item a:hover { opacity: 0.85; color: #fff; }

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-sm);
    color: #fff;
    transition: all var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

.social-link:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #1a2e28;
    transform: translateY(-2px);
}

.social-link-light {
    background: var(--primary-light);
    border-color: var(--border);
    color: var(--primary);
}

.social-link-light:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Forms */
.form-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color var(--transition);
    min-height: 48px;
    background: #fff;
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 92, 80, 0.15);
}

.form-error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.map-embed {
    margin-top: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.map-embed iframe {
    display: block;
    width: 100%;
    min-height: 400px;
    border: 0;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ---- Empty state ---- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 { margin-bottom: 0.5rem; color: var(--text-muted); }
.empty-state p { color: var(--text-light); }

/* ---- Pagination ---- */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.pagination a {
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.pagination .active span {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.pagination .disabled span {
    color: var(--text-light);
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.85);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-logo img { height: 44px; }
.footer-logo span { font-size: 1.2rem; font-weight: 700; color: #fff; }

.footer-about { line-height: 1.8; opacity: 0.85; font-size: 0.95rem; }

.footer-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: 0.625rem; }

.footer-links a {
    color: rgba(255,255,255,0.75);
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--secondary); }

.footer-contact-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    align-items: flex-start;
    font-size: 0.95rem;
}

.footer-contact-item svg { flex-shrink: 0; margin-top: 0.15rem; color: var(--secondary); }
.footer-contact-item a { color: rgba(255,255,255,0.85); }
.footer-contact-item a:hover { color: var(--secondary); }

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social .social-link {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
}

.footer-social .social-link:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #1a2e28;
}

.footer-contact-item .material-symbols-outlined {
    color: var(--secondary);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: var(--font);
    min-height: 48px;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.35rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer-copy {
    margin: 0;
    opacity: 0.75;
}

.footer-admin-link {
    display: inline-block;
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.footer-admin-link:hover {
    color: #fff;
}

/* ---- Section CTA row ---- */
.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ---- Scroll reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Avoid blank first paint if JS is delayed */
.hero .reveal,
.no-js .reveal {
    opacity: 1;
    transform: none;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Content page (founding etc) ---- */
.content-block {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.content-block h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.content-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.9;
}

.content-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .cards-grid,
    .doc-grid,
    .board-grid,
    .assembly-grid { grid-template-columns: repeat(2, 1fr); }
    .board-row-2 .board-card,
    .board-row-3 .board-card {
        flex: 0 1 calc(50% - 0.9rem);
        max-width: calc(50% - 0.9rem);
    }
    .stat-card {
        flex: 0 1 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-pillars { grid-template-columns: 1fr; max-width: 520px; }
    .about-intro { margin-bottom: 2.5rem; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        height: var(--header-height);
        background: #fff;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header.scrolled {
        height: var(--header-height);
    }

    .header-inner {
        gap: 0.5rem;
        min-width: 0;
    }

    .site-logo {
        min-width: 0;
        max-width: calc(100% - 7rem);
    }

    .site-logo img {
        height: 40px;
        flex-shrink: 0;
    }

    .site-logo-text {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        gap: 0.35rem;
        margin-inline-start: auto;
    }

    .lang-switch {
        display: none;
    }

    .mobile-toggle {
        display: flex !important;
        flex-shrink: 0;
        background: var(--primary-light);
        border-radius: var(--radius-sm);
    }


    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform var(--transition), visibility var(--transition);
        z-index: 1090;
        visibility: hidden;
        pointer-events: none;
    }

    [dir="rtl"] .main-nav { transform: translateX(-100%); }

    .main-nav.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-item { width: 100%; }

    .nav-link {
        width: 100%;
        padding: 1rem;
        justify-content: space-between;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    [dir="rtl"] .nav-dropdown { padding: 0 1rem 0 0; }

    .nav-item.open .nav-dropdown { max-height: 500px; }

    .cards-grid,
    .doc-grid,
    .board-grid,
    .assembly-grid,
    .info-cards-grid:not(.about-pillars-row) { grid-template-columns: 1fr; }

    .board-row-1 .board-card,
    .board-row-2 .board-card,
    .board-row-3 .board-card {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .card-list-item { flex-direction: column; }
    .card-list-image { flex: none; width: 100%; }

    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .hero {
        min-height: 0;
        padding-bottom: 3rem;
    }

    .hero-grid {
        padding: 1.25rem 0 0.5rem;
        gap: 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2rem);
        margin-bottom: 0.65rem;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        margin-bottom: 1.25rem;
        line-height: 1.7;
    }

    .hero-badge {
        margin-bottom: 0.75rem;
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.65rem;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 44px;
    }

    .hero-side-frame {
        width: min(100%, 240px);
        aspect-ratio: 4 / 5;
        border-radius: 1.1rem;
    }

    .hero-side-img {
        object-position: center bottom;
    }

    .hero-wave-divider svg {
        height: 56px;
    }

    .toolbar { flex-direction: column; align-items: stretch; }
    .search-form { max-width: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    .doc-list-item { flex-direction: column; align-items: flex-start; }
    .doc-list-item .doc-actions { width: 100%; }
    .doc-list-item .doc-actions .btn { flex: 1; }

    .section { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .stat-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    .newsletter-form { flex-direction: column; }
}
