/* ===== Linkbase Careers — MyJobMag-style Job Board ===== */

.jb-page { background: #f4f6f8; padding: 1.5rem 0 3rem; }

/* Top search strip */
.jb-search-strip {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}
.jb-search-strip .container { max-width: 1140px; }
.jb-search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.jb-search-form input[type="text"],
.jb-search-form select {
  flex: 1;
  min-width: 180px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: .6rem .9rem;
  font-size: .9rem;
  color: #1f2937;
  background: #fff;
}
.jb-search-form input:focus,
.jb-search-form select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
.jb-search-form .btn-search {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .6rem 1.4rem;
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s;
}
.jb-search-form .btn-search:hover { background: #15803d; }

/* Featured jobs banner */
.jb-featured {
  background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.jb-featured-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: .75rem;
}
.jb-featured-head h3 {
  font-size: .95rem;
  font-weight: 800;
  color: #92400e;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.jb-featured-head .icon { color: #d97706; font-size: 1rem; }
.jb-featured-list { list-style: none; padding: 0; margin: 0; }
.jb-featured-list li { margin-bottom: .35rem; }
.jb-featured-list li:last-child { margin-bottom: 0; }
.jb-featured-list a {
  font-size: .88rem;
  font-weight: 600;
  color: #16a34a;
  text-decoration: none;
}
.jb-featured-list a:hover { color: #15803d; text-decoration: underline; }
.jb-featured-list .see-all {
  margin-top: .5rem;
  font-size: .85rem;
  font-weight: 700;
}

/* Main layout */
.jb-layout { display: flex; gap: 24px; align-items: flex-start; }
.jb-main { flex: 1; min-width: 0; }
.jb-sidebar { width: 300px; flex-shrink: 0; }

/* Job board panel */
.jb-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.jb-panel-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #fafafa;
}
.jb-panel-head h1,
.jb-panel-head h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 .15rem;
}
.jb-panel-head .sub {
  font-size: .85rem;
  color: #6b7280;
  margin: 0;
}
.jb-panel-body { padding: 0; }

/* MyJobMag-style job rows */
.jb-job-list { list-style: none; padding: 0; margin: 0; }
.jb-job-item {
  padding: .85rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background .12s;
}
.jb-job-item:last-child { border-bottom: none; }
.jb-job-item:hover { background: #f9fafb; }
.jb-job-item .title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 .2rem;
}
.jb-job-item .title a {
  color: #16a34a;
  text-decoration: none;
}
.jb-job-item .title a:hover { color: #15803d; text-decoration: underline; }
.jb-job-item .title .at { font-weight: 600; color: #374151; }
.jb-job-item .date {
  font-size: .82rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 5px;
}
.jb-job-item .date::before {
  content: '';
  width: 5px; height: 5px;
  background: #d1d5db;
  border-radius: 50%;
  flex-shrink: 0;
}
.jb-job-item .meta-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: .35rem;
}
.jb-job-item .tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #4b5563;
}
.jb-job-item .tag.type { background: #dcfce7; color: #166534; }
.jb-job-item .tag.region { background: #eff6ff; color: #1d4ed8; }

/* Multi-vacancy group (company with multiple roles) */
.jb-job-group { padding: .85rem 1.25rem; border-bottom: 1px solid #f3f4f6; }
.jb-job-group .company-head {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .4rem;
}
.jb-job-group ul { list-style: none; padding: 0; margin: 0; }
.jb-job-group ul li { margin-bottom: .25rem; }
.jb-job-group ul li a {
  font-size: .9rem;
  color: #16a34a;
  font-weight: 600;
  text-decoration: none;
}
.jb-job-group ul li a:hover { color: #15803d; text-decoration: underline; }
.jb-job-group .date { font-size: .82rem; color: #9ca3af; margin-top: .3rem; }

/* Pagination */
.jb-pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.jb-pagination a,
.jb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  background: #fff;
  transition: all .12s;
}
.jb-pagination a:hover { border-color: #16a34a; color: #16a34a; }
.jb-pagination .active {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.jb-pagination .disabled { opacity: .45; pointer-events: none; }

/* Sidebar widgets */
.jb-widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.jb-widget-head {
  padding: .75rem 1rem;
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.jb-widget-body { padding: 1rem; }

/* Job alert form */
.jb-alert-form input[type="email"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: .55rem .75rem;
  font-size: .88rem;
  margin-bottom: .5rem;
}
.jb-alert-form .btn-subscribe {
  width: 100%;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
}
.jb-alert-form .btn-subscribe:hover { background: #15803d; }
.jb-alert-form .hint { font-size: .78rem; color: #6b7280; margin-top: .5rem; }
.jb-alert-msg { font-size: .82rem; margin-top: .5rem; padding: .4rem .6rem; border-radius: 4px; }
.jb-alert-msg.success { background: #dcfce7; color: #166534; }
.jb-alert-msg.error { background: #fee2e2; color: #991b1b; }

/* Category links */
.jb-cat-list { list-style: none; padding: 0; margin: 0; }
.jb-cat-list li { border-bottom: 1px solid #f3f4f6; }
.jb-cat-list li:last-child { border-bottom: none; }
.jb-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 0;
  font-size: .85rem;
  color: #374151;
  text-decoration: none;
  transition: color .12s;
}
.jb-cat-list a:hover { color: #16a34a; }
.jb-cat-list a .count {
  font-size: .75rem;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 1px 7px;
  border-radius: 999px;
}
.jb-cat-list a i { margin-right: 6px; color: #16a34a; width: 16px; text-align: center; }
.jb-cat-search {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid #f3f4f6;
}
.jb-cat-search a {
  font-size: .85rem;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
}

/* Career advice section */
.jb-advice-section {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 2.5rem 0;
  margin-top: 1rem;
}
.jb-advice-section h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.25rem;
}
.jb-advice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.jb-advice-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.15rem;
  transition: border-color .15s, box-shadow .15s;
}
.jb-advice-card:hover {
  border-color: #16a34a;
  box-shadow: 0 2px 8px rgba(22,163,74,.08);
}
.jb-advice-card h3 {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 .4rem;
}
.jb-advice-card h3 a { color: #111827; text-decoration: none; }
.jb-advice-card h3 a:hover { color: #16a34a; }
.jb-advice-card p { font-size: .82rem; color: #6b7280; margin: 0; line-height: 1.5; }
.jb-advice-card .read-more {
  display: inline-block;
  margin-top: .6rem;
  font-size: .82rem;
  font-weight: 700;
  color: #16a34a;
  text-decoration: none;
}

/* SEO / About block */
.jb-about-block {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
}
.jb-about-block h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: .75rem;
}
.jb-about-block p {
  font-size: .88rem;
  color: #6b7280;
  line-height: 1.7;
  max-width: 900px;
}

/* Empty state */
.jb-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #9ca3af;
}
.jb-empty i { font-size: 2.5rem; margin-bottom: .75rem; display: block; }

/* Filter chips (findjobs) */
.jb-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}
.jb-filter-chip {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: .3rem .65rem;
  font-size: .8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.jb-filter-chip a { color: inherit; opacity: .6; text-decoration: none; }
.jb-filter-chip a:hover { opacity: 1; }

/* Responsive */
@media (max-width: 1199px) {
  .jb-search-form input[type="text"],
  .jb-search-form select { min-width: 140px; }
}
@media (max-width: 991px) {
  .jb-layout { flex-direction: column; }
  .jb-sidebar { width: 100%; }
  .jb-page { padding: 1rem 0 2rem; }
  .jb-panel-head h1,
  .jb-panel-head h2 { font-size: 1.15rem; }
}
@media (max-width: 768px) {
  .jb-page { padding: 0.75rem 0 1.5rem; }
  .jb-search-strip { padding: 0.75rem 0; }
  .jb-search-form { flex-direction: column; gap: 8px; }
  .jb-search-form input[type="text"],
  .jb-search-form select { min-width: 100%; font-size: 0.85rem; padding: 0.5rem 0.75rem; }
  .jb-search-form .btn-search { width: 100%; padding: 0.55rem; }
  .jb-panel-head { padding: 0.75rem 1rem; }
  .jb-panel-head h1,
  .jb-panel-head h2 { font-size: 1.1rem; }
  .jb-panel-head .sub { font-size: 0.8rem; }
  .jb-job-item { padding: 0.7rem 1rem; }
  .jb-job-item .title { font-size: 0.9rem; }
  .jb-job-item .meta-tags { gap: 4px; }
  .jb-job-item .tag { font-size: 0.68rem; padding: 1px 6px; }
  .jb-featured { padding: 0.75rem 1rem; }
  .jb-featured-head h3 { font-size: 0.82rem; }
  .jb-featured-list a { font-size: 0.82rem; }
  .jb-widget-head { font-size: 0.82rem; padding: 0.6rem 0.85rem; }
  .jb-widget-body { padding: 0.75rem; }
  .jb-cat-list a { font-size: 0.8rem; padding: 0.45rem 0; }
  .jb-advice-section { padding: 1.5rem 0; }
  .jb-advice-section h2 { font-size: 1.1rem; }
  .jb-advice-grid { grid-template-columns: 1fr; }
  .jb-advice-card { padding: 0.85rem 1rem; }
  .jb-about-block { padding: 1.25rem 0; }
  .jb-about-block h2 { font-size: 1rem; }
  .jb-about-block p { font-size: 0.82rem; }
  .jb-empty { padding: 2rem 1rem; }
  .jb-empty i { font-size: 2rem; }
  .jb-pagination { padding: 0.75rem; gap: 3px; }
  .jb-pagination a,
  .jb-pagination span { min-width: 32px; height: 32px; font-size: 0.82rem; padding: 0 8px; }
}
@media (max-width: 480px) {
  .jb-page { padding: 0.5rem 0 1rem; }
  .jb-panel-body { overflow-x: hidden; }
  .jb-job-item { padding: 0.6rem 0.75rem; }
  .jb-job-item .title { font-size: 0.85rem; }
  .jb-job-item .tag { font-size: 0.65rem; }
  .jb-filter-chips { padding: 0.5rem; gap: 5px; }
  .jb-filter-chip { font-size: 0.72rem; padding: 0.2rem 0.5rem; }
  .jb-job-group { padding: 0.6rem 0.75rem; }
  .jb-job-group .company-head { font-size: 0.88rem; }
}
@media (max-width: 360px) {
  .jb-job-item .meta-tags { flex-direction: column; align-items: flex-start; }
  .jb-job-item .date { font-size: 0.75rem; }
}
