/**
 * Job Openings Section Styles
 *
 * @package UnitedNPL
 * @since 1.0.0
 */

/* Job Openings Section */
.job-openings-section {
  padding: 60px 0;
}

/* Small Title */
.job-openings-small-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 156%;
  letter-spacing: 0%;
  color: #35763a;
  margin: 0 0 10px 0;
  text-align: center;
}

/* Main Title */
.job-openings-title {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 36px;
  line-height: 144%;
  letter-spacing: 0%;
  color: #333;
  margin: 0 0 40px 0;
  text-align: center;
}

/* Category Filter Buttons Row */
.job-openings-categories-row {
  margin-bottom: 40px;
}

/* Categories Outer Container - Centers the inner container */
.job-openings-categories-outer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Categories Inner Container */
.job-openings-categories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

/* Category Button - Styled like trusted partners buttons */
.job-openings-category-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #e9e9e9;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s ease;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #000000cc;
}

.job-openings-category-btn:hover {
  opacity: 0.8;
}

.job-openings-category-btn.active {
  background-color: #35763a;
  border: 1px solid #35763a;
  color: #ffffff;
}

.job-openings-category-btn .category-name {
  flex: 1;
  text-align: center;
}

/* Filter Inputs Row */
.job-openings-filters-row {
  margin-bottom: 10px;
}

.job-openings-filter-col {
  margin-bottom: 15px;
}

/* Search Input */
.job-openings-search-input {
  width: 100%;
  height: 50px;
  border-radius: 30px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  padding: 0 20px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #333;
  transition: border-color 0.3s ease;
}

.job-openings-search-input::placeholder {
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #b1b1b1;
}

.job-openings-search-input:focus {
  outline: none;
  border-color: #35763a;
}

/* Select Wrapper */
.job-openings-select-wrapper {
  position: relative;
  width: 100%;
}

.job-openings-select-wrapper::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("../images/fluent_ios-arrow-24-regular-down.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* Select Field */
.job-openings-select {
  width: 100%;
  height: 50px;
  border-radius: 30px;
  border: 1px solid #d9d9d9;
  background-color: #fff;
  padding: 0 50px 0 20px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #b1b1b1; /* Placeholder color by default */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

/* When a value is selected, change to dark color */
.job-openings-select.has-value {
  color: #333;
}

.job-openings-select:focus {
  outline: none;
  border-color: #35763a;
}

/* First option (placeholder) should be gray */
.job-openings-select option:first-child {
  color: #b1b1b1;
}

/* All other options should be dark */
.job-openings-select option:not(:first-child) {
  color: #333;
}

/* Search Button */
.job-openings-search-btn {
  width: 100%;
  height: 50px;
  border-radius: 30px;
  border: none;
  background: #35763A;
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.job-openings-search-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.job-openings-search-btn:active {
  transform: translateY(0);
}

/* Job Listings Row */
.job-openings-listings-row {
  margin-top: 0;
}

/* Job Opening Item Column */
.job-opening-item-col {
  padding-bottom: 0;
}

/* Job Opening Item */
.job-opening-item {
  padding: 30px 0;
}

/* Job Opening Title */
.job-opening-title {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 26px;
  line-height: 146%;
  letter-spacing: 0%;
  color: #333;
  margin: 0;
}

/* Job Opening Meta Columns */
.job-opening-meta-col {
  display: flex;
  align-items: center;
}

/* Job Opening Meta */
.job-opening-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Job Opening Icon */
.job-opening-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Job Opening Meta Text */
.job-opening-meta-text {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #333;
}

/* Job Opening Link Column */
.job-opening-link-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Job Opening Link Wrapper */
.job-opening-link-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
}

/* Job Opening Link */
.job-opening-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 18px;
  line-height: 156%;
  letter-spacing: 0%;
  color: #35763a;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.job-opening-link:hover {
  opacity: 0.8;
  color: #35763a;
  text-decoration: none;
}

/* Job Opening Arrow */
.job-opening-arrow {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Job Opening Divider */
.job-opening-divider {
  border: none;
  border-top: 1px solid #d9d9d9;
  margin: 0;
  width: 100%;
}

/* No Results Message */
.job-openings-no-results {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0%;
  color: #666;
  text-align: center;
  padding: 40px 0;
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .job-openings-title {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .job-openings-categories-row {
    margin-bottom: 30px;
  }


  .job-opening-title {
    font-size: 22px;
    margin-bottom: 15px;
  }

  .job-opening-title-col {
    margin-bottom: 15px;
  }

  .job-opening-link-col {
    justify-content: flex-start;
  }

  .job-opening-link-wrapper {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .job-openings-section {
    padding: 40px 0;
  }

  .job-openings-small-title {
    font-size: 16px;
  }

  .job-openings-title {
    font-size: 26px;
    margin-bottom: 25px;
  }

  .job-openings-categories-row {
    margin-bottom: 25px;
  }

  .job-opening-title {
    font-size: 20px;
  }

  .job-opening-item {
    padding: 20px 0;
  }
}

@media (max-width: 575.98px) {
  .job-openings-title {
    font-size: 24px;
  }

  .job-opening-title {
    font-size: 18px;
  }

  .job-opening-meta-text {
    font-size: 14px;
  }

  .job-opening-link {
    font-size: 16px;
  }
}
