/* Minimal Apple-like clean styles for Meta Careers (demo) */
:root {
  --bg: #ffffff;
  --muted: #666;
  --accent: #0071e3;
  --max-width: 1100px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: #111;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid #eee;
}
.logo {
  font-weight: 700;
  font-size: 20px;
}
.logo a {
  text-decoration: none;
  color: #111;
}
.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.nav a:hover {
  color: var(--accent);
}

/* Careers Main */
.careers-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

/* Search Section */
.search-section {
  text-align: center;
  margin-bottom: 40px;
}
.search-container h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}
.search-container p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 24px;
}
.search-bar input {
  width: 100%;
  max-width: 600px;
  padding: 14px 20px;
  border: 1px solid #ddd;
  border-radius: 30px;
  font-size: 16px;
}
.search-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.search-controls button,
.search-controls label {
  font-size: 14px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}
.search-controls select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Filters Section */
.filters-section {
  margin-bottom: 40px;
}
.filters-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.filter-group h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111;
}
.filter-group ul {
  list-style: none;
}
.filter-group li {
  margin-bottom: 8px;
}
.filter-group a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}
.filter-group a:hover {
  color: var(--accent);
}

/* Jobs Section */
.jobs-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.job-card {
  background: #f9f9f9;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.job-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.job-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.tags li {
  background: #e9e9e9;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
}
.pagination {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* CTA */
.cta {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 30px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.cta:hover {
  background: #005bb5;
}
.cta.small {
  padding: 8px 16px;
  font-size: 14px;
}

/* Footer — Apple-like multi-column layout */
.site-footer {
  background: #fafafa;
  color: var(--muted);
  padding: 40px 20px 20px;
  border-top: 1px solid #e9e9e9;
  font-size: 14px;
  line-height: 1.6;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Make more columns on large screens */
@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Column styling */
.footer-col {
  min-width: 0;
}

.footer-heading {
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  font-size: 13px;
}

.footer-link:hover,
.footer-link:focus {
  text-decoration: underline;
  color: #000;
}

/* compact lists */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* extra paragraph */
.footer-extra {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* bottom legal row */
.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 14px;
  padding-bottom: 28px;
  margin-top: 8px;
  background: transparent;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.footer-bottom .country {
  font-weight: 600;
  color: #111;
  font-size: 13px;
}

.footer-bottom .legal {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  width: 100%;
  justify-content: center;
}

.footer-bottom .sep {
  color: var(--muted);
  margin: 0 6px;
}

.footer-bottom p {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col li {
    white-space: normal;
  }
  .search-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .site-header {
    padding: 12px 16px;
  }
  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
  .footer-bottom .legal {
    justify-content: center;
  }
  .careers-main {
    padding: 20px 10px;
  }
  .search-container h1 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 12px 16px;
  }
  .nav a {
    margin-left: 12px;
  }
  .filters-container {
    grid-template-columns: 1fr;
  }
}

/* Smooth transitions and dynamic feel */
* {
  transition: all 0.3s ease;
}
.job-card,
.filter-group a,
.cta {
  cursor: pointer;
}
