/* Main grid layout */
#job-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns on desktop */
  gap: 20px;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Responsive layout: tablets */
@media (max-width: 1024px) {
  #job-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive layout: mobile phones */
@media (max-width: 600px) {
  #job-list {
    grid-template-columns: 1fr;
    padding: 0 10px; /* optional: spacing on small screens */
  }
}

/* Remove bullet points from list items and center contents */
#job-list li {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;               /* Ensures justify-content works */
  justify-content: center;
}

/* Card wrapper */
.job-card {
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;               /* Ensures it fills the grid cell */
}

/* Inner job card content */
.job-card .single-open-job {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  min-height: 350px;
  height: 100%;
  width: 100%;
  background-color: #e3f2ff;
  color: black;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* "New" tag */
.new-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ef0530;
  color: white;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 5px;
}

/* Extra classes, can be safely overridden or removed */
.col-lg-4, .col-md-6, .col-sm-12 {
  display: block;
}

/* Ensure .card class doesn't override layout */
.card {
  width: 100%;
  display: flex;
  flex-direction: column;
}
#job-list > li {
  min-width: 0;
}

.job-card {
  overflow: hidden;
}

.job-card .single-open-job {
  overflow: hidden;
  word-wrap: break-word;
  width: 100%;
}
