/* --- Global Header & Page Reset --- */
header {
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    z-index: 1000 !important;
}

.header-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.en-text,
.ar-text {
    display: none;
}

[lang="en"] .en-text {
    display: inline;
}

[lang="ar"] .ar-text {
    display: inline;
}

.top-bar {
    background: #090d96;
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact-info {
    display: flex;
    gap: 20px;
}

.header-contact-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.header-contact-info a:hover {
    opacity: 0.8;
}

.header-top-bar-right {
    display: flex;
    align-items: center;
}

.aramco-reg {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- Main Nav --- */
.main-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-item:hover,
.nav-item.active {
    color: #090d96;
}

/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.lang-switcher a {
    text-decoration: none;
    color: #666;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    background: #090d96;
    color: white;
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #090d96;
    border-radius: 3px;
    transition: 0.3s;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .top-bar {
        display: none;
    }

    .hide-mobile {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 40px 20px;
        transition: 0.4s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 20px;
    }

    .nav-links.open {
        left: 0;
    }

    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 20px;
    }
}

/* --- RTL Improvements --- */
[lang="ar"] .top-bar-content {
    flex-direction: row-reverse;
}

[lang="ar"] .nav-content {
    flex-direction: row-reverse;
}

[lang="ar"] .nav-links {
    flex-direction: row-reverse;
}

[lang="ar"] .lang-switcher {
    border-left: none;
    border-right: 1px solid #ddd;
    padding-left: 0;
    padding-right: 20px;
    margin-left: 0;
    margin-right: 20px;
}

@media (max-width: 991px) {
    [lang="ar"] .nav-links {
        left: auto;
        right: -100%;
    }

    [lang="ar"] .nav-links.open {
        right: 0;
    }
}