/**
 * ==================================================
 * Indonesia Kerja Tools
 * Single Job Listing
 * ==================================================
 */

/**
 * ==================================================
 * COMPANY
 * ==================================================
 */

.single_job_listing {
  padding-top: 0;
}

/* The custom hero replaces Astra's default post title and author line. */
body.single-job_listing .entry-header {
  display: none;
}

.ik-job-hero {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: var(--ik-space-sm);
  margin-bottom: var(--ik-space-xl);
}

.ik-job-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 200px);
  align-items: start;
  column-gap: var(--ik-space-xl);
  width: 100%;
  min-width: 0;
}

/*
 * Header structure: two columns on top (information + logo).
 * The meta row sits outside this grid and therefore uses the full card width.
 */
.ik-job-hero__top > .ik-job-hero__content {
  grid-column: 1;
  min-width: 0;
  width: 100%;
}

.ik-job-hero__top > .ik-job-hero__logo {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  min-width: 0;
}

.single_job_listing > .ik-job-hero {
  margin-bottom: 8px;
}

.ik-job-hero__content {
  min-width: 0;
}

.ik-job-hero__company {
  margin: 0 0 2px;
  color: var(--ik-color-heading);
  font-size: 28px;
  font-weight: var(--ik-font-weight-bold);
  line-height: 1.25;
}

.ik-job-hero__status {
  display: flex;
  align-items: center;
  gap: var(--ik-space-sm);
  margin: 0;
  color: var(--ik-color-muted);
  font-weight: var(--ik-font-weight-normal);
}

.ik-job-hero__company-group {
  margin-bottom: 0;
}

.ik-job-hero__position-group {
  margin-bottom: 0;
}

.ik-job-hero__status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.ik-job-hero__title {
  margin: 0 0 var(--ik-space-sm);
  color: var(--ik-color-heading);
  font-size: var(--ik-font-size-xl);
  line-height: 1.15;
}

.ik-job-hero__intro {
  display: flex;
  align-items: flex-start;
  gap: var(--ik-space-sm);
  max-width: 780px;
  margin: 0;
  color: var(--ik-color-text);
  font-size: var(--ik-font-size-md);
  line-height: 1.6;
}

.ik-job-hero__intro-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  color: var(--ik-color-muted);
}

.ik-job-hero__address,
.ik-job-hero__deadline {
  display: flex;
  align-items: flex-start;
  gap: var(--ik-space-sm);
  max-width: 760px;
  margin-top: var(--ik-space-sm);
  color: var(--ik-color-text);
  font-size: var(--ik-font-size-sm);
  line-height: 1.6;
}

.ik-job-hero__address-icon,
.ik-job-hero__deadline-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 3px;
  color: var(--ik-color-muted);
}

.ik-job-hero__address-icon,
.ik-job-hero__deadline-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ik-job-hero__address span,
.ik-job-hero__deadline span {
  min-width: 0;
}

.ik-job-hero__deadline strong {
  color: var(--ik-color-heading);
  font-weight: var(--ik-font-weight-semibold);
}

.ik-job-hero__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: var(--ik-space-sm) var(--ik-space-lg);
  margin-top: 0;
  padding-top: var(--ik-space-md);
  border-top: 1px solid var(--ik-color-border);
  box-sizing: border-box;
  color: var(--ik-color-text);
  font-size: var(--ik-font-size-sm);
  font-weight: var(--ik-font-weight-medium);
}

.ik-job-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--ik-space-sm);
  white-space: nowrap;
}

.ik-job-hero__meta-item svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.ik-job-hero__meta-item + .ik-job-hero__meta-item::before {
  width: 1px;
  height: 22px;
  margin-right: var(--ik-space-lg);
  background: var(--ik-color-border);
  content: "";
}

.ik-job-hero__logo {
  flex: 0 0 auto;
  align-self: flex-start;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  max-width: 200px;
  max-height: 150px;

  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.ik-job-hero__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 150px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: inherit;
  object-fit: contain;
  transform: scale(1.04);
}

.ik-single-job__layout {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  grid-template-areas:
    "content sidebar";
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ik-color-border);
  gap: 8px;
}

.ik-single-job__content,
.ik-single-job__sidebar,
.ik-single-job__summary,
.ik-single-job__contact {
  min-width: 0;
}

.ik-single-job__sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Keep the sidebar cards visually consistent with the 8px spacing used elsewhere. */
.ik-single-job__sidebar > .ik-single-job__contact {
  margin-top: var(--ik-grid-gap);
}

.ik-single-job__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ik-single-job__summary {
  grid-area: summary;
}

.ik-single-job__contact {
  grid-area: contact;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ik-company .ik-card-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--ik-space-xl);
}

.ik-company__logo {
  flex: 0 0 88px;
}

