/* =========================
   JOB BOARD - MODERN PSPS STYLE
========================= */

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   CARD
========================= */

.job-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .4s ease;
  position: relative;
}

/* subtle accent bar instead of black header */
.job-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #6a92ab;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

/* =========================
   TITLE
========================= */

.job-card-header {
  margin-bottom: 1.25rem;
}

.job-card-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #161616;
  line-height: 1.4;
}

/* =========================
   BODY
========================= */

.job-card-body {
  flex-grow: 1;
}

.job-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.job-card-body li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #444;
}

.job-card-body i {
  color: #6a92ab;
  width: 18px;
  font-size: 0.9rem;
}

/* =========================
   FOOTER / BUTTON
========================= */

.job-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0f0f0;
}

.job-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #6a92ab;
  color: #ffffff !important;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.4s ease;
}

.job-btn:hover {
  background: #567c94;
  transform: translateX(3px);
  color: white !important;
}

/* =========================
   INDIVIDUAL JOB PAGE
========================= */

.job-detail-hero-subtitle {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 2rem;
  align-items: start;
}

.job-detail-panel,
.job-sidebar-card {
  background: #ffffff;
  border: 1px solid #e7ebef;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.job-detail-panel {
  padding: 2.25rem;
}

.job-detail-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #eef2f5;
}

.job-detail-logo-wrap {
  flex: 0 0 140px;
}

.job-detail-logo {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.job-detail-header-text h2 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
  line-height: 1.2;
  color: #161616;
  text-align: left;
}

.job-detail-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a92ab;
  font-weight: 600;
}

.job-detail-company {
  margin: 0;
  font-size: 1rem;
  color: #5c6770;
}

.job-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.job-meta-card {
  background: #f8fafc;
  border: 1px solid #e7edf2;
  border-radius: 8px;
  padding: 1rem;
}

.job-meta-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a92ab;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.job-meta-label i {
  font-size: 0.85rem;
}

.job-meta-value {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2933;
}

.job-detail-section {
  margin-bottom: 2rem;
}

.job-detail-section:last-child {
  margin-bottom: 0;
}

.job-detail-section h3 {
  margin: 0 0 0.9rem;
  font-size: 1.3rem;
  color: #161616;
  position: relative;
  padding-bottom: 0.7rem;
}

.job-detail-section h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  background: #6a92ab;
  border-radius: 3px;
}

.job-detail-section p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #3f4a54;
}

.job-detail-list {
  padding-left: 1.2rem;
}

.job-detail-list li {
  font-size: 1rem;
  line-height: 1.75;
  color: #3f4a54;
}

.job-detail-sidebar {
  position: sticky;
  top: calc(115px + 2rem);
}

.job-sidebar-card {
  padding: 1.5rem;
}

.job-sidebar-card h3 {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  color: #161616;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f5;
}

.job-sidebar-item {
  margin-bottom: 1rem;
}

.job-sidebar-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a92ab;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.job-sidebar-value {
  display: block;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #2a3440;
}

.job-sidebar-value a {
  word-break: break-word;
}

/*.job-sidebar-value a:hover {
  text-decoration: underline;
}*/

.job-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.job-btn-secondary {
  background: #eef3f7;
  color: #2a3440 !important;
}

.job-btn-secondary:hover {
  background: #dfe8ef;
  color: #2a3440 !important;
}

h1.job-posting-h1{
  font-size: 2.5em;
}

@media (max-width: 1100px) {


  h1.job-posting-h1{
    font-size: 2em;
  }

  /*.job-detail-company{
    text-align: center;
  }*/

  .job-detail-layout {
    grid-template-columns: 1fr;
  }

  .job-detail-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .job-detail-panel {
    padding: 1.5rem;
  }

  .job-detail-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .job-detail-header-text h2 {
    font-size: 1.7rem;
  }

  .job-detail-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {

  h1.job-posting-h1{
    font-size: 1.5em;
  }

  .job-detail-panel,
  .job-sidebar-card {
    border-radius: 8px;
  }

  .job-detail-panel {
    padding: 1.25rem;
  }

  .job-sidebar-card {
    padding: 1.25rem;
  }

  .job-detail-header-text h2 {
    font-size: 1.45rem;
  }

  .job-detail-section h3 {
    font-size: 1.15rem;
  }

  .job-detail-section p,
  .job-detail-list li,
  .job-meta-value,
  .job-sidebar-value {
    font-size: 0.96rem;
  }
}