/* =========================================================
   SINGLE JOB LISTING
   RTL / Persian
   ========================================================= */

/* ---------------------------------------------------------
   PAGE
--------------------------------------------------------- */

.job-page {
  background: #f7f8fa;
  padding: 3rem 1.25rem 5rem;
}

.job-page-container {
  width: min(100%, 1100px);
  margin-inline: auto;
}

/* ---------------------------------------------------------
   JOB HERO
--------------------------------------------------------- */

.job-hero {
  padding: 2.75rem 0;
  margin-bottom: 1.25rem;
}

.job-hero-eyebrow {
  margin: 0 0 0.5rem;

  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
}

.job-hero-title {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.35;
  font-weight: 800;

  letter-spacing: -0.025em;
  color: #111827;
}

/* =========================================================
   WP JOB MANAGER
========================================================= */

.single_job_listing {
  direction: rtl;
}

/* ---------------------------------------------------------
   META — FULL WIDTH
--------------------------------------------------------- */

.single_job_listing > .job-listing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 0.5rem;

  margin: 0 0 1.25rem;
  padding: 0;

  list-style: none;
}

.single_job_listing > .job-listing-meta li {
  display: inline-flex;
  align-items: center;

  margin: 0;
  padding: 0.5rem 0.9rem;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;

  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
}

/* Make job type slightly more prominent */

.single_job_listing > .job-listing-meta .job-type {
  font-weight: 600;
  color: #111827;
}

body .single_job_listing .meta li:before {
  margin: 0 0 0 4px !important;
  line-height: 1em;
}

/* ---------------------------------------------------------
   MAIN + SIDEBAR
--------------------------------------------------------- */

.job-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    320px;

  gap: 1.25rem;

  align-items: start;
}

/* ---------------------------------------------------------
   MAIN DESCRIPTION
--------------------------------------------------------- */

.job-main {
  min-width: 0;
}

.job-main .job_description {
  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  padding: 2.75rem 3rem;
}

/* Description heading */

.job-main .job_description::before {
  content: "شرح فرصت شغلی";

  display: block;

  margin-bottom: 1.75rem;

  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.5;

  color: #111827;
}

/* Headings inside description */

.job-main .job_description h2,
.job-main .job_description h3,
.job-main .job_description h4 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;

  font-weight: 750;
  line-height: 1.5;

  color: #111827;
}

/* ---------------------------------------------------------
   SIDEBAR
--------------------------------------------------------- */

.job-sidebar {
  display: flex;
  flex-direction: column;

  gap: 1.25rem;

  min-width: 0;
}

/* ---------------------------------------------------------
   COMPANY
--------------------------------------------------------- */

.job-sidebar .company {
  display: block;

  margin: 0;
  padding: 1.5rem;

  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  text-align: right;
  direction: rtl;
}

/* Logo */

.job-sidebar .company .company_logo {
  float: none !important;
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 0 1rem !important;
  object-fit: contain;
  background: #ffffff;
  border-radius: 14px;
}

/* Company header */

.job-sidebar .company .company_header {
  display: block;

  width: 100%;

  margin: 0;
  padding: 0;
}

/* Company name */

.job-sidebar .company .name {
  margin: 0 0 0.25rem;

  font-size: 1.05rem;
  line-height: 1.5;
  color: #111827;
}

.job-sidebar .company .name strong {
  font-weight: 750;
}

/* Company tagline */

.job-sidebar .company .tagline {
  margin: 0;

  font-size: 0.875rem;
  line-height: 1.8;
  color: #6b7280;
}

/* ---------------------------------------------------------
   JOB DETAILS
--------------------------------------------------------- */

.job-sidebar-card, .application_details {
  background: #ffffff;

  border: 1px solid #e5e7eb;
  border-radius: 18px;

  padding: 1.5rem;
}

/* Card heading */

.job-details-card h2 {
  margin: 0 0 1.25rem;

  font-size: 1rem;
  font-weight: 750;
  line-height: 1.5;

  color: #111827;
}

/* Individual detail */

.job-detail {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 1rem;

  padding: 0.85rem 0;

  border-bottom: 1px solid #f0f1f3;
}

.job-detail:first-of-type {
  padding-top: 0;
}

.job-detail:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Label */

.job-detail__label {
  flex: 0 0 auto;

  font-size: 0.825rem;
  color: #6b7280;
}

/* Value */

.job-detail__value {
  text-align: left;

  font-size: 0.875rem;
  font-weight: 600;

  color: #1f2937;
}

/* ---------------------------------------------------------
   APPLICATION
--------------------------------------------------------- */

.job-sidebar .job_application {
  margin: 0;
}

/* Apply button */

.job-sidebar .application_button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 50px;
  margin: 0 !important;
  padding: 0.75rem 1rem;

  border: 0;
  border-radius: 18px;

  background: #111827;
  color: #ffffff;

  font-family: inherit;
  font-size: 0.9rem !important;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.job-sidebar .application_button:hover {
  background: #374151;
  transform: translateY(-1px);
}

/* Application details */

.job-sidebar .application_details {
  margin-top: 1rem;

  font-size: 0.85rem;
  line-height: 1.8;
  color: #4b5563;
}

.job-sidebar .application_details p {
  margin: 0;
}

.job-sidebar .application_details a {
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 800px) {
  .job-page {
    padding: 2rem 1rem 4rem;
  }

  .job-hero {
    padding: 2rem;
  }

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

  .job-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .job-sidebar .job-application {
    grid-column: 1 / -1;
  }

  .job-main .job_description {
    padding: 2rem;
  }
}

@media (max-width: 550px) {
  .job-page {
    padding: 1.25rem 0.75rem 3rem;
  }

  .job-hero {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .job-hero-title {
    font-size: 2rem;
  }

  .job-sidebar {
    display: flex;
    flex-direction: column;
  }

  .job-main .job_description {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .job-sidebar .company,
  .job-sidebar-card,
  .job-sidebar .job_application {
    border-radius: 14px;
  }
}
