/* ====== الشريط العلوي ====== */
.top-bar {
    background: var(--primary);
    color: white;
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.top-bar span:last-child {
    color: var(--gold-accent);
}

/* ====== الهيدر ====== */
header {
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 992px) {
    header {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo-box h1,
.logo-box .site-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: var(--primary);
    letter-spacing: -1px;
    white-space: nowrap;
}

.logo-box a {
    text-decoration: none;
    color: inherit;
}

.header-ads {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #ccc;
    font-size: 0.8rem;
    color: #999;
}

/* ====== شريط التنقل ====== */
.nav-container {
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-inner {
    display: flex;
    align-items: center;
    padding: 0 5%;
}

/* شريط الموبايل (يظهر فقط في الشاشات الصغيرة) */
.mobile-nav-bar {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

/* القائمة الرئيسية */
nav {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding: 12px 0;
    transition: 0.3s ease;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.2s;
    white-space: nowrap;
    padding: 5px 0;
    display: inline-block;
}

nav a:hover {
    color: var(--brand-red);
}

/* القوائم المنسدلة */
nav .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
    z-index: 100;
    display: block;
    padding: 10px 0;
}

nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

nav .sub-menu li {
    padding: 0 15px;
}

nav .sub-menu a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

nav .sub-menu li:last-child a {
    border-bottom: none;
}

/* أيقونة البرغر */
.burger-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.burger-icon span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

