.logo-container{
    margin-top: 0px;
    margin-bottom: 0px;
    width: 60px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    direction: rtl;
}/* Navbar Styles Only */

/* Header Section */
.header-section {
    background-color: #fff !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-section .navbar {
    background-color: #fff !important;
}

.navbar {
    padding: 15px 0;
}

/* Navigation Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px; /* Consistent gap between all icons */
}

.nav-icon {
    color: #333;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 !important; /* Remove all margins - use gap instead */
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.nav-icon:hover {
    color: #666;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}



/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 15px 45px;
    transition: color 0.3s ease;
    position: relative;
    text-align: center;
    min-width: 120px;
}

.nav-link:hover {
    color: #666;
}

.nav-link.active {
    color: #333;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    display: block;
}

/* Bootstrap Collapse - Only affects mobile */
.navbar-collapse {
    flex-grow: 0;
}

/* Desktop Layout - Preserve original spacing */
@media (min-width: 992px) {
    /* Top-level container: logo | [collapse area] */
    .navbar .container {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 16px;
        padding-right: 80px; /* Push content left for better centering */
    }

    /* Collapse area becomes a grid: [centered links] | [icons] */
    .navbar-collapse {
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: center;
        width: 100%;
    }

    .navbar-collapse.collapse,
    .navbar-collapse.collapsing,
    .navbar-collapse.show {
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: center;
        width: 100%;
    }

    /* Center nav links within the space between logo and icons */
    .nav-links {
        justify-self: center;
    }

    /* Keep icons pinned to the far left (in RTL) of the navbar area */
    .nav-icons {
        justify-self: end;
        margin: 0;
    }
}

/* Mobile Menu Styles - Only when collapsed */
@media (max-width: 991.98px) {
    /* Base collapsed area with enhanced smooth transition */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 16px rgba(0, 0, 0, 0.08);
        border-radius: 0 0 16px 16px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0 24px;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Open state with enhanced animation */
    .navbar-collapse.show {
        max-height: 80vh;
        opacity: 1;
        transform: translateY(0) scale(1);
        padding-top: 24px;
        padding-bottom: 24px;
    }

    /* Staggered animation for menu items */
    .navbar-collapse.show .nav-links .nav-link {
        animation: slideInUp 0.3s ease-out forwards;
        opacity: 0;
        transform: translateY(20px);
    }

    .navbar-collapse.show .nav-links .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .navbar-collapse.show .nav-links .nav-link:nth-child(2) { animation-delay: 0.15s; }
    .navbar-collapse.show .nav-links .nav-link:nth-child(3) { animation-delay: 0.2s; }

    .navbar-collapse.show .nav-icons {
        animation: slideInUp 0.3s ease-out 0.25s forwards;
        opacity: 0;
        transform: translateY(20px);
    }

    /* Keyframes for staggered animations */
    @keyframes slideInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Enhanced toggler animation */
    .navbar-toggler {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        background: transparent;
        padding: 8px;
        border-radius: 8px;
    }

    .navbar-toggler:hover {
        background: rgba(0, 0, 0, 0.05);
       
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    }

   

    .navbar-toggler-icon {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
    }
    
    .nav-links {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .nav-links .nav-link {
        margin: 0;
        padding: 15px 20px;
        min-width: auto;
    }
    
    .nav-icons {
        justify-content: center;
        gap: 20px;
    }
    
    .nav-icons .nav-icon {
        margin: 0 !important; /* Consistent with desktop - use gap instead */
    }
    
    /* Position toggler on the right side for RTL */
    .navbar-toggler {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Center the logo on mobile */
    .brand-logo {
        justify-content: center;
        width: 100%;
    }
}
