:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eaf2ff;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;

  --ink: #0f172a;
  --muted: #475569;

  --line: #e5e7eb;
  --line-soft: #dbe4f0;

  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --pill-radius: 999px;

  --shadow-sm: 0 8px 24px rgba(15, 23, 42, .05);
  --shadow-md: 0 18px 40px rgba(15, 23, 42, .08);

  --section-space: 5rem;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

.text-muted {
  color: var(--muted) !important;
}

.section-title {
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.py-lg-6 {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
}

.top-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Generic UI */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pill,
.job-type-badge,
.back-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--pill-radius);
  line-height: 1;
}

.pill {
  padding: .45rem .8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.job-type-badge {
  padding: .48rem .88rem;
  background: var(--brand-soft);
  border: 1px solid rgba(37, 99, 235, .12);
  color: var(--brand);
  font-size: .85rem;
  font-weight: 600;
}

.badge-soft,
.text-bg-primary-subtle {
  background: var(--brand-soft);
  border: 1px solid rgba(37, 99, 235, .12);
  color: var(--brand);
}

.small-link {
  color: var(--muted);
  text-decoration: none;
}

.small-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Buttons */
.btn {
  border-radius: 14px;
}

.btn-lg {
  padding: .85rem 1.35rem;
}

.back-link-btn {
  padding: .65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: all .18s ease;
}

.back-link-btn:hover {
  background: var(--brand-soft);
  border-color: #cfe0ff;
  color: var(--brand);
  text-decoration: none;
}

/* Hero */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero-home {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(8, 18, 35, .64), rgba(8, 18, 35, .58)),
    url("/images/hero-bg.jpg") center center / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
}

.hero-overlay {
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0 92px;
}

.hero-home .container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.hero-home .section-title,
.hero-home .hero-copy,
.hero-home .text-muted {
  color: #fff !important;
}

.hero-home .section-title,
.hero-title {
  font-size: 3rem !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 1.25rem !important;
  text-align: center !important;
  color: #fff !important;
}

.hero-copy {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.75;
  text-align: center;
}

.hero-home .badge-soft {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-secondary-btn {
  border-color: rgba(255, 255, 255, .65) !important;
  color: #fff !important;
}

.hero-secondary-btn:hover {
  background: #fff !important;
  color: var(--brand) !important;
}

.hero-highlights {
  max-width: 980px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 2.25rem !important;
}

.hero-mini-card {
  height: 100%;
  min-height: 132px;
  padding: 1.05rem 1rem;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: none;
  text-align: center;
}

.hero-mini-title {
  margin-bottom: .35rem;
  color: #fff;
  font-weight: 700;
}

.hero-mini-text {
  color: rgba(255, 255, 255, .84);
  font-size: .96rem;
  line-height: 1.55;
}

/* Home sections */
.service-icon {
  font-size: 1.7rem;
  line-height: 1;
}

.metric-card {
  height: 100%;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.metric-title {
  margin-bottom: .35rem;
  color: var(--ink);
  font-weight: 700;
}

.metric-text {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

.home-cta-card {
  padding: 2.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Jobs list */
.jobs-hero {
  margin-bottom: 2rem;
}

.jobs-summary-card {
  height: 100%;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.jobs-grid .card {
  background: var(--surface);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.jobs-grid .card:hover {
  transform: translateY(-4px);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-md);
}

.job-meta {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.job-desc {
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.8;
}

.jobs-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.jobs-cta {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.jobs-cta .btn {
  min-width: 160px;
}

/* Job detail */
.job-desc h1,
.job-desc h2,
.job-desc h3,
.job-desc h4 {
  margin-top: 1.4rem;
  margin-bottom: .85rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

.job-desc h1:first-child,
.job-desc h2:first-child,
.job-desc h3:first-child,
.job-desc h4:first-child {
  margin-top: 0;
}

.job-desc p {
  margin-bottom: 1rem;
}

.job-desc ul,
.job-desc ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.job-desc li {
  margin-bottom: .55rem;
}

.job-desc strong {
  color: var(--ink);
}

/* Forms */
.apply-card {
  background: var(--surface);
}

.form-control,
.form-select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none !important;
}

.form-control-lg {
  min-height: 52px;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: #bfd3ff;
  box-shadow: 0 0 0 .18rem rgba(37, 99, 235, .08) !important;
}

.form-text {
  color: var(--muted);
  font-size: .88rem;
}

.border-top {
  border-top: 1px solid var(--line) !important;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

/* Tables */
.table td,
.table th {
  vertical-align: middle;
}

/* Admin */
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 56px);
}

.admin-nav {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 1rem;
}

.admin-nav a {
  display: block;
  margin-bottom: .3rem;
  padding: .65rem .8rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.admin-main {
  padding: 1.25rem;
}

/* Responsive */
@media (max-width: 991px) {
  .py-lg-6 {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .hero-home {
    min-height: auto;
    background-position: center center;
  }

  .hero-overlay {
    min-height: auto;
    padding: 48px 0 64px;
  }

  .hero-home .section-title,
  .hero-title {
    font-size: 2.15rem !important;
    line-height: 1.15 !important;
    max-width: 100% !important;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 1.04rem;
    line-height: 1.65;
  }

  .hero-mini-card {
    min-height: auto;
  }

  .home-cta-card {
    padding: 2rem 1.25rem;
  }

  .jobs-summary-card,
  .jobs-cta {
    padding: 1.25rem;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}
