/* ═══════════════════════════════════════
   Job Detail Page - Shared Styles
   assets/css/job-detail.css
═══════════════════════════════════════ */

/* ── Hero ── */
.job-hero {
    position: relative;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background: linear-gradient(135deg, #172a3b 0%, #0d1e2b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.job-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/careers/1.avif') center/cover no-repeat;
    opacity: 0.25;
}
.job-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}
.job-hero .breadcrumb-nav {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin-bottom: 12px;
}
.job-hero .breadcrumb-nav a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
}
.job-hero .breadcrumb-nav a:hover { color: #fff; }
.job-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
}
.job-hero .job-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 18px;
    background: var(--primary-red);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ── Content ── */
.job-detail-section { padding: 70px 0; background: #fff; }
.job-detail-section .section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-red);
    margin-bottom: 6px;
}
.job-detail-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--dark-blue);
    margin-bottom: 6px;
}
.job-detail-section .divider {
    width: 50px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
    margin-bottom: 28px;
}
.job-meta-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.job-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    background: #f0f4f8;
    color: var(--dark-blue);
    border: 1px solid #d0dce8;
}
.job-info-block { margin-bottom: 28px; }
.job-info-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-red);
}
.job-info-block p,
.job-info-block li {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.8;
}
.job-info-block ul { padding-left: 20px; }
.job-info-block li { margin-bottom: 4px; }

/* ── Application Card ── */
.job-apply-card {
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 4px 30px rgba(23,42,59,.08);
    position: sticky;
    top: 100px;
}
.job-apply-card h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 4px;
}
.job-apply-card .subtitle {
    text-align: center;
    font-size: .88rem;
    color: #888;
    margin-bottom: 24px;
}

/* ── Form Elements ── */
.jf-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 5px;
    display: block;
}
.req { color: var(--primary-red); }
.jf-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d0dce8;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    outline: none;
    transition: border-color .25s;
    background: #fafbfc;
}
.jf-input:focus { border-color: var(--dark-blue); background: #fff; }
.jf-input.error  { border-color: #dc3545; }
.jf-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 3px;
    display: none;
}
.jf-group { margin-bottom: 18px; }

/* intl-tel-input width fix */
.iti { width: 100%; }
.iti input.jf-input { padding-left: 52px; }
.jf-file-row { display: flex; align-items: center; gap: 10px; }
.jf-drop-display {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #d0dce8;
    border-radius: 10px;
    font-size: 14px;
    color: #aaa;
    background: #fafbfc;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
    transition: border-color .25s;
}
.jf-drop-display.has-file { color: #333; }
.jf-drop-display:hover { border-color: var(--dark-blue); }
.jf-upload-btn {
    padding: 11px 22px;
    background: linear-gradient(360deg, #ce181e 0%, #f64e54 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .25s;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 3px 10px rgba(206,24,30,.25);
}
.jf-upload-btn:hover { opacity: .9; }
.jf-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(360deg, #ce181e 0%, #f64e54 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 4px 15px rgba(206,24,30,.3);
    transition: opacity .25s, transform .2s;
}
.jf-submit:hover   { opacity: .92; transform: translateY(-1px); }
.jf-submit:active  { transform: translateY(0); }
.form-success-msg {
    display: none;
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 12px;
    color: #2e7d32;
    font-weight: 600;
    font-size: 15px;
}
.send-resume-cta {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #666;
}
.send-resume-cta a { color: var(--primary-red); font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 991px) {
    .job-apply-card { position: static; margin-top: 48px; }
}
@media (max-width: 576px) {
    .job-hero { height: 260px; }
    .job-detail-section { padding: 48px 0; }
    .job-apply-card { padding: 24px 16px; }
}
