/* Heroo Vacancies Styles */

/* Vacancy List Styles */
.vacancies-list {
  display: grid;
  gap: 30px;
}

@media (min-width: 992px) {
  .vacancies-list {
    grid-template-columns: 1fr 1fr !important;
  }
  .vacancy-layout-list {
    grid-template-columns: 1fr 1fr;
  }
}

.vacancy-layout-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.vacancy-item {
  border-radius: 50px 0;
  padding: 30px;
  background: #fff;
  transition: box-shadow 0.3s ease;
  box-shadow: 0 5px 60px 5px rgba(52, 52, 52, 0.07);
}

.vacancy-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vacancy-title {
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

.vacancy-title a {
  text-decoration: none;
  color: #333;
}

.vacancy-title a:hover {
  color: #0073aa;
}

.vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
  font-size: 0.9em;
}

.vacancy-meta span {
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85em;
}

.vacancy-company {
  background: #e3f2fd !important;
  color: #1565c0;
}

.vacancy-type {
  background: #e8f5e8 !important;
  color: #2e7d32;
}

.vacancy-salary {
  background: #fff3e0 !important;
  color: #ef6c00;
}

.vacancy-excerpt {
  margin: 15px 0;
  color: #666;
  line-height: 1.5;
}

.vacancy-categories {
  display: none;
  margin: 10px 0;
}

.vacancy-category {
  display: inline-block;
  background: #0073aa;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  margin-right: 5px;
}

