/* Jobs HR - Card Styles */
/* Matching existing .card class from HWDSB theme */

.jobs-hr-container {
  width: 100%;
  /* margin: 0 auto; */
  padding: 0;
  overflow: hidden;
}

.jobs-hr-header {
  padding: 20px 3%;
  margin-bottom: 10px;
}

.jobs-hr-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

/* Card Grid Layout */
.jobs-hr-grid {
  display: block;
  width: 100%;
  overflow: hidden;
}

/* Card Component - Match existing HWDSB .card class */
.card {
  color: #000;
  background: #FFF;
  overflow: hidden;
  float: left;
  width: 94%;
  margin: 3%;
  border: 1px solid #EEE;
  box-sizing: border-box;
}

/* Card Content */
.card-content {
  padding: 15px;
}

/* Card Title */
.card-title {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-title a {
  color: var(--bs-body-color);
  text-decoration: none;
}

.card-title a:hover,
.card-title a:focus {
  text-decoration: underline;
}

/* Card School */
.card-school {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

/* Card Meta Information */
.card-meta {
  margin-bottom: 12px;
}

.card-meta p {
  margin: 4px 0;
  font-size: 0.9rem;
  color: #333;
}

.card-meta .label {
  font-weight: 600;
  color: #555;
}

/* Card Location */
.card-location {
  margin-bottom: 6px;
}

/* Card Closing Date */
.card-closing {
  margin-bottom: 6px;
}

/* Card Type/Salary */
.card-type-salary {
  margin-bottom: 6px;
  font-weight: 500;
  color: #333 !important;
}

/* Card Reference */
.card-reference {
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: #666 !important;
}

.card-reference .label {
  font-weight: 600;
  color: #555 !important;
}

/* Card Summary */
.card-summary {
  margin: 12px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

/* Card Action */
.card-action {
  margin-top: 15px;
  padding-top: 10px;
  /* border-top: 1px solid #EEE; */
  border-top: 0;
}
.card-action a {
  color: var(--bs-body-color);
}
.card-apply-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #0066CC;
  color: #FFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.card-apply-btn:hover,
.card-apply-btn:focus {
  background-color: #0052A3;
  text-decoration: none;
}

/* Loading State */
.jobs-hr-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.jobs-hr-loading-spinner {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 3px solid #E0E0E0;
  border-top-color: #0066CC;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.jobs-hr-loading-text {
  font-size: 1rem;
  color: #666;
}

/* Error State */
.jobs-hr-error {
  text-align: center;
  padding: 40px 20px;
  background-color: #FFF5F5;
  border: 1px solid #FFCDD2;
  margin: 3%;
  width: 94%;
  float: left;
  box-sizing: border-box;
}

.jobs-hr-error-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #D32F2F;
}

.jobs-hr-error-message {
  color: #C62828;
  font-size: 1rem;
  margin-bottom: 15px;
}

.jobs-hr-retry-btn {
  padding: 10px 25px;
  background-color: #0066CC;
  color: #FFF;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.jobs-hr-retry-btn:hover,
.jobs-hr-retry-btn:focus {
  background-color: #0052A3;
  outline: none;
}

/* Empty State */
.jobs-hr-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  width: 94%;
  margin: 3%;
  float: left;
  box-sizing: border-box;
}

.jobs-hr-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #9E9E9E;
}

.jobs-hr-empty-text {
  font-size: 1.1rem;
  color: #666;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .jobs-hr-grid {
    display: flex;
    flex-wrap: wrap;
    float: none;
  }
  
  .card {
    width: calc(50% - 6%);
    margin: 3%;
  }
}

@media (min-width: 1024px) {
  .card {
    width: calc(33.333% - 6%);
  }
}

/* Clearfix for float layout */
.jobs-hr-grid::after {
  content: "";
  display: table;
  clear: both;
}