
/* إعدادات عامة */
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*/


/*تنسيق الانجازات*/
/* ملف achievements.css */

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.achievements-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.page-title {
    text-align: center;
    font-size: 32px;
    color: #066f4f;
    font-weight: bold;
    margin-bottom: 40px;
    display: inline-block;
    position: relative;

}
.page-title::after{
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    background-color: #e4b041; /* خط ذهبي ناعم */
    border-radius: 3px;
    width: 230px;
}




.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 300px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    font-size: 22px;
    color: #27ae60;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}
.section-title{
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #066f4f; /* أخضر أنيق */
    margin-bottom: 35px;
    position: relative;
}

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

.success-stories {
    padding: 40px 20px;
    background-color: #f7f7f7;
    text-align: center;
}

.success-stories .video-item {
    margin: 20px auto;
    max-width: 600px;
}

.success-stories h4 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.more-videos a {
    display: inline-block;
    margin-top: 20px;
    color: #0069d9;
    text-decoration: underline;
}


/*نهاية تنسيق الانجازات*/



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



/*تنسيق زر الرجوع الى اعلى */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
#backToTop:hover {
    background-color: #388E3C;
}


/*مؤثرات للأزرار (تحريك خفيف عند المرور + ظل)*/
button, .btn {
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/*Parallax بسيط للخلفية*/
.hero {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    opacity:0.9 ;
}

/* تأثير ضغط خفيف عند النقر */
.btn.clicked {
    transform: scale(0.95);
    box-shadow: none;
}
