/* ====================================================
   New Header Design - Dark Theme
==================================================== */

:root {
    --header-bg: #161b1f;
    /* Darker background matching the image */
    --header-text: #e0e0e0;
    --header-hover: #d4af37;
    /* Gold color for hover */
    --header-font: 'Cairo';
}

/* Reset for header elements */
.new-header,
.new-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

.new-header {
    background-color: var(--header-bg);
    color: var(--header-text);
    padding: 0 30px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    direction: rtl;
    /* Ensure Right-to-Left layout */
    border-bottom: 1px solid #2c3033;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Distribute space */
}

/* Logo Section (Right) */
.header-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo img {
    height: 55px;
    /* Adjusted height for the logo */
    width: auto;
    object-fit: contain;
}

/* Navigation Links (Center) */
.header-nav {
    display: flex;
    gap: 30px;
    /* Increased gap */
    align-items: center;
    flex-grow: 1;
    /* Allow nav to take available space */
    justify-content: center;
    /* Center the links */
}

.header-nav a {
    color: #cbd5e1;
    /* Lighter text color */
    font-family: 'Cairo';
    /* Using existing font */
    font-size: 19px;
    /* Slightly larger font */
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.header-nav a:hover {
    color: var(--header-hover);
}

/* Mobile Menu Header (Inside Popup) - Hidden on Desktop */
.mobile-menu-head {
    display: none;
}

.mobile-menu-close {
    display: none;
}

.mobile-logo {
    display: none;
}

/* Mobile Menu Button (Left) */
.mobile-menu-btn {
    display: none;
    /* Hidden on desktop */
    font-size: 24px;
    cursor: pointer;
    color: var(--header-text);
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        justify-content: space-between;
    }

    .header-nav {
        display: flex;
        /* Keep it flex but hidden via position */
        flex-direction: column;
        position: fixed;
        top: 0;
        /* Cover full height */
        left: -320px;
        /* Hide off-screen */
        width: 280px;
        height: 100vh;
        /* Full height */
        background-color: #161b1f;
        transition: left 0.3s ease-in-out;
        padding: 20px 0;
        align-items: center;
        gap: 20px;
        z-index: 1001;
        /* Higher than header */
        border-right: 1px solid #2c3033;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
    }

    .header-nav.active {
        left: 0;
    }

    /* Show Mobile Menu Header Elements */
    .mobile-menu-head {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
    }

    .mobile-menu-close {
        display: block;
        align-self: flex-end;
        /* Position close button */
        cursor: pointer;
        font-size: 28px;
        color: #fff;
        padding: 0 20px 10px;
        transition: color 0.3s;
    }

    .mobile-menu-close:hover {
        color: var(--header-hover);
    }

    .mobile-logo {
        display: block;
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid var(--header-hover);
        margin-bottom: 20px;
    }

    .header-nav a {
        font-size: 20px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        border-bottom: 1px solid #2c3033;
    }

    .header-nav a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}