:root {
  --navy: #061a3d;
  --blue: #0849c8;
  --electric: #0077ff;
  --cyan: #12c8ff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --soft: #f4f7fb;
  --white: #ffffff;
  --danger: #b42318;
  --success: #027a48;
  --shadow: 0 24px 70px rgba(6, 26, 61, .13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--soft);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand img { width: 150px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--navy);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 22px;
}

.inline-form { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--electric)); color: white; box-shadow: 0 14px 28px rgba(0, 119, 255, .23); }
.btn-secondary { background: var(--navy); color: white; }
.btn-light { background: #eef4ff; color: var(--navy); border-color: #d8e6ff; }
.btn-outline { background: white; color: var(--blue); border-color: #bfd6ff; }
.btn-danger { background: #fff1f1; color: var(--danger); border-color: #ffd5d2; }
.btn.full { width: 100%; }

.flash {
  margin: 16px auto 0;
  max-width: 1180px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
}

.flash-success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.flash-error { background: #fff1f3; color: var(--danger); border: 1px solid #fecdd3; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 34px;
  min-height: 620px;
  padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 64px);
  align-items: center;
  color: white;
  background:
    linear-gradient(115deg, rgba(6, 26, 61, .97), rgba(8, 73, 200, .86)),
    var(--navy);
}

.hero-content { max-width: 850px; }
.eyebrow {
  display: inline-flex;
  color: var(--electric);
  background: rgba(0, 119, 255, .09);
  border: 1px solid rgba(0, 119, 255, .18);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 900;
}

.hero .eyebrow { color: var(--cyan); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  max-width: 920px;
  margin: 20px 0;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  font-weight: 900;
}

.hero p, .page-hero p {
  max-width: 720px;
  font-size: 1.13rem;
  line-height: 1.8;
  color: rgba(255,255,255,.82);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  border-radius: 8px;
}

.metric {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
}

.metric strong { display: block; font-size: 2.5rem; }
.metric span { color: rgba(255,255,255,.82); font-weight: 700; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 82px) 18px;
}

.section.narrow { max-width: 880px; }

.intro-grid, .detail-layout {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 32px;
  align-items: start;
}

.section h2, .page-hero h1, .dashboard-main h1 {
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  margin: 14px 0 16px;
}

.section p { color: var(--muted); line-height: 1.75; }

.service-list, .domain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-list span, .domain-grid a {
  padding: 12px 14px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--navy);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.domain-grid a:hover { border-color: var(--electric); color: var(--blue); }
.section-heading { margin-bottom: 26px; }
.row-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.job-card, .side-panel, .auth-card, .panel-form, .rich-block, .admin-item, .notification-list article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}

.job-card { padding: 22px; display: grid; gap: 14px; }
.job-card-top, .job-meta, .job-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.job-card-top span, .status { padding: 6px 9px; border-radius: 8px; background: #eaf3ff; color: var(--blue); font-weight: 900; font-size: .82rem; }
.job-card h3 { color: var(--navy); margin: 0; font-size: 1.25rem; }
.job-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.job-meta { color: var(--muted); font-size: .92rem; font-weight: 700; }

.page-hero {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 64px);
  background: linear-gradient(135deg, var(--navy), #073a91 70%, var(--electric));
  color: white;
}

.page-hero.compact { min-height: 260px; display: grid; align-content: center; }
.page-hero h1 { color: white; max-width: 950px; }

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: white;
}

textarea { resize: vertical; }
label { display: grid; gap: 7px; color: var(--navy); font-weight: 800; }

.auth-shell {
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 42px 18px;
  background: linear-gradient(135deg, #f7fbff, #e8f2ff);
}

.auth-card, .panel-form { width: min(860px, 100%); padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.auth-card h1 { margin: 0 0 8px; color: var(--navy); }

.two-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.three-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack-form { display: grid; gap: 12px; }
.checkline { display: flex; align-items: center; gap: 10px; }
.checkline input { width: auto; min-height: auto; }

.detail-content { display: grid; gap: 16px; }
.rich-block { padding: 24px; }
.rich-block h2 { margin: 0 0 12px; font-size: 1.35rem; color: var(--navy); }
.rich-block p { margin: 0; color: var(--muted); line-height: 1.75; }

.side-panel { padding: 24px; position: sticky; top: 98px; }
.side-panel h2 { margin: 0 0 16px; color: var(--navy); }
dl { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 20px; }
dt { color: var(--muted); font-weight: 700; }
dd { margin: -8px 0 8px; font-weight: 900; color: var(--navy); }

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 18px 70px;
}

.dashboard-nav {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-nav a {
  padding: 12px 13px;
  border-radius: 8px;
  font-weight: 800;
  color: var(--navy);
}

.dashboard-nav a:hover, .admin-nav a:hover { background: #eef4ff; color: var(--blue); }

.dashboard-main { min-width: 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.stats-grid div, .profile-grid div {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats-grid strong { display: block; color: var(--blue); font-size: 2.2rem; }
.stats-grid span, .profile-grid span { color: var(--muted); font-weight: 700; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.profile-grid strong { display: block; color: var(--navy); margin-bottom: 6px; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--navy); background: #f8fbff; font-size: .88rem; text-transform: uppercase; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-actions form { margin: 0; }

.notification-list, .admin-list { display: grid; gap: 14px; }
.notification-list article, .admin-item { padding: 18px; }
.notification-list .unread { border-color: var(--electric); }
.admin-item { display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; gap: 18px; align-items: center; }
.application-form { display: grid; grid-template-columns: 190px 1fr auto; gap: 10px; }
.empty-state { padding: 22px; background: white; border: 1px dashed var(--line); border-radius: 8px; }

.footer {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
  padding: 36px clamp(18px, 4vw, 56px);
  color: rgba(255,255,255,.82);
  background: var(--navy);
}

.footer img { width: 150px; filter: brightness(1.18); margin-bottom: 12px; }
.footer div { display: grid; gap: 8px; align-content: start; }
.footer strong { color: white; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 76px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .hero, .intro-grid, .detail-layout, .dashboard-shell, .footer, .admin-item { grid-template-columns: 1fr; }
  .side-panel, .dashboard-nav { position: static; }
  .filters { grid-template-columns: 1fr 1fr; }
  .application-form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand img { width: 118px; }
  .site-header { padding: 12px 16px; }
  .hero { min-height: auto; padding-top: 48px; }
  .hero h1 { font-size: 2.45rem; }
  .hero-actions, .job-actions, .quick-actions { flex-direction: column; align-items: stretch; }
  .two-cols, .three-cols, .filters { grid-template-columns: 1fr; }
  .dashboard-shell { padding-inline: 12px; }
  .auth-shell { min-height: auto; }
  .footer { padding-bottom: 28px; }
}
