/* Container for the cards */
.jobs-enable-card-container {
  display: flex;
  flex-wrap: wrap; /* Allow cards to wrap on smaller screens */
  gap: 25px; /* Space between cards */
  justify-content: center; /* Center cards if they don't fill the row */
  max-width: 1200px; /* Optional: Limit max width */
  margin: 0 auto; /* Center the container itself */
}

/* Individual Job Card */
.jobs-enable-card {
  background-color: #ffffff;
  border-radius: 12px; /* Rounded corners */
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07); /* Subtle shadow */
  width: 100%; /* Default width */
  max-width: 350px; /* Max width per card, adjust as needed */
  display: flex;
  flex-direction: column;
  gap: 15px; /* Space between sections inside the card */
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.jobs-enable-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Top Section: Logo & Badges */
.jobs-enable-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Align items to the top */
  min-height: 40px; /* Ensure space even if no logo/badge */
}

.jobs-enable-card__logo {
  display: block; /* Remove extra space below image */
  max-width: 50px; /* Limit logo size */
  height: auto;
  /* Add margin if needed */
  /* margin-right: 10px; */
}

.jobs-enable-card__badges {
  display: flex;
  gap: 8px; /* Space between badges */
}

.jobs-enable-card__badge {
  font-size: 0.7rem; /* Small font size */
  font-weight: 600; /* Medium bold */
  padding: 3px 10px;
  border-radius: 15px; /* Pill shape */
  border: 1px solid;
  white-space: nowrap; /* Prevent wrapping */
}

.jobs-enable-card__badge--featured {
  color: #28a745; /* Green color */
  border-color: #28a745;
  background-color: #eaf6ec; /* Very light green background */
}

.jobs-enable-card__badge--urgent {
  color: #dc3545; /* Red color */
  border-color: #dc3545;
  background-color: #fdecea; /* Very light red background */
}

/* Card Body: Title, Company, Desc, Details */
.jobs-enable-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Space between body elements */
}

.jobs-enable-card__title {
  font-size: 1.1rem;
  font-weight: 700; /* Bold title */
  color: #212529;
  margin-bottom: 2px; /* Small space below title */
}

.jobs-enable-card__company {
  font-size: 0.9rem;
  font-weight: 600; /* Slightly bold company */
  color: #343a40;
  display: flex;
  align-items: center;
  gap: 5px; /* Space between name and checkmark */
}

.jobs-enable-card__company-verified {
  color: #0d6efd; /* Blue checkmark */
  font-size: 0.85em; /* Slightly smaller checkmark */
}

.jobs-enable-card__description {
  font-size: 0.85rem;
  color: #6c757d; /* Grey description text */
  line-height: 1.5;
  /* Multi-line truncation (optional, adjust line-clamp) */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Show max 2 lines */
  -webkit-box-orient: vertical;
  min-height: calc(1.5em * 2); /* Reserve space for 2 lines */
}

.jobs-enable-card__details {
  display: flex;
  flex-wrap: wrap; /* Allow details to wrap if needed */
  gap: 8px; /* Space between detail items */
  margin-top: 5px; /* Extra space above details */
}

.jobs-enable-card__detail-item {
  background-color: #f8f9fa; /* Very light grey background for details */
  border-radius: 15px; /* Pill shape */
  padding: 4px 12px;
  font-size: 0.75rem;
  color: #495057;
  display: inline-flex; /* Use inline-flex for icon alignment */
  align-items: center;
  gap: 5px; /* Space between icon and text */
  white-space: nowrap;
}

.jobs-enable-card__detail-icon {
  color: #6c757d; /* Grey icon color */
  font-size: 0.9em; /* Slightly smaller icon */
}

/* Card Footer: Date & Button */
.jobs-enable-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* Push footer to the bottom */
  padding-top: 10px; /* Space above footer */
  border-top: 1px solid #eee; /* Subtle separator line */
}

.jobs-enable-card__posted-date {
  font-size: 0.75rem;
  color: #6c757d; /* Grey text */
}

.jobs-enable-card__apply-button {
  background-color: #5cb85c; /* Green button */
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px; /* Rounded button */
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
}

.jobs-enable-card__apply-button:hover {
  background-color: #4cae4c; /* Darker green on hover */
}

/* Responsive Adjustments (Example) */
@media (max-width: 768px) {
  .jobs-enable-card {
    max-width: 450px !important; /* Allow cards to be wider on medium screens */
  }
}

@media (max-width: 480px) {
  .jobs-enable-card-container {
    gap: 15px;
  }
  .jobs-enable-card {
    padding: 15px;
    max-width: 100%; /* Full width on small screens */
  }
  .jobs-enable-card__title {
    font-size: 1rem;
  }
  .jobs-enable-card__apply-button {
    padding: 7px 15px;
    font-size: 0.8rem;
  }
}
