/* ================================== */
/* CAREER PAGE STYLES (WITH REVEAL EFFECT) */
/* ================================== */
:root {
    --primary-red: #e50914;
    --primary-black: #000;
    --primary-dark-grey: #1a1a1a;
    --primary-white: #fff;
    --text-grey-light: #ccc;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body {
    background-color: var(--primary-black);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- KEY CHANGE: Hero Section is now sticky and full-screen --- */
.career-hero {
    /* 1. Make it take up the full viewport height */
    height: 100vh; 
    
    /* 2. Make it stick to the top of the viewport as you scroll */
    position: sticky;
    top: 0;
    
    /* 3. Set a lower z-index so other content can scroll OVER it */
    z-index: 1; 

    /* Center the content vertically and horizontally */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #080808;
    
    /* 4. Remove vertical padding as height: 100vh handles it */
    padding: 0 5%; 
}

.career-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--primary-white);
}

.career-hero-content p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-grey-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- KEY CHANGE: Open Positions Section scrolls ON TOP of the hero --- */
.open-positions-section {
    /* 1. Use relative positioning to create a new stacking context */
    position: relative; 
    
    /* 2. Give it a higher z-index to ensure it's ON TOP of the hero */
    z-index: 2; 

    /* 3. CRITICAL: It MUST have a background color to hide the hero text as it scrolls past */
    background-color: var(--primary-black); 
    
    padding: 100px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-white);
}

.job-card {
    background-color: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 15px;
}

.job-card-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-white);
    margin: 0;
}

.job-meta {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.job-location, .job-type {
    font-size: 0.9rem;
    background-color: #222;
    padding: 5px 12px;
    border-radius: 15px;
    color: var(--text-grey-light);
}

.job-card-body p {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-grey-light);
    margin-bottom: 25px;
}

.job-card-footer {
    text-align: right;
}

.apply-btn {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 10px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.apply-btn:hover {
    background-color: #f6121d;
}

/* --- Styles for the hidden on-page form (no changes needed) --- */
.application-form-section {
    padding: 80px 0;
    background-color: #0c0c0c;
    border-top: 1px solid #222;
}
/* ... all your other form styles ... */
#job-title-in-form { color: var(--primary-red); }
.application-form .form-group, .application-form .form-group-split { margin-bottom: 25px; }
.application-form label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--text-grey-light); }
.application-form .required { color: var(--primary-red); }
.application-form .form-group-split { display: flex; gap: 25px; }
.application-form .form-group-split > .form-group { flex: 1; }
.application-form input[type="text"], .application-form input[type="email"], .application-form input[type="tel"], .application-form textarea { width: 100%; padding: 12px 15px; background-color: #1a1a1a; border: 1px solid #333; border-radius: 4px; font-size: 1rem; font-family: var(--font-body); color: var(--primary-white); outline: none; transition: border-color 0.3s ease; }
.application-form input:focus, .application-form textarea:focus { border-color: var(--primary-red); }
.file-input { width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; position: absolute; z-index: -1; }
.file-label { display: flex; align-items: center; border: 1px solid #333; border-radius: 4px; cursor: pointer; }
.file-button { background-color: #333; padding: 12px 20px; color: var(--primary-white); font-weight: 700; }
.file-name { padding: 0 15px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.form-actions { display: flex; justify-content: flex-end; gap: 15px; margin-top: 30px; }
.submit-btn, .cancel-btn { padding: 12px 35px; border: none; border-radius: 25px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background-color 0.3s ease; }
.submit-btn { background-color: var(--primary-red); color: var(--primary-white); }
.cancel-btn { background-color: #333; color: var(--text-grey-light); }
.submit-btn:hover { background-color: #f6121d; }
.cancel-btn:hover { background-color: #444; }