/* Job Details page specific styles */

/* Layout */
#job-details-page {
  display: flex;
  justify-content: center;
}

#mainContainer {
  max-width: 750px;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

#content {
  margin: 10px;
}

/* Card base overrides */
.content-box {
  background-color: white;
  border-radius: 5px;
}

/* Swiper */
.job-swiper-section {
  border-radius: 5px 5px 0 0;
  contain: content;
}

.job-swiper {
  contain: size;
}

.swiper {
  width: 100%;
  height: 250px;
  display: flex;
  flex-direction: row;
  background-color: #efefef;
  z-index: 0;
}

@media (min-width: 769px) {
  .swiper {
    height: 300px;
  }
}

.swiper-button-prev::after {
  font-family: "Material Icons Round";
  content: "arrow_back_ios";
}

.swiper-button-next::after {
  font-family: "Material Icons Round";
  content: "arrow_forward_ios";
}

.job-swiper-image {
  object-fit: cover;
  object-position: center;
}

/* Owner tip */
.owner-tip {
  background-color: #efefef;
  padding: 10px 14px;
  border-radius: 5px;
  margin: 20px 15px 0 15px;
  display: flex;
  align-items: center;
  border: 1px solid var(--box-border-color);
}

.owner-tip-icon {
  font-size: 30px;
  margin-right: 12px;
  background: -webkit-linear-gradient(#2a6097, #68e29c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.job-title {
  margin: 20px 15px 0 15px;
  font-size: 1.4em;
  font-weight: bold;
}

.post-meta {
  display: flex;
  color: grey;
  margin: 10px 0 0 15px;
}

.post-meta .item {
  display: flex;
  font-size: 16px;
  align-items: center;
}

.post-meta a {
  color: var(--button-blue);
}

.individual-note {
  font-size: 14px;
  margin: 7px 15px 0 15px;
  align-items: center;
  line-height: 1.5em;
}

.is-hidden {
  display: none !important;
}

.note-icon {
  font-size: 11px;
  margin-right: 3px;
}

.link-button {
  color: var(--button-blue);
  cursor: pointer;
  background-color: transparent;
  padding: 0;
}

/* Pills (payment, location, workload) */
.job-pill {
  display: flex;
  align-items: center;
  margin: 10px 10px 0 0;
  background-color: #efefef;
  padding: 5px 10px;
  border-radius: 150px;
  width: fit-content;
}

.job-pill .job-icon {
  font-size: 16px;
  margin-right: 5px;
  margin-top: 1px;
  color: grey;
}

.job-pill .job-icon--small {
  font-size: 13px;
  margin-right: 2px;
  margin-top: -1px;
}

.job-pill .job-pill-value {
  margin-top: 2px;
  font-weight: bold;
  margin-right: 4px;
}

.job-pill .job-pill-suffix {
  align-self: flex-end;
  font-size: 13px;
  margin-bottom: 1px;
}

.job-location-text {
  display: block;
  margin-left: 4px;
  line-height: 1.5em;
  white-space: initial;
}

/* Description */
.job-description {
  background-color: white;
  margin: 0 15px;
  line-height: 2em;
  white-space: pre-line;
}

#content ul {
  line-height: 1.5em;
}

/* Section titles */
.section-title {
  margin: 25px 15px 0 15px;
  font-weight: bold;
}

.pills-container {
  margin: 20px 15px -5px 15px;
  display: flex;
  flex-wrap: wrap;
  white-space: nowrap;
}

.faq-list {
  margin: 10px 15px 0 15px;
}

/* Suggested jobs */
#suggestedJobsContainer {
  margin: 15px -10px 0 15px;
  display: flex;
  flex: 1;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 15px;
}

#scrollSuggestedJobsLeft {
  position: sticky;
  position: -webkit-sticky;
  right: 14px;
  border: 1px solid var(--box-border-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background-color: white;
  cursor: pointer;
  user-select: none;
  z-index: 1;
}

#scrollSuggestedJobsLeft .material-symbols-rounded {
  position: relative;
  right: -1px;
}

.seeAlsoCard {
  width: 170px;
  border-radius: 5px;
  color: black;
}

.seeAlsoCard img[slot="photo"] {
  width: 170px;
  height: 100px;
  border-radius: 5px 5px 0 0;
  object-fit: cover;
}

.seeAlsoCard .info {
  border-top: none;
  padding: 10px;
  border-radius: 0 0 5px 5px;
}

.seeAlsoCard .title {
  font-size: 15px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5em;
  height: 3em;
}

.seeAlsoCard .payment {
  display: flex;
  margin-top: 8px;
  align-items: center;
}

