* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  background-color: #f0f8f7;
  margin: 0;
  padding: 0;
}

.banner {
  background: url("./asset/images/bg-header-desktop.svg") no-repeat center;
  background-size: cover;
  height: 100px;
  width: 100%;
  background-color: #5ba4a4;
}

main {
  display: flex;
  flex-direction: column; /* Ensure items stack vertically */
  align-items: center;
  background-color: hsl(180, 52%, 96%);
}

.job-listings {
  max-width: 800px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 50px; /* Increase spacing between job cards */
}

.job-card {
  background: white;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  border-left: 5px solid transparent;
  margin-bottom: 20px; /* Adds extra space between job cards */
}
.job-card.featured {
  border-left: 5px solid #5ba4a4;
}

.job-card img {
  width: 50px;
  height: 50px;
  margin-right: 20px;
}

.job-info {
  line-height: 1.5;
  flex-grow: 1;
}

.job-info h4 {
  margin: 0;
  line-height: 1.5;
  font-size: 18px;
  color: #5ba4a4;
}

.job-info p {
  margin: 5px 0;
  color: #7b8e8e;
}

.title-tags {
  display: flex;
  align-items: center; /* Align h4 and job-tags in one row */
  justify-content: space-between; /* Space between h4 and job-tags */
  gap: 20px; /* Space between h4 and job-tags */
  flex-wrap: wrap; /* Prevent overflow on small screens */
}

.job-tags {
  display: flex;
  gap: 9px; /* Space between each tag */
  flex-wrap: wrap; /* Allow tags to wrap on smaller screens */
  margin-left: auto; /* Push job-tags to the right */
}

.tag {
  background-color: #eef6f8;
  color: #2c3e50;
  padding: 3px 3px; /* Equal padding */
  border-radius: 5px;
  font-size: 10px;
  font-weight: bold;
  text-align: center; /* Center text inside tags */
  min-width: 40px; /* Ensure equal width */
  display: inline-block; /* Ensure uniform size */
}

/* Filter Container - Initially Hidden */
#filter-container {
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 30px; /* Space below filter bar */
}

#filter-container.active {
  display: flex; /* Show when filters are selected */
}

/* Styling for the filter bar */
#filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 800px;
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

/* Selected Filters Container */
#selected-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Individual filter tag */
.selected-tag {
  background-color: #5ba4a4;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  display: flex;
  align-items: center;
}

/* Remove button inside the tag */
.remove-tag {
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* "Clear" button styling */
#clear-filters {
  background: transparent;
  border: none;
  color: #5ba4a4;
  cursor: pointer;
  font-weight: bold;
  margin-left: auto;
}

span.tag.featured {
  border-radius: 15px;
  color: white;
  background-color: black;
  padding: 2px 3px;
}

span.tag.new {
  border-radius: 15px;
  background-color: #5ba4a4;
  color: white;
  padding: 2px 4px;
}

span.tag:hover {
  background-color: #5ba4a4;
  color: white;
}

.job-tags:hover {
  cursor: pointer;
  color: #5ba4a4;
}

.job-info p:hover {
  color: #5ba4a4;
}

.job-info h3:hover {
  color: #5ba4a4;
  cursor: pointer;
}
span.tag :hover {
  cursor: pointer;
  color: #5ba4a4;
}