.ik-company__logo img {
  display: block;

  width: 88px;
  height: 88px;

  object-fit: contain;
}

.ik-company__content {
  flex: 1;
}

.ik-company__job-title {
  margin: 0 0 var(--ik-space-sm);

  font-size: var(--ik-font-size-lg);
  font-weight: var(--ik-font-weight-bold);
  line-height: 1.3;

  color: var(--ik-color-heading);
}

.ik-company__name {
  margin: 0 0 var(--ik-space-xs);

  font-size: var(--ik-font-size-md);
  font-weight: var(--ik-font-weight-semibold);

  color: var(--ik-color-heading);
}

.ik-company__tagline {
  margin: 0;

  color: var(--ik-color-muted);

  font-size: var(--ik-font-size-sm);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ik-company .ik-card-body {
    flex-direction: column;
    text-align: center;
  }
}

/**
 * ==================================================
 * JOB SUMMARY
 * ==================================================
 */

.ik-summary-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ik-summary__item {
  padding: 3px 0;

  display: grid;
  grid-template-columns: 26px 170px minmax(0, 1fr);
  align-items: start;
  gap: var(--ik-space-sm);
}

.ik-summary__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ik-icon-size-md);
  height: var(--ik-icon-size-md);
  color: var(--ik-color-muted);
  text-align: center;
}

.ik-summary__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.ik-summary__label {
  display: flex;
  justify-content: space-between;
  font-weight: var(--ik-font-weight-normal);
  color: var(--ik-color-muted);
}

.ik-summary__label::after {
  content: ":";
}

.ik-summary__value {
  font-weight: var(--ik-font-weight-semibold);
  color: var(--ik-color-heading);
  text-align: left;
}

/* Single-job cards are informational; keep their content stationary on hover. */
.single_job_listing .ik-card {
  transition: none;
}

.single_job_listing .ik-card .ik-card-header,
.single_job_listing .ik-card:hover .ik-card-header {
  margin-bottom: var(--ik-space-lg);
}

/**
 * ==================================================
 * CONTENT
 * Description & Requirements
 * ==================================================
 */

.ik-description-content,
.ik-requirements-content {
  color: var(--ik-color-text);
}

.ik-description-content > *:first-child,
.ik-requirements-content > *:first-child {
  margin-top: 0;
}

.ik-description-content > *:last-child,
.ik-requirements-content > *:last-child {
  margin-bottom: 0;
}

.ik-description-content h3,
.ik-requirements-content h3 {
  margin-top: var(--ik-space-xl);
  margin-bottom: var(--ik-space-md);
}

.ik-description-content a,
.ik-requirements-content a {
  color: var(--ik-color-primary);
  text-decoration: none;
}

.ik-description-content a:hover,
.ik-requirements-content a:hover {
  text-decoration: underline;
}

/**
 * ==================================================
 * Informasi Kontak Perusahaan
 * atau cara melamar melalui wa, email, dan website
 * ==================================================
 */

.ik-contact-list {
  display: flex;
  flex-direction: column;
}

.ik-contact-item {
  padding: var(--ik-space-md) 0;

  border-bottom: 1px solid #e5e7eb;
}

.ik-contact-item:last-child {
  border-bottom: none;
}

.ik-contact-item__heading {
  display: flex;
  align-items: center;
  gap: var(--ik-space-sm);
  margin-bottom: var(--ik-space-sm);
}

.ik-contact__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: var(--ik-color-muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.ik-contact-item__detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--ik-space-md);
  padding-left: 30px;
}

.ik-contact__label {
  font-weight: 600;
  color: #374151;
}

.ik-contact__value {
  color: #4b5563;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ik-contact__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 90px;
  padding: 8px 16px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  background: #ffffff;

  font-size: 14px;
  font-weight: 600;

  color: #374151;

  text-decoration: none;
  cursor: pointer;

  transition: all 0.2s ease;
}

.ik-contact__button:hover {
  background: #f3f4f6;
}

.ik-contact__description {
  margin-bottom: 20px;

  color: #6b7280;
  line-height: 1.6;
}

/**
 * Latest jobs below the public single job listing.
 */
.ik-single-latest {
  margin: 8px 50px 8px 50px;
  padding-top: var(--ik-space-xl);
}

.ik-single-latest__header {
  margin-bottom: 8px;
}

.ik-single-latest__title {
  margin: 0;
  color: var(--ik-color-heading);
  font-size: var(--ik-font-size-lg);
}

.single-job_listing h2.ik-single-latest__title {
  margin-bottom: 0;
}

.ik-single-latest__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ik-grid-gap);
}

.ik-single-latest__link {
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: var(--ik-space-xl);
  color: var(--ik-color-primary);
  font-weight: var(--ik-font-weight-semibold);
  text-decoration: none;
}

.ik-single-latest__link:hover {
  text-decoration: underline;
}

