/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #2e2a26;
  background-color: #f6f1ea;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: 'Roboto', sans-serif; }

/* Header */
header {
  background: #fffaf4;
  border-bottom: 1px solid #e4d8cc;
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #9c4a2f;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li { margin-left: 24px; }

nav ul li a {
  font-weight: 500;
  color: #6f675f;
}

nav ul li a:hover {
  color: #9c4a2f;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #9c4a2f, #7a3822);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p {
  font-size: 17px;
  opacity: 0.95;
}

/* Filters */
.filters {
  background: #fffaf4;
  padding: 24px 0;
  border-bottom: 1px solid #e4d8cc;
}

.filters .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.filters select,
.filters input {
  padding: 10px 14px;
  border: 1px solid #e4d8cc;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  color: #2e2a26;
}

.filters select:focus,
.filters input:focus {
  outline: none;
  border-color: #9c4a2f;
}

.reset-btn {
  background: #9c4a2f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
}

.reset-btn:hover {
  background: #7a3822;
}

/* Jobs */
.jobs { padding: 50px 0; }

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.job-card {
  background: #fffaf4;
  border: 1px solid #e4d8cc;
  border-radius: 10px;
  padding: 22px;
  transition: all 0.25s ease;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: #c96a4a;
}

.job-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #9c4a2f;
}

.job-card p {
  font-size: 14px;
  color: #6f675f;
}

.apply-btn {
  margin-top: 14px;
  background: #9c4a2f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 500;
}

.apply-btn:hover {
  background: #7a3822;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 30px 0;
}

.pagination button {
  background: #fff;
  border: 1px solid #e4d8cc;
  padding: 8px 14px;
  border-radius: 6px;
  color: #9c4a2f;
}

.pagination button.active,
.pagination button:hover {
  background: #9c4a2f;
  color: #fff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(46, 42, 38, 0.6);
  z-index: 1000;
}

.modal-content {
  background: #fffaf4;
  margin: 5% auto;
  padding: 26px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
}

.close {
  float: right;
  font-size: 26px;
  cursor: pointer;
  color: #6f675f;
}

.modal h2 {
  margin-bottom: 16px;
  color: #9c4a2f;
}

/* Footer */
footer {
  background: #2e2a26;
  color: #f6f1ea;
  text-align: center;
  padding: 22px 0;
}

footer a {
  color: #c96a4a;
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content,
  .filters .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .jobs-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }
}
