*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f9;
  color: #1a1a2e;
  min-height: 100vh;
}

header {
  background: #0049bedf;
  color: #fff;
  padding: 2.5rem 2rem;
  text-align: center;
}

header .brand {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.6rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

header .subtitle {
  margin-top: 0.4rem;
  font-size: 0.95rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.82rem;
  color: #9ca3af;
  border-top: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.site-footer strong {
  color: #6b7280;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

/* ── Card ── */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

/* ── Card top: avatar + heading ── */
.card-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #e8f0fe;
  color: #3b5bdb;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-heading {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.company {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 400;
}

.location {
  font-size: 0.78rem;
  color: #6b7280;
}

.location svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.location::before {
  content: "Location";
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ba3af;
  margin-bottom: 0.2rem;
}

/* ── Badges ── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.badge-paid    { background: #f0fdf4; color: #15803d; }
.badge-onsite  { background: #e8f0fe; color: #3b5bdb; }
.badge-hybrid  { background: #fef3c7; color: #b45309; }
.badge-remote  { background: #d1fae5; color: #065f46; }
.badge-college { background: #fdf2f8; color: #9333ea; }

/* ── Description ── */
.description {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.6;
}

/* ── Meta row ── */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.meta-item.pay      { color: #15803d; font-weight: 600; }
.meta-item.deadline { color: #b45309; font-weight: 600; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

/* ── Card footer ── */
.card-footer {
  display: flex;
  justify-content: flex-end;
}

.requirements {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
}

.requirements::before {
  content: "Requirements";
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ba3af;
  margin-bottom: 0.2rem;
}

.apply-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #1a1a2e;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.apply-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.apply-btn svg {
  width: 14px;
  height: 14px;
}
