/* jobs.css */
:root {
    --primary-blue: #0b3c5d;
    --secondary-blue: #1f5f8b;
    --text-dark: #1e293b;
    --accent-red: #b30000;
    --emerald: #10b981;
    --rose: #f43f5e;
    --border: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

a { text-decoration: none; transition: all 0.2s; color: inherit; }
body { -webkit-font-smoothing: antialiased; }

.max-container { max-width: 1100px; margin: 0 auto; width: 100%; }

/* --- PAGE HERO --- */
.page-hero { background: #ffffff; padding: 60px 30px; border-bottom: 1px solid var(--border); }
.status-badge { display: inline-flex; align-items: center; gap: 8px; background: #eff6ff; color: #1d4ed8; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; border: 1px solid #dbeafe; margin-bottom: 15px; }
.page-hero h2 { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--primary-blue); margin-bottom: 10px; letter-spacing: -0.02em; }
.page-hero p { font-size: 1.1rem; color: var(--text-muted); }

main { padding: 50px 20px; }

.section-header { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.section-header h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #0f172a; }

/* --- JOB CARDS --- */
.job-card { background: #ffffff; border-radius: 24px; border: 1px solid var(--border); overflow: hidden; margin-bottom: 50px; box-shadow: var(--shadow); }
.job-card-main { padding: 25px; position: relative; }

.line-green { border-left: 8px solid #10b981 !important; }
.line-blue  { border-left: 8px solid #0b3c5d !important; }
.line-amber { border-left: 8px solid #d97706 !important; }
.line-gray  { border-left: 8px solid #94a3b8 !important; }
.archive-main { border-left-color: #94a3b8; }

.new-tag     { position: absolute; top: 30px; right: 30px; background: var(--accent-red); color: white; font-size: 0.7rem; font-weight: 800; padding: 6px 16px; border-radius: 20px; letter-spacing: 1.2px; box-shadow: 0 4px 12px rgba(179,0,0,0.25); }
.pending-tag { position: absolute; top: 30px; right: 30px; background: #f59e0b; color: white; font-size: 0.7rem; font-weight: 800; padding: 6px 16px; border-radius: 20px; letter-spacing: 1.2px; box-shadow: 0 4px 12px rgba(245,158,11,0.25); }

.job-sub-section { margin-bottom: 35px; }
.job-sub-section:last-child { margin-bottom: 0; }
.divider { height: 1px; background: #f1f5f9; margin: 40px 0; width: 100%; }

.job-title { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.job-meta { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.job-description { margin-bottom: 25px; font-size: 1rem; color: #475569; max-width: 850px; }

/* --- BUTTONS --- */
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: center; }
.btn-primary   { background: var(--primary-blue); color: white; }
.btn-secondary { background: var(--secondary-blue); color: white; }
.btn-outline   { border: 1.5px solid var(--border); color: #475569; background: transparent; }
.btn-warning   { background: #f59e0b; color: #ffffff; border: none; }
.btn:hover:not(.btn-disabled) { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-disabled  { opacity: 0.6; cursor: not-allowed; pointer-events: none; background: #94a3b8; color: #f1f5f9; border: none; }

/* --- CANDIDATE LISTS --- */
.candidate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; padding: 45px; background: #fcfcfd; border-top: 1px solid var(--border); }
.archive-grid { grid-template-columns: 1fr; }

.list-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-weight: 800; }
.eligible-title   { color: #065f46; }
.ineligible-title { color: #991b1b; }
.archive-list-title { color: var(--primary-blue); }

.candidate-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: white; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; font-size: 0.9rem; font-weight: 600; color: #334155; transition: 0.2s ease; }
.candidate-row:hover { border-color: var(--secondary-blue); color: var(--primary-blue); transform: translateX(5px); }

.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--emerald); box-shadow: 0 0 10px rgba(16,185,129,0.4); }
.dot-red   { background: var(--rose);    box-shadow: 0 0 10px rgba(244,63,94,0.4); }
.dot-blue  { background: var(--secondary-blue); box-shadow: 0 0 10px rgba(31,95,139,0.4); }

.row-label { display: flex; align-items: center; gap: 12px; }
.row-icon { width: 16px; color: #94a3b8; }

/* --- MARKSHEET GRID --- */
.marksheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 30px; background: #f8fafc; border-top: 1px solid var(--border); }
.marksheet-card { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.marksheet-header { background: var(--primary-blue); color: white; padding: 14px 18px; font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.marksheet-body { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.marksheet-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; background: #fcfcfd; border: 1px solid #f1f5f9; border-radius: 8px; font-size: 0.85rem; color: #334155; font-weight: 600; transition: all 0.2s; }
.marksheet-row:hover { border-color: var(--secondary-blue); color: var(--primary-blue); background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* --- ARCHIVE DROPDOWN --- */
.archive-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 45px; background: #E7D000; border: none; font-size: 1rem; font-weight: 700; color: var(--primary-blue); cursor: pointer; transition: background 0.2s; outline: none; }
.archive-toggle:hover { background: #f1f5f9; }

/* --- UTILITIES --- */
.mt-60 { margin-top: 60px; }
.w-16  { width: 16px; }
.w-18  { width: 18px; }
.w-20  { width: 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .candidate-grid { gap: 30px; padding: 30px; }
    .page-hero h2 { font-size: 2rem; }
}
@media (max-width: 768px) {
    .new-tag, .pending-tag { position: relative; top: 0; right: 0; display: inline-block; margin-bottom: 15px; }
    .job-card-main { padding: 20px; }
    .candidate-grid { padding: 20px; grid-template-columns: 1fr; }
    .marksheet-grid  { padding: 20px; grid-template-columns: 1fr; }
    .archive-toggle  { padding: 20px; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .section-header h3 { font-size: 1.4rem; }
}
