/* Career + Apply pages */
.page-career main { background: #e8e9ed; }
.cr-perks { max-width: 62.5rem; margin-inline: auto; }
.cr-jobs { display: grid; gap: 18px; max-width: 62.5rem; margin-inline: auto; }
.cr-job { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #fff; border-radius: var(--radius); border-left: 5px solid var(--blue); box-shadow: var(--shadow-card); padding: 22px 26px; }
.cr-job h3 { font-size: 1.25rem; color: var(--navy); }
.cr-job p { margin-top: 6px; color: var(--text); line-height: 1.5; white-space: pre-line; }
.cr-job-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cr-empty { display: flex; gap: 12px; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius); padding: 28px; color: var(--text); text-align: center; }
.cr-empty .pv-spinner { width: 26px; height: 26px; border-width: 3px; margin: 0; }
.pv-spinner { display: inline-block; width: 46px; height: 46px; border: 4px solid #d8e6ff; border-top-color: var(--blue); border-radius: 50%; animation: cr-spin 1s linear infinite; }
@keyframes cr-spin { to { transform: rotate(360deg); } }
.cr-modal { width: min(560px, calc(100% - 32px)); padding: 34px 28px 26px; }
.cr-modal h2 { font-size: 1.4rem; color: var(--navy); padding-right: 30px; }
.cr-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.cr-meta div { background: #f4f6fa; border-radius: 10px; padding: 10px 12px; }
.cr-meta dt { font-size: .8rem; color: var(--muted); }
.cr-meta dd { font-weight: 600; color: var(--ink); }
.cr-details { color: var(--text); line-height: 1.55; white-space: pre-line; margin-bottom: 20px; max-height: 45vh; overflow: auto; }

/* Apply */
.ap-card { max-width: 56.25rem; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: 4px 8px 16px rgba(0, 0, 0, .12); padding: clamp(22px, 4vw, 44px); }
.ap-card h2 { font-size: 1.6rem; color: var(--navy); }
.ap-sub { color: var(--text); margin: 6px 0 18px; }
.ap-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; max-width: 32.5rem; }
.ap-row .field { flex: 1 1 220px; }
.page-apply .field { height: 50px; padding: 0 16px; font-size: 1rem; border-radius: 10px; }
.page-apply textarea.field { height: 96px; padding: 12px 16px; resize: vertical; }
.page-apply select.field { appearance: auto; }
.ap-row .btn, .ap-actions .btn { height: 50px; border-radius: 10px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ap-label { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.ap-muted { color: var(--muted); font-size: .92rem; }
.ap-check { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: .9rem; color: var(--text); }
.ap-file { background: #f6f8fc; border-radius: 12px; padding: 14px; }
.ap-file input[type="file"] { width: 100%; font-size: .9rem; }
.image-preview { max-width: 140px; max-height: 140px; border-radius: 8px; margin-bottom: 8px; }
.ap-desc { min-height: 100px; white-space: pre-wrap; background: #f6f8fc; border-radius: 10px; padding: 14px; color: var(--text); margin-bottom: 12px; }
.ap-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }

/* Minimal styles for the Bootstrap behaviours apply.js relies on (tabs, alerts) */
.d-none { display: none !important; }
.nav-pills { display: flex; gap: 8px; list-style: none; background: #eef2f9; border-radius: 12px; padding: 6px; margin-bottom: 24px; }
.nav-pills .nav-item { flex: 1; }
.nav-pills .nav-link { display: block; text-align: center; padding: 10px; border-radius: 9px; color: var(--navy); font-weight: 600; text-decoration: none; }
.nav-pills .nav-link.active { background: var(--blue); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
.alert { position: fixed; top: 16px; right: 16px; z-index: 9999; max-width: min(420px, calc(100% - 32px)); padding: 14px 44px 14px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); background: #fff; border-left: 5px solid var(--blue); color: var(--ink); }
.alert-success { border-left-color: #19a33a; }
.alert-danger { border-left-color: #e53935; }
.btn-close { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: 0; background: none; cursor: pointer; }
.btn-close::before { content: "×"; font-size: 22px; line-height: 1; color: #666; }
.btn-sm { padding: 4px 10px; font-size: .85rem; border-radius: 6px; }
.btn-warning { background: #ffb020; color: #222; border: 0; }
.btn-info { background: #e8f2ff; color: var(--blue); border: 0; text-decoration: none; }
.ms-1 { margin-left: 4px; } .ms-2 { margin-left: 8px; } .mt-2 { margin-top: 8px; }

@media (max-width: 720px) {
  .cr-job { flex-direction: column; align-items: flex-start; }
  .ap-grid, .cr-meta { grid-template-columns: 1fr; }
}
