:root {
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-foreground: #ffffff;
  --nav-bg: #0f172a;
  --nav-text: #94a3b8;
  --nav-text-active: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --accent-left: #2563eb;
  --radius: 0.5rem;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Black Navbar */
header {
  background-color: var(--nav-bg);
  border-bottom: 1px solid #1e293b;
}

.header-container {
  max-width: 76rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-box {
  border-radius: 0.375rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.05em;
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.925rem;
}

nav.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav.nav-links a:hover, nav.nav-links a.active {
  color: var(--nav-text-active);
  font-weight: 600;
}

main {
  flex: 1;
}

.page-container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
}

/* Distinct Job Card Styles - 3 per row on desktop */
.jobs-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .jobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .jobs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.job-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-left);
  background-color: var(--card);
  padding: 1.35rem;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.12);
  border-color: #cbd5e1;
  border-left-color: var(--primary);
}

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

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.35;
}

.card-meta {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.salary-pill {
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: #dcfce7;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.view-details {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.job-card:hover .view-details {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Detail Page Header & Premium Apply Button */
.detail-container {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.breadcrumb-nav {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.breadcrumb-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--foreground);
}

.detail-header-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1.25;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .detail-title {
    font-size: 2.25rem;
  }
}

.detail-meta-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.apply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.prose {
  margin-top: 2rem;
  color: #334155;
  line-height: 1.7;
  font-size: 1.025rem;
}

.prose h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: var(--foreground);
}

.prose h3 {
  font-size: 1.225rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--foreground);
}

.prose p {
  margin-bottom: 1.15rem;
}

.prose ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.apply-box {
  margin-top: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Dark Footer */
footer {
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
  background-color: #0f172a;
}

.footer-container {
  max-width: 76rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-heading {
  font-weight: 700;
  color: #ffffff;
  font-size: 1rem;
}

.footer-ul {
  margin-top: 0.6rem;
  list-style: none;
}

.footer-ul li {
  margin-bottom: 0.35rem;
}

.footer-ul a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: #64748b;
}
