/* 🌿 تحسين الخطوط والألوان الأساسية */
body {
    font-family: 'Cairo', Arial, sans-serif;
    margin: 0;
    background: #f5f6fa;
    color: #222;
    scroll-behavior: smooth;
    transition: background 0.3s ease;
}

/* دعم تغيير اتجاه الصفحة */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}
/* =========================
   دعم اللغة والاتجاه الديناميكي
   ========================= */
   


/* الاتجاه العربي */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* الاتجاه الإنجليزي */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

/* تظبيط عنوان الفورم */
html[dir="rtl"] .category-detail h2,
html[dir="rtl"] .category-detail .category-title {
    text-align: right;
}

html[dir="ltr"] .category-detail h2,
html[dir="ltr"] .category-detail .category-title {
    text-align: left;
}

/* تظبيط وصف الفئة */
html[dir="rtl"] .category-detail p,
html[dir="rtl"] .category-detail .category-description {
    text-align: right;
}

html[dir="ltr"] .category-detail p,
html[dir="ltr"] .category-detail .category-description {
    text-align: left;
}

/* تظبيط الليبلز داخل الفورم */
html[dir="rtl"] .orphan-form label {
    text-align: right;
    display: block;
}

html[dir="ltr"] .orphan-form label {
    text-align: left;
    display: block;
}

/* الفورم نفسه */
html[dir="rtl"] .orphan-form {
    text-align: right;
}

html[dir="ltr"] .orphan-form {
    text-align: left;
}
.lang-switch {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.lang-switch button {
    padding: 6px 12px;
    background: #007b5e;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.lang-switch button:hover {
    background: #005f48;
}


/* 🎨 ألوان علم فلسطين */
:root {
    --green: #007b5e;
    --red: #e63946;
    --black: #000;
    --white: #fff;
}
header.hero {
    position: relative;
    text-align: center;
    color: var(--white);
    margin-bottom: 0;
    padding: 0;
    background: none;
    overflow: hidden; /* يمنع خروج أي محتوى */
}

.hero-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    filter: brightness(0.55);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 4px 12px #0003;
    display: block;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.45);
    padding: 15px 20px; /* قللنا البادينج */
    border-radius: 12px;
    width: 85%; /* شوية أصغر */
    max-width: 100%;
    box-sizing: border-box;
    font-size: 1.1rem; /* صغرنا الخط شوية */
    line-height: 1.3; /* ضغطنا السطور */
    word-wrap: break-word;
}

/* متجاوب للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-text {
        font-size: 0.95rem;       /* صغرنا الخط شوية */
        padding: 12px 15px;       /* قللنا البادينج */
        width: 95%;               /* خد عرض أكبر شوي بس متناسق */
        line-height: 1.25;        /* ضغطنا السطور */
    }
}

/* 🔹 تقسيم الصفحة الرئيسية */
.home-split {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px auto;
    max-width: 1000px;
}

.home-half {
    flex: 1 1 400px;
    background: var(--white);
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 14px #0002;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-half:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px #0003;
}

.home-half img {
    width: 100%;
    max-width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.home-half img:hover {
    transform: scale(1.05);
}

.home-half h2 {
    color: var(--green);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.home-half p {
    color: #444;
    line-height: 1.7;
    font-size: 1rem;
}

/* 🔹 قسم عن الموقع */
.home-about {
    margin: 40px auto 0 auto;
    max-width: 900px;
    background: var(--white);
    padding: 30px 25px;
    border-radius: 14px;
    box-shadow: 0 4px 14px #0002;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.home-about:hover {
    box-shadow: 0 6px 18px #0003;
}

.home-about h2 {
    margin-bottom: 15px;
    color: var(--green);
    font-size: 1.5rem;
}

.home-about p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

/* 🔹 قسم الفئات */
.categories {
    text-align: center;
    padding: 20px;
}

.categories-desc {
    color: #555;
    font-size: 1.05rem;
    margin: 10px auto 25px auto;
    max-width: 600px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category {
    background: #fefefe;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px #0001;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px #0002;
}

.category img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.category img:hover {
    transform: scale(1.05);
}

.category span {
    display: block;
    margin-top: 0;
    font-weight: bold;
    color: var(--green);
    font-size: 1.05rem;
}

.category p {
    font-size: 0.95rem;
    color: #444;
    margin: 8px 0 0 0;
    min-height: 40px;
    background: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
}

/* 🔹 النافبار */
.navbar {
    background: linear-gradient(90deg, var(--black), var(--green), var(--red));
    box-shadow: 0 4px 12px #0002;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 10px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 10px;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 16px 18px;
    display: block;
    transition: background 0.3s, transform 0.2s;
    border-radius: 8px 8px 0 0;
}

.navbar a:hover, .navbar a.active {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

/* 🔹 الأزرار */
button, .back-btn {
    background: linear-gradient(135deg, var(--green), var(--red));
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px #0002;
}

button:hover, .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px #0003;
}

/* 🔹 الفوتر */
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 18px 0;
    margin-top: 40px;
    font-size: 1rem;
    border-radius: 0 0 12px 12px;
}

/* 🔹 Responsive تحسين */
@media (max-width: 768px) {
    .hero-text {
        font-size: 1rem;
        padding: 14px 20px;
    }
    .home-split {
        gap: 20px;
    }
    .navbar a {
        font-size: 1rem;
        padding: 14px 12px;
    }
}


/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #222;
    line-height: 1.6;
}

/* ====== قسم الفئات ====== */
#categories {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

#categories h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #000;
}

