/* Page Hero */
.page-hero {
  padding: 10rem 5% 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: white;
}

.page-hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  color: white;
}

.stat-item span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Filter Section */
.filter-section {
  padding: 2rem 5%;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-200);
  /* position: sticky; */
  top: 72px;
  z-index: 100;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
}

.search-box {
  flex: 1;
  width: 100%;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--gray-500);
}

.filter-group-wrapper {
  display: flex;
  gap: 1rem;
}

.filter-group {
  position: relative;
}

.filter-select {
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: var(--gray-700);
  background: white;
  cursor: pointer;
  appearance: none;
  min-width: 150px;
}

.filter-group::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--gray-500);
  pointer-events: none;
}

/* Jobs Section */
.jobs-section {
  padding: 3rem 5%;
  background: var(--white);
}

.jobs-container {
  max-width: 1200px;
  margin: 0 auto;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.results-count {
  color: var(--gray-500);
}

.results-count strong {
  color: var(--gray-900);
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--gray-700);
  background: white;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.job-location svg {
  width: 14px;
  height: 14px;
}

.job-badge {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  background: rgba(47, 98, 25, 0.1);
  color: var(--primary);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.job-badge.urgent {
  background: #fef2f2;
  color: #dc2626;
}

.job-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.job-card > p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1rem;
  line-height: 1.6;
  flex: 1;
}

.job-salary {
  font-family: "Montserrat", sans-serif;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.job-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.benefit-tag {
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 20px;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.job-footer span {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.apply-link {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.apply-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.job-card:hover .apply-link svg {
  transform: translateX(4px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: white;
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-btn svg {
  width: 18px;
  height: 18px;
}

/* CTA Section */
.cta-section {
  padding: 5rem 5%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: var(--gray-900);
  color: white;
  padding: 3rem 5%;
  text-align: center;
}

footer p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

footer a {
  color: var(--primary-light);
  text-decoration: none;
}

footer a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .stats-bar {
    gap: 2rem;
  }
  .filter-container {
    flex-direction: column;
  }
  .search-box {
    width: 100%;
  }
  .filter-group-wrapper {
    flex-direction: column;
    width: 100%;
  }
  .filter-group {
    width: 100%;
  }
  .filter-select {
    width: 100%;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}
