/* [كامل محتوى الملف المُحسَّن] */
/* ibm-plex-sans-arabic-300 - arabic */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 300;
  src: url('./fonts/ibm-plex-sans-arabic-v13-arabic-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ibm-plex-sans-arabic-regular - arabic */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/ibm-plex-sans-arabic-v13-arabic-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ibm-plex-sans-arabic-500 - arabic */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/ibm-plex-sans-arabic-v13-arabic-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ibm-plex-sans-arabic-600 - arabic */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/ibm-plex-sans-arabic-v13-arabic-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* ibm-plex-sans-arabic-700 - arabic */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/ibm-plex-sans-arabic-v13-arabic-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
body {
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
    color: #334155; /* Corresponds to var(--text-secondary) */
    background-color: #e2e8f0 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --color-primary: #059669;
    --color-primary-dark: #047857;
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --bg-light: #f1f5f9 !important;
    --bg-lighter: #ffffff;
    --border-color: #e2e8f0;
}

/* =================================== */
/* Typography & Content Styles         */
/* (Optimized for Readability & Scale) */
/* =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 1rem 0;
}

h1 { font-size: clamp(2.25rem, 5vw, 3rem); /* 36px to 48px */ }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); /* 28px to 36px */ margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); /* 20px to 24px */ }

p, li {
    font-size: 1rem; /* 16px */
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.text-lead {
    font-size: 1.25rem; /* 20px */
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 400;
}

/* ============================ */
/* Header & Navigation          */
/* ============================ */
.header-interactive-element {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease, background-color 0.2s ease;
    border-radius: 0.375rem;
}
.header-interactive-element:hover {
    transform: translateY(-2px);
    color: var(--color-primary);
}
.header-interactive-element:active {
    transform: translateY(0px) scale(0.97);
    background-color: rgba(5, 150, 105, 0.07);
}

.nav-link-animated {
    position: relative;
    padding-bottom: 10px;
}
.nav-link-animated::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: 0;
    right: 0;
    background: linear-gradient(to left, var(--color-accent), var(--color-primary));
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}
.nav-link-animated:hover::after,
.nav-link-animated:focus::after,
.nav-link-animated.active-link::after {
    width: 100%;
    right: 0;
}
.nav-link-animated.active-link {
    color: var(--color-primary) !important;
    font-weight: 600;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 240px;
    z-index: 50;
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-lighter);
}
.group:hover .dropdown-menu,
.dropdown-trigger[aria-expanded="true"] + .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(8px) scale(1);
}
.dropdown-menu a {
    display: block;
    transition: background-color 0.2s ease, color 0.2s ease, padding-right 0.25s ease, transform 0.2s ease;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
}
.dropdown-menu a:hover {
    background-color: #f0fdf4;
    color: var(--color-primary-dark);
    padding-right: 1.5rem;
    transform: translateX(-2px);
}
.dropdown-trigger svg {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.dropdown-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

/* ============================ */
/* Buttons & Cards              */
/* ============================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.025em;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.btn-primary { background-color: var(--color-primary); color: white; }
.btn-primary:hover { background-color: var(--color-primary-dark); }
.btn-accent { background-color: var(--color-accent); color: white; }
.btn-accent:hover { background-color: var(--color-accent-dark); }
.btn-secondary { background-color: var(--bg-lighter); color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-secondary:hover { background-color: #f0fdf4; }

.enhanced-card {
    background-color: var(--bg-lighter);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.enhanced-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: var(--color-primary);
}

/* ============================ */
/* Animations & Effects         */
/* ============================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: 0.1s;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-animate-delay-1 { transition-delay: 0.2s !important; }
.scroll-animate-delay-2 { transition-delay: 0.3s !important; }
.scroll-animate-delay-3 { transition-delay: 0.4s !important; }

/* ============================ */
/* Page-Specific Components     */
/* ============================ */

/* Hero Slider */
.slider-container { position: relative; overflow: hidden; height: 70vh; }
.hero-slide { min-height: 70vh; background-size: cover; background-position: center; opacity: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: opacity 0.8s ease-in-out; }
.hero-slide h1, .hero-slide p { color: white !important; }
.hero-slide.active { opacity: 1; position: relative; z-index: 1; }
.rtl-slider-nav { z-index: 10; }
.rtl-slider-nav button { transform: scaleX(-1); }
/* Page Title Banner - نسخة مُصححة بمسارات صور بديلة */
.page-title-container {
    padding: 3rem 1.5rem;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(5, 150, 104, 0.603), rgba(4, 120, 87, 0.678)),
        url('images/logo-1.png');
}
.page-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;

    background-image:
        linear-gradient(rgba(5, 150, 105, 0.92), rgba(4, 120, 87, 0.96)),
        url('images/logo-1.png');

    /* !! هذا السطر هو المسؤول عن منع تكرار الخلفية !!
    القيمة الأولى للتدرج اللوني، والثانية لصورة الشعار.
    */
    background-repeat: no-repeat;

    background-position: center center;
    background-size: cover, 250px;
    opacity: 0.3;
}

.page-title-container .container {
    position: relative;
    z-index: 2;
    border-radius: 10px;
}

