/* ==========================================================================
   1. GLOBAL ENGINE & FONTS CONFIGURATION (SYNE CORE & DECREASED SCALES)
   ========================================================================== */
:root {
    /* Global Font Family Cores */
    --font-headings: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* English Viewport - Clean, decreased elegant font sizes */
    --base-font-size: 15px;
    --hero-heading-size: clamp(2.1rem, 4.8vw, 3.2rem); /* Decreased sleek scale */
    --hero-desc-size: 1rem;                          /* Refined descriptive text sizing */
    --hero-badge-size: 11px;
    --hero-cta-size: 13px;
    
    --ops-heading-size: 1.95rem;
    --ops-desc-size: 14px;
    --ops-badge-size: 10px;
}

html[lang="ar"] {
    /* Arabic Viewport - Proportional scaling to ensure script legibility */
    --base-font-size: 18px;
    --hero-heading-size: clamp(2.5rem, 5.8vw, 4rem); 
    --hero-desc-size: 1.2rem;     
    --hero-badge-size: 13px;
    --hero-cta-size: 14.5px;
    
    --ops-heading-size: 2.25rem;
    --ops-desc-size: 15.5px;
    --ops-badge-size: 12px;
    
    /* Forced Arabic safe fallbacks */
    --font-headings: 'Syne', 'Noto Sans Arabic', sans-serif;
    --font-body: 'Noto Sans Arabic', sans-serif;
}

body {
    font-family: var(--font-body);
    font-size: var(--base-font-size);
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   2. HERO SECTION STRUCTURE (FULLY RESPONSIVE & CENTERED TEXT)
   ========================================================================== */
#career-hero-wrapper { 
    background: #020617; 
    overflow: hidden; 
    width: 100%;
}

.career-bg-hero {
    background-image: url('../images/career-img/career-img.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.career-final-header { 
    position: relative; 
    display: flex; 
    width: 100%; 
    height: 60vh;             
    min-height: 500px;        
    align-items: center;      
    justify-content: center;  
    box-sizing: border-box;
}

.visual-side { 
    position: absolute; 
    inset: 0; 
    z-index: 1; 
    width: 100% !important;   
    height: 100% !important;
    clip-path: none !important; 
}

.visual-side img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.35) contrast(1.05); 
}

.overlay-protection { 
    position: absolute; 
    inset: 0; 
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.4) 0%, rgba(2, 6, 23, 0.85) 100%),
                linear-gradient(to bottom, rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.75)); 
    z-index: 2; 
}

.text-side { 
    position: relative; 
    z-index: 10; 
    flex: none; 
    width: 100%;
    max-width: 850px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 40px 24px; 
    text-align: center !important; 
    box-sizing: border-box;
}

.content-container { 
    max-width: 750px !important; 
    margin: 0 auto !important; 
    width: 100%;
}

