/* ==========================================================================
   Jobs in Regions Page
   ========================================================================== */

.jr-intro {
  max-width: 800px;
  margin-bottom: 50px;
}

.jr-intro h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1rem;
}

.jr-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.jr-group {
  margin-bottom: 60px;
}

.jr-group:last-child {
  margin-bottom: 0;
}

.jr-group-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #f3f4f6;
  padding-bottom: 12px;
}

.jr-group-title i {
  color: var(--accent);
}

.jr-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #edf0f5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.jr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(7, 22, 51, 0.06);
}

.jr-card-media {
  position: relative;
  width: 100%;
  padding-top: 62.5%; /* 16:10 Aspect Ratio */
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jr-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
}

/* Fallback/broken image styling */
.jr-card-media::after {
  content: "\f425"; /* bootstrap icon bi-image */
  font-family: "bootstrap-icons";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 1;
}

.jr-card-body {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.jr-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.jr-card-meta {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.jr-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* RTL Adjustments */
[dir="rtl"] .jr-group-title {
  font-family: var(--font-base), sans-serif;
}
