/* ===================================
   متغيرات CSS
   =================================== */
:root {
    --color-bg: #f5f7f6;
    --color-bg-light: #ffffff;
    --color-primary: #1c8b5f;
    --color-primary-soft: #e0f3ea;
    --color-accent: #2f7dd1;
    --color-text: #1f2933;
    --color-muted: #6b7280;
    --color-border: #d1d5db;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --transition: all 0.3s ease;
}

/* الوضع الليلي */
body.dark-mode {
    --color-bg: #0f172a;
    --color-bg-light: #1e293b;
    --color-text: #f1f5f9;
    --color-muted: #94a3b8;
    --color-border: #334155;
}

/* ===================================
   إعادة تعيين وإعدادات عامة
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* جسم الموقع بالإنجليزية */
body.lang-en {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   الحاوية العامة
   =================================== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* ===================================
   الروابط
   =================================== */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    text-decoration: underline;
}

/* ===================================
   الأزرار
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 44px;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: #16724d;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary-soft);
    text-decoration: none;
}

/* ===================================
   شريط أعلى
   =================================== */
.topbar {
    background: #0b1720;
    color: #e5e7eb;
    font-size: 0.85rem;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-link {
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity 0.2s ease;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.topbar-link:hover {
    opacity: 1;
    text-decoration: none;
}

#theme-toggle {
    background: transparent;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.3rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(20deg);
}

/* ===================================
   الهيدر والنافبار
   =================================== */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

body.dark-mode .header {
    background: rgba(30, 41, 59, 0.85);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

/* الشعار */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    font-size: 1.2rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.logo-text small {
    font-weight: 400;
    color: var(--color-muted);
    font-size: 0.75rem;
}

/* النافبار */
.nav {
    display: flex;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
}

.nav-list a {
    position: relative;
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.nav-list a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
}

.nav-list a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-list a:hover::after {
    width: 100%;
}

/* في وضع اللغة الإنجليزية، حرك خط التحتية من اليسار */
body.lang-en .nav-list a::after {
    right: auto;
    left: 0;
}

/* زر القائمة للموبايل */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-light);
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: var(--color-primary-soft);
}

.nav-toggle span {
    height: 2px;
    width: 18px;
    background: var(--color-text);
    border-radius: 999px;
    margin: 0 auto;
    transition: var(--transition);
}

/* ===================================
   قسم البطل (Hero)
   =================================== */
.hero {
    position: relative;
    min-height: 68vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(135deg, #041621 0%, #062c21 55%, #0a3d2d 100%);
    color: #f9fafb;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("https://images.pexels.com/photos/3573351/pexels-photo-3573351.jpeg?auto=compress&cs=tinysrgb&w=1600");
    background-size: cover;
    background-position: center;
    opacity: 0.24;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 20%, rgba(34,197,94,0.28), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(56,189,248,0.24), transparent 55%);
}

/* لا كارد – فقط محتوى على السكشن */
.hero-inner {
    position: relative;
    padding: 3.5rem 0 3rem;
    width: 100%;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
    gap: 1.8rem;
    align-items: center;
    z-index: 1;
}

/* النص */
.hero-text {
    max-width: 520px;
    color: #f9fafb;
}

/* في اللغة الإنجليزية اجعل المحاذاة يسار */
body.lang-en .hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(1.9rem, 2.6vw + 1rem, 2.5rem);
    margin: 0 0 0.9rem;
    line-height: 1.4;
}

.hero-text p {
    margin: 0 0 1.2rem;
    font-size: 0.98rem;
    color: #e5e7eb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* السلايدر داخل الهيرو – كارد واحد بحواف ناعمة */
.hero-visual {
    position: relative;
    min-height: 280px;
    border-radius: 28px;
    overflow: hidden;
    background: #020b10;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.65);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.7s ease, transform 0.7s ease;
    border-radius: inherit;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

/* هالة ضبابية عند الحواف تدمج الكارد مع الخلفية */
.hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0 0, rgba(4, 21, 31, 0.9), transparent 60%),
        radial-gradient(circle at 100% 0, rgba(4, 21, 31, 0.9), transparent 60%),
        radial-gradient(circle at 0 100%, rgba(4, 21, 31, 0.9), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(4, 21, 31, 0.9), transparent 60%);
    mix-blend-mode: soft-light;
    opacity: 0.85;
}

.slider-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 3;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-arrow.prev {
    right: 1rem;
}

.slider-arrow.next {
    left: 1rem;
}

/* ===================================
   نظام البحث
   =================================== */