.header-main { 
    font-family: var(--font-headings) !important; 
    font-size: var(--hero-heading-size); 
    color: #ffffff; 
    line-height: 1.2; 
    font-weight: 800; 
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 16px;
    
    background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 25%, #ffffff 50%, #cbd5e1 75%, #ffffff 100%);
    background-size: 200% auto;
background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: luxuryShimmer 6s linear infinite;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

@keyframes luxuryShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.emerald-highlight { 
    color: #10b981;
    -webkit-text-fill-color: #10b981; 
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.badge { 
    font-family: var(--font-body);
    color: #10b981; 
    letter-spacing: 2px; 
    font-weight: 700; 
    font-size: var(--hero-badge-size); 
    margin-bottom: 18px; 
    display: inline-block; 
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.6); 
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 14px;
    border-radius: 4px;
}

.cta-outline { 
    font-family: var(--font-body);
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    padding: 12px 30px; 
    border: 1.5px solid #10b981; 
    color: #ffffff; 
    text-transform: uppercase; 
    font-size: var(--hero-cta-size); 
    font-weight: 700;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    margin-top: 25px;            
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, box-shadow 0.3s ease; 
}

.cta-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #10b981; 
    z-index: -1;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-outline:hover { 
    color: #020617 !important; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.cta-outline:hover::before {
    left: 0; 
}

.career-final-header p {
    font-family: var(--font-body);
    font-size: var(--hero-desc-size);
    color: #cbd5e1 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   3. GLOBAL VACANCIES SECTION (PREMIUM ATTRACTIVE LIGHT GREY BACKGROUND)
   ========================================================================== */
#global-vacancies,
.vacancies-section,
section:has(.preserve-3d) {
    background-color: #f8fafc !important; 
    padding: 80px 0;
}

.perspective-1000 { 
    perspective: 1000px; 
}

.preserve-3d { 
    transform-style: preserve-3d; 
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
    height: 100%; 
    width: 100%; 
    position: relative; 
}

.backface-hidden { 
    backface-visibility: hidden; 
    position: absolute; 
    height: 100%; 
    width: 100%; 
    top: 0; 
    left: 0; 
}

.rotate-y-180 { 
    transform: rotateY(180deg); 
}

.group:hover .preserve-3d { 
    transform: rotateY(180deg); 
}

/* ==========================================================================
   4. ORIGINAL SAUDI OPERATIONS CTA (UNTOUCHED STRUCTURE)
   ========================================================================= */
#saudi-ops-cta { background-color: #0f172a; padding: 50px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.ops-container { width: 85%; margin: 0 auto; }
.ops-flex-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ops-badge { 
    font-family: var(--font-body);
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background: rgba(16, 185, 129, 0.1); 
    border-left: 3px solid #10b981; 
    padding: 6px 15px; 
    color: #10b981; 
    font-size: var(--ops-badge-size); 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 20px; 
}
.ops-heading { 
    font-family: var(--font-headings) !important;
    color: #ffffff; 
    font-size: var(--ops-heading-size); 
    font-weight: 800; 
    line-height: 1.3; 
    margin-bottom: 15px; 
}
.text-emerald { color: #10b981; }
.ops-description { font-family: var(--font-body); color: #94a3b8; font-size: var(--ops-desc-size); max-width: 600px; line-height: 1.6; }
.btn-starlen-double { font-family: var(--font-body); position: relative; display: inline-flex; align-items: center; width: 200px; height: 52px; border: 2px solid #10b981; border-radius: 100px; overflow: hidden; transition: all 0.4s ease; z-index: 1; text-decoration: none; }
.btn-inner { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 8px 0 24px; color: #ffffff; font-weight: 700; font-size: 12px; text-transform: uppercase; }
.btn-slide-layer { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: #ffffff; transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1); z-index: 2; }
.btn-circle-icon { width: 36px; height: 36px; background: #10b981; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.btn-starlen-double:hover .btn-slide-layer { left: 0; }
.btn-starlen-double:hover .btn-inner { color: #0f172a; }

/* ==========================================================================
   5. ORIGINAL BRAND FOOTER PROPERTIES (UNTOUCHED GLOBAL LOOK)
   ========================================================================== */
.stralen-footer-section { position: relative; padding-top: 80px; background-size: cover; font-family: var(--font-body) !important; overflow: hidden; }
.footer-80-container { width: 85%; max-width: 1400px; margin: 0 auto; }
.footer-border-glow { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, #10b981, #0f172a, #10b981, transparent); background-size: 200% 100%; animation: glowMove 4s linear infinite; }
@keyframes glowMove { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.footer-main-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 60px; }
.footer-heading { font-family: var(--font-headings) !important; }
.nav-item, .contact-entry { display: flex; align-items: center; gap: 12px; color: #475569; font-size: 0.9rem; font-weight: 600; text-decoration: none; margin-bottom: 15px; transition: 0.3s; }
.footer-navy-bar { background: #0f172a; padding: 25px 0; text-align: center; }
.copyright-text { color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; }

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS (ALL SCREENS OPTIMIZATION)
   ========================================================================== */

/* Tablets and Below */
@media (max-width: 991px) {
    .ops-flex-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .ops-description {
        margin: 0 auto;
    }
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .nav-item, .contact-entry {
        justify-content: center;
    }
}

/* Small Tablets / Large Phones */
@media (max-width: 768px) {
    .career-final-header { 
        height: auto; 
        min-height: 480px; 
        padding: 60px 0;
    }
    .text-side {
        padding: 20px 20px;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    .career-final-header {
        min-height: 440px;
        padding: 80px 0; /* Ensures vertical alignment breathing room on tiny displays */
    }
    .footer-main-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ops-container, .footer-80-container {
        width: 90%;
    }
}

/* ==========================================================================
   7. RTL & MULTILINGUAL DIRECTION MATRIX ADJUSTMENTS
   ========================================================================== */
html[dir="rtl"] .text-side { text-align: center !important; }
html[dir="rtl"] .content-container { margin: 0 auto !important; }
html[dir="rtl"] .visual-side { clip-path: none !important; }
html[dir="rtl"] .group:hover .preserve-3d { transform: rotateY(-180deg); }
html[dir="rtl"] .btn-slide-layer { left: auto; right: -100%; }
html[dir="rtl"] .btn-starlen-double:hover .btn-slide-layer { right: 0; }
html[dir="rtl"] .scroll-top-small { right: auto; left: 20px; }

html[lang="ar"] .cta-outline::before { left: auto; right: -100%; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
html[lang="ar"] .cta-outline:hover::before { right: 0; left: auto; }