.categories-desc {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.category {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.category:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category:hover img {
    transform: scale(1.08);
}

.category span {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0 5px;
    color: #2a9d8f;
}

.category p {
    font-size: 14px;
    color: #555;
    padding: 0 10px 15px;
}



/* ====== قسم التبرع ====== */
#donate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* نص الشاشة بالطول */
    background-color: #fff;
    padding: 50px 20px;
}

/* الكونتينر الأساسي */
.donate-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

/* محتوى النص والصورة */
.donate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

/* الصورة */
.donate-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
}
.donate-img {
    width: 100%;
    max-width: 350px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* النصوص */
.donate-text {
    max-width: 600px;
}
.donate-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #007b5e, #d62828, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.donate-text p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
}

/* 🌿 الفورم */
.donor-form {
    flex: 1;
    max-width: 600px; /* عرض أكبر للفورم */
    min-height: 500px;
    background: #fff;
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: right;
    margin: 0 auto; /* مركز الفورم */
}

.donor-form:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ✅ كل صف */
.form-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* ✅ الليبل */
.form-group label {
    font-weight: bold;
    font-size: 16px;
    color: #222;
    min-width: 140px;
}

/* ✅ الحقول */
.donor-form input,
.donor-form select {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ✅ تأثير عند التركيز */
.donor-form input:focus,
.donor-form select:focus {
    border-color: #007b5e;
    box-shadow: 0 0 10px rgba(0, 123, 94, 0.5);
    outline: none;
}

/* ✅ زر الإرسال */
.donor-form button {
    background: linear-gradient(135deg, #007b5e, #d62828, #000);
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ✅ تأثير عند المرور */
.donor-form button:hover {
    background: linear-gradient(135deg, #d62828, #007b5e, #000);
    transform: scale(1.07);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* ✅ استجابة الموبايل */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .form-group label {
        min-width: unset;
        font-size: 15px;
    }

    .donor-form input,
    .donor-form select {
        width: 100%;
    }

    .donor-form {
        max-width: 90%;
        padding: 30px 20px;
    }
}

/* 🌿 قسم عن الموقع */
.about-section {
    padding: 60px 20px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* الكونتينر الأساسي */
.about-container {
    max-width: 850px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin: 0 auto;
}

/* الصورة */
.about-img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* الصندوق اللي فيه النص */
.about-text {
    max-width: 750px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center; /* ✨ المحتوى كله في النص */
}

/* العنوان */
.about-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #007b5e, #d62828, #000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* الفقرة */
.about-text p {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
    text-align: center; /* ✨ الفقرة في النص */
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .about-container {
        padding: 10px;
    }

    .about-text {
        padding: 15px;
    }

    .about-text h2 {
        font-size: 26px;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-img {
        max-width: 100%;
    }
}








/* محتوى صفحة الأيتام */
.category-detail {
    max-width: 650px;
    width: 90%;
    background: #fff;
    padding: 35px;
    margin: 35px auto;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* الصورة */
.category-img {
    width: 100%;
    max-width: 450px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.category-img:hover {
    transform: scale(1.05);
}

/* العنوان */
.category-title {
    font-size: 30px;
    margin-bottom: 10px;
    color: #007b5e;
}

/* الوصف */
.category-description {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

/* الفورم */
.orphan-form {
    width: 100%;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

/* الليبل */
.orphan-form label {
    font-weight: bold;
    color: #333;
}

/* الحقول */
.orphan-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.orphan-form input:focus {
    border-color: #007b5e;
    box-shadow: 0 0 8px rgba(0, 123, 94, 0.4);
    outline: none;
}

/* زر الإرسال */
.orphan-form button {
    background: linear-gradient(90deg, #007b5e, #d62828, #000);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.orphan-form button:hover {
    background: linear-gradient(90deg, #d62828, #007b5e, #000);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .category-detail {
        padding: 20px;
    }

    .orphan-form {
        padding: 20px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-description {
        font-size: 15px;
    }
}






/* الفورم العام لكل الصفحات */
.dynamic-form {
    width: 100%;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

/* الليبل */
.dynamic-form label {
    font-weight: bold;
    color: #333;
}

/* الحقول */
.dynamic-form input,
.dynamic-form select,
.dynamic-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.dynamic-form input:focus,
.dynamic-form select:focus,
.dynamic-form textarea:focus {
    border-color: #007b5e;
    box-shadow: 0 0 8px rgba(0, 123, 94, 0.4);
    outline: none;
}

/* زر الإرسال */
.dynamic-form button {
    background: linear-gradient(90deg, #007b5e, #d62828, #000);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}

.dynamic-form button:hover {
    background: linear-gradient(90deg, #d62828, #007b5e, #000);
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .category-detail {
        padding: 20px;
    }

    .dynamic-form {
        padding: 20px;
    }

    .category-title {
        font-size: 24px;
    }

    .category-description {
        font-size: 15px;
    }
}
