.ppdjobs-side-image {
  width: 100%;
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--ppd-soft);
  text-align: center;
}

.ppdjobs-print-url {
  display: none;
}

/* Use the same subtle border on every edge of the details panel. */
.ppdjobs-detail-card {
  border-top: 1px solid var(--ppd-line);
}

.ppdjobs-side-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
  background: var(--ppd-soft);
}

/* Job listing thumbnails: show the complete image in a smaller frame. */
.ppdjobs-card-image {
  height: 120px;
  background: #fff;
  text-align: center;
}

.ppdjobs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.ppdjobs-grid.is-list .ppdjobs-card {
  grid-template-columns: 160px 1fr;
}

.ppdjobs-grid.is-list .ppdjobs-card-image {
  height: 100%;
  min-height: 120px;
}

.ppdjobs-filters {
  grid-template-columns: 1.3fr repeat(3, 1fr) auto;
}

@media (max-width: 950px) {
  .ppdjobs-single .ppdjobs-sidebar {
    order: 1;
  }

  .ppdjobs-single .ppdjobs-content {
    order: 2;
  }

  .ppdjobs-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .ppdjobs-filters {
    grid-template-columns: 1fr;
  }
}

/*
 * The theme's single-job output does not include a semantic <footer> wrapper,
 * so the site's footer-prefixed mobile rules cannot reach this Jotform widget.
 * Target its unique wrapper directly and mirror the site-wide mobile layout.
 */
@media (max-width: 781px) {
  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354,
  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354 .jf-social-media-icons-widget,
  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354 .jf-social-media-icons-container,
  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354 .fGAOpl {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
  }

  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354 .jf-social-media-icons-widget,
  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354 .fGAOpl {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354 .jf-social-media-icons-cta {
    display: flex !important;
    flex: 0 0 44px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354 .jf-social-media-icons-icon {
    width: 22px !important;
    height: 22px !important;
  }

  body.single-ppd_job #JFWebsiteWidget-019fa892d94070008a4a34948cc5c9929354 a[aria-label="Facebook"] .jf-social-media-icons-icon {
    width: 26px !important;
    height: 26px !important;
  }
}

.ppdjobs-card-salary {
  margin: -3px 0 18px;
  color: var(--ppd-grey);
  font-size: 0.94rem;
  font-weight: 600;
}

.ppdjobs-page-head {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

.ppdjobs-title h1,
.ppdjobs-content section h2 {
  color: var(--ppd-red);
}

.ppdjobs-content section h2 {
  color: #545454;
}

/* Optional tick list created with the job editor's Tick List button. */
.ppdjobs-content ul.ppdjobs-tick-list {
  list-style: none;
  padding-left: 0;
}

.ppdjobs-content ul.ppdjobs-tick-list > li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.ppdjobs-content ul.ppdjobs-tick-list > li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ppd-red);
  font-size: 1.1em;
  font-weight: 700;
}

.ppdjobs-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.ppdjobs-tools a,
.ppdjobs-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid var(--ppd-line);
  border-radius: 50%;
  background: #fff;
  color: var(--ppd-red);
  cursor: pointer;
  text-decoration: none;
  transition: 0.18s;
}

.ppdjobs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 14px;
  border: 1px solid var(--ppd-red);
  border-radius: 7px;
  color: var(--ppd-red);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: 0.18s;
}

.ppdjobs-back:hover,
.ppdjobs-back:focus {
  outline: none;
  background: var(--ppd-red);
  color: #fff;
}

.ppdjobs-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ppdjobs-tools a:hover,
.ppdjobs-tools button:hover,
.ppdjobs-tools a:focus,
.ppdjobs-tools button:focus {
  border-color: var(--ppd-red);
  outline: none;
  background: #fff7f7;
  color: var(--ppd-red);
}

.ppdjobs-tools svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media print {
  header,
  footer {
    display: block !important;
  }

  header nav,
  header .wp-block-navigation,
  header .wp-block-buttons,
  header .wp-block-button,
  header [class*="navigation"],
  header a:not(:has(img)),
  #wpadminbar {
    display: none !important;
  }

  footer .wp-block-columns.alignwide > .wp-block-column:nth-child(2),
  footer .wp-block-columns.alignwide > .wp-block-column:nth-child(3),
  footer .wp-block-column:has(a[href*="privacy"]),
  footer .wp-block-column:has(a[href*="cookie"]),
  footer .wp-block-column:has(a[href*="modern-slavery"]),
  footer .wp-block-column:has(.wp-block-social-links),
  footer nav,
  footer .wp-block-navigation,
  .ppdjobs-print-hide,
  .joinchat,
  .qlwapp,
  .ht-ctc,
  a[href*="whatsapp"],
  a[href*="wa.me"],
  [class*="whatsapp"],
  [id*="whatsapp"] {
    display: none !important;
  }

  .ppdjobs-back {
    display: none;
  }

  .ppdjobs-single .ppdjobs-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
  }

  .ppdjobs-single .ppdjobs-sidebar {
    order: 1;
    width: 100%;
  }

  .ppdjobs-single .ppdjobs-content {
    order: 2;
    width: 100%;
  }

  .ppdjobs-side-image {
    max-width: 320px;
  }

  .ppdjobs-print-url {
    display: block !important;
    margin: 24px 0 8px;
    color: #545454;
    font-size: 10pt;
    overflow-wrap: anywhere;
  }
}
