/* =====================================================================
   ENHANCEMENTS — jobs tabs, job modal, placements, WhatsApp community
   (loaded after style.css; uses the same colour variables)
   ===================================================================== */

/* ---------- Jobs: tabs + header ---------- */
.jobs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.jobs-tabs { display: inline-flex; gap: 6px; background: #fff; border: 1.5px solid var(--border); padding: 5px; border-radius: 100px; box-shadow: var(--shadow); }
.jobs-tab { border: none; background: transparent; padding: 10px 20px; border-radius: 100px; font: 600 14px var(--font-display); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition); }
.jobs-tab:hover { color: var(--blue); }
.jobs-tab.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11,47,99,.28); }
.jobs-tab .tab-count { font: 700 11px var(--font); background: var(--blue-light); color: var(--blue); padding: 2px 8px; border-radius: 100px; }
.jobs-tab.active .tab-count { background: rgba(255,255,255,.22); color: #fff; }
.jobs-count { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.jobs-empty { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.jobs-empty i { font-size: 40px; color: var(--border); display: block; margin-bottom: 16px; }
.jobs-empty strong { display: block; font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.jobs-empty a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ---------- Job cards: whole card is clickable ---------- */
.job-card { cursor: pointer; display: flex; flex-direction: column; outline-offset: 3px; }
.job-card:focus-visible { outline: 3px solid var(--gold); }
.job-card .job-footer { margin-top: auto; }
.job-card .btn-apply { pointer-events: none; }
.region-pill { position: absolute; left: 12px; top: 12px; font: 700 11px var(--font); padding: 5px 11px; border-radius: 100px; background: rgba(255,255,255,.95); color: var(--navy); box-shadow: var(--shadow); }
.region-pill.intl { background: var(--navy); color: #fff; }
.region-pill.inline { position: static; display: inline-block; box-shadow: none; margin-bottom: 10px; background: var(--blue-light); color: var(--blue); }
.region-pill.inline.intl { background: var(--navy); color: #fff; }

/* ---------- Job modal ---------- */
body.modal-open { overflow: hidden; }
.job-modal { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(28,38,35,.62); backdrop-filter: blur(3px); }
.job-modal.open { display: flex; animation: jmFade .2s ease; }
@keyframes jmFade { from { opacity: 0 } to { opacity: 1 } }
.jm-dialog { position: relative; background: #fff; width: min(1040px, 100%); max-height: calc(100vh - 40px); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(0,0,0,.35); display: flex; flex-direction: column; overflow: hidden; animation: jmUp .28s ease; }
@keyframes jmUp { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }
.jm-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--blue-pale); color: var(--navy); font-size: 17px; cursor: pointer; transition: all var(--transition); }
.jm-close:hover { background: var(--navy); color: #fff; }
.job-modal-body { overflow-y: auto; }
.jm-grid { display: grid; grid-template-columns: 1.25fr 1fr; }
.jm-details { padding: 36px 34px 34px; }
.jm-details h2 { font-size: clamp(22px, 3vw, 30px); color: var(--navy); line-height: 1.2; margin-bottom: 8px; padding-right: 36px; }
.jm-company { color: var(--text-muted); font-weight: 500; margin-bottom: 16px; }
.jm-company i { color: var(--blue); margin-right: 6px; }
.jm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.jm-chips span { font-size: 12.5px; background: var(--blue-pale); border: 1px solid var(--border); color: var(--text); padding: 6px 12px; border-radius: 100px; }
.jm-chips i { color: var(--blue); margin-right: 5px; font-size: 11px; }
.jm-salary { font: 800 22px var(--font-display); color: var(--blue); margin-bottom: 8px; }
.jm-details h4 { font-size: 15px; color: var(--navy); margin: 24px 0 10px; }
.jm-details h4 small { font: 500 12px var(--font); color: var(--text-muted); }
.jm-details p { color: var(--text); font-size: 14.5px; line-height: 1.7; margin-bottom: 8px; }
.jm-details ul { list-style: none; display: grid; gap: 8px; }
.jm-details li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.55; }
.jm-details li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 2px; font-size: 11px; color: #fff; background: var(--blue); width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.jm-note { font-size: 12.5px !important; color: var(--text-muted) !important; background: var(--blue-pale); border-radius: 10px; padding: 10px 14px; margin-top: 18px !important; }
.jm-note i { color: var(--blue); margin-right: 6px; }
.jm-note a { color: var(--blue); font-weight: 600; text-decoration: underline; }

.jm-apply { background: var(--blue-pale); border-left: 1.5px solid var(--border); padding: 36px 30px 30px; }
.jm-apply h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.jm-apply h3 i { color: var(--blue); margin-right: 6px; }
.jm-apply-sub { font-size: 13.5px; color: var(--text-muted); margin-bottom: 20px; }
.jm-apply .form-group { margin-bottom: 14px; }
.jm-apply .btn-full { padding: 14px; }
.jm-or { text-align: center; margin: 16px 0; position: relative; font-size: 12px; color: var(--text-muted); }
.jm-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--border); }
.jm-or span { position: relative; background: var(--blue-pale); padding: 0 12px; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.file-drop.over { border-color: var(--blue); background: var(--blue-light); }
.file-drop.has-file { border-style: solid; border-color: var(--blue); background: #fff; }
.jm-success { text-align: center; padding: 28px 8px; }
.jm-success > i { font-size: 56px; color: #0a7c4e; margin-bottom: 14px; }
.jm-success h3 { margin-bottom: 8px; }
.jm-success p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 20px; }

@media (max-width: 860px) {
  .job-modal { padding: 0; align-items: flex-end; }
  .jm-dialog { max-height: 94vh; border-radius: 22px 22px 0 0; }
  .jm-grid { grid-template-columns: 1fr; }
  .jm-details { padding: 28px 20px 8px; }
  .jm-apply { border-left: none; border-top: 1.5px solid var(--border); padding: 26px 20px 32px; }
  .jobs-toolbar { justify-content: center; }
  .jobs-tab { padding: 9px 14px; font-size: 13px; }
}

/* ---------- Placements ---------- */
.placements-section { background: #fff; }
.placements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.placement-card { margin: 0; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.placement-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.placement-photo { position: relative; aspect-ratio: 4 / 4.4; background: linear-gradient(135deg, var(--blue-light), #e8edf7); overflow: hidden; }
.placement-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.placement-card:hover .placement-photo img { transform: scale(1.05); }
.placement-initials { height: 100%; display: flex; align-items: center; justify-content: center; font: 800 56px var(--font-display); color: var(--blue); opacity: .55; }
.placement-ribbon { position: absolute; left: 12px; bottom: 12px; background: #0a7c4e; color: #fff; font: 700 11px var(--font); padding: 6px 12px; border-radius: 100px; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 6px 14px rgba(10,124,78,.35); }
.placement-card figcaption { padding: 18px 20px 22px; display: grid; gap: 3px; }
.placement-card strong { font: 700 17px var(--font-display); color: var(--navy); }
.placement-role { font-size: 14px; color: var(--blue); font-weight: 600; }
.placement-where { font-size: 13px; color: var(--text-muted); }
.placement-quote { font-size: 13.5px; color: var(--text); font-style: italic; line-height: 1.55; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* ---------- WhatsApp community ---------- */
.community-section { background: linear-gradient(135deg, #041a3b 0%, #0b2f63 100%); position: relative; overflow: hidden; }
.community-section::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: rgba(232,163,61,.12); }
.community-section .section-header h2 { color: #fff; }
.community-section .section-header p { color: rgba(255,255,255,.72); }
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.community-card { background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 34px 30px; color: #fff; transition: all var(--transition); display: flex; flex-direction: column; }
.community-card:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.community-icon { width: 58px; height: 58px; border-radius: 16px; background: #25D366; display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 18px; box-shadow: 0 10px 24px rgba(37,211,102,.35); }
.community-card h3 { font-size: 21px; margin-bottom: 8px; }
.community-card p { color: rgba(255,255,255,.72); font-size: 14.5px; margin-bottom: 22px; }
.community-card ul { display: grid; gap: 8px; margin-bottom: 26px; font-size: 14px; }
.community-card li i { color: var(--gold); margin-right: 8px; }
.btn-whatsapp { background: #25D366; color: #0b3b1f; border-color: #25D366; margin-top: auto; justify-content: center; font-weight: 700; }
.btn-whatsapp:hover { background: #1fb856; border-color: #1fb856; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,211,102,.4); }
.btn-whatsapp-nav { background: #25D366; color: #0b3b1f !important; border-color: #25D366; padding: 9px 16px; font-size: 14px; }
.btn-whatsapp-nav:hover { background: #1fb856; }
@media (max-width: 700px) { .community-grid { grid-template-columns: 1fr; } }

/* ---------- Chat widget extras ---------- */
.chat-bubble a { color: var(--blue); font-weight: 600; text-decoration: underline; word-break: break-all; }
.chat-bubble.user a { color: #fff; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; margin: 2px 0 4px; }
.chat-chips button { border: 1.5px solid var(--border); background: #fff; color: var(--blue); font: 600 12.5px var(--font); padding: 7px 12px; border-radius: 100px; cursor: pointer; transition: all var(--transition); }
.chat-chips button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.chat-bubble { white-space: pre-wrap; word-wrap: break-word; }
.chat-input-row button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Dashboard extras ---------- */
.mini-list { display: grid; gap: 10px; margin-top: 10px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.mini-row img, .mini-row .mini-ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--blue-light); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mini-row .mini-main { flex: 1; min-width: 0; }
.mini-row strong { display: block; font-size: 14px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row span.sub { font-size: 12px; color: var(--text-muted); }
.mini-row .small-btn { cursor: pointer; border: 1.5px solid var(--border); background: #fff; color: var(--text); font-weight: 600; }
.mini-row .small-btn.danger { color: #b3261e; border-color: #f2c9c6; }
.dash-card select, .dash-card textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: 14px; background: #fff; }
.dash-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
