﻿/* إزالة الخط السفلي من روابط NavLink و Dropdown */
/*.navbar-nav .nav-link,
.dropdown-menu .dropdown-item {
    text-decoration: none !important;
}*/

    /* إزالة الإطار عند التركيز */
    /*.navbar-nav .nav-link:focus,
    .dropdown-menu .dropdown-item:focus {
        outline: none;
        box-shadow: none;
    }*/

/* تأكيد أن القائمة تظهر فوق العناصر الأخرى */
/*.dropdown-menu {
    z-index: 1050;
}*/

/* تعديل الشكل عند hover لتكون متوافقة مع Bootstrap */
/*.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: #212529;
}*/

/* إذا كنت تستخدم RTL واجعل القائمة تنزل بشكل طبيعي */
/*.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}*/

/* دعم NavLink داخل dropdown */
/*.dropdown-item.active,
.dropdown-item:active {
    background-color: #e9ecef;
    color: #212529;
}*/

/* جعل المؤشر يظهر كـ pointer داخل الروابط */
/*.dropdown-item {
    cursor: pointer;
}*/

/* Sidebar */
/*.sidebar {
    width: 220px;
    background-color: #f8f9fa;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    transition: width 0.3s;
    overflow-x: hidden;
}

    .sidebar.collapsed {
        width: 70px;
    }*/

/* Toggle button */
/*.toggle-btn {
    margin: 10px auto;
    border-radius: 50%;
    border: none;
    background-color: #0d6efd;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .toggle-btn:hover {
        background-color: #0056b3;
        transform: scale(1.1);
    }*/

/* NavLink */
/*.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;*/ /* النص على اليسار والأيقونة على اليمين */
    /*padding: 10px 15px;
    color: #333;
    font-weight: 500;
    transition: background 0.2s;
}

    .nav-link:hover {
        background-color: rgba(0, 123, 255, 0.1);
    }

    .nav-link.active {
        font-weight: 600;
        color: #0d6efd;
    }*/

/* Main content */
/*.main-content {
    margin-left: 220px;
    transition: margin-left 0.3s;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}*/

/* Icon size */
/*.nav-link .bi {
    font-size: 1.3rem;
}*/


/* ================= Navbar & Dropdown ================= */

/* إزالة الخط السفلي والإطار عند التركيز */
.navbar-nav .nav-link,
.dropdown-menu .dropdown-item {
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}

/* Dropdown */
.dropdown-menu {
    z-index: 1050;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa;
    color: #212529;
}

.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #e9ecef;
    color: #212529;
}

.dropdown-item {
    cursor: pointer;
}

/* ================= Sidebar ================= */
.sidebar {
    width: 220px;
    background-color: #f8f9fa;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-x: hidden;
    transition: width 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .sidebar.collapsed {
        width: 70px;
    }

/* NavLink */
.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    color: #333;
    font-weight: 500;
    transition: background 0.2s;
}

    .nav-link:hover {
        background-color: rgba(0, 123, 255, 0.1);
    }

    .nav-link.active {
        font-weight: 600;
        color: #0d6efd;
    }

/* نصوص NavLink */
.nav-text {
    transition: opacity 0.3s, width 0.3s;
}

.sidebar.collapsed .nav-text {
    display: none;
}

/* أيقونات NavLink */
.nav-link .bi {
    font-size: 1.3rem;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
}

/* Toggle Button */
.toggle-btn {
    margin: 10px auto;
    border-radius: 50%;
    border: none;
    background-color: #0d6efd;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .toggle-btn:hover {
        background-color: #0056b3;
        transform: scale(1.1);
    }

/* Sidebar position for toggle */
.sidebar .toggle-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ================= Main content ================= */
.main-content {
    margin-left: 220px; /* عرض sidebar */
    padding: 0; /* إزالة أي padding داخلي */
    transition: margin-left 0.3s;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 70px;
}



/* المحتوى داخل article */
.main-content .content {
    padding: 0; /* إزالة أي padding إضافي */
    margin: 0; /* إزالة أي margin إضافي */
}

.hero-section {
    height: 650px; /* زيد الارتفاع حسب رغبتك */
    position: relative;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 90vh;
    height: 100%;
    object-fit: cover;
    filter: none; /* إلغاء الإغمق */
}

.hero-overlay {
    display: none; /* إخفاء الطبقة الداكنة تماماً */
}

.hero-content {
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6); /* ظل خفيف لتحسين الوضوح */
}




/* ✨ أنيميشن دوران بسيط للوغو */
.animate-logo {
    animation: spinLogo 6s infinite linear;
    transition: transform 0.3s ease-in-out;
}

@keyframes spinLogo {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ✨ أنيميشن ظهور تدريجي للنص */
.animate-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    animation: typing 2.5s steps(30, end);
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}


