/* Public website pages without a dedicated design (Find Jobs, Job detail,
   Companies, Contact...). Uses the same tokens as home.css / common.css. */

.page-head {
  background: linear-gradient(120deg, #f4fbff 0%, #e9f6ff 48%, #cfeaff 100%);
  padding: 34px 0 28px;
  border-bottom: 1px solid #e4eef9;
}

/* Page headings: site font at medium weight, dark navy with the highlighted words in blue */
.page-head h1,
.page-head h3 {
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  color: var(--vdomn-dark);
  margin: 0;
}

.page-head h1 span,
.page-head h3 span {
  color: var(--vdomn-blue)
}

.page-head p {
  color: #263b62;
  margin: 6px 0 0;
  font-size: 15px
}

.vd-crumb {
  font-size: 12px;
  color: var(--vdomn-muted);
  margin-bottom: 8px
}

.vd-crumb a {
  color: var(--vdomn-muted);
  text-decoration: none
}

.vd-crumb a:hover {
  color: var(--vdomn-blue)
}

/* Search bar (same look as the home search box) */
.vd-search {
  background: #fff;
  border: 1px solid #e0ebf7;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 13px 35px rgba(27, 72, 130, .10);
  margin-top: 18px;
}

.vd-search .form-control,
.vd-search .form-select {
  height: 46px;
  border: 1px solid #d8e4f2;
  border-radius: 9px;
  font-size: 13px;
  color: #435777;
}

.vd-search .btn {
  height: 46px;
  border-radius: 9px
}

/* Cards */
.vd-card {
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 12px;
  padding: 18px;
}

.vd-card+.vd-card {
  margin-top: 14px
}

.vd-card h2,
.vd-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: #10234e;
}

/* Find Jobs and Hire a Worker on mobile: compact search so results show sooner, filters in a slide-out sidebar */
#filterSidebar {
  --bs-offcanvas-width: min(320px, 88vw)
}

@media(max-width:991.98px) {
  .compact-head {
    padding: 14px 0
  }

  .page-head.compact-head h1,
  .page-head.compact-head h3 {
    font-size: 20px;
    margin: 0
  }

  .compact-head .vd-search {
    margin-top: 10px;
    padding: 8px
  }

  .compact-head .vd-search .form-control,
  .compact-head .vd-search .form-select,
  .compact-head .vd-search .btn {
    height: 40px
  }

  /* Service pills: one swipeable row instead of many wrapped rows */
  .service-links.service-links-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
  }

  .service-links-scroll::-webkit-scrollbar {
    display: none
  }

  .service-links-scroll .service-link {
    flex-shrink: 0;
    white-space: nowrap
  }

  .find-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    font-weight: normal
  }

  /* The sidebar is taken out of the page flow, so its column should add no gap */
  .vd-filters {
    margin-top: 0
  }
}

/* Filters sidebar */
.vd-filters .vd-card {
  padding: 16px
}

.vd-filters label.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #10234e;
  margin-bottom: 4px
}

.vd-filters .form-select,
.vd-filters .form-control {
  font-size: 13px;
  border-color: #d8e4f2;
  border-radius: 8px
}

.vd-filters .form-check-label {
  font-size: 13px;
  color: #263b62
}

/* Job card */
.job-card {
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 12px;
  padding: 16px 18px;
  transition: .2s;
  position: relative;
}

.job-card:hover {
  box-shadow: 0 9px 24px rgba(15, 85, 170, .09);
  border-color: #9fc5f7
}

.job-card+.job-card {
  margin-top: 12px
}

.job-card.featured {
  border-left: 3px solid var(--vdomn-blue)
}

.job-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 2px
}

.job-card h3 a {
  color: #10234e;
  text-decoration: none
}

.job-card h3 a:hover {
  color: var(--vdomn-blue)
}

.co-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #e1eaf5;
  background: #edf7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  overflow: hidden;
  color: #1358ad;
  font-weight: 800;
  font-size: 15px;
}

.co-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain
}

.co-logo.lg {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
  font-size: 22px;
  border-radius: 14px
}

.job-company {
  font-size: 14px;
  color: #435777
}

.job-company a {
  color: #435777;
  text-decoration: none
}

/* Job card top: title and company on the left, badges and save button on the right */
.job-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
  align-items: start
}

.job-head h3 {
  grid-column: 1;
  grid-row: 1
}

.job-head .job-company {
  grid-column: 1;
  grid-row: 2
}

.job-head .job-actions {
  grid-column: 2;
  grid-row: 1 / span 2
}

