/* إعدادات عامة للموقع مع Bootstrap */
:root {
    --primary-color: #20B2AA;
    --secondary-color: #16A085;
    --accent-color: #F5F5DC;
    --text-color: #2C3E50;
    --light-bg: #FAFAFA;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --sidebar-width: 280px;
    --sidebar-bg: linear-gradient(135deg, #20B2AA 0%, #16A085 100%);
    --sidebar-link-color: rgba(255, 255, 255, 0.8);
    --sidebar-link-hover-bg: rgba(255, 255, 255, 0.2);
    --sidebar-link-active-color: white;
}

html,
body {
    height: 100%;
}

html {
    direction: rtl;
}


body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: beige;
}

/* المحتوى الرئيسي */
.main-content {
    flex-grow: 1;
}


/* متغيرات الألوان المخصصة */
:root {
    --primary-color: #16A085;
    --secondary-color: #4a9b8e;
    --accent-color: #6bc5b8;
}

/* تخصيص ألوان Bootstrap */
.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

/* الهيدر المخصص */
.header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* تخصيص النافبار للـ RTL */
.navbar-nav {
    direction: rtl;
}

.navbar-brand {
    margin-left: 0;
    margin-right: 0;
}

/* القوائم المنسدلة المخصصة */
/* .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

.dropdown-toggle::after {
    margin-right: 0.255em;
    margin-left: 0;
} */





/* الفوتر الثابت */

.footer {
    background-color: #16A085 !important;
    color: white;
    padding: 20px 0;
    /* مسافة داخلية */
    margin-top: auto;
    /* يدفع الفوتر إلى الأسفل */
    font-family: 'Cairo', sans-serif !important;
}



.footer .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
}

/* تأثيرات الحركة */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* تخصيص الأزرار */
.btn-custom {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* تخصيص الكروت */
.card-custom {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* تخصيص النصوص للـ RTL */
.text-right {
    text-align: right !important;
}

/* تخصيص القائمة المنسدلة للشاشات الصغيرة */
@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: right;
    }

    .navbar-nav {
        align-items: flex-start;

    }

    .social-icons-mobile {
        justify-content: center;
        margin-top: 1rem;
    }

    .social-icons-mobile .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin: 0 0.5rem;
    }

    .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
    }


}

/* تخصيص الروابط النشطة */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(44, 95, 93, 0.1);
    border-radius: 5px;

}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(44, 95, 93, 0.05);
    border-radius: 5px;
}

 .nav-link{
    font-size: 1.1rem;
}

/* تخصيص اللوجو */
.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* تخصيص العناوين */
.section-title {
    color: var(--primary-color);
    font-weight: bold;
}

/* تخصيص الفواصل */
.divider {
    height: 2px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
    border: none;
    margin: 2rem 0;
}


/* الأيقونات الاجتماعية */

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #20B2AA;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}





/* .nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0px;
}

.brand-text {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--accent-color);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: var(--accent-color);
}

 */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    list-style: none;
    padding: 10px 0;
    margin-top: 15px;
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    z-index: 1001;
    border: 1px solid #f0f0f0;
    text-align: right;
}

.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 400;
    background: none;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}


.organization-name {
    font-size: 1.7rem;
}

@media (min-width: 1px) and (max-width: 480px) {
    .logo {
        width: 50px;
        height: 50px;
    }

    .organization-name {
        font-size: 1rem;
    }
}