/* FRESH NAVIGATION STYLES - No conflicts with existing CSS */
/* All classes have unique "fresh" suffix */

/* Reset for nav only */
.nav-header-fresh,
.nav-header-fresh * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main Header */
.nav-header-fresh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    height: 90px; /* Increased height for larger logo */
    display: flex;
    align-items: center;
    border-bottom: 4px solid transparent; /* Placeholder for blue border */
}

/* Blue Border Bottom */
.nav-blue-border-fresh {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066cc, #0099ff, #0066cc);
    z-index: 10001;
}

.nav-container-fresh {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Brand Logo - Made Larger */
.nav-brand-fresh {
    flex-shrink: 0;
    margin-right: 40px; /* Space between logo and nav items */
}

.nav-logo-link-fresh {
    display: block;
    text-decoration: none;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-logo-fresh {
    height: 70px; /* Increased from 45px to 70px */
    width: auto;
    display: block;
    max-width: 200px;
    object-fit: contain;
}

/* Navigation Menu - All items in one line */
.nav-menu-fresh {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    height: 100%;
}

.nav-list-fresh {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
    gap: 5px; /* Reduced gap to fit all items in one line */
}

.nav-item-fresh {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link-fresh {
    text-decoration: none;
    color: #333333;
    font-family: 'Cairo', 'Segoe UI', 'Droid Arabic Kufi', Tahoma, sans-serif;
    font-size: 15px; /* Slightly smaller to fit more items */
    font-weight: 500;
    padding: 10px 12px; /* Adjusted padding */
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-link-fresh:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.nav-active-fresh {
    color: #0066cc;
    font-weight: 600;
}

.nav-active-fresh::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Align with blue border */
    left: 12px;
    width: calc(100% - 24px);
    height: 3px;
    background: #0066cc;
    border-radius: 2px 2px 0 0;
}

/* Dropdown Styles */
.nav-dropdown-fresh {
    position: relative;
}

.nav-dropdown-toggle-fresh {
    cursor: pointer;
}

.nav-dropdown-icon-fresh {
    font-size: 11px;
    transition: transform 0.3s ease;
    margin-left: 4px;
}

.nav-dropdown-fresh:hover .nav-dropdown-icon-fresh {
    transform: rotate(180deg);
}

.nav-dropdown-content-fresh {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10002;
    padding: 10px 0;
    border-top: 3px solid #0066cc;
}

.nav-dropdown-fresh:hover .nav-dropdown-content-fresh {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link-fresh {
    display: block;
    padding: 10px 20px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-dropdown-link-fresh:hover {
    background: #f5f8ff;
    color: #0066cc;
}

/* Right Section */
.nav-right-fresh {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: 20px; /* Space from nav items */
}

/* Social Icons */
.nav-social-fresh {
    display: flex;
    gap: 10px;
}

.nav-social-link-fresh {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-social-link-fresh:hover {
    background: #0066cc;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Language Switcher */
.nav-lang-switcher-fresh {
    display: flex;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 4px;
    gap: 4px;
    border: 1px solid #eaeaea;
}

.nav-lang-btn-fresh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: #555555;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-lang-active-fresh {
    background: #ffffff;
    color: #0066cc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-flag-fresh {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.nav-lang-text-fresh {
    font-weight: 600;
}

/* Mobile Toggle Button */
.nav-toggle-fresh {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: #333333;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.nav-toggle-fresh:hover {
    color: #0066cc;
}

/* Mobile Overlay */
.nav-overlay-fresh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay-fresh.nav-overlay-active-fresh {
    opacity: 1;
    visibility: visible;
}

/* Mobile Close Button */
.nav-mobile-close-fresh {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    font-size: 30px;
    color: #333333;
    cursor: pointer;
    z-index: 10003;
    padding: 5px;
}

.nav-mobile-close-fresh:hover {
    color: #0066cc;
}

/* Mobile Language Switcher */
.nav-mobile-lang-fresh {
    display: none;
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS FOR ONE-LINE LAYOUT */
/* =========================================== */

/* For very large screens */
@media screen and (min-width: 1400px) {
    .nav-link-fresh {
        font-size: 16px;
        padding: 10px 15px;
    }
}

/* For large screens */
@media screen and (max-width: 1200px) {
    .nav-link-fresh {
        font-size: 14px;
        padding: 10px 10px;
    }
    
    .nav-logo-fresh {
        height: 65px;
    }
    
    .nav-social-fresh {
        gap: 8px;
    }
    
    .nav-social-link-fresh {
        width: 36px;
        height: 36px;
    }
}

/* For medium screens */
@media screen and (max-width: 1100px) {
    .nav-link-fresh {
        font-size: 13.5px;
        padding: 10px 8px;
    }
    
    .nav-logo-fresh {
        height: 60px;
    }
    
    .nav-brand-fresh {
        margin-right: 20px;
    }
}

/* =========================================== */
/* MOBILE RESPONSIVE STYLES */
/* =========================================== */
@media screen and (max-width: 1024px) {
    .nav-container-fresh {
        padding: 0 20px;
    }
}

@media screen and (max-width: 992px) {
    /* Adjust header height for mobile */
    .nav-header-fresh {
        height: 80px;
    }
    
    /* Hide desktop elements on mobile */
    .nav-menu-fresh {
        display: none;
    }
    
    .nav-social-fresh {
        display: none;
    }
    
    .nav-lang-switcher-fresh {
        display: none;
    }
    
    /* Show mobile toggle button */
    .nav-toggle-fresh {
        display: block;
    }
    
    /* Mobile menu styles */
    .nav-menu-fresh.nav-menu-active-fresh {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 320px;
        height: 100vh;
        background: #ffffff;
        z-index: 10002;
        padding: 90px 25px 40px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.4s ease;
    }
    
    .nav-menu-fresh.nav-menu-active-fresh {
        transform: translateX(0);
    }
    
    /* Mobile close button */
    .nav-mobile-close-fresh {
        display: block;
    }
    
    /* Mobile list styles - vertical layout */
    .nav-list-fresh {
        flex-direction: column;
        gap: 0;
        margin-bottom: 30px;
        height: auto;
        align-items: flex-start;
    }
    
    .nav-item-fresh {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        height: auto;
    }
    
    .nav-link-fresh {
        width: 100%;
        padding: 18px 0;
        font-size: 17px;
        justify-content: space-between;
        height: auto;
        white-space: normal;
    }
    
    .nav-active-fresh::after {
        display: none; /* Hide active indicator on mobile */
    }
    
    .nav-active-fresh {
        background: rgba(0, 102, 204, 0.08);
        padding-left: 15px;
        margin-left: -15px;
        padding-right: 15px;
        margin-right: -15px;
    }
    
    /* Mobile dropdown styles */
    .nav-dropdown-content-fresh {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 0 20px;
        display: none;
        border-radius: 0;
        border-top: none;
    }
    
    .nav-dropdown-fresh.nav-dropdown-active-fresh .nav-dropdown-content-fresh {
        display: block;
    }
    
    .nav-dropdown-link-fresh {
        padding: 15px 0;
        font-size: 16px;
        color: #666666;
    }
    
    .nav-dropdown-link-fresh:hover {
        background: transparent;
        color: #0066cc;
    }
    
    /* Mobile language switcher */
    .nav-mobile-lang-fresh {
        display: block;
        padding-top: 25px;
        border-top: 1px solid #f0f0f0;
        margin-top: 25px;
    }
    
    .nav-mobile-lang-container-fresh {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-mobile-lang-btn-fresh {
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 15px 20px;
        text-decoration: none;
        color: #333333;
        border-radius: 10px;
        transition: all 0.3s ease;
        background: #f8f9fa;
    }
    
    .nav-mobile-lang-active-fresh {
        background: #0066cc;
        color: #ffffff;
    }
    
    .nav-mobile-lang-btn-fresh span {
        font-size: 16px;
        font-weight: 500;
    }
}

/* Small mobile devices */
@media screen and (max-width: 576px) {
    .nav-logo-fresh {
        height: 55px;
    }
    
    .nav-header-fresh {
        height: 75px;
    }
    
    .nav-menu-fresh.nav-menu-active-fresh {
        width: 100%;
    }
    
    .nav-container-fresh {
        padding: 0 15px;
    }
}

/* Very small mobile devices */
@media screen and (max-width: 400px) {
    .nav-logo-fresh {
        height: 50px;
    }
    
    .nav-header-fresh {
        height: 70px;
    }
}