/**
 * ==================================================
 * Submit-job preview layout
 * ==================================================
 */

.ik-job-preview__layout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.ik-job-preview__layout > .ik-card {
  width: 100%;
}

.ik-job-preview__listing .ik-job-hero {
  margin-bottom: 8px;
}

.ik-job-preview__listing .ik-job-hero__status,
.ik-job-preview__listing .ik-job-hero__intro,
.ik-job-preview__listing .ik-job-hero__meta {
  display: none;
}

.ik-job-preview__listing .ik-job-hero__company {
  margin-bottom: 6px;
}

.ik-job-preview__listing .ik-job-hero__position-group {
  margin-bottom: 0;
}

.ik-job-preview__listing .ik-job-hero__title {
  margin-bottom: 0;
}

/* Submit-job preview: scoped to preserve Astra's page-level layout. */
.ik-job-preview {
  width: min(100% - 40px, 900px);
  max-width: 900px;
  margin: var(--ik-space-2xl) auto;
}

.ik-job-preview__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--ik-space-sm);
  margin-bottom: var(--ik-space-md);
  padding: var(--ik-space-lg) var(--ik-space-xl);
  background: var(--ik-color-background);
  border: 1px solid var(--ik-color-border);
  border-radius: var(--ik-radius-md);
  box-shadow: var(--ik-shadow-sm);
}

.ik-job-preview__eyebrow {
  margin: 0 0 var(--ik-space-xs);
  color: var(--ik-color-muted);
  font-size: var(--ik-font-size-xs);
  font-weight: var(--ik-font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ik-job-preview__title {
  margin: 0;
  font-size: var(--ik-font-size-lg);
}

.ik-job-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ik-space-sm);
  margin-top: 0;
}

.ik-job-preview__actions .button {
  margin: 0;
  padding: 10px 16px;
  border-radius: var(--ik-radius-sm);
  font-weight: var(--ik-font-weight-semibold);
}

.ik-job-preview__submit {
  background: var(--ik-color-primary);
  border-color: var(--ik-color-primary);
  color: #fff;
}

.ik-job-preview__edit {
  background: #fff;
  border-color: var(--ik-color-border);
  color: var(--ik-color-heading);
}

.ik-job-preview__listing .single_job_listing {
  padding-top: 0;
}

@media (max-width: 900px) {
  .ik-job-hero__meta {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ik-single-job__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "content"
      "contact";
  }

  .ik-single-job__sidebar {
    display: contents;
  }

  .ik-single-job__sidebar > .ik-single-job__contact {
    margin-top: 0;
  }

  .ik-single-job__summary {
    grid-area: summary;
  }

  .ik-single-job__contact {
    grid-area: contact;
  }
}

@media (max-width: 640px) {
  .single_job_listing {
    padding-top: var(--ik-space-lg);
  }

  .ik-job-hero {
    gap: var(--ik-space-lg);
  }

  .ik-job-hero__top > .ik-job-hero__logo {
    max-width: 120px;
    max-height: 90px;
  }

  .ik-job-hero__top > .ik-job-hero__logo img {
    max-width: 120px;
    max-height: 90px;
  }

  .ik-job-hero__title {
    font-size: 32px;
  }

  .ik-job-hero__meta {
    gap: var(--ik-space-sm) var(--ik-space-md);
    margin-top: var(--ik-space-lg);
  }

  .ik-job-hero__meta-item + .ik-job-hero__meta-item::before {
    display: none;
  }

  .ik-job-preview {
    margin: var(--ik-space-lg) 0;
  }

  .ik-job-preview__header {
    align-items: stretch;
    flex-direction: column;
    padding: var(--ik-space-lg);
  }

  .ik-job-preview__actions .button {
    flex: 1 1 auto;
  }

  .ik-summary__item {
    grid-template-columns: 28px 1fr;
  }

  .ik-summary__label,
  .ik-summary__value {
    grid-column: 2;
  }

  .ik-summary__label::after {
    display: none;
  }

  .ik-summary__value {
    text-align: left;
  }

  .ik-contact-item__detail {
    padding-left: 30px;
  }
}

.single-job_listing #primary {
  padding-top: 0;
  margin-top: 8px;
}

.single-job_listing .ast-article-single {
  padding-top: 0;
}

/* Correct Astra article spacing override for published single jobs. */
body.single-job_listing .ast-article-single {
  padding-top: 0;
}

@media (max-width: 768px) {
  .ik-job-hero__top {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--ik-space-lg);
  }

  .ik-job-hero__top > .ik-job-hero__content,
  .ik-job-hero__top > .ik-job-hero__logo {
    grid-column: 1;
  }

  .ik-job-hero__top > .ik-job-hero__logo {
    grid-row: 2;
    justify-self: start;
  }

  .ik-job-hero__meta {
    align-items: flex-start;
  }
}
