/* ============================================================
   CAREER PAGE — built on top of styles.css
   Reuses: fonts, navbar, contact, footer, root variables
   ============================================================ */

:root {
    --career-gold: #c9a85c;
    --career-gold-soft: rgba(201, 168, 92, 0.55);
}

.career-page { background: #000; }

.career-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 2;
}

/* ============ HERO HEADER (teamwork + logo) ============ */
.career-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 520px;
    /* overflow: hidden; */
    display: flex;
    align-items: center;
    justify-content: center;
}
.career-hero-img {
    position: absolute;
    /* inset: 0; */
    width: 100%;
    height: 100%;
    top: 0%;
    object-fit: cover;
    object-position: center 30%;
    will-change: transform;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}
/* .career-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
} */
.career-hero-logo {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    margin-top: -6%;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,.5));
}
.career-hero-logo img {
    width: clamp(280px, 38vw, 640px);
    height: auto;
    
}

/* ============ CAREER MAIN (shared picture-01 background) ============ */
.career-main {
    position: relative;
    width: 100%;
    /* background: #0a0a08; */
    /* overflow: hidden; */
    padding-bottom: 7rem;
}
.career-bg {
    position: absolute;
    top: -10%;                 /* overscan so the parallax shift never exposes a hard edge */
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
    will-change: transform;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}
.career-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.45) 0%,
        rgba(0,0,0,.3) 18%,
        rgba(10,10,8,.55) 42%,
        rgba(10,10,8,.78) 65%,
        rgba(10,10,8,.9) 100%);
}

/* ----- CAREER big heading over the worker ----- */
.career-hero-band {
    min-height: 146vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 22rem;
}
.career-title {
    font-size: clamp(3.5rem, 12vw, 10rem);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
    color: var(--light-text);
    margin: 0;
    text-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* ----- shared headings/text ----- */
.career-heading {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--light-text);
    margin: 0 0 1rem;
}
.career-text {
    font-size: clamp(.95rem, 1.4vw, 1.15rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,.85);
    max-width: 900px;
    margin: 0;
}

.join-us { margin-bottom: 4.5rem; }
.apply-now { margin-bottom: 0; }
.apply-now .career-text { margin-bottom: 2.5rem; }

/* ============ APPLY FORM ============ */
.apply-form { width: 100%; }

.apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--career-gold-soft);
    background: hsla(47, 39%, 53%, 24%);
    backdrop-filter: blur(2px);
}

.apply-grid input,
.apply-grid textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-right: 1px solid var(--career-gold-soft);
    border-bottom: 1px solid var(--career-gold-soft);
    padding: 1.4rem 1.5rem;
    color: var(--light-text);
    font-family: var(--font-gotham);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: .5px;
    outline: none;
    transition: background .25s ease, box-shadow .25s ease;
}
/* remove right border on the second column to avoid double edge */
.apply-grid input:nth-child(2n),
.apply-grid .full {
    border-right: 0;
}
.apply-grid .full {
    grid-column: 1 / -1;
}
.apply-grid textarea {
    resize: vertical;
    min-height: 150px;
    border-bottom: 0;
}

.apply-grid input::placeholder,
.apply-grid textarea::placeholder {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 300;
}
.apply-grid input:focus,
.apply-grid textarea:focus {
    background: rgba(201, 168, 92, 0.12);
    box-shadow: inset 0 0 0 1px var(--career-gold);
}
.apply-grid input.is-invalid,
.apply-grid textarea.is-invalid {
    background: rgba(220, 53, 69, 0.14);
    box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.8);
}

/* ----- file + submit row ----- */
.apply-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.file-field {
    display: flex;
    align-items: center;
    border: 1px solid var(--career-gold-soft);
    background: rgba(40, 38, 22, 0.28);
    padding: .85rem 1rem;
}
.file-field input[type="file"] {
    color: rgba(255,255,255,.85);
    font-family: var(--font-gotham);
    font-size: .95rem;
    width: 100%;
}
.file-field input[type="file"]::file-selector-button {
    background: #1f5b88;
    color: #fff;
    border: 0;
    padding: .55rem 1.1rem;
    margin-right: 1rem;
    font-family: var(--font-gotham);
    font-weight: 500;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .25s ease;
}
.file-field input[type="file"]::file-selector-button:hover {
    background: #2b74ab;
}

.submit-btn {
    background: var(--career-gold);
    color: #fff;
    border: 0;
    font-family: var(--font-gotham);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.submit-btn:hover {
    background: #d8b96a;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(201, 168, 92, 0.35);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .career-container { padding: 0 1.5rem; }
    .career-hero-band { min-height: 60vh; }
    .apply-grid { grid-template-columns: 1fr; }
    .apply-grid input,
    .apply-grid textarea { border-right: 0; }
    .apply-grid input:nth-last-child(2) { /* education already .full */ }
    .apply-actions { grid-template-columns: 1fr; gap: 1rem; }
    .submit-btn { padding: 1rem; }
}
