/* =====================================================
   9UNIVERSE INFRACON — CAREERS PAGE STYLES (UNIFIED)
===================================================== */

/* ========= BASE VARIABLES (Synchronized) ========= */
:root {
  --brand-red: #e63946;
  --brand-blue: #142854;
  --brand-blue-2: #0f2a57;
  --primary-color: var(--brand-red);
  --secondary-color: var(--brand-blue);
  --white: #ffffff;
  --bg-soft: #fbfcff;
  --glass: rgba(255, 255, 255, .96); 
  --muted: #6b7280;        
  --text-dark: #0f172a;    
  --card-bg: rgba(255, 255, 255, .98);
  --radius: 12px;
  --shadow-1: 0 8px 28px rgba(20, 40, 84, .08); 
  --shadow-2: 0 14px 40px rgba(20, 40, 84, .12); 
  --transition: 0.35s ease;
  --font-sans: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --max-width: 1200px;
}

/* =======================================
   DARK THEME VARIABLES AND STYLES (UNIVERSALIZED)
   ======================================= */
body.dark-theme {
  --bg-soft: #1c1c1c;
  --glass: rgba(28, 28, 28, .96);
  --white: #fff;
  --muted: #a0a0a0;
  --text-dark: #f0f0f0; 
  --card-bg: #2d2d2d; 
  --shadow-1: 0 8px 28px rgba(0, 0, 0, .4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, .6);
  background: #121212; 
  transition: background-color 0.5s ease;
  color: var(--text-dark);
}

body.dark-theme img {
    filter: contrast(1.1);
}

body.dark-theme header {
  background: var(--card-bg);
  box-shadow: var(--shadow-2);
}

body.dark-theme nav ul li a {
  color: var(--text-dark);
}

body.dark-theme .header-actions button {
    color: var(--text-dark) !important; 
}

body.dark-theme nav ul.show {
    background: var(--card-bg);
    box-shadow: var(--shadow-2);
}

body.dark-theme .hamburger span {
  background: var(--text-dark); 
}

/* --- Section Specific Dark Mode Fixes --- */
body.dark-theme .why-join,
body.dark-theme .open-positions {
    background: var(--bg-soft) !important;
}
body.dark-theme .why-item {
    background: var(--card-bg);
    box-shadow: var(--shadow-1) !important;
}
body.dark-theme .why-item h4,
body.dark-theme .position-card h3 {
    color: var(--text-dark);
}
body.dark-theme .position-card {
    background: var(--card-bg);
    box-shadow: var(--shadow-1) !important;
}

/* FIX: Section Title Dark Mode */
body.dark-theme .section-title h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    color: var(--text-dark) !important;
    -webkit-text-fill-color: var(--text-dark) !important;
}


/* Footer Dark Theme Styling (Universal) */
body.dark-theme footer {
    background: linear-gradient(135deg, #0e1e3b, var(--brand-blue)); 
    color: var(--white);
}

body.dark-theme .footer-section h3 {
    color: var(--white) !important; 
}

/* =======================================
   END DARK THEME STYLES
   ======================================= */


/* ========= GLOBAL STYLES & LAYOUTS ========= */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 30px; 
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}
.btn:hover {
  background: #c92c3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6);
}

/* Header & Nav (Unified) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  background: var(--glass);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(2, 6, 23, .12)
}
.logo img { height: 52px }
nav ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0 }
nav ul li a { color: var(--brand-blue); font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; transition: color var(--transition) }
nav ul li a:hover, nav ul li a.active { color: var(--brand-red) }
.header-actions { display: flex; align-items: center; gap: 15px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer }
.hamburger span { width: 26px; height: 3px; background: var(--brand-blue); border-radius: 3px }

@media(max-width:920px) {
  .hamburger { display: flex }
  nav ul {
    position: fixed; top: 72px; right: 12px; background: linear-gradient(180deg, var(--white), var(--bg-soft));
    flex-direction: column; color: var(--text-dark); padding: 1rem; border-radius: 12px;
    box-shadow: var(--shadow-2); display: none; width: 220px
  }
  nav ul.show { display: flex }
}

/* Section Title */
.section-title {
  text-align: center;
  padding: 3rem 0 1.5rem;
}

.section-title h2 {
  display: inline-block;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
  padding: 0 .25rem
}


/* CAREERS HERO */
.hero-careers {
    background: linear-gradient(135deg, var(--brand-blue), #1e3c72);
    padding: 8rem 1rem 5rem;
    color: var(--white);
    text-align: center;
    margin-top: 72px;
}
.hero-careers h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem); 
    margin-bottom: 0.5rem;
}
.hero-careers p {
    font-size: 1.2rem;
    opacity: 0.9;
}


/* WHY JOIN US */
.why-join {
    padding: 4rem 1rem;
    background: var(--bg-soft);
    text-align: center;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.why-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: transform 0.3s ease;
}
.why-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}
.why-item i {
    font-size: 2.5rem;
    color: var(--brand-red);
    margin-bottom: 1rem;
}
.why-item h4 {
    font-size: 1.3rem;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}
.why-item p {
    color: var(--muted);
}


/* OPEN POSITIONS */
.open-positions {
    padding: 4rem 1rem;
}
.position-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--brand-blue);
    transition: all 0.3s ease;
}
.position-card:hover {
    box-shadow: var(--shadow-2);
    transform: translateX(5px);
    border-left-color: var(--brand-red);
}
.position-info h3 {
    font-size: 1.4rem;
    color: var(--brand-blue);
    margin-bottom: 0.3rem;
}
.position-info p {
    color: var(--muted);
    font-size: 0.95rem;
}
.position-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.apply-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 0;
}
@media (max-width: 768px) {
    .position-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .position-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* APPLICATION CTA */
.application-cta {
    padding: 4rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05), rgba(20, 40, 84, 0.05));
    margin-bottom: 3rem;
    border-radius: var(--radius);
}
.application-cta h2 {
    color: var(--brand-blue);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
/* Removed redundant h2 dark theme fix here as it uses the main .section-title h2 */


/* ========== FOOTER (Simplified and Unified) ========== */
footer {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
    color: var(--white);
    padding: 3rem 1rem 1rem; 
    margin-top: 4rem; 
    position: relative; 
    font-size: 0.95rem; 
}

/* Footer Accent Line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #007bff);
}

.footer-container {
    /* Single Row Layout (4 fluid sections for wide screens) */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem 1.5rem; 
    max-width: 1200px;
    margin: auto;
}

.footer-section {
    flex: 1 1 200px; 
}

.footer-section h3 {
    font-size: 1.2rem; 
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 700;
    padding-bottom: 0.2rem;
    position: relative;
}

.footer-section p,
.footer-section ul li a {
    line-height: 1.6; 
    color: rgba(255, 255, 255, 0.85); 
    transition: color 0.3s ease;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Quick Links Styling with Icons */
.footer-section ul li {
    margin-bottom: 0.4rem;
    padding-left: 0;
    position: relative;
}
.footer-section ul li a {
    display: flex;
    align-items: center;
}
.footer-section ul li a i {
    margin-right: 8px;
    color: var(--brand-red); 
}
.footer-section ul li a:hover {
    color: var(--brand-red);
}


/* Contact Info (Tighter Spacing & Icons) */
.footer-contact-info {
    margin-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem; 
}
.footer-contact-info a,
.footer-contact-info p {
    display: flex;
    align-items: flex-start;
}
.footer-contact-info i {
    flex-shrink: 0; 
    margin-top: 3px; 
    color: var(--brand-red);
}


/* Social Icons */
.footer-social { margin-top: 1rem; } 
.footer-social a {
    font-size: 1.4rem; 
    margin-right: 1rem;
    color: rgba(255, 255, 255, 0.8);
}
.footer-social a:hover {
    color: var(--primary-color); 
    transform: scale(1.15);
}


/* Map Section */
.map-section {
    flex: 1 1 250px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.map-section iframe {
    width: 100%;
    height: 200px; 
    border-radius: var(--radius);
}


/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 2rem; 
    font-size: 0.8rem; 
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}
.footer-links a:hover {
    color: var(--primary-color);
}
@media (max-width: 992px) {
    .footer-container {
        flex-wrap: wrap; 
        gap: 2rem;
    }
    .footer-section {
        flex: 1 1 45%; 
    }
    .map-section {
        flex: 1 1 100%; 
        order: 5; 
        margin-top: 1.5rem;
    }
}
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-section {
        flex: 1 1 100%;
    }
    .footer-bottom {
        flex-direction: column;
    }
    .footer-links {
        margin-top: 10px;
    }
}