/* ==========================================================================
   Career Section
   ========================================================================== */

.career-section {
  margin-top: 200px;
}

.career-section .container {
  margin: 0 auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.career-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.career-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--blaze-color-black);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.career-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */

.career-filter-form {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 52px;
  flex: 1;
  padding: 0 24px;

  border-radius: 24px;
  border: 1px solid var(--blaze-color-primary);
}

.icon-1 {
  height: 24px;
  width: 24px;
}

.search-input,
.filter-select {
  font-size: 16px;
  transition: all 0.3s ease;
  color: var(--blaze-color-black);
  border: none;
  outline: none;
  width: 100%;
}

.custom-select {
  position: relative;
  width: 100%;
  height: 40px;
}

.custom-select .filter-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 0 0 1px;
  color: #5c5c5c;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.custom-select__arrow {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blaze-color-primary);
  color: #000;
  font-size: 11px;
  line-height: 1;
}

.custom-select__options {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: -25px;
  right: -25px;
  display: none;
  padding: 6px 15px;
  background: #fff;
  border: 1px solid var(--blaze-color-primary);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.custom-select.is-open .custom-select__options {
  display: block;
}
.custom-select.is-open .custom-select__arrow {
  transform: rotate(180deg);
}

.custom-select__option {
  display: block;
  width: 100%;
  padding: 13px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--blaze-color-primary);
  color: #5c5c5c;
  cursor: pointer;
  text-align: left;
}

.custom-select__option:last-child {
  border-bottom: 0;
}
.custom-select__option:hover,
.custom-select__option:focus-visible {
  color: #000;
  font-weight: 700;
}

.search-input::placeholder {
  color: #000;
  font-size: 16px;
}

.search-group {
  flex: 9;
}

.job-type-group {
  flex: 7;
}

.location-group {
  flex: 7;
}
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("../../images/arrowdown.svg");
  background-repeat: no-repeat;
  background-position: right;
  background-size: 20px;
}

.filter-submit {
  width: 100%;
  padding: 12px 30px;
  background: #007cba;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-submit:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 124, 186, 0.3);
}

/* ==========================================================================
   Job Grid
   ========================================================================== */

.job-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.job-row {
  display: flex;
  justify-content: start;
  align-items: center;
  width: 100%;
  height: 52px;
  background: #fff;
  border: 1px solid var(--blaze-color-primary);
  border-radius: 40px;
  text-decoration: none;
  color: #111;
  overflow: hidden;
  transition: 0.25s;
}

.job-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.job-row__accent {
  width: 21px;
  height: 52px;
  background: var(--blaze-color-primary);
  flex-shrink: 0;
}

.job-row__title {
  flex: 1;
  padding: 0 18px;
  font-size: 24px;
  font-weight: 600;
  text-align: start;
}

.job-row__location {
  width: 180px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: #222;
}

.job-row__details {
  width: 170px;
  text-align: end;
  font-size: 16px;
  font-weight: 400;
  color: #111;
}

.job-row__arrow {
  width: 24px;
  height: 24px;
  text-align: center;
  font-size: 20px;
  margin-right: 24px;
  margin-left: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 768px) {
  .job-row {
    flex-wrap: wrap;
    min-height: auto;
    padding: 15px 0;
  }

  .job-row__accent {
    height: auto;
    align-self: stretch;
  }

  .job-row__title {
    width: 100%;
    padding: 10px 20px;
    font-size: 20px;
  }

  .job-row__location,
  .job-row__details {
    width: auto;
    padding: 0 20px;
    text-align: left;
  }

  .job-row__arrow {
    margin-left: auto;
  }
}

/* ==========================================================================
   Job Card
   ========================================================================== */

.job-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
  position: relative;
}

.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: #007cba;
}

.job-card.featured-job {
  border-color: #ffc107;
  background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffc107;
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.job-card-content {
  padding: 28px 30px;
}

.job-company {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #007cba;
  background: #e8f0fe;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.job-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.job-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.job-title a:hover {
  color: #007cba;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #6c757d;
}

.location-icon {
  font-size: 1rem;
}

.job-type-badge {
  background: #e9ecef;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
}

.job-salary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #28a745;
  margin-bottom: 12px;
}

.job-excerpt {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 15px 0;
}

.job-deadline {
  font-size: 0.85rem;
  color: #dc3545;
  margin-bottom: 15px;
}

.job-details-link {
  display: inline-block;
  color: #007cba;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.job-details-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #007cba;
  transition: width 0.3s ease;
}

.job-details-link:hover::after {
  width: 100%;
}

.job-details-link:hover {
  color: #0056b3;
}

/* ==========================================================================
   No Jobs Found
   ========================================================================== */

.no-jobs-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 2px dashed #dee2e6;
}

.no-jobs-found p {
  font-size: 1.1rem;
  color: #6c757d;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .career-section {
    padding: 40px 0 60px;
  }

  .career-hero h1 {
    font-size: 2.5rem;
  }

  .career-filter-form {
    flex-direction: column;
    gap: 24px;
  }

  .filter-group {
    min-width: 100%;
  }

  .job-grid {
    grid-template-columns: 1fr;
  }

  .job-card-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .career-hero h1 {
    font-size: 20px;
    font-weight: 600;
  }

  .career-subtitle {
    font-size: 1rem;
  }
  .career-section {
    margin-top: 104px;
    padding: 16px 0;
  }

  .career-hero {
    gap: 16px;
  }

  .job-grid {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .job-row {
    display: grid;
    grid-template-columns: 21px 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    align-items: center;

    height: auto;
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--blaze-color-primary);
  }

  .job-row__accent {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 21px;
    height: 100%;
    border-radius: 40px 0 0 40px;
  }

  .job-row__title {
    grid-column: 2 / 5;
    grid-row: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 8px 16px;
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    text-align: center;

    border-bottom: 1px solid var(--blaze-color-primary);
  }

  .job-row__location {
    grid-column: 2;
    grid-row: 2;
    padding: 0 16px;
    text-align: left;
    width: fit-content;
    font-size: 14px;
    font-weight: 400;
  }

  .job-row__details {
    grid-column: 3;
    grid-row: 2;

    padding: 0 16px;
    width: fit-content;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
  }

  .job-row__arrow {
    grid-column: 4;
    grid-row: 2;

    width: auto;
    margin: 0 30px 0 0;

    font-size: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
  }
}
