/* ==========================================================================
           00. ROOT VARIABLES & RESET
           ========================================================================== */
:root {
    /* Header Colors (ebhdr8) */
    --ebhdr8-color-primary: #00045F;
    --ebhdr8-color-accent: #E83A15;
    --ebhdr8-color-white: #ffffff;
    --ebhdr8-color-black: #000000;
    --ebhdr8-color-text-dark: #333333;
    --ebhdr8-color-text-light: #ffffff;
    --ebhdr8-bg-transparent: rgba(0, 4, 95, 0.15);
    --ebhdr8-bg-scrolled: #00045F;
    --ebhdr8-overlay-bg: rgba(0, 0, 0, 0.6);
    --ebhdr8-mobile-menu-bg: #111111;
    --ebhdr8-border-color: rgba(255, 255, 255, 0.1);


}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background-color: #f4f4f4; */
    color: var(--ebhdr8-color-text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}


button {
    background-color: transparent;
    border: none;
}

/* ==========================================================================
           01. HEADER SECTION (ebhdr8) - MOBILE FIRST
           ========================================================================== */
.ebhdr8-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Scrolled Header State via JS */
.ebhdr8-header.ebhdr8-scrolled {
    background-color: var(--ebhdr8-bg-scrolled);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ebhdr8-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

/* Logo Area */
.ebhdr8-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.ebhdr8-logo-icon {
    width: 300px;
    height: 70px;
    fill: var(--ebhdr8-color-white);
}

.ebhdr8-logo-text {
    display: flex;
    flex-direction: column;
}

.ebhdr8-logo-title {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 800;
    color: var(--ebhdr8-color-white);
    line-height: 1.2;
}

.ebhdr8-logo-subtitle {
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    color: var(--ebhdr8-color-accent);
    font-weight: 600;
    letter-spacing: 0.5px;
}



/* Overlay Background Background */
.ebhdr8-overlay {
    position: fixed;
    top: 0;
    right: -100%;

    width: 100%;
    height: 100vh;
    background-color: var(--ebhdr8-overlay-bg);
    transition: opacity 0.4s ease, visibility 0.4s ease, right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 1001;

}

.ebhdr8-overlay.ebhdr8-active {
    right: 0;
}


/* Navigation Drawer - Mobile View */
.ebhdr8-nav {
    width: 280px;
    height: 100vh;
    background-color: var(--ebhdr8-mobile-menu-bg);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1002;
}

/* Header Drawer Top Area */
.ebhdr8-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ebhdr8-border-color);
    padding-bottom: 20px;
}

.ebhdr8-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebhdr8-close-icon {
    width: 24px;
    height: 24px;
    fill: var(--ebhdr8-color-white);
}

/* Menu Items List */
.ebhdr8-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ebhdr8-menu-item a {
    color: var(--ebhdr8-color-text-light);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 600;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.ebhdr8-menu-item-button {
    color: var(--ebhdr8-color-text-light);
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 600;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.ebhdr8-menu-item a:hover,
.ebhdr8-menu-item.ebhdr8-active a {
    color: var(--ebhdr8-color-accent);
}


/* ================================= */
.ebhdr1-nav-dropdown {
    position: relative;
}

.ebhdr1-nav-dropdown i {
    transition: transform 0.35s ease;
}



.ebhdr1-nav-dropdown .ebhdr1-dropdown {
    position: static;

    width: 100%;
    background: inherit;
    list-style: none;
    border-radius: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    max-height: 0px;
    opacity: 0;

    transition:
        max-height 0.4s ease,
        opacity 0.3s ease;

    padding-right: 1rem;
    gap: 1rem;
}

.ebhdr1-nav-link {
    text-decoration: none;
    font-size: .97rem;
    font-weight: 400;
    color: #000000;
    transition: .35s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
}

@media (max-width: 991px) {
    .ebhdr1-nav-link {
        color: white;
    }
}

.ebhdr1-nav-dropdown.open .ebhdr1-dropdown {
    max-height: 500px;
    opacity: 1;
    pointer-events: all;
    overflow-y: auto;

    margin-top: 10px;
    padding-top: 10px;
}

.ebhdr1-nav-link:hover {
    color: var(--ebhdr8-color-accent);
}

/* Burger Button Menu */
.ebhdr8-burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    z-index: 1001;
}

.ebhdr8-burger-icon {
    width: 28px;
    height: 28px;
    fill: var(--ebhdr8-color-white);
}


@media (min-width:769px) {
    .ebhdr8-drawer-header {
        display: none;
    }

}


/* ==========================================================================
           03. DESKTOP MEDIA QUERIES (شاشات الحاسوب الكبيرة)
           ========================================================================== */
@media (min-width: 992px) {


    .ebhdr1-nav-dropdown .ebhdr1-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--ebhdr8-color-white);


        list-style: none;
        border-radius: 10px;
        width: 300px;
        /* box-shadow: var(--ebhdr1-shadow-card); */
        opacity: 0;
        max-height: 0;
        pointer-events: none;
        transition: all .35s ease;

        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .ebhdr1-nav-dropdown:hover i {
        transform: rotate(180deg);
    }

    .ebhdr1-nav-dropdown:hover .ebhdr1-dropdown {
        opacity: 1;
        max-height: 500px;
        overflow-y: auto;
        pointer-events: auto;
        padding: 1.2rem;
    }


    .ebhdr8-burger-btn {
        display: none;
    }

    .ebhdr8-close-btn {
        display: none;
    }

    .ebhdr8-nav {
        /* position: static; */
        width: auto;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        flex-direction: row;
        align-items: center;
    }

    .ebhdr8-menu {
        flex-direction: row;
        gap: 28px;
    }

    .ebhdr8-menu-item a {
        color: var(--ebhdr8-color-white);
        font-size: clamp(0.9rem, 1.2vw, 1.05rem);
        padding: 5px 0;
    }

    .ebhdr8-menu-item-button {
        color: var(--ebhdr8-color-white);
        font-size: clamp(0.9rem, 1.2vw, 1.05rem);
        padding: 5px 0;
    }

    .ebhdr8-overlay {
        position: static;
        width: fit-content;
        height: auto;
        background-color: transparent;
    }
}