.careers-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 45px 72px;
  gap: 22px;
  width: 100%;
  background-color: #f9f9f9;
}

.careers-section .container {
  max-width: 1368px;
  width: 100%;
}

.careers-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

.career-widget {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 24px 32px;
  gap: 12px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.career-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 12px;
  flex-grow: 1;
}

.career-title {
  width: 100%;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 32px;
  line-height: 120%;
  color: #17204a;
  margin: 0;
}

.career-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.career-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: #ad2324;
  border-radius: 8px;
  font-family: "Instrument Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  line-height: 120%;
  color: #ffffff;
  text-transform: capitalize;
}

.career-location {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 21px;
  color: #727377;
}

.location-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.location-icon::before {
  content: "";
  position: absolute;
  left: 16.67%;
  right: 16.67%;
  top: 12.5%;
  bottom: 12.5%;
  border: 1.5px solid #727377;
  border-radius: 50%;
}

.career-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 100%;
  color: #24326f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.career-link:hover {
  color: #ad2324;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.arrow-icon::after {
  content: "";
  position: absolute;
  left: 16.67%;
  right: 16.67%;
  top: 29.17%;
  bottom: 29.17%;
  border: 2px solid currentColor;
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
}

/* Filter and Search Wrapper */
.filter-search-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

/* Career Filters */
.career-filters {
  display: flex;
  justify-content: start;
  gap: 16px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #17204a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #f5f5f5;
}

.filter-btn.active {
  background: #ad2324;
  color: #ffffff;
  border-color: #ad2324;
}

/* Career Search */
.career-search-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-bottom: 0;
}

.career-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 84px;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: #17204a;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.career-search-input:focus {
  border-color: #ad2324;
  box-shadow: 0 0 0 2px rgba(173, 35, 36, 0.1);
}

.career-search-input::placeholder {
  color: #727377;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search-icon::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #727377;
  border-radius: 50%;
  top: 2px;
  left: 2px;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 6px;
  background: #727377;
  transform: rotate(-45deg);
  bottom: 2px;
  right: 4px;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .careers-section {
    padding: 40px 40px;
  }

  .career-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .careers-section {
    padding: 30px 20px;
  }

  .career-widget {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .career-title {
    font-size: 24px;
  }

  .career-link {
    margin-top: 10px;
    font-size: 18px;
  }

  .filter-search-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .career-filters {
    width: 100%;
  }

  .career-search-container {
    max-width: 100%;
  }

  .career-search-input {
    padding: 10px 16px 10px 40px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .careers-section {
    padding: 20px 16px;
  }

  .career-widget {
    padding: 16px;
  }

  .career-title {
    font-size: 20px;
  }

  .career-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .career-badge {
    font-size: 12px;
  }

  .career-location {
    font-size: 14px;
  }

  .career-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  .career-search-input {
    padding: 8px 12px 8px 36px;
    font-size: 13px;
  }

  .search-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }
}