/* Phones: the company name uses the full width under the badges instead of wrapping beside them */
@media(max-width:767.98px) {
  .job-head h3 {
    align-self: center
  }

  .job-head .job-company {
    grid-column: 1 / -1
  }

  .job-head .job-actions {
    grid-row: 1
  }
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12.5px;
  color: #60708e;
  margin-top: 8px
}

.job-meta i {
  color: #7d97bd;
  margin-right: 4px
}

/* Job card: tablet and up, details line up beside the logo (48px logo + 16px gap).
   On phones they use the full width, starting under the logo */
@media(min-width:768px) {

  .job-card>.job-meta,
  .job-card>.job-foot {
    margin-left: 64px
  }
}

.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: #edf7ff;
  border: 1px solid #d6e8fb;
  color: #17376a;
  font-size: 11.5px;
  font-weight: 600;
  margin: 6px 4px 0 0;
  text-decoration: none;
}

.chip.req {
  background: #e8f1ff;
  border-color: #b9d4f8
}

.badge-feat,
.badge-urgent,
.badge-applied {
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 7px;
}

.badge-feat {
  background: #c6f392;
  color: #337a09
}

.badge-urgent {
  background: #ffffff;
  color: #df8a0a;
  border: 1px solid #df8a0a
}

.badge-applied {
  background: #e6f6ef;
  color: #198754
}

/* Job card: Featured and Urgent shown as icons, same height as the save button */
.job-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0
}

/* Icon font glyphs sit low in their text line by default, so centre them exactly in the box */
.job-icon i {
  display: flex;
  line-height: 1
}

.job-icon i::before {
  display: block;
  vertical-align: 0
}

/* Featured star: light gold on white */
.job-icon.badge-feat {
  background: #fff;
  color: #1398e6;
  border: 1px solid #e69c13
}

.job-posted {
  font-size: 12px;
  color: #8a98b0
}

.btn-save {
  border: 1px solid #d6e2f1;
  background: #fff;
  color: #435777;
  border-radius: 7px;
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Keeps a comfortable tap area on phones around the smaller button */
.btn-save::after {
  content: "";
  position: absolute;
  inset: -8px
}

.btn-save.saved,
.btn-save:hover {
  color: var(--vdomn-blue);
  border-color: #9fc5f7
}

.results-bar {
  font-size: 13px;
  color: #435777
}

.results-bar .form-select {
  width: auto;
  font-size: 13px;
  border-radius: 8px
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #c9def7;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  color: #17376a;
  text-decoration: none;
  margin: 0 6px 6px 0;
}

.active-filter:hover {
  border-color: var(--vdomn-blue)
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #60708e
}

.empty-state i {
  font-size: 40px;
  color: #9fc5f7
}

.vd-pagination .page-link {
  color: #17376a;
  border-color: #dce8f6
}

.vd-pagination .page-item.active .page-link {
  background: var(--vdomn-blue);
  border-color: var(--vdomn-blue);
  color: #fff
}

/* Job detail */
.job-hero {
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(25, 65, 120, .06);
}

.job-hero h1 {
  font-size: 26px;
  font-weight: 500;
  color: var(--vdomn-dark);
  margin: 0
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px
}

.job-fact {
  background: #f5faff;
  border: 1px solid #e4eef9;
  border-radius: 10px;
  padding: 10px 12px
}

.job-fact small {
  display: block;
  font-size: 11px;
  color: #60708e
}

.job-fact strong {
  font-size: 13px;
  color: #10234e
}

.job-body {
  font-size: 14px;
  line-height: 1.7;
  color: #263b62
}

.job-body h2 {
  font-size: 16px;
  font-weight: 800;
  color: #10234e;
  margin: 22px 0 8px
}

.job-body ul {
  padding-left: 20px
}

.sticky-side {
  position: sticky;
  top: 90px
}

.mini-job {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eef3f9;
  text-decoration: none
}

.mini-job:last-child {
  border-bottom: 0
}

.mini-job strong {
  display: block;
  font-size: 13.5px;
  color: #10234e
}

.mini-job small {
  color: #60708e;
  font-size: 12px
}

.mini-job:hover strong {
  color: var(--vdomn-blue)
}

/* Company cards */
.company-card {
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 12px;
  padding: 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: .2s;
  text-decoration: none;
  color: inherit;
}

.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 24px rgba(15, 85, 170, .09);
  border-color: #9fc5f7
}

.company-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #10234e;
  margin: 0
}

.company-card p {
  font-size: 12.5px;
  color: #60708e;
  margin: 10px 0 0;
  flex-grow: 1
}

.jobs-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--vdomn-blue)
}

.cta-panel {
  background: linear-gradient(110deg, #073b7c, #0753a7);
  color: #fff;
  border-radius: 14px;
  padding: 22px 24px
}

.cta-panel h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0
}