.search-section {
    background: linear-gradient(135deg, var(--color-primary-soft) 0%, #dbeafe 100%);
    padding: 2rem 0;
}

body.dark-mode .search-section {
    background: linear-gradient(135deg, rgba(28, 139, 95, 0.2) 0%, rgba(56, 189, 248, 0.2) 100%);
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.9rem 3.5rem 0.9rem 1.2rem;
    border-radius: 999px;
    border: 2px solid var(--color-border);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    background: var(--color-bg-light);
    color: var(--color-text);
}

.search-bar input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(28, 139, 95, 0.1);
}

.search-bar button {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.search-bar button:hover {
    background: #16724d;
}

/* في اللغة الإنجليزية نبدّل padding للاتجاه الآخر */
html[dir="ltr"] .search-bar input {
    padding: 0.9rem 1.2rem 0.9rem 3.5rem;
}
html[dir="ltr"] .search-bar button {
    left: auto;
    right: 0.5rem;
}

/* ===================================
   الأقسام العامة
   =================================== */
.section {
    padding: 3.5rem 0;
}

.section-light {
    background: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 2.3rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   الإحصائيات
   =================================== */
.stats-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-note {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.stat-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(28, 139, 95, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   من نحن
   =================================== */
.about-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    align-items: flex-start;
}

.about-text h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.about-list li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.about-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--color-primary);
}

/* في اللغة الإنجليزية عدل اتجاه النقاط */
body.lang-en .about-list li {
    padding-right: 0;
    padding-left: 1.5rem;
}
body.lang-en .about-list li::before {
    right: auto;
    left: 0;
}

.about-card {
    background: linear-gradient(135deg, #04151f 0%, #062c21 100%);
    color: #e5e7eb;
    border-radius: 28px;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
}

.about-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-card p {
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 1.2rem;
}

/* ===================================
   البيئة في العراق
   =================================== */
.env-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.env-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.env-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.env-card h3 {
    margin-top: 0;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.env-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 0.6rem;
}

.env-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.env-link:hover {
    gap: 0.5rem;
    text-decoration: none;
}

/* في اللغة الإنجليزية، سهم الرابط يكون للاتجاه الآخر إن أحببت لاحقاً */

/* ===================================
   المشاريع
   =================================== */
.projects-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #cbd5e1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active {
    color: #dc2626;
}

.project-card h3 {
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 0.8rem;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--color-muted);
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 0.5rem;
    text-decoration: none;
}

/* ===================================
   الخريطة
   =================================== */
#map {
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

/* ===================================
   الأخبار
   =================================== */
.news-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.news-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.2rem;
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.news-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    margin-bottom: 0.6rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

body.dark-mode .news-tag {
    background: rgba(29, 78, 216, 0.2);
    color: #93c5fd;
}

.news-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.news-card p {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.news-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}

.news-link:hover {
    gap: 0.5rem;
    text-decoration: none;
}

/* ===================================
   شاركنا
   =================================== */
.get-involved {
    background: radial-gradient(circle at 10% 20%, #bbf7d0 0, transparent 55%),
                radial-gradient(circle at 90% 90%, #dbeafe 0, transparent 55%),
                #ecfdf5;
    border-radius: 32px;
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-soft);
}

body.dark-mode .get-involved {
    background: radial-gradient(circle at 10% 20%, rgba(74, 222, 128, 0.2) 0, transparent 55%),
                radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.2) 0, transparent 55%),
                #1e293b;
}

.get-involved-text h2 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.get-involved-text p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.get-involved-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* ===================================
   التواصل
   =================================== */
.contact-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.contact-list li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list li i {
    color: var(--color-primary);
    width: 20px;
}

/* الفورم */
.contact-form {
    background: var(--color-bg-light);
    padding: 1.5rem 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
    background: var(--color-bg);
    color: var(--color-text);
}

input:focus, textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(28, 139, 95, 0.1);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.9rem;
}

body.dark-mode .success-message {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.success-message.show {
    display: block;
}

/* ===================================
   الفوتر
   =================================== */
.footer {
    background: #020617;
    color: #cbd5e1;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
}

body.dark-mode .footer {
    background: #0f172a;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #e5e7eb;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: none;
}

/* ===================================
   زر العودة لأعلى
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #16724d;
    transform: translateY(-3px);
}

/* ===================================
   تجاوب الموبايل
   =================================== */
@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-card {
        order: -1;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }

    .hero-visual {
        order: -1;
        min-height: 220px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        align-items: center;
    }

    .nav {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: var(--color-bg-light);
        box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .nav.open {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        padding: 0.75rem 1.4rem 1rem;
        gap: 0.7rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero-inner {
        padding: 3rem 0 2.5rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .scroll-to-top {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .topbar-inner {
        font-size: 0.75rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .get-involved-actions {
        flex-direction: column;
    }

    .get-involved-actions .btn {
        width: 100%;
    }
}


