/* =============================================
   JOB DETAIL PAGES — jobdetail.css
   ============================================= */

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: 1000px;
    margin: 16px auto 0;
    padding: 0 16px;
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: #bbb; }

/* ===== JOB PAGE WRAPPER ===== */
.job-page {
    max-width: 1000px;
    margin: 16px auto 40px;
    padding: 0 16px;
}

/* ===== POST TITLE CARD ===== */
.post-title-card {
    background: linear-gradient(135deg, var(--blue-dark) 0%, #1565c0 100%);
    border-radius: var(--radius);
    padding: 28px 24px 22px;
    margin-bottom: 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.post-title-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.07) 0%, transparent 50%);
    pointer-events: none;
}
.post-title-card h1 {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
    line-height: 1.3;
    position: relative;
}
.post-title-card h1 span { color: var(--yellow); }
.post-org {
    font-size: 13px;
    color: #90caf9;
    margin-bottom: 16px;
    position: relative;
}
.post-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
}
.pill {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}
.pill.pill-yellow { background: var(--yellow); color: #1a1a2e; border-color: var(--yellow); }
.pill.pill-red    { background: var(--red);    color: white;   border-color: var(--red); }
.pill.pill-green  { background: #43a047;       color: white;   border-color: #43a047; }

/* ===== ALERT BOX ===== */
.alert-box {
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.alert-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-yellow { background: #fffde7; border: 1.5px solid #fdd835; color: #5d4037; }
.alert-green  { background: var(--green-light); border: 1.5px solid #a5d6a7; color: #1b5e20; }
.alert-red    { background: var(--red-light);   border: 1.5px solid #ef9a9a; color: #b71c1c; }
.alert-blue   { background: var(--blue-light);  border: 1.5px solid #90caf9; color: #0d47a1; }

/* ===== DETAIL SECTION CARD ===== */
.detail-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.detail-card-head {
    padding: 12px 18px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dh-red    { background: linear-gradient(90deg, #b71c1c, #d32f2f); }
.dh-blue   { background: linear-gradient(90deg, #0d47a1, #1565c0); }
.dh-green  { background: linear-gradient(90deg, #1b5e20, #2e7d32); }
.dh-orange { background: linear-gradient(90deg, #e65100, #f57c00); }
.dh-dark   { background: linear-gradient(90deg, #072f60, #0b4a8f); }

/* ===== INFO TABLE ===== */
.dtable {
    width: 100%;
    border-collapse: collapse;
}
.dtable tr { border-bottom: 1px solid var(--border); }
.dtable tr:last-child { border-bottom: none; }
.dtable td, .dtable th {
    padding: 11px 16px;
    font-size: 13.5px;
    text-align: left;
    vertical-align: top;
}
.dtable th {
    background: #f8f9fa;
    font-weight: 700;
    color: var(--blue-dark);
    width: 32%;
    border-right: 1px solid var(--border);
}
.dtable tr:hover td, .dtable tr:hover th { background: #fafbff; }
.dtable td { color: #333; line-height: 1.65; }
.dtable td strong { color: var(--blue-dark); }

/* Two-col layout for dates+fee */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.two-col-grid .col-cell {
    padding: 16px;
    font-size: 13.5px;
    line-height: 1.75;
    color: #333;
    border-right: 1px solid var(--border);
}
.two-col-grid .col-cell:last-child { border-right: none; }
.two-col-grid .col-cell h4 {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--blue-dark);
    margin-bottom: 8px;
    font-weight: 700;
}
.col-cell .date-line { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 3px; }
.col-cell .dot { color: var(--blue); font-size: 16px; margin-top: -1px; flex-shrink: 0; }
.col-cell .highlight { color: var(--red); font-weight: 700; }

/* ===== VACANCY TABLE ===== */
.vac-table { width: 100%; border-collapse: collapse; }
.vac-table thead tr { background: #f0f4fb; }
.vac-table th {
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--blue-dark);
    text-align: left;
    border-bottom: 2px solid var(--border);
}
.vac-table td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.6;
    color: #333;
}
.vac-table tr:last-child td { border-bottom: none; }
.vac-table tr:hover td { background: #fafbff; }
.vac-table td strong { color: var(--blue-dark); }
.vac-count { font-size: 16px; font-weight: 800; color: var(--red); }

/* ===== LINKS TABLE ===== */
.links-table { width: 100%; border-collapse: collapse; }
.links-table tr { border-bottom: 1px solid var(--border); }
.links-table tr:last-child { border-bottom: none; }
.links-table td {
    padding: 12px 16px;
    font-size: 13.5px;
    vertical-align: middle;
}
.links-table td:first-child {
    font-weight: 700;
    color: var(--blue-dark);
    width: 35%;
    background: #f8f9fa;
    border-right: 1px solid var(--border);
}
.links-table tr:hover td { background: #fafbff; }
.links-table tr:hover td:first-child { background: #f0f4fb; }

.lbtn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    transition: opacity 0.2s, transform 0.2s;
    margin-right: 6px;
    margin-bottom: 4px;
}
.lbtn:hover { opacity: 0.85; transform: translateY(-1px); }
.lbtn-blue   { background: var(--blue);   color: white; }
.lbtn-green  { background: #2e7d32;       color: white; }
.lbtn-red    { background: var(--red);    color: white; }
.lbtn-orange { background: var(--orange); color: white; }

/* ===== SELECTION STEPS ===== */
.steps-list {
    list-style: none;
    padding: 16px;
    margin: 0;
    counter-reset: step;
}
.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13.5px;
    color: #333;
}
.steps-list li:last-child { border-bottom: none; }
.step-num {
    background: var(--blue);
    color: white;
    font-weight: 800;
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== DISTRICT TABLE ===== */
.dist-table { width: 100%; border-collapse: collapse; }
.dist-table th, .dist-table td {
    padding: 9px 14px;
    text-align: left;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.dist-table th { background: #f0f4fb; font-weight: 700; color: var(--blue-dark); }
.dist-table tr:nth-child(even) td { background: #fafbff; }
.dist-table .last-date { color: var(--red); font-weight: 700; }

/* ===== TEAM SIGN OFF ===== */
.team-signoff {
    text-align: center;
    padding: 20px;
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--blue-dark);
    font-weight: 700;
    border-top: 2px dashed var(--border);
    margin-top: 8px;
}

@media (max-width: 600px) {
    .two-col-grid { grid-template-columns: 1fr; }
    .two-col-grid .col-cell { border-right: none; border-bottom: 1px solid var(--border); }
    .post-title-card h1 { font-size: 20px; }
    .dtable th { width: auto; }
}