.cta-panel p {
  font-size: 13px;
  opacity: .85;
  margin: 4px 0 0
}

.cta-panel .btn-light {
  font-weight: 700;
  border-radius: 8px
}

/* Content pages */
.cms-content {
  font-size: 14.5px;
  line-height: 1.75;
  color: #263b62
}

.cms-content h2,
.cms-content h3 {
  font-weight: 800;
  color: #10234e;
  margin-top: 1.4em
}

.step-card {
  text-align: center;
  padding: 22px 16px
}

.step-card .num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #edf7ff;
  color: var(--vdomn-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 10px
}

.step-card h3 {
  font-size: 15px
}

.step-card p {
  font-size: 13px;
  color: #60708e;
  margin: 0
}

/* Candidates page on phones: minimal, so the jobs are close to the top */
@media(max-width:767.98px) {
  .cand-actions {
    flex-wrap: nowrap !important
  }

  .cand-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    white-space: nowrap
  }

  .cand-page .section {
    padding: 16px 0
  }

  .cand-page .section.pt-0 {
    padding-bottom: 24px
  }

  .cand-page .step-card {
    padding: 10px 8px
  }

  .cand-page .step-card .num {
    width: 32px;
    height: 32px;
    font-size: 15px;
    margin-bottom: 4px
  }

  .cand-page .step-card h5 {
    font-size: 13px;
    line-height: 1.3;
    margin: 0
  }

  .cand-page .step-card p {
    display: none
  }

  .cand-jobs>div:nth-child(n+4) {
    display: none
  }
}

.faq .accordion-button {
  font-size: 14px;
  font-weight: 600;
  color: #10234e
}

.faq .accordion-button:not(.collapsed) {
  background: #edf7ff;
  color: var(--vdomn-blue);
  box-shadow: none
}

.faq .accordion-body {
  font-size: 13.5px;
  color: #435777
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px
}

.contact-item i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #edf7ff;
  color: var(--vdomn-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 40px
}

.contact-item small {
  display: block;
  color: #60708e;
  font-size: 12px
}

.vd-form .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #10234e
}

.vd-form .form-control {
  border-color: #d8e4f2;
  border-radius: 9px;
  font-size: 14px
}

.stat-tile {
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 12px;
  padding: 16px;
  text-align: center
}

.stat-tile strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #10234e
}

.stat-tile small {
  color: #60708e
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden
}

@media(max-width:991.98px) {
  .job-facts {
    grid-template-columns: repeat(2, 1fr)
  }

  .sticky-side {
    position: static
  }
}

@media(max-width:575.98px) {
  .page-head h1 {
    font-size: 23px
  }

  .job-hero h1 {
    font-size: 21px
  }

  .vd-search .btn {
    width: 100%
  }
}

/* Worker directory and profile */
.worker-card {
  display: flex;
  flex-direction: column;
  height: 100%
}

.worker-photo {
  border-radius: 50%;
  overflow: hidden
}

.worker-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover
}

.worker-rating {
  font-size: 12px;
  margin-top: 10px
}

.stars {
  color: #f5a623;
  white-space: nowrap
}

.stars i {
  margin-right: 1px
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.service-link {
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #10234e;
  text-decoration: none
}

.service-link:hover,
.service-link.active {
  border-color: #0d6efd;
  color: #0d6efd
}

.work-photo {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 6px
}

.rating-bar span {
  width: 28px;
  white-space: nowrap
}

.rating-bar i {
  color: #f5a623
}

.rating-bar .progress {
  height: 6px
}

.rating-bar small {
  width: 22px;
  text-align: right
}

.review {
  border-top: 1px solid #e1eaf5;
  padding: 12px 0;
  font-size: 13px
}

.review-photo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px
}

.review-reply {
  background: #f6faff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  margin-top: 6px
}

.review-form {
  background: #f6faff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px
}

/* Star rating input: the radios run 5 to 1, reversed on screen so the sibling selector fills lower stars */
.star-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  flex-wrap: wrap;
  border: 0;
  padding: 0;
  margin: 0
}

.star-input legend {
  width: 100%;
  float: none
}

.star-input input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px
}

.star-input label {
  font-size: 26px;
  color: #d5dce6;
  cursor: pointer;
  padding: 0 3px
}

.star-input label:hover,
.star-input label:hover~label,
.star-input input:checked~label {
  color: #f5a623
}

.star-input input:focus-visible+label {
  outline: 2px solid #0d6efd;
  border-radius: 4px
}
.subhead {
  font-size: 13px;
  font-weight: 500;
  
  margin-bottom: 4px
}
