/* ===== الهيدر الأساسي ===== */
.custom-header {
    width: 100%;
    position: relative;
    z-index: 999999;
}

/* الحاوية */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
    padding: 15px 30px;
    transition: 0.4s;
    background: transparent;
}

/* عند الـ Sticky */
.custom-header.sticky .header-inner {
    flex-direction: row;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* المنيو */
.menu-area ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

/* لون المنيو */
.menu-area a {
    color: var(--menu-normal);
    transition: 0.3s;
    text-decoration: none;
}

.custom-header.sticky .menu-area a {
    color: var(--menu-sticky);
}

/* اللوجو اللي بيظهر فوق */
.scroll-logo {
    width: 140px;
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.4s;
}

.custom-header.sticky .scroll-logo {
    opacity: 1;
    transform: translateY(0);
}

/* اللوجو في النص */
.floating-logo-wrapper {
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
    transition: 0.4s;
}

.floating-logo {
    width: 180px;
}

/* يخفي اللوجو الأوسط */
.custom-header.sticky .floating-logo-wrapper {
    opacity: 0;
    transform: translate(-50%, -50px);
}
/* ===============================
   FIX SUB MENU
================================ */

/* خلي عناصر المنيو الأساسية relative */
.menu-area > ul > li {
    position: relative;
}

/* الـ submenu نفسها */
.menu-area ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: none; /* أهم سطر */
    flex-direction: column;
    z-index: 999999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* روابط الـ submenu */
.menu-area ul.sub-menu li a {
    padding: 10px 20px;
    color: #000 !important;
    white-space: nowrap;
    display: block;
}

/* Hover يظهر الـ submenu */
.menu-area li:hover > ul.sub-menu {
    display: block;
}

/* يمنع flex من التأثير على submenu */
.menu-area ul.sub-menu {
    display: none;
}
.custom-header.sticky .menu-area ul.sub-menu {
    top: 100%;
}
