body {
    font-family: "Cairo", sans-serif;
}

.dropdown {
    position: relative !important;
}
/* ==============================
   Mega Menu Base
============================== */
.main-menu .dropdown {
    position: relative !important;
}
.dropdown megamenu {
    position: relative !important;
}
.main-menu .megamenu > a:after {
    content: "\f107"; /* أيقونة السهم لأسفل */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 5px;
}

/* ==============================
   Dropdown Container
============================== */
.megamenu__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #ffffff;
    padding: 15px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.25s ease;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.main-menu .megamenu:hover > .megamenu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* التابات (Tablet) */
@media (min-width: 769px) {
    .megamenu__dropdown {
        background: #fff !important; /* خلفية مختلفة للتابات */
    }
}

/* ==============================
   Dropdown Items
============================== */
.megamenu__dropdown li {
    list-style: none;
}

.megamenu__dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #222;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s ease;
}

.megamenu__dropdown li a:hover {
    background: #f5f5f5;
    padding-right: 25px;
    color: var(--theme-color, #d12525); /* لون أساسي */
}

/* ==============================
   RTL Fix (لأن الموقع عربي)
============================== */
html[dir="rtl"] .megamenu__dropdown {
    right: 0;
    left: auto;
    text-align: right;
}

html[dir="rtl"] .megamenu__dropdown li a {
    padding: 10px 20px;
}

/* ==============================
   Mobile View (منع مشاكل اللمس)
============================== */
@media (max-width: 991px) {
    .megamenu__dropdown {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .megamenu__dropdown li a {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
}