.vacancy-actions {
  display: flex;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.vacancy-apply {
  display: inline-block;
  background: linear-gradient(rgb(244, 139, 0) 0%, rgb(249, 176, 60) 100%);
  color: rgb(255, 255, 255);
  border: 1.6px solid rgb(249, 176, 60);
  padding: 7px 32px;
  border-radius: 35px 0px 35px 0px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  font-family: "Albert Sans", sans-serif;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.vacancy-apply:hover {
  background: linear-gradient(rgb(230, 125, 0) 0%, rgb(235, 162, 46) 100%);
  border-color: rgb(235, 162, 46);
  color: rgb(255, 255, 255);
}

.vacancy-read-more {
  display: inline-block;
  background-color: rgba(244, 139, 0, 0);
  color: rgb(244, 139, 0);
  border: 1.6px solid rgb(244, 139, 0);
  padding: 7px 32px;
  border-radius: 35px 0px 35px 0px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  font-family: "Albert Sans", sans-serif;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  transition: all 0.3s ease;
}

.vacancy-read-more:hover {
  background-color: rgba(244, 139, 0, 0.1);
  color: rgb(220, 125, 0);
  border-color: rgb(220, 125, 0);
}

/* Single Vacancy Styles */
.vacancy-details {
  background: #f9f9f9;
  border-radius: 50px 0;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 5px 60px 5px rgba(52, 52, 52, 0.07);
}

.vacancy-meta-details h3 {
  margin: 0 0 15px 0;
  color: #333;
  border-bottom: 2px solid #0073aa;
  padding-bottom: 5px;
}

.vacancy-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 0;
}

.vacancy-info dt {
  font-weight: bold;
  color: #666;
  margin: 0;
}

.vacancy-info dd {
  margin: 0;
  color: #333;
}

.vacancy-apply h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.vacancy-apply-button {
  display: inline-block;
  background: #0073aa;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.vacancy-apply-button:hover {
  background: #005177;
  color: white;
}

/* Filter Styles */
.vacancy-filters {
  margin: 20px 0;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 6px;
}

.vacancy-filter-form select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* Pagination Styles */
.vacancy-pagination {
  margin: 30px 0;
  text-align: center;
}

.vacancy-pagination .page-numbers,
.vacancy-pagination .pagination-link {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0073aa;
  cursor: pointer;
}

.vacancy-pagination .page-numbers:hover,
.vacancy-pagination .page-numbers.current,
.vacancy-pagination .pagination-link:hover {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.vacancy-pagination .pagination-current {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  background: #0073aa;
  color: white;
  border: 1px solid #0073aa;
  border-radius: 4px;
}

.vacancy-pagination .pagination-dots {
  display: inline-block;
  padding: 8px 4px;
  margin: 0 4px;
  color: #666;
}

/* No Vacancies Message */
.no-vacancies {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vacancy-meta {
    flex-direction: column;
  }

  .vacancy-info {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .vacancy-info dt {
    font-weight: bold;
    margin-top: 10px;
  }

  .vacancy-info dt:first-child {
    margin-top: 0;
  }

  .vacancy-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin Styles (for meta boxes) */
.vacancy-readonly {
  background-color: #f7f7f7 !important;
  color: #666 !important;
}

.vacancy-meta-section {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.vacancy-meta-section h4 {
  margin: 0;
  padding: 10px 15px;
  background: #f1f1f1;
  border-bottom: 1px solid #ddd;
}

.sync-status {
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

.sync-status.synced {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.sync-status.not-synced {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Vacancy Filters Styles */
.heroo-vacancy-filters {
  background: #1955a2;
  border-radius: 50px 0;
  padding: 40px 20px;
  box-shadow: 0 5px 60px 5px rgba(52, 52, 52, 0.07);
}

.vacancy-filter-form {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.filter-group.salary-range label {
  margin-bottom: 0;
}

.filter-group input,
.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

.salary-range {
  grid-column: 1 / -1;
}

.salary-slider-container {
  margin-top: 10px;
}

#salary-slider {
  margin: 15px 10px;
}

.salary-values {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #ffffff;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.filter-submit {
  background: linear-gradient(rgb(244, 139, 0) 0%, rgb(249, 176, 60) 100%);
  color: rgb(255, 255, 255);
  border: 1.6px solid rgb(249, 176, 60);
  padding: 7px 32px;
  border-radius: 35px 0px 35px 0px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  font-family: "Albert Sans", sans-serif;
  text-decoration: none;
  display: block;
  text-align: center;
}

.filter-submit:hover {
  background: linear-gradient(rgb(230, 125, 0) 0%, rgb(235, 162, 46) 100%);
  border-color: rgb(235, 162, 46);
}

.filter-reset {
  color: var(--e-global-color-accent);
}
.filter-reset:hover {
  color: #ffffff;
}

/* .filter-reset {
  background: linear-gradient(rgb(244, 139, 0) 0%, rgb(249, 176, 60) 100%);
  color: rgb(255, 255, 255);
  border: 1.6px solid rgb(249, 176, 60);
  padding: 7px 32px;
  border-radius: 35px 0px 35px 0px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  font-family: "Albert Sans", sans-serif;
  text-decoration: none;
  display: block;
  text-align: center;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.filter-reset:hover {
  background: linear-gradient(rgb(230, 125, 0) 0%, rgb(235, 162, 46) 100%);
  border-color: rgb(235, 162, 46);
  color: #fff;
} */

/* AJAX Loading States */
.loading-vacancies {
  text-align: center;
  padding: 40px 20px;
  opacity: 0.7;
}

.loading-vacancies p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

.heroo-vacancies-container {
  min-height: 200px;
  transition: opacity 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .vacancy-filter-form {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-submit,
  .filter-reset {
    text-align: center;
  }
}

.iframe-wrapper {
  position: relative;
  width: 100%;
  max-width: 992px;
  margin-top: -105px;
}

.job-iframe {
  width: 100%;
  height: 900px;
  border: none;
}

.iframe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 105px;
  background: white;
  z-index: 10;
  pointer-events: none;
}

/* Vacancy Cards Styles */
.heroo-vacancy-highlights {
  display: block;
}

.vacancy-highlight {
  border-bottom: 2px dotted #e0e0e0;
  display: grid;
  grid-template-columns: 160px 1fr 1fr 160px;
  align-items: center;
  border-bottom: 1px dashed #1955a2;
  margin-bottom: 30px;
  padding-bottom: 30px;
}

@media (max-width: 992px) {
  .vacancy-highlight {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.vacancy-highlight:first-child {
  padding-top: 30px;
  border-top: 1px dashed #1955a2;
}

.vacancy-highlight-categories {
  display: flex;
}

.vacancy-highlight-category {
  background: #cbd0e1;
  color: #1e40af;
  padding: 0 20px;
  border-radius: 25px 0;
  font-size: 16px;
  font-weight: 500;
  height: 100%;
  max-height: 29px;
  line-height: 29px;
}

.vacancy-highlight-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  line-height: 1.3;
  margin: 0;
}

.vacancy-highlight-description {
  color: #4a5568;
  line-height: 1.6;
  margin: 0 40px 0 0;
  font-size: 18px;
}

.vacancy-highlight-link {
  color: rgb(220, 125, 0);
}

.no-vacancy-highlights {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

/* Responsive adjustments for vacancy cards */
@media (max-width: 768px) {
  .heroo-vacancy-highlights {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .vacancy-highlight {
    padding: 15px;
  }

  .vacancy-highlight-title {
    font-size: 18px;
  }
}
