/* ============================================================
   Khota — Public Site Styles
   Olive / forest green brand · RTL/LTR
   ============================================================ */

:root {
    --primary: #435C50;
    --secondary: #7D875D;
    --accent: #628A59;
    --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: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero.hero-wave {
    background:
        radial-gradient(ellipse 70% 60% at 15% 20%, rgba(125, 135, 93, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 90% 75%, rgba(98, 138, 89, 0.28) 0%, transparent 50%),
        linear-gradient(145deg, #334840 0%, var(--primary) 42%, #56705f 72%, var(--secondary) 100%);
    padding-bottom: 5rem;
}

.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: 4rem 0 2rem;
}

.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: #fff;
    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;
}

/* ---- Page header (inner pages) ---- */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 { color: #fff; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.9; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    opacity: 0.85;
}

.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); }

/* ---- About 2-col ---- */
/* About section — intro first, then equal vision/mission pillars */
.about-intro {
    max-width: 720px;
    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: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 38rem;
}

.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: grid;
    grid-template-columns: repeat(4, 1fr);
    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);
}

.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: linear-gradient(135deg, var(--primary-light), var(--accent-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;
}

/* ---- Info cards (about page) ---- */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.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; }
.info-card p { color: var(--text-muted); }

/* ---- Board member cards ---- */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.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;
}

.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-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    color: var(--primary);
    font-size: 4rem;
    font-weight: 700;
}

.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: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 2.5rem;
    text-align: center;
    color: #fff;
}

.executive-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 4px solid rgba(255,255,255,0.3);
    background: var(--primary-light);
}

.executive-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.executive-name { color: #fff; font-size: 1.5rem; margin-bottom: 0.25rem; }
.executive-title { opacity: 0.9; font-size: 1rem; }

.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: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.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: linear-gradient(135deg, var(--primary), var(--accent));
    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.5rem 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ---- 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;
}

.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); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .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; }

    .mobile-toggle { display: flex; }
    .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);
        z-index: 999;
    }

    [dir="rtl"] .main-nav { transform: translateX(-100%); }

    .main-nav.open { transform: translateX(0); }

    .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 { grid-template-columns: 1fr; }

    .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: 70vh; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .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) {
    .stats-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; }
}
