/* إعدادات عامة */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f5f5f5;
    box-shadow: 3px 3px 5px rgb(0,0,0,0.1);
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    color: #333;
    scroll-behavior: smooth;
    overflow-y: auto;
    scrollbar-gutter: stable;
}


.language-switch {
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
}
.language-switch a {
    color: #2b7a78;
    text-decoration: none;
    margin: 0 5px;
}
.language-switch a:hover {
    color: #205f5a;
}
.divider {
    color: #999;
}


/* شريط التنقل */
.nav {
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    transition: padding 0.3s ease;
}

.nav-buttons{
    display: flex;
    gap: 10px;
}
/* القائمة الرئيسية */
.main-nav {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
    margin-bottom: 8px;
}

.main-nav a {
    text-decoration: none;
    padding: 8px 16px;
    color: #000;
    font-size: 24px;
    font-weight: 500;
    transition: border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: #28a745;
    border-bottom: 2px solid #28a745;
    position: relative;
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    transition: none !important;

}

.logo-section a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;

}

.logo-section img {
    width: 60px; /* أو الحجم الذي كان قبل */
    height: auto;
    margin-left: 10px;
}


.logo {
    height: 70px;
    transition: height 0.3s ease;
}

.logo-text {
    font-size: 18px;
    color: #337c3b;
    font-weight: 600;
    transition: font-size 0.3s ease;

}
/* الزر الجانبي */
.menu-button {
    font-weight: bold;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    color: #333;
    margin-right: 10px;
}


/* القائمة الجانبية */
.sidebar {
    list-style: none;
    position: fixed;
    top: 0;
    right: -250%;
    height: 100vh;
    width: 250px;
    background-color: rgba(255, 255, 255, 0.9);
    /*backdrop-filter: none;*/
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    z-index: 999;
}

.sidebar.active {
    display: flex;
    right: 0;
}

.sidebar li {
    width: 100%;
}
.sidebar a {
    position: relative;
    display: inline-block;
    padding: 10px;
    font-family: 'Tajawal', sans-serif;
    color: #333;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: bold;
}

.sidebar a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2px;
    width: 0;
    background-color: #388e3c;
    transition: width 0.3s ease;
}

.sidebar a:hover {
    color: #388e3c;
}

.sidebar a:hover::after {
    width: 100%;
}

/* زر الإغلاق */
.close-btn{
    align-self: flex-start;
    margin-bottom: 10px;
    margin-top: -5px;
}

.sidebar-close-btn a {
    font-weight: bold;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-start;

}
.btn {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
    font-weight: 500;

}

.login {
    background-color: #388e3c;
    color: black;
    border: 1px solid #1e7f5c;

}

.login:hover {
    background-color: #4CAF50;
    color: #fff;

}

.donate {
    background-color: #d59c11;
    color: black;
    border: none;

}

.donate:hover {
    background-color: #e1ad2a;
    color: #fff;
}
.nav-buttons .btn i {
    margin-left: 5px;
    font-size: 16px;
}

