:root {
  --bg: #f3f7fb;
  --bg-strong: #dfeafb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #0f172a;
  --muted: #5b6472;
  --line: rgba(148, 163, 184, 0.24);
  --primary: #155eef;
  --primary-deep: #0b3fb3;
  --accent: #16a34a;
  --danger: #b42318;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 18px 48px rgba(59, 130, 246, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 88px;
  color: var(--ink);
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(21, 94, 239, 0.18), transparent 26%),
    radial-gradient(circle at right center, rgba(34, 197, 94, 0.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 45%, #edf2f8 100%);
}

a {
  text-decoration: none;
}

.site-navbar {
  background: rgba(10, 22, 42, 0.88) !important;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(9, 18, 36, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
}

.btn-login-shell {
  color: #fff;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(21, 94, 239, 0.95), rgba(59, 130, 246, 0.85));
  box-shadow: 0 12px 30px rgba(21, 94, 239, 0.28);
}

.btn-login-shell:hover {
  color: #fff;
  transform: translateY(-1px);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 2rem;
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.7;
}

.hero-shell::before {
  width: 320px;
  height: 320px;
  top: -80px;
  right: 7%;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.22), transparent 70%);
}

.hero-shell::after {
  width: 240px;
  height: 240px;
  left: 4%;
  bottom: -100px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.3rem, 4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 11ch;
}

.hero-copy p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--primary-deep);
  background: rgba(21, 94, 239, 0.08);
  border: 1px solid rgba(21, 94, 239, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stat-card,
.hero-panel-card,
.job-card,
.detail-card,
.empty-state-card {
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.hero-stat-card {
  min-width: 170px;
  padding: 1rem 1.15rem;
  border-radius: 22px;
}

.hero-stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-stat-card span {
  color: var(--muted);
}

.hero-panel {
  position: relative;
  min-height: 320px;
}

.hero-panel-glow {
  position: absolute;
  inset: 14% 8% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
}

.hero-panel-card {
  position: relative;
  padding: 1.75rem;
  border-radius: 28px;
  overflow: hidden;
}

.hero-panel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 55%);
  pointer-events: none;
}

.hero-panel-label {
  display: inline-block;
  margin-bottom: 0.95rem;
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-steps {
  padding-left: 1.15rem;
  margin: 0;
  display: grid;
  gap: 0.8rem;
  color: var(--ink);
}

.vacancies-section {
  padding: 1rem 0 4.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.7rem, 2.5vw, 2.7rem);
  letter-spacing: -0.03em;
}

.job-search-shell {
  min-width: min(100%, 420px);
}

.search-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.55rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(162, 190, 224, 0.55);
  box-shadow: var(--glow);
}

.search-highlight .input-group-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eaf2ff 0%, #dce8ff 100%);
  color: var(--primary);
  border: none;
}

.search-highlight .form-control {
  border: none;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 0.85rem 0.15rem;
}

.jobs-scroll {
  display: grid;
  gap: 1rem;
  max-height: 72vh;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.jobs-scroll::-webkit-scrollbar {
  width: 10px;
}

.jobs-scroll::-webkit-scrollbar-track {
  background: rgba(203, 213, 225, 0.45);
  border-radius: 999px;
}

.jobs-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(21, 94, 239, 0.56), rgba(11, 63, 179, 0.68));
  border-radius: 999px;
}

.job-card,
.detail-card,
.empty-state-card {
  border-radius: 28px;
}

.job-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.job-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(21, 94, 239, 0.85), rgba(34, 197, 94, 0.5));
}

.job-card:hover,
.job-card.is-selected {
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(15, 23, 42, 0.16);
  border-color: rgba(21, 94, 239, 0.22);
}

.job-card.is-selected {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92));
}

.job-card .card-body {
  padding: 1.35rem 1.4rem 1.25rem 1.55rem;
}

.job-card-topline,
.job-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.job-card-topline {
  margin-bottom: 1rem;
}

.job-card .card-title {
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.job-date,
.job-card-footer small,
.detail-label,
.detail-notice,
.documents-counter {
  color: var(--muted);
}

.job-meta-grid,
.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.job-meta-grid {
  margin-bottom: 0.9rem;
}

.job-meta-grid span,
.detail-meta-grid div {
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.8);
}

.job-card .card-text {
  min-height: 4.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.job-card-footer small {
  display: block;
  line-height: 1.5;
}

.job-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.job-chip-on {
  color: #087443;
  background: rgba(22, 163, 74, 0.12);
}

.job-chip-off {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.12);
}

.btn-view-more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.05rem;
  border: none;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  box-shadow: 0 14px 28px rgba(21, 94, 239, 0.24);
  overflow: hidden;
}

.btn-view-more span,
.btn-view-more svg {
  position: relative;
  z-index: 1;
}

.btn-view-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.3) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.btn-view-more:hover::before {
  transform: translateX(120%);
}

.btn-view-more:hover,
.btn-view-more:focus {
  color: #fff;
}

.btn-view-more:hover svg {
  transform: translateX(4px);
}

.btn-view-more svg {
  transition: transform 0.2s ease;
}

.detail-card {
  position: sticky;
  top: 108px;
  padding: 1.45rem;
}

.detail-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.detail-card-header h2 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.6rem, 2.1vw, 2.25rem);
  letter-spacing: -0.03em;
}

.detail-card-body {
  padding-top: 1.35rem;
}

.detail-meta-grid {
  margin-bottom: 1.2rem;
}

.detail-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-section {
  padding: 1rem 0;
  border-top: 1px solid rgba(203, 213, 225, 0.45);
}

.detail-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.detail-section h3 {
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.detail-section p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

#detailDescription {
  white-space: pre-line;
}

.detail-documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.documents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.document-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.08);
  color: var(--primary-deep);
  border: 1px solid rgba(21, 94, 239, 0.12);
  font-weight: 600;
}

.document-pill.muted {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.2);
}

.detail-cta-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 18px 32px rgba(34, 197, 94, 0.22);
}

.btn-apply:hover,
.btn-apply:focus {
  color: #fff;
}

.btn-apply.disabled,
.btn-apply[aria-disabled="true"] {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: none;
  pointer-events: none;
}

.detail-notice {
  margin: 0;
  min-height: 1.4rem;
}

.detail-notice.is-visible {
  opacity: 1;
}

.empty-state-card {
  padding: 2rem;
}

.empty-state-card.compact {
  padding: 1.6rem;
}

.empty-state-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.empty-state-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  background: #091224;
  color: rgba(255, 255, 255, 0.74);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link {
  color: #fff;
  font-weight: 700;
}

.footer-link:hover {
  color: #fff;
}

@media (max-width: 1199.98px) {
  .detail-card {
    position: static;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 76px;
  }

  .hero-grid,
  .section-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-header {
    align-items: stretch;
  }

  .jobs-scroll {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 767.98px) {
  .hero-shell {
    padding-top: 2.5rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .job-card-topline,
  .job-card-footer,
  .detail-card-header,
  .detail-documents-header,
  .detail-meta-grid,
  .job-meta-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .job-card-footer {
    gap: 0.9rem;
  }

  .btn-view-more,
  .btn-apply {
    width: 100%;
    justify-content: center;
  }
}