:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #3b82f6;
  --brand-2: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #16a34a;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
  --shadow-sm: 0 8px 20px rgba(2, 6, 23, 0.06);

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, #ffffff 0%, #f7f8fb 55%, #eef2f7 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: #2563eb;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 219, 209, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 162, 209, 0.06);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

header h2 {
  font-size: 20px;
  letter-spacing: 0.5px;
  font-weight: bold;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

nav a {
  color: rgb(0, 0, 0);
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
  font-size: larger;
  font-weight: 2000px;
}

nav a:hover {
  background: rgba(12, 226, 26, 0.06);
}

/* Sections */
section, main, .section {
  padding: var(--space-8) 0;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
  padding: var(--space-8) 0 var(--space-7);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero-text p {
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.buttons {
  display: flex;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px rgba(59,130,246,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(59,130,246,0.32);
}

.video-btn {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(2, 6, 23, 0.12);
}

.hero-img {
  position: relative;
}

.hero-img img {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  border-radius: 24px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 40px 80px rgba(2, 6, 23, 0.08);
  background: #ffffff;
}

/* Features */
.features { background: transparent; }

.features .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-box {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.feature-box h3 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.feature-box p { color: var(--muted); }

.icon, .button {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

/* Culture */
.culture { background: #ffffff; }
.culture .container { text-align: center; }
.culture h2 { margin-bottom: var(--space-5); }
.culture-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2);
}
.tag {
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  color: var(--muted);
  font-size: 14px;
}

/* Cards and lists */
.job-listings .container,
.testimonials .container,
.featured-employers .container,
.career-resources .container,
.newsletter .container { display: grid; gap: var(--space-5); }

.job-cards, .job-listings, .employer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.job-card, .testimonial-box, .culture-box, .employer-card {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: var(--shadow-sm);
}

.employer-card { text-align: center; }
.employer-card img {
  width: 80px; height: 80px; object-fit: contain; margin: 0 auto var(--space-3);
  filter: drop-shadow(0 8px 16px rgba(2, 6, 23, 0.12));
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

th { color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }
tr:hover td { background: rgba(2, 6, 23, 0.03); }

/* Forms */
form { display: grid; gap: var(--space-4); }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  padding: 12px 14px; border-radius: 10px; color: var(--text);
  background: #ffffff; border: 1px solid rgba(2, 6, 23, 0.12); outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}
button {
  padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(2, 6, 23, 0.1);
  background: linear-gradient(180deg, #e5e7eb 0%, #e2e8f0 100%);
  color: var(--text); cursor: pointer;
}
button:hover { filter: brightness(1.04); }

/* Footer */
footer {
  border-top: 1px solid rgba(2, 6, 23, 0.06);
  padding: var(--space-6) 0; text-align: center; color: var(--muted);
  background: #ffffff;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border-top: 1px solid rgba(2, 6, 23, 0.06);
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}
.newsletter-form { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.newsletter-form input { width: 280px; }
.newsletter-form button {
  background: linear-gradient(180deg, var(--brand-2) 0%, #0ea37a 100%);
  color: #06281f; font-weight: 700; border: none;
}

/* Testimonials */
.testimonials { background: #ffffff; }
.testimonial-container { text-align: center; color: var(--muted); }

/* Utilities */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.text-muted { color: var(--muted); }

/* Layout wrappers */
.hero > .container,
.features > .container,
.culture > .container,
.job-listings > .container,
.featured-employers > .container,
.career-resources > .container,
.testimonials > .container,
.newsletter > .container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Backward compatibility */
.hero-img { margin-top: var(--space-5); }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-img img { margin-inline: auto; }
  .features .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  header .container { padding: var(--space-3) 0; }
  nav { gap: var(--space-2); }
  .features .container { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.carousel-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(2,6,23,0.12);
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.carousel-btn:hover { filter: brightness(0.98); }

/* Polished cards */
.card-elevated {
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: var(--space-5);
}
.card-header { font-weight: 700; margin-bottom: var(--space-2); }
.card-sub { color: var(--muted); margin-bottom: var(--space-4); }
.card-actions { display: flex; gap: var(--space-2); }

/* Button variants */
.btn-secondary { background: linear-gradient(180deg, #a3bffa 0%, #7aa2f7 100%); color:#0b1220; }
.btn-outline { background:#fff; color: var(--text); border:1px solid rgba(2,6,23,0.15); }
.btn-success { background: linear-gradient(180deg, #34d399 0%, #10b981 100%); color:#06281f; }
.btn-danger { background: linear-gradient(180deg, #fda4af 0%, #ef4444 100%); color:#3b0a0a; }

/* Badges & Pills */
.badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; border:1px solid rgba(2,6,23,0.12); background:#f1f5f9; color:#0f172a; }
.badge.success { background:#dcfce7; color:#065f46; border-color:#bbf7d0; }
.badge.warning { background:#fef9c3; color:#854d0e; border-color:#fde68a; }
.badge.info { background:#dbeafe; color:#1e40af; border-color:#bfdbfe; }

/* Alerts */
.alert { padding:12px 14px; border-radius:12px; border:1px solid; background:#fff; }
.alert.success { border-color:#bbf7d0; color:#065f46; background:#ecfdf5; }
.alert.error { border-color:#fecaca; color:#7f1d1d; background:#fef2f2; }
.alert.warning { border-color:#fde68a; color:#854d0e; background:#fffbeb; }
.alert.info { border-color:#bfdbfe; color:#1e3a8a; background:#eff6ff; }

/* Job list cards */
.job-list { display:grid; gap: var(--space-4); }
.job-item { display:flex; align-items:center; justify-content:space-between; gap: var(--space-4); padding:16px; border-radius:14px; background:var(--surface); border:1px solid rgba(2,6,23,0.08); box-shadow: var(--shadow-sm); }
.job-item .meta { color: var(--muted); font-size:14px; }
.job-item .actions { display:flex; gap:10px; }

/* Table wrapper */
.table-wrap { overflow:auto; border-radius:12px; border:1px solid rgba(2,6,23,0.08); background:var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap table { border: none; box-shadow:none; }

/* Forms layout */
.form-row { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-4); }
.form-row .full { grid-column: 1 / -1; }
.section-title { font-size:20px; margin-bottom: var(--space-3); }

/* Pagination */
.pagination { display:flex; gap:10px; align-items:center; }
.pagination a, .pagination span { padding:8px 12px; border:1px solid rgba(2,6,23,0.12); border-radius:8px; background:#fff; color:var(--text); }
.pagination .active { background:#3b82f6; color:#fff; border-color:#3b82f6; }

/* Grid utilities */
.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-5); }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-5); }
.grid-4 { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-5); }

@media (max-width: 900px){ .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Nav current state (optional class) */
nav a.active { background: rgba(2,6,23,0.08); border:1px solid rgba(2,6,23,0.12); }

/* Login page scoped styles */
body.login-page {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
}
body.login-page .login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
body.login-page .card { background-color: #fff; color: #333; border-radius: 15px; padding: 30px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); max-width: 400px; width: 100%; }
body.login-page .form-control:focus { box-shadow: none; border-color: #0d6efd; }
body.login-page .btn-primary { background-color: #0d6efd; border: none; }
body.login-page .btn-primary:hover { background-color: #0056b3; }
body.login-page .social-login { display: flex; justify-content: center; gap: 15px; }
body.login-page .social-login button { border: 1px solid #ddd; background-color: #f8f9fa; color: #333; padding: 6px 10px; border-radius: 8px; }
body.login-page .logo { width: 50px; }
body.login-page .brand-text { font-size: 1.4rem; font-weight: 600; color: #0d6efd; }

/* CTA banner (green strip) */
.cta-banner { background-color: #206edb; color: rgb(0, 0, 0); padding: var(--space-6) 0; text-align: center; }
.cta-banner .btn { background-color: #2676d0; color: #4CAF50; }

/* Role badges */
.role-badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600; border:1px solid; }
.role-badge.seeker { background:#dbeafe; color:#1e40af; border-color:#bfdbfe; }
.role-badge.employer { background:#dcfce7; color:#065f46; border-color:#bbf7d0; }
.switch-role { font-size: 14px; color: var(--muted); }
.switch-role a { color: var(--brand); }
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #3b82f6;
  --brand-2: #10b981;
  --accent: #f59e0b;
  --danger: #ef4444;
  --success: #16a34a;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
  --shadow-sm: 0 8px 20px rgba(2, 6, 23, 0.06);

  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, #ffffff 0%, #f7f8fb 55%, #eef2f7 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: #2563eb;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 219, 209, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(43, 162, 209, 0.06);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

header h2 {
  font-size: 20px;
  letter-spacing: 0.5px;
  font-weight: bold;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

nav a {
  color: rgb(0, 0, 0);
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
  font-size: larger;
  font-weight: 2000px;
}

nav a:hover {
  background: rgba(12, 226, 26, 0.06);
}

/* Sections */
section, main, .section {
  padding: var(--space-8) 0;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
  padding: var(--space-8) 0 var(--space-7);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero-text p {
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.buttons {
  display: flex;
  gap: var(--space-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px rgba(59,130,246,0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(59,130,246,0.32);
}

.video-btn {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(2, 6, 23, 0.12);
}

.hero-img {
  position: relative;
}

.hero-img img {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  border-radius: 24px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  box-shadow: 0 40px 80px rgba(2, 6, 23, 0.08);
  background: #ffffff;
}

/* Features */
.features { background: transparent; }

.features .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.feature-box {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.feature-box h3 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.feature-box p { color: var(--muted); }

.icon, .button {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

/* Culture */
.culture { background: #ffffff; }
.culture .container { text-align: center; }
.culture h2 { margin-bottom: var(--space-5); }
.culture-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2);
}
.tag {
  background: #f1f5f9;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(2, 6, 23, 0.08);
  color: var(--muted);
  font-size: 14px;
}

/* Cards and lists */
.job-listings .container,
.testimonials .container,
.featured-employers .container,
.career-resources .container,
.newsletter .container { display: grid; gap: var(--space-5); }

.job-cards, .job-listings, .employer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.job-card, .testimonial-box, .culture-box, .employer-card {
  padding: var(--space-5);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: var(--shadow-sm);
}

.employer-card { text-align: center; }
.employer-card img {
  width: 80px; height: 80px; object-fit: contain; margin: 0 auto var(--space-3);
  filter: drop-shadow(0 8px 16px rgba(2, 6, 23, 0.12));
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

th { color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }
tr:hover td { background: rgba(2, 6, 23, 0.03); }

/* Forms */
form { display: grid; gap: var(--space-4); }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  padding: 12px 14px; border-radius: 10px; color: var(--text);
  background: #ffffff; border: 1px solid rgba(2, 6, 23, 0.12); outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
}
button {
  padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(2, 6, 23, 0.1);
  background: linear-gradient(180deg, #e5e7eb 0%, #e2e8f0 100%);
  color: var(--text); cursor: pointer;
}
button:hover { filter: brightness(1.04); }

/* Footer */
footer {
  border-top: 1px solid rgba(2, 6, 23, 0.06);
  padding: var(--space-6) 0; text-align: center; color: var(--muted);
  background: #ffffff;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border-top: 1px solid rgba(2, 6, 23, 0.06);
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}
.newsletter-form { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
.newsletter-form input { width: 280px; }
.newsletter-form button {
  background: linear-gradient(180deg, var(--brand-2) 0%, #0ea37a 100%);
  color: #06281f; font-weight: 700; border: none;
}

/* Testimonials */
.testimonials { background: #ffffff; }
.testimonial-container { text-align: center; color: var(--muted); }

/* Utilities */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }

.text-muted { color: var(--muted); }

/* Layout wrappers */
.hero > .container,
.features > .container,
.culture > .container,
.job-listings > .container,
.featured-employers > .container,
.career-resources > .container,
.testimonials > .container,
.newsletter > .container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Backward compatibility */
.hero-img { margin-top: var(--space-5); }

/* Responsive */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-img img { margin-inline: auto; }
  .features .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  header .container { padding: var(--space-3) 0; }
  nav { gap: var(--space-2); }
  .features .container { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
}
.carousel-track::-webkit-scrollbar { height: 8px; }
.carousel-track::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.carousel-btn {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(2,6,23,0.12);
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.carousel-btn:hover { filter: brightness(0.98); }

/* Polished cards */
.card-elevated {
  background: var(--surface);
  border: 1px solid rgba(2, 6, 23, 0.06);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: var(--space-5);
}
.card-header { font-weight: 700; margin-bottom: var(--space-2); }
.card-sub { color: var(--muted); margin-bottom: var(--space-4); }
.card-actions { display: flex; gap: var(--space-2); }

/* Button variants */
.btn-secondary { background: linear-gradient(180deg, #a3bffa 0%, #7aa2f7 100%); color:#0b1220; }
.btn-outline { background:#fff; color: var(--text); border:1px solid rgba(2,6,23,0.15); }
.btn-success { background: linear-gradient(180deg, #34d399 0%, #10b981 100%); color:#06281f; }
.btn-danger { background: linear-gradient(180deg, #fda4af 0%, #ef4444 100%); color:#3b0a0a; }

/* Badges & Pills */
.badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; border:1px solid rgba(2,6,23,0.12); background:#f1f5f9; color:#0f172a; }
.badge.success { background:#dcfce7; color:#065f46; border-color:#bbf7d0; }
.badge.warning { background:#fef9c3; color:#854d0e; border-color:#fde68a; }
.badge.info { background:#dbeafe; color:#1e40af; border-color:#bfdbfe; }

/* Alerts */
.alert { padding:12px 14px; border-radius:12px; border:1px solid; background:#fff; }
.alert.success { border-color:#bbf7d0; color:#065f46; background:#ecfdf5; }
.alert.error { border-color:#fecaca; color:#7f1d1d; background:#fef2f2; }
.alert.warning { border-color:#fde68a; color:#854d0e; background:#fffbeb; }
.alert.info { border-color:#bfdbfe; color:#1e3a8a; background:#eff6ff; }

/* Job list cards */
.job-list { display:grid; gap: var(--space-4); }
.job-item { display:flex; align-items:center; justify-content:space-between; gap: var(--space-4); padding:16px; border-radius:14px; background:var(--surface); border:1px solid rgba(2,6,23,0.08); box-shadow: var(--shadow-sm); }
.job-item .meta { color: var(--muted); font-size:14px; }
.job-item .actions { display:flex; gap:10px; }

/* Table wrapper */
.table-wrap { overflow:auto; border-radius:12px; border:1px solid rgba(2,6,23,0.08); background:var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap table { border: none; box-shadow:none; }

/* Forms layout */
.form-row { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-4); }
.form-row .full { grid-column: 1 / -1; }
.section-title { font-size:20px; margin-bottom: var(--space-3); }

/* Pagination */
.pagination { display:flex; gap:10px; align-items:center; }
.pagination a, .pagination span { padding:8px 12px; border:1px solid rgba(2,6,23,0.12); border-radius:8px; background:#fff; color:var(--text); }
.pagination .active { background:#3b82f6; color:#fff; border-color:#3b82f6; }

/* Grid utilities */
.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-5); }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-5); }
.grid-4 { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--space-5); }

@media (max-width: 900px){ .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Nav current state (optional class) */
nav a.active { background: rgba(2,6,23,0.08); border:1px solid rgba(2,6,23,0.12); }

/* Login page scoped styles */
body.login-page {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
}
body.login-page .login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
body.login-page .card { background-color: #fff; color: #333; border-radius: 15px; padding: 30px; box-shadow: 0 8px 20px rgba(0,0,0,0.15); max-width: 400px; width: 100%; }
body.login-page .form-control:focus { box-shadow: none; border-color: #0d6efd; }
body.login-page .btn-primary { background-color: #0d6efd; border: none; }
body.login-page .btn-primary:hover { background-color: #0056b3; }
body.login-page .social-login { display: flex; justify-content: center; gap: 15px; }
body.login-page .social-login button { border: 1px solid #ddd; background-color: #f8f9fa; color: #333; padding: 6px 10px; border-radius: 8px; }
body.login-page .logo { width: 50px; }
body.login-page .brand-text { font-size: 1.4rem; font-weight: 600; color: #0d6efd; }

/* CTA banner (green strip) */
.cta-banner { background-color: #206edb; color: rgb(0, 0, 0); padding: var(--space-6) 0; text-align: center; }
.cta-banner .btn { background-color: #2676d0; color: #4CAF50; }

/* Role badges */
.role-badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:600; border:1px solid; }
.role-badge.seeker { background:#dbeafe; color:#1e40af; border-color:#bfdbfe; }
.role-badge.employer { background:#dcfce7; color:#065f46; border-color:#bbf7d0; }
.switch-role { font-size: 14px; color: var(--muted); }
.switch-role a { color: var(--brand); }
