/* ========== Minimalist theme: white / gray + green & red accents ========== */
:root {
  --bg: #fcfcfc;
  --surface: #ffffff;
  --line: #e5e7ea;
  --text: #1f2328;
  --muted: #6b7280;
  --green: #198754;
  --green-soft: #e8f5ee;
  --red: #dc3545;
  --radius: 10px;
}
body {
  font-family: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.min-w-0 { min-width: 0; }

/* ---------- Header ---------- */
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--green); color: #fff; font-size: .95rem; letter-spacing: -.5px;
}
.brand-text { font-size: 1.2rem; color: var(--green); }

/* Slash "/" dividers between menu items */
.nav-slash .nav-link { color: var(--text); font-weight: 500; padding: .4rem .5rem !important; }
.nav-slash .nav-link:hover, .nav-slash .nav-link.active { color: var(--text); text-decoration: none; }
.nav-slash .nav-link.active { font-weight: 700; }
@media (min-width: 768px) {
  .nav-slash .nav-item + .nav-item::before { content: "/"; color: #ccc; font-weight: 300; margin: 0 .55rem; }
  .nav-slash .nav-item { display: flex; align-items: center; }
}
.nav-slash-inline li + li::before { content: "/"; color: #c4c8cd; margin-right: .5rem; }
.nav-slash-inline a { color: var(--muted); }

/* ---------- Category band (white band right under header) ---------- */
.site-main > .category-band:first-child { margin-top: -1.5rem; }
.category-band { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.25rem 0 1.1rem; }
.band-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .7rem; }
.band-label span { font-weight: 400; }
.category-strip { display: flex; flex-wrap: wrap; gap: .5rem; }
.category-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface); border: 1px solid #e0e0e0; border-radius: 6px;
  padding: .5rem .85rem; color: var(--text); font-size: .92rem; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: all .2s ease;
}
.category-btn:hover { border-color: var(--green); background: #f8fff9; color: var(--green); text-decoration: none; }
.category-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.cat-count { font-size: .72rem; line-height: 1.5; color: var(--text); background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 5px; padding: 0 .4rem; }
.category-btn.active .cat-count { background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
@media (max-width: 767.98px) {
  .category-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 4px; }
  .category-strip::-webkit-scrollbar { display: none; }
  .category-btn { flex: 0 0 auto; }
}

/* ---------- Generic blocks ---------- */
.section-title { font-size: 1.25rem; font-weight: 700; }
.page-title { font-size: 1.5rem; font-weight: 700; }
.panel, .info-box, .stat-card, .empty-state {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.panel { box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.panel-accent { border-top: 3px solid var(--green); }
.info-box { display: flex; gap: 1rem; align-items: flex-start; background: #fcfcfc; }
.info-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; flex-shrink: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.stat-card { color: var(--text); }
.stat-card:hover { border-color: var(--green); }

/* ---------- Job card (mock-up style: left accent border) ---------- */
.job-card {
  position: relative; background: var(--surface); border: 1px solid #eee; border-left: 4px solid #d6dbe0;
  border-radius: 6px; padding: 1rem 1.15rem .85rem; height: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.job-card.is-featured, .job-card:hover { border-left-color: var(--green); }
.job-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-1px); }
.job-title { font-size: 1.08rem; font-weight: 700; margin: 0 0 .15rem; }
.job-title a { color: var(--text); }
.job-title a:hover { color: var(--green); text-decoration: none; }
.job-company { color: var(--muted); font-size: .92rem; }
.dot { color: #c4c8cd; margin: 0 .2rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .7rem 0 .8rem; }
.tag { font-size: .8rem; background: #f8f9fa; border: 1px solid #e3e6e9; border-radius: 5px; padding: .05rem .5rem; color: #3f4650; }
.tag-salary { background: #f0faf4; border-color: #cfe9da; color: #146c43; font-weight: 600; }
.job-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; border-top: 1px solid #f0f0f0; padding-top: .65rem; }
.apply-btn { position: relative; z-index: 2; } /* above the card's stretched link */

/* ---------- Job detail ---------- */
.job-detail-title { font-size: 1.55rem; font-weight: 700; margin-bottom: .15rem; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.detail-grid span { display: block; font-size: .78rem; color: var(--muted); }
.detail-grid strong { font-weight: 600; font-size: .95rem; }
.detail-h { font-size: 1.02rem; font-weight: 700; margin: 1.5rem 0 .5rem; padding-left: .6rem; border-left: 3px solid var(--green); }
.detail-text { color: #374151; white-space: normal; word-wrap: break-word; }
.skill-chip { background: var(--green-soft); color: var(--green); border-radius: 6px; padding: .15rem .6rem; font-size: .85rem; font-weight: 500; }
.apply-box { top: 1rem; }

/* ---------- Forms ---------- */
.form-section { font-size: 1rem; font-weight: 700; margin: 1.75rem 0 1rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .2rem rgba(25,135,84,.15); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-img { border: 1px solid var(--line); border-radius: 6px; background: #f8f9fa; }
.btn-check:checked + .btn-outline-secondary { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--text); }
.pagination .page-item.active .page-link { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }
.admin-side .nav-link { color: var(--muted); border-radius: 6px; padding: .4rem .75rem; }
.admin-side .nav-link.active, .admin-side .nav-link:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.admin-side .nav-link.active { font-weight: 700; border-left: 3px solid var(--green); }
@media (min-width: 768px) { .admin-side { min-height: calc(100vh - 57px); border-right: 1px solid var(--line); } }

/* ================= CV Maker ================= */
.cv-form .form-section:first-child { margin-top: 0; }
.cv-row { position: relative; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: .75rem 2rem .75rem .75rem; }
.cv-row-remove { position: absolute; top: .55rem; right: .55rem; font-size: .7rem; }
.cv-preview-wrap { background: #e9ecef; border-radius: var(--radius); padding: 1rem; overflow-x: auto; position: sticky; top: 1rem; }
.cv-page {
  width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; color: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 16mm 15mm; font-size: 10.5pt; line-height: 1.45;
  font-family: 'Hind Siliguri', 'Segoe UI', sans-serif;
}
.cv-page.cv-exporting { box-shadow: none; }
.cv-page { zoom: var(--cv-zoom, 1); }
.cv-page.cv-exporting { zoom: 1; }
@media (max-width: 991.98px) { .cv-preview-wrap { position: static; } }
.cv-page h1 { font-size: 22pt; font-weight: 700; margin: 0; line-height: 1.2; }
.cv-page h3 { font-size: 11pt; font-weight: 700; margin: 0 0 .45rem; }
.cv-page p { margin: 0; }
.cv-page a { color: inherit; }
.cv-page ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.cv-sec { margin-top: 1rem; }
.cv-item { margin-bottom: .6rem; page-break-inside: avoid; }
.cv-item-head { display: flex; justify-content: space-between; gap: 1rem; }
.cv-date { color: #666; font-size: 9.5pt; white-space: nowrap; }
.cv-org { color: #555; }
.cv-headline { font-size: 12pt; color: #555; }
.cv-contact { font-size: 9.5pt; color: #444; margin-top: .3rem; word-break: break-word; }
.cv-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.cv-tags span { border: 1px solid #ddd; border-radius: 4px; padding: 0 .45rem; font-size: 9.5pt; }
.cv-photo { width: 30mm; height: 30mm; object-fit: cover; border-radius: 6px; }

/* Classic */
.tpl-classic .cv-head { display: flex; gap: 1rem; align-items: center; border-bottom: 2px solid #198754; padding-bottom: .75rem; }
.tpl-classic h3 { color: #198754; border-bottom: 1px solid #e5e5e5; padding-bottom: .2rem; }

/* Modern (sidebar) */
.tpl-modern { padding: 0; }
.tpl-modern .cv-grid { display: grid; grid-template-columns: 34% 66%; min-height: 297mm; }
.tpl-modern .cv-side { background: #f1f3f5; padding: 14mm 7mm; }
.tpl-modern .cv-side h1 { font-size: 17pt; margin-top: .6rem; }
.tpl-modern .cv-side .cv-photo { width: 34mm; height: 34mm; border-radius: 50%; display: block; }
.tpl-modern .cv-side .cv-tags span { background: #fff; }
.tpl-modern .cv-main { padding: 14mm 9mm; }
.tpl-modern h3 { color: #dc3545; }

/* Minimal */
.tpl-minimal .cv-head { text-align: center; padding-bottom: .5rem; }
.tpl-minimal h1 { font-weight: 600; }
.tpl-minimal h3 { font-size: 10.5pt; color: #111; border-bottom: 1px solid #111; padding-bottom: .15rem; }
.tpl-minimal .cv-tags span { border: 0; padding: 0; }
.tpl-minimal .cv-tags span + span::before { content: "· "; color: #999; }
/* html2canvas renders letter-spaced text glyph-by-glyph, which breaks Bangla conjuncts — keep CV text unspaced */
.cv-page, .cv-page * { letter-spacing: 0 !important; }

/* Phones: 2-column job facts instead of one long stack */
@media (max-width: 575.98px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Compact job-post form ---------- */
.form-compact { padding: 1rem 1.25rem 1.1rem; }
.form-compact .form-section { font-size: .92rem; margin: 1rem 0 .55rem; padding-bottom: .3rem; color: var(--green); }
.form-compact .form-label { font-size: .84rem; font-weight: 600; margin-bottom: .2rem; }
.form-compact .opt { font-weight: 400; color: var(--muted); font-size: .78rem; }
.form-compact .form-control-sm, .form-compact .form-select-sm, .form-compact .input-group-sm > * { font-size: .9rem; }
.form-compact textarea { resize: vertical; }
.form-compact .invalid-feedback { font-size: .78rem; margin-top: .15rem; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.captcha-box { display: flex; align-items: center; gap: .4rem; }
.captcha-box .captcha-img { height: 31px; width: auto; }
@media (max-width: 767.98px) {
  .submit-row > .d-flex { width: 100%; }
  .submit-row .btn-success { flex: 1; }
}