/* Achievements Page */
.achievement-tab { padding: 0.75rem 1.5rem; font-weight: 500; cursor: pointer; border-bottom: 3px solid transparent; transition: all 0.3s ease; color: var(--text-secondary); }
.achievement-tab:hover { color: var(--color-primary); background-color: #f0fdf4; }
.achievement-tab.active { color: var(--color-primary); border-color: var(--color-primary); font-weight: 700; }
.achievement-panel { display: none; animation: fadeIn 0.5s; }
.achievement-panel.active { display: grid; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.achievement-card { background-color: white; border-radius: 0.75rem; padding: 1.5rem; text-align: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid var(--border-color); }
.achievement-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(5,150,105,0.1), 0 4px 6px -2px rgba(5,150,105,0.05); }
.achievement-card svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; color: var(--color-primary); }
.achievement-card .number { font-size: 2.25rem; font-weight: 700; color: var(--color-accent); line-height: 1.2; }
.achievement-card .description { font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.5rem; margin-bottom: 0; }

/* Programs Page */
.program-card { background-color: var(--bg-lighter); border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid var(--border-color); padding: 2rem; display: flex; flex-direction: column; align-items: center; text-align: center; }
.program-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); border-color: var(--color-primary); }
.program-card .program-icon { width: 4rem; height: 4rem; color: var(--color-primary); margin-bottom: 1.25rem; }
.program-card h3 { font-size: 1.375rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.75rem; line-height: 1.4; }
.program-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }

/* Requirements Page */
.needs-category { background-color: var(--bg-lighter); border-radius: 0.75rem; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); border: 1px solid var(--border-color); padding: 2rem; }
.needs-category h3 { font-size: 1.5rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1.5rem; display: flex; align-items: center; }
.needs-category h3 svg { width: 2rem; height: 2rem; margin-left: 0.75rem; color: var(--color-accent); flex-shrink: 0; }
.needs-category ul { list-style: none; padding-right: 0; }
.needs-category ul li { display: flex; align-items: flex-start; margin-bottom: 1rem; }
.needs-category ul li:last-child { margin-bottom: 0; }
.needs-category ul li svg { width: 1.5rem; height: 1.5rem; color: var(--color-primary-dark); margin-left: 0.75rem; flex-shrink: 0; margin-top: 0.25rem; }
.needs-category ul li span { font-weight: 500; color: var(--text-primary); font-size: 1.125rem; }
.needs-category ul li p { font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.25rem; margin-bottom: 0; line-height: 1.6; }


/* Partners */
.partner-logo { max-height: 80px; object-fit: contain; filter: grayscale(50%); opacity: 0.8; transition: all 0.3s ease; }
.partner-logo:hover { filter: grayscale(0%); transform: scale(1.05); opacity: 1; }

/* ============================ */
/* Footer                       */
/* ============================ */
.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background-color: var(--color-accent);
}
/* Center the underline on mobile */
@media (max-width: 767px) {
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
.footer-link { color: #cbd5e1; transition: color 0.2s ease, padding-right 0.2s ease; }
.footer-link:hover { color: var(--color-accent); padding-right: 5px; }
.contact-item { display: flex; align-items: center; gap: 0.75rem; color: #cbd5e1; font-size: 0.9rem; justify-content: center; }
@media (min-width: 768px) {
    .contact-item { justify-content: flex-start; }
}
.contact-icon { flex-shrink: 0; width: 1.25rem; height: 1.25rem; color: var(--color-accent); }
.footer-social-icon { color: #cbd5e1; transition: color 0.2s ease-in-out, transform 0.2s ease-in-out; }
.footer-social-icon:hover { color: white; transform: translateY(-2px) scale(1.1); }
.footer-social-icon svg { width: 1.5rem; height: 1.5rem; }

/* ======================================================== */
/* IMPROVED STYLES FOR THE "NEEDS" (REQUIREMENTS) SECTION  */
/* ======================================================== */

.needs-card {
    background-color: var(--bg-lighter, #ffffff);
    padding: 2rem 1.5rem;
    border-radius: 0.75rem; /* 12px */
    border: 1px solid var(--border-color, #e5e7eb);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.needs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
    border-color: var(--color-primary, #047857);
}

.needs-card-title {
    display: flex;
    align-items: center;
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    margin-bottom: 1.5rem; /* 24px */
    padding-bottom: 1rem; /* 16px */
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.needs-card-icon {
    width: 2rem; /* 32px */
    height: 2rem; /* 32px */
    color: var(--color-primary, #047857);
    margin-left: 1rem; /* 16px */
    flex-shrink: 0;
}

.needs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px gap between items */
}

.needs-list li {
    padding-right: 1rem; /* 32px padding for the text */
    position: relative;
}

/* This creates the custom bullet point */
.needs-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 0;
    width: 0.625rem; /* 10px */
    height: 0.625rem; /* 10px */
    background-color: var(--color-primary, #047857);
    border-radius: 9999px; /* Make it a circle */
    border: 2px solid var(--bg-lighter, #ffffff);
    box-shadow: 0 0 0 2px var(--color-primary, #047857);
}

.list-item-title {
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: var(--text-primary, #1f2937);
    display: block;
}
.list-item-description {
    font-size: 0.9rem; /* 14.5px */
    color: var(--text-secondary, #4b5563);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
/* ======================================================== */
/* IMPROVED STYLES FOR THE "ABOUT US" SECTION             */
/* ======================================================== */

.about-image-wrapper {
    background-color: var(--color-primary, #047857);
    border-radius: 0.75rem; /* 12px */
    padding: 0.75rem; /* 12px */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.prose p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-feature-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background-color: #f8fafc; /* slate-50 */
    border: 1px solid var(--border-color, #e5e7eb);
}

.about-feature-link:hover {
    background-color: var(--bg-lighter, #ffffff);
    transform: translateY(-5px);
    border-color: var(--color-primary, #047857);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

.about-feature-link .icon-container {
    width: 50px;
    height: 50px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary, #047857);
    color: white;
}

.about-feature-link h3 {
    color: var(--text-primary, #1f2937);
    margin: 0.75rem 0 0 0;
}