/* Job Offers Page Styles */

/* Main section */
.job-offers-section {
  padding: 60px 0;
}

/* Filter bar */
.filter-bar {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 15px;
  border-radius: 20px;
  margin-bottom: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.filter-bar:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.filter-title i {
  color: var(--main-color);
  font-size: 1rem;
}

.filter-group {
  position: relative;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 5px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group label i {
  color: var(--main-color);
  font-size: 0.9rem;
}

.filter-select {
  padding: 5px 10px;
  border-radius: 30px;
  border: 2px solid #e5e7eb;
  font-size: 12px;
  font-weight: 500;
  color: #1f2937;
  background: #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23AD002D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.filter-select:hover {
  border-color: var(--main-color);
  background-color: #fef2f2;
}

.filter-select:focus {
  outline: none;
  border-color: var(--main-color);
  box-shadow: 0 0 0 3px rgba(173, 0, 45, 0.1);
  background-color: white;
}

.filter-select option {
  padding: 0.5rem;
  font-weight: 500;
}

/* Job offers list */
.job-offers-list {
  display: block;
}

.job-offer-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 4px solid var(--main-color);
  min-height: 180px;
  margin-bottom: 1.5rem;
}

.job-offer-card:hover {
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
}

.job-offer-card .job-icon {
  width: 52px;
  height: 52px;
  background: #e5f7f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-offer-card .job-icon i {
  font-size: 1.6rem;
  color: var(--main-color);
}

.job-offer-card .job-header {
  flex: 1;
}

.job-offer-card .job-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.job-offer-card .expired-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  transform: translateY(-50%);
  background: #6c757d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.job-meta-item i {
  color: var(--main-color);
  font-size: 0.9rem;
}

.job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.view-details-btn {
  color: var(--main-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.view-details-btn:hover {
  color: #8a0024;
  text-decoration: none;
}

.apply-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: var(--main-color);
  color: #fff;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(173, 0, 45, 0.3);
  color: #fff;
}



.contact-form-card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.form-description {
  text-align: center;
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.form-control-underline {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 2px solid #dee2e6;
  background: transparent;
  font-size: 0.95rem;
  color: #495057;
  transition: border-color 0.3s ease;
}

.form-control-underline:focus {
  outline: none;
  border-bottom-color: var(--main-color);
}

.form-control-underline::placeholder {
  color: #adb5bd;
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Modern File Upload Design */
.file-upload-wrapper {
  position: relative;
  width: 100%;
}

.file-upload-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-upload-label {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  border-color: var(--main-color);
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(173, 0, 45, 0.1);
}

.file-upload-input:focus + .file-upload-label {
  outline: 2px solid var(--main-color);
  outline-offset: 2px;
}

.file-upload-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--main-color) 0%, #c7222a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(173, 0, 45, 0.2);
}

.file-upload-icon i {
  color: white;
  font-size: 1.25rem;
}

.file-upload-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.file-upload-title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

.file-upload-hint {
  font-size: 0.85rem;
  color: #6b7280;
}

.file-upload-filename {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--main-color);
  padding: 0.5rem 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.file-upload-label.has-file .file-upload-filename {
  display: block;
}

.file-upload-label.has-file {
  border-color: var(--main-color);
  background: linear-gradient(135deg, #d1fae5 0%, #ffffff 100%);
}

.file-upload-label.has-file .file-upload-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.file-upload-label.has-file .file-upload-icon i::before {
  content: "\f058";
}

.contact-form-card .form-text {
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

.contact-form-card .form-check {
  padding-left: 1.5rem;
}

.form-card .form-check-label {
  font-size: 11px;
  color: #555;
  line-height: 1.4;
}

.form-card .btn-block {
  margin-top: 10px;
}

/* Loading spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Modern Modal Styles */
.modal-content {
  border-radius: 24px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--main-color) 0%, #8a0024 100%);
  color: #fff;
  border: none;
  padding: 2rem 2.5rem;
  border-radius: 0;
}

.modal-header .modal-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.5px;
}

.modal-header .close {
  color: #fff;
  opacity: 0.9;
  font-size: 2rem;
  font-weight: 300;
  text-shadow: none;
  transition: all 0.3s ease;
}

.modal-header .close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.5rem;
  background: #fff;
}

.modal-body h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
}

.modal-body h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--main-color);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

.modal-actions .btn {
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-actions .btn-outline-secondary {
  border: 2px solid #e5e7eb;
  color: #6b7280;
  background: transparent;
}

.modal-actions .btn-outline-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-2px);
}

.modal-body .form-check {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.modal-body .form-check-input {
  margin-top: 0.15rem;
}

.modal-body .form-check-label {
  color: #4b5563;
  line-height: 1.6;
}

.modal-body .alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
}

.modal-body .alert-success {
  background: #d1fae5;
  color: #065f46;
}

.modal-body .alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.job-detail-meta strong {
  color: var(--main-color);
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.job-detail-meta strong i {
  width: 20px;
}

.job-detail-meta .col-md-6 {
  position: relative;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.modal-body p {
  color: #4b5563;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Modal backdrop enhancement */
.modal-backdrop.show {
  opacity: 0.7;
  background: linear-gradient(135deg, rgba(173, 0, 45, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* Pagination */
.pagination-wrapper {
  margin-top: 30px;
  margin-bottom: 30px;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 4px;
}

.page-item:first-child .page-link {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.page-item:last-child .page-link {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #AD002D;
  border-color: #AD002D;
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  cursor: not-allowed;
  background-color: #fff;
  border-color: #dee2e6;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #AD002D;
  background-color: #fff;
  border: 1px solid #dee2e6;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.page-link:hover {
  z-index: 2;
  color: #8a0024;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.page-link:focus {
  z-index: 3;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(173, 0, 45, 0.25);
}

/* Responsive */
@media (max-width: 991px) {
  .spontaneous-application-form {
    position: relative;
    top: auto;
    margin-top: 40px;
  }
  
  .job-offers-section {
    padding: 40px 0;
  }
}

@media (max-width: 767px) {
  .job-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .job-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .apply-btn {
    width: 100%;
  }
  
  .form-card {
    padding: 20px;
  }
}

/* Old styles - keeping for backward compatibility */
.cards {
  display: inline-block;
  width: 100%;
  height: auto;
}

.card {
  margin: 0 7px 30px;
  vertical-align: top;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.card-header {
  background-color: #AD002D;
  transition: all 0.2s linear;
  color: #fff;
  cursor: pointer;
}

h2.card-title {
  font-size: 14px;
  font-family: "Ubuntu", sans-serif;
  font-weight: 600;
  display: inline-block;
  color: #fff;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: left;
  line-height: 30px;
  margin: 0;
}

.card-header .link {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0;
  line-height: 30px;
  float: right;
}

h3.card-title {
  font-family: "Ubuntu", sans-serif;
  font-weight: 600;
  display: block;
  font-size: 20px;
  color: #690303;
  letter-spacing: 0;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

a:not([href]):not([tabindex]) {
  color: inherit;
  text-decoration: none;
}

a {
  color: #bababa;
  text-decoration: none;
  transition: 0.5s;
  font-family: "Montserrat", sans-serif;
}

p {
  font-size: 15.9px;
  margin-bottom: 15px;
  line-height: 24px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 0.9rem;
}

.more-link {
  cursor: pointer;
}

a.primary-link,
button.primary-button {
  display: inline-block;
  vertical-align: top;
}

a.primary-link.red > span,
button.primary-button.red > span {
  background-color: #961919;
  color: #fff;
}

a.primary-link > span,
button.primary-button > span {
  display: block;
  cursor: pointer;
  height: 40px;
  line-height: 39px;
  text-align: center;
  padding: 0 20px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 12.9px;
  font-weight: 600;
  position: relative;
  transition: ease-in 0.1s;
}

a.primary-link.red:hover > span,
button.primary-button.red:hover > span {
  background-color: #8A0024;
  text-decoration: none;
}

a.primary-link.red,
button.primary-button.red {
  text-decoration: none;
}

.page-btn {
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 12.9px;
    font-weight: 600;
    height: 40px;
    line-height: 39px;
    padding: 0 20px;
    color: #fff;
    background-color: #961919;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.page-btn:hover {
    background-color: #8A0024;
    color: #fff;
}

#applicationModal {
  height: 100vh;
  overflow: auto;
}