/* ====== Main Styles for Our Career Page ====== */
body {
    background: #262626;
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #e0e0e0;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    background: transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.logo {
    position: absolute;
    right: 30px;
    top: -30px;
    height: 130px;
    z-index: 1001;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin-right: 180px;
    margin-left: 60px;
}

.nav-menu {
    display: flex;
    align-items: center;
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 25px;
    padding: 3px 10px;
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-item {
    position: relative;
    padding: 0;
    margin: 0 2px;
}

.menu-item > a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding: 8px 15px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.menu-item > a:hover {
    color: #c5a47e;
    background: rgba(255, 255, 255, 0.1);
}

.menu-item-has-children > a {
    padding-left: 28px;
}

.menu-item-has-children > a i {
    font-size: 10px;
    margin-right: 4px;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.menu-item-has-children:hover > a i {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(24, 41, 74, 0.97);
    backdrop-filter: blur(8px);
    min-width: 220px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    top: 100%;
}

.sub-menu li {
    list-style: none;
}

.sub-menu li a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #c5a47e;
}

.mobile-menu-btn {
    display: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid rgba(197, 164, 126, 0.3);
    background: rgba(44, 44, 44, 0.95);
    color: #c5a47e;
    font-size: 24px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Show only one icon in mobile menu button depending on state */
.mobile-menu-btn i.fa-bars {
    display: inline-block;
}
.mobile-menu-btn i.fa-times {
    display: none;
}
.mobile-menu-btn.active i.fa-bars {
    display: none;
}
.mobile-menu-btn.active i.fa-times {
    display: inline-block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: rgba(44, 44, 44, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: all 0.3s ease;
    padding: 60px 0 20px;
    overflow-y: auto;
    border-left: 1px solid rgba(197, 164, 126, 0.2);
}

.mobile-menu.active {
    right: 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 22px;
    color: #c5a47e;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.main-content {
    padding-top: 100px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 30px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.mission-card {
    background: rgba(44, 44, 44, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.icon-mission {
    font-size: 2.5rem;
    color: #c5a47e;
    margin-bottom: 20px;
}

.mission-card-content h2 {
    color: #c5a47e;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.mission-card-content p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 0;
}

.section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(44, 44, 44, 0.9) 100%);
    z-index: 1;
}

.slider-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.slider-content h1 {
    font-size: 3.2em;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.3;
    font-weight: 700;
}

.section-card {
    background: rgba(44, 44, 44, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.section-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(44, 44, 44, 0.7) 100%);
    z-index: 1;
}

.section-card h2 {
    color: #c5a47e;
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.section-card h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #c5a47e;
    margin: 12px 0 0 0;
    border-radius: 2px;
}

.section-card p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .nav-container {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 90px;
        margin: 0 auto 0 auto;
        width: 100%;
    }
    .logo img {
        margin: 0 auto;
        display: block;
        height: 80px;
        max-width: 180px;
    }

    .main-content {
        padding: 80px 20px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }
    .section-card {
        padding: 25px;
    }
    .section-card h2 {
        font-size: 1.6rem;
    }
    .section-card p {
        font-size: 1rem;
    }
}

.language-switcher {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    right: auto !important;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 30px;
    background: rgba(197, 164, 126, 0.1);
    border: 1px solid rgba(197, 164, 126, 0.15);
    transition: all 0.3s ease;
    z-index: 1002;
}

html[lang="en"] .language-switcher {
    left: 15px !important;
    right: auto !important;
}

@media (max-width: 1024px) {
    .language-switcher {
        left: 15px !important;
        right: auto !important;
        top: 50%;
        transform: translateY(-50%);
        padding: 3px;
        margin: 0;
        z-index: 1002;
    }
    html[lang="en"] .language-switcher {
        left: 15px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        left: 12px !important;
        right: auto !important;
        padding: 2px;
    }
    html[lang="en"] .language-switcher {
        left: 12px !important;
        right: auto !important;
    }
}

.lang-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 25px;
    letter-spacing: 0.3px;
    position: relative;
}

.lang-link.active {
    color: #c5a47e;
    background: rgba(44, 44, 44, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-link:hover:not(.active) {
    color: #c5a47e;
    background: rgba(44, 44, 44, 0.5);
}

.lang-separator {
    display: none;
}

/* ====== قسم الشروط والأحكام (تحت الهيرو) ====== */
.terms-container {
    background: rgba(44, 44, 44, 0.95);
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 48px 28px 38px 28px;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.terms-section h2 {
    color: #c5a47e;
    font-size: 2.1em;
    margin-bottom: 32px;
    border-bottom: 2px solid #c5a47e;
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: right;
}
.terms-content {
    display: grid;
    gap: 32px;
}
.term-item {
    background: rgba(30, 30, 30, 0.93);
    border-radius: 14px;
    padding: 28px 22px 22px 22px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    border-right: 4px solid #c5a47e;
}
.term-item:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    transform: translateY(-3px) scale(1.02);
}
.term-item h3 {
    color: #c5a47e;
    font-size: 1.25em;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: right;
    font-family: 'Tajawal', 'Cairo', sans-serif;
}
.term-item p {
    color: #e0e0e0;
    line-height: 1.9;
    font-size: 1.08em;
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .terms-container {
        padding: 18px 4px 18px 4px;
    }
    .terms-section h2 {
        font-size: 1.3em;
        padding-bottom: 7px;
    }
    .term-item {
        padding: 14px 7px 14px 7px;
    }
    .term-item h3 {
        font-size: 1em;
    }
    .term-item p {
        font-size: 0.98em;
    }
}