@media (max-width: 1450px) {
    .hideOnMobile {
        display: none;
    }

    /* الشريط العلوي */
    .nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 15px 30px;
        font-size: 16px;
    }
    /* عند التمرير للأسفل */
    .small-logo {
        height: 40px;
    }

    .small-logo-text {
        font-size: 12px;
    }

    .small-nav {
        padding: 8px 20px;
    }

    .small-btn {
        padding: 6px 10px;
        font-size: 18px;
    }
    .main-nav a {
        font-size: 16px;
        padding: 6px 10px;
    }

    .nav-buttons .btn i {
        font-size: 16px;
    }
    /* قسم الشعار */
    .logo-section {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        height: 60px;
    }

    .logo-text {
        font-size: 14px;
    }
    /*end header*/


    /* زر القائمة (على اليمين لأنه RTL) */
    .menu-button {
        font-size: 15px;
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    /* أزرار التسجيل والتبرع (على اليسار، رموز فقط) */
    .nav-buttons {
        display: flex;
        gap: 10px;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav-buttons .btn span {
        display: none;
    }

    .nav-buttons .btn i {
        display: inline-block;
        font-size: 26px;
    }

    .btn {
        font-size: 14px;
        padding: 6px 10px;
    }


    /* القائمة الجانبية تكون بحجم مرتب */
    .sidebar {
        width: 300px;
        max-width: 80%;

    }
    .sidebar a {
        font-size: 20px;
        padding: 8px;
    }
}
/*End Navbar*/


/*تنسيق الخدمات*/
.simple-accordion {
    max-width: 750px;
    margin: 40px auto;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #066f4f; /* أخضر أنيق */
    margin-bottom: 35px;
    position: relative;
    font-family: 'Tajawal', sans-serif;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background-color: #e4b041; /* خط ذهبي ناعم */
    border-radius: 3px;
    margin: 8px auto 0;
    width: 60%;
    max-width: 100px;
    padding: 0 10px;
}


.accordion-item {
    border: 1px solid #cce5d6;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background-color: #f7fff9;
}

.accordion-toggle {
    background-color: #e6f4ec;
    color: #045e3d;
    width: 100%;
    padding: 14px 20px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    text-align: right;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.accordion-toggle:hover {
    background-color: #d4ebdf;
}

.arrow {
    transition: transform 0.3s ease;
}

.accordion-toggle.active .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    background: white;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.accordion-content.open {
    padding-top: 15px;
    padding-bottom: 15px;
    max-height: 300px;
}
/*نهاية الخدمات*/

/*صور الخدمات*/
.tools-section {
    background-color: #f8f9fa;
    padding: 60px 20px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: center;
}

.tools-title {
    font-size: 30px;
    color: #197550;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    font-weight: bold;
}

.tools-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background-color: #e4b041;
    border-radius: 2px;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.tool-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tool-card h3 {
    font-size: 22px;
    color: #197550;
    margin: 15px 0 5px;
}

.tool-card p {
    font-size: 16px;
    color: black;
    padding: 0 15px 20px;
    line-height: 1.6;
}


/* قسم لماذا خدماتنا */
.why-us {
    padding: 48px 32px;
    background-color: #e7f7ec;
    text-align: center;
}

.why-us h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: #0b8043;
}

.why-us ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    text-align: right;
}

.why-us ul li {
    background: url('../images/check-icon.jpg') no-repeat right center;
    background-size: 20px;
    padding-right: 30px;
    margin-bottom: 16px;
    font-size: 20px;
    color: #333;
}

/* تواصل معنا CTA */
.contact-cta {
    padding: 48px 32px;
    background-color: #98d698;
    text-align: center;
    color: black;
}

.contact-cta h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.contact-cta .btn {
    box-sizing: border-box;
    display: inline-block;
    background-color: #fff;
    color: black;
    padding: 16px 32px; /* تكبير الزر */
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;     /* تكبير الخط */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.contact-cta .btn:hover {
    background-color: rgb(211, 58, 82);
    color: #fff;
}

/*Start Footer*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    direction: rtl;
    font-family: 'Tajawal', sans-serif;
}

/* Footer base */
footer {
    background-color: #388e3c;
    padding: 40px 20px 10px;
    color: white;
}

/* Container layout */
.container {
    max-width: 1140px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* Individual footer column */
.footer-content {
    flex: 1 1 250px;
    min-width: 250px;
}

.footer-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    color: #ffca28;
}

.footer-content p,
.footer-content a {
    font-size: 15px;
    color: white;
    line-height: 1.6;
    text-align: center;
    display: block;
}

/* List styling */
.list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.list li {
    margin-bottom: 10px;
    position: relative;
}

.list li::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffca28;
    transition: width 0.4s;
}

.list li:hover::before {
    width: 60%;
}

/* Social icons */
.social-icons {
    list-style: none;
    padding: 0;
    text-align: center;
}

.social-icons li {
    display: inline-block;
    margin: 5px;
}

.social-icons i {
    color: white;
    transition: color 0.3s;
}

.social-icons i:hover {
    color: #ffca28;
}

/* عند تمرير الماوس على الإيميل */
.footer-content .email:hover {
    color: #ffca28;
    transition: color 0.3s;
}

/* اسم الجمعية بجانب أيقونة الفيس */
.facebook-name {
    margin-right: 10px;
    font-size: 16px;
    vertical-align: middle;
}
.social-icons li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    color: white;
    text-decoration: none;
}
/* Bottom bar */
.bottom-bar {
    width: 100%;
    text-align: center;
    background-color: #fff;
    margin-top: 20px;
    padding: 15px 5px;
}

.bottom-bar p {
    color: #1a5e2e;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
/*End Footer*/

