/**
 * Careers Template Styles
 */
/* Careers Listing Section */
.careers-listing {
  background: #fff;
  padding: 64px 0 100px;
}

.careers-listing h2 {
  font-size: 54px;
  font-weight: 550;
  font-family: var(--font-family-title);
  margin: 0 0 40px;
}

/* Search Form */
.careers-search-form {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 32px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 20px;
  top: 53%;
  transform: translateY(-50%);
  pointer-events: none;
}

.careers-search-form input[type="text"] {
  width: 100%;
  padding: 12px 12px 12px 52px;
  border: 1px solid #E0DFE5;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}

.careers-search-form input[type="text"]:focus {
  outline: none;
  border-color: #000;
}

.careers-search-form input[type="text"]::placeholder {
  color: var(--text-default-tertiary);
}

/* Filters Row (Brand, Location, Meta) */
.careers-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.careers-filters-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  display: inline-block;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 16px;
  white-space: nowrap;
  user-select: none;
}

.custom-select-trigger svg {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.custom-select.active .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid #E0DFE5;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.custom-select.active .custom-select-options {
  display: block;
}

.custom-select-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.2s;
}

.custom-select-option:hover {}

.custom-select-option.selected {
  color: var(--text-default-gold-captions);
}

.careers-search-form select {
  border: 0;
  padding: 0 20px 0 0;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  line-height: 16px;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  white-space: nowrap;
}

.careers-search-form select:focus {
  outline: none;
  border-color: #000;
}

.careers-search-form select:hover {
  border-color: #999;
}

/* Meta Info */
.careers-meta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.results-count {
  font-size: 12px;
  color: #55535C;
  font-weight: 400;
  line-height: 16px;
}

.sort-by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sort-by span {
  white-space: nowrap;
  font-weight: 400;
  line-height: 16px;
  color: #55535C;
  text-transform: none;
}

.sort-by .custom-select-trigger span {
  color: var(--text-default-default);
}

.sort-by select {
  padding: 8px 30px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sort-by select:focus {
  outline: none;
  border-color: #000;
}

/* Career Job Card */
.careers-results {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.career-job {
  display: flex;
  align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid #E0DFE5;
  gap: 40px;
}

.career-job:last-child {
  border: none;
}

/* Brand Name */
.job-brand {
  display: flex;
  align-items: flex-start;
  min-width: 140px;
}

.job-brand-name {
  font-size: 16px;
  font-family: var(--font-family-title);
  font-weight: 550;
  line-height: 24px;
  color: var(--text-default-gold-captions);
  text-transform: uppercase;
  margin: 0;
}

/* Job Info */
.job-info {
  display: flex;
  width: 971px;
  flex-direction: column;
  gap: 8px;
}

.job-title {
  font-size: 26px;
  font-weight: 550;
  line-height: 36px;
  font-family: var(--font-family-title);
  margin: 0;
}

.job-location {
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  color: #55535C;
  margin: 0;
}

/* Brand Logo and CTA - Right side */
.job-right {
  display: flex;
  gap: 77px;
  min-width: 223px;
}

.job-brand-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.job-brand-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* CTA Button */
.job-cta {
  display: flex;
  align-items: center;
}

.job-cta-mobile {
  display: none;
  margin-top: 24px;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 550;
  line-height: 24px;
  text-decoration: none;
  font-family: var(--font-family-title);
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-explore:hover {
  opacity: 0.7;
}

.btn-explore svg {
  width: 14px;
  height: 14px;
  transform: rotate(-45deg)
}

/* Pagination */
.careers-pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.careers-pagination ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
  align-items: center;
  gap: 8px;
}

.careers-pagination li {
  margin: 0;
}

.careers-pagination a,
.careers-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 550;
  font-family: var(--font-family-title);
  border-radius: 4px;
}

.careers-pagination .page-numbers.current {
  background: #000;
  color: #fff;
}

.careers-pagination a:hover {
  background: #f5f5f5;
  color: #000;
}

.careers-pagination .page-numbers.current:hover {
  background: #000;
  color: #fff;
}

.careers-pagination .dots {
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.careers-pagination .dots:hover {
  background: transparent;
}

.careers-pagination .prev,
.careers-pagination .next {
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 8px;
}

.careers-pagination .prev svg,
.careers-pagination .next svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: #666;
}

/* Responsive Design */
@media (max-width: 1040px) {
  .careers-listing {
    padding: 48px 0;
  }

  .career-job {
    gap: 24px;
  }

  .careers-listing h2 {
    font-size: 34px;
    line-height: 40px;
    margin-bottom: 36px;
  }

  .careers-search-form {
    gap: 36px;
    margin-bottom: 28px;
  }

  .careers-search-form input[type="text"] {
    font-size: 16px;
    line-height: 24px;
  }

  .job-info {
    width: 530px;
    gap: 4px;
    flex: 1;
    width: auto;
    min-width: 250px;
  }

  .careers-filters-left {
    width: 100%;
  }

  .careers-search-form select {
    flex: 1;
  }

  .careers-meta {
    width: 350px;
    justify-content: space-between;
  }

  .job-title {
    font-size: 22px;
    line-height: 32px;
  }

  .job-location {
    font-size: 15px;
    line-height: 20px;
  }

  .career-job {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 28px 0 16px;
    gap: 24px;
    flex-wrap: wrap;
  }

  .job-right {
    min-width: 160px;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    min-width: auto;
  }

  .job-brand-logo {
    height: auto;
  }

  .job-brand-logo img {
    height: 120px;
  }

  /* Hide desktop CTA, show mobile CTA */
  .job-cta {
    display: none;
  }

  .job-cta-mobile {
    display: block;
  }
}

@media (max-width: 640px) {
  .careers-listing {
    padding: 40px 0;
  }

  .careers-listing h2 {
    margin-bottom: 32px;
  }

  .careers-search-form {
    gap: 16px;
  }

  .careers-search-form input[type="text"] {
    padding-left: 40px;
  }

  .search-input-wrapper .search-icon {
    left: 12px
  }

  /* Stack filters vertically on mobile */
  .careers-filters-row {
    flex-direction: column;
    gap: 16px;
  }

  .careers-filters-left {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }

  .careers-filters-left .custom-select {
    width: 100%;
  }

  /* Style custom selects like form inputs on mobile */
  .careers-filters-left .custom-select-trigger {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0DFE5;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    justify-content: space-between;
  }

  .sort-by span {
    font-size: 12px;
    font-weight: 500;
  }

  .careers-filters-left .custom-select-trigger svg {
    margin-left: auto;
  }

  .careers-meta {
    width: 100%;
    flex-direction: row-reverse;
    gap: 16px;
  }

  .job-info {
    min-width: unset;
  }

  .career-job {
    padding: 24px 0;
  }

  .results-count {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .sort-by {
    width: 100%;
    justify-content: space-between;
  }

  .sort-by .custom-select {
    flex: 1;
  }

  .sort-by .custom-select-trigger {
    width: fit-content;
    padding: 12px 16px;
    border: 1px solid #E0DFE5;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    justify-content: space-between;
  }

  .sort-by .custom-select-trigger svg {
    margin-left: auto;
  }
}