:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ========================= Header ========================= */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.9rem 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.tagline {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.post-job-btn {
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.post-job-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3);
}

/* ========================= Layout ========================= */

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  min-height: calc(100vh - 160px);
}

/* ========================= Intro / Hero ========================= */

.intro {
  max-width: 1000px;
  margin: 1.75rem auto 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ========================= Filters ========================= */

.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}

.filters select {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
}

/* ========================= Job List ========================= */

.jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.job-link {
  text-decoration: none;
  color: inherit;
}

.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.15s ease,
    border-left-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.job-link:hover .job-card {
  border-left-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.job-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.company {
  font-size: 0.95rem;
  font-weight: 600;
}

.meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Badges */

.badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: #eef2ff;
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
}

.featured-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
}

.job-card.featured {
  border-left-color: var(--accent);
  background: linear-gradient(to right, #f8faff, #ffffff);
}

/* ========================= Footer ========================= */

footer {
  margin-top: 3rem;
  background: var(--card);
  border-top: 1px solid var(--border);
}

footer nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ========================= Logo ========================= */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 125px;
  width: auto;
  display: block;
}

/* Header-only logo override */
.header-logo img {
  height: 64px;
}

@media (max-width: 640px) {
  .logo img {
    height: 40px;
  }

  .header-logo img {
    height: 32px;
  }
}