.seeAlsoCard .payment span:nth-of-type(2) {
  margin-right: 4px;
  font-size: 14px;
}

.seeAlsoCard .payment .material-icons-outlined {
  font-size: 13px;
  margin-right: 5px;
}

.seeAlsoCard .location {
  display: flex;
  margin-top: 6px;
}

.seeAlsoCard .location .material-icons-outlined {
  font-size: 13px;
  margin-right: 4px;
}

.seeAlsoCard .location span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 1.5em;
}

/* Location pill padding tweak */
.job-pill.job-pill--location {
  padding: 5px 15px 5px 10px;
}

/* Apply/Share sticky footer */
#applyAndShareButtonsContainer {
  background-color: white;
  z-index: 1;
  border: 1px solid var(--box-border-color);
  border-bottom: none;
  display: flex;
  padding: 10px;
}

.sticky-footer {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
}

/* CTA buttons */
.job-btn {
  display: flex;
  border-radius: 5px;
  flex: 1;
  justify-content: center;
  align-items: center;
  height: 42px;
  color: white;
  text-decoration: none;
  font-size: 1em;
}

.job-btn--blue {
  background-color: var(--button-blue);
}

.job-btn--green {
  background-color: var(--button-green);
  border: none;
  appearance: none;
  -webkit-appearance: none;
}

.job-btn--mr {
  margin-right: 5px;
}

.job-btn--ml {
  margin-left: 5px;
}

.job-btn--disabled {
  opacity: 0.5;
  cursor: default;
}

.job-btn .material-icons {
  font-size: 18px;
  margin-top: 1px;
  margin-right: 5px;
  font-weight: 600;
}

.job-btn .material-icons-round {
  font-size: 15px;
  margin-right: 5px;
  font-weight: 600;
}

/* removed: btn-label per single-attr guideline */

/* Suggested Articles (Trending) */
.trending-box {
  display: flex;
  flex-direction: column;
  margin: 0 10px 10px 10px;
  border-radius: 5px;
  padding: 15px 15px;
  background-color: white;
}

.trending-title {
  margin: 4px 0;
  display: block;
}

.article-list {
  display: flex;
  flex-direction: column;
}

.article-item {
  margin-top: 15px;
  line-height: 1.5em;
  color: black;
  display: flex;
  align-items: center;
}

.article-img {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  margin-right: 10px;
  object-fit: cover;
}

.article-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Help button sticky placement */
.help-sticky {
  display: block;
  bottom: 75px;
  left: 10px;
  z-index: 2;
  margin-top: auto;
  position: sticky;
  position: -webkit-sticky;
  margin-bottom: 10px;
  margin-left: 10px;
  width: fit-content;
}

/* Web stories box */
.webstories-box {
  margin: 0 10px 10px 10px;
  padding: 10px;
  background-color: white;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

/* Modal share buttons and utilities */
.btn-surface {
  background-color: #efefef;
}

.icon-18-tight {
  font-size: 18px;
  margin-top: -2px;
  margin-right: 8px;
}

/* Generic layout helpers */
.ws-title {
  display: block;
  margin: 5px 0 15px 0;
  font-weight: bold;
}

.muted-block {
  margin: 30px 15px -12px 15px;
  display: block;
  color: grey;
}

/* Desktop adjustments */
@media (min-width: 769px) {
  #mainContainer {
    margin: 10px 10px 0 10px;
  }

  #applyAndShareButtonsContainer {
    margin: 0 10px;
    border-left: 1px solid var(--box-border-color);
    border-right: 1px solid var(--box-border-color);
  }

  #content {
    margin-top: 15px;
  }
}

/* See Also spacing */
.seeAlsoBox {
  margin-right: 10px;
}

.seeAlsoBox:last-of-type {
  margin-right: 0px;
}

/* Share modal button */
.buttonModalShare {
  margin: 0 auto;
  padding: 10px 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* Modal generic */
.modal-overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  overflow: hidden;
  background-color: #0000004f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background-color: white;
  border-radius: 5px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-align: center;
  max-width: 300px;
  margin: 0 15px;
  position: absolute;
}

.modal-close {
  position: absolute;
  top: -11px;
  right: -11px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
}

.modal-img-banner {
  margin: -20px -20px 20px -20px;
  border-radius: 5px 5px 0 0;
}

.modal-text {
  margin-top: 15px;
  text-align: center;
  line-height: 1.5em;
  display: block;
}

.btn-primary-block {
  background-color: var(--button-blue);
  color: white;
  padding: 10px 14px;
  border-radius: 5px;
  margin-top: 20px;
  display: block;
}
