:root {
  --navy: #102a43;
  --blue: #1f6feb;
  --teal: #0f766e;
  --gold: #f4b942;
  --green: #2f855a;
  --ink: #172033;
  --muted: #5d6b82;
  --line: #d9e2ec;
  --paper: #ffffff;
  --mist: #f5f8fb;
  --shadow: 0 16px 36px rgba(15, 32, 55, 0.12);
  --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--mist); color: var(--ink); font-family: 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.55; }
a { color: var(--blue); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
header {
  min-height: 340px;
  background: linear-gradient(90deg, rgba(10,28,47,0.88), rgba(10,48,78,0.5)),
              url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}
.hero-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 42px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: #ffe8a3; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow::before { width: 38px; height: 3px; background: var(--gold); content: ""; }
header h1 { font-size: clamp(42px, 7vw, 64px); line-height: 0.98; }
header p { max-width: 760px; margin-top: 18px; font-size: clamp(16px, 2vw, 20px); color: #e8f2ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-actions button, .primary-action {
  min-height: 44px; padding: 12px 18px; border: 0; border-radius: var(--radius);
  background: var(--gold); color: #1e293b; cursor: pointer; font-weight: 800;
}
.hero-actions button.secondary { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.55); color: #fff; }
nav {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px; padding: 12px; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 22px rgba(0,0,0,0.05);
}
nav button {
  min-height: 40px; padding: 10px 14px; border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--navy); cursor: pointer; font-weight: 800;
}
nav button:hover, nav button.active-tab { border-color: #c7d8ef; background: #eaf3ff; color: #0b56c5; }
.container { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 30px 0 42px; }
.section { display: none; }
.section.active { display: block; }
.section-hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 26px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 24px; overflow: hidden;
}
.section-copy { padding: clamp(22px, 4vw, 38px); }
.section-copy h2 { color: var(--navy); font-size: clamp(28px, 4vw, 44px); line-height: 1.06; }
.section-copy p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.section-hero img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-bottom: 24px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08); cursor: pointer; transition: transform 0.2s;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { width: 100%; height: 160px; object-fit: cover; }
.card-body { padding: 18px; }
.card h3 { color: var(--navy); margin-bottom: 8px; font-size: 19px; }
.card p { color: var(--muted); font-size: 15px; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.list-item {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--blue);
  border-radius: var(--radius); padding: 18px; box-shadow: 0 8px 22px rgba(0,0,0,0.07);
  transition: all 0.15s ease;
}
.list-item:hover { border-left-color: var(--gold); }
.list-item h3 { color: var(--navy); font-size: 19px; margin-bottom: 8px; }
.list-item p { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px;
  border: 1px solid #cfe0f5; border-radius: var(--radius); background: #f2f7ff; font-size: 14px;
}
.skill-match-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  margin: 15px 0;
}
.skill-match-table th, .skill-match-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}
.skill-match-table th {
  background: var(--navy);
  color: white;
}
input, select, textarea { width: 100%; margin-bottom: 18px; padding: 12px; border: 1px solid #c9d5e3; border-radius: var(--radius); font-size: 15px; }
label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; color: var(--navy); text-transform: uppercase; }
.car-search-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); margin-bottom: 24px;
}
.car-search-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.car-search-head h3 { font-size: 26px; color: var(--navy); }
.search-tabs { display: inline-flex; border: 1px solid #cfe0f5; border-radius: var(--radius); background: #f2f7ff; }
.search-tab { padding: 10px 14px; background: transparent; font-weight: 800; cursor: pointer; border: none; }
.search-tab.active-search { background: var(--blue); color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; align-items: end; }
.form-actions { display: flex; gap: 10px; }
.ghost-action { padding: 12px 16px; border: 1px solid #c9d5e3; border-radius: var(--radius); background: #fff; font-weight: 800; cursor: pointer; }
.result-summary { margin-top: 18px; padding: 12px; background: #f7fbff; border-radius: var(--radius); font-weight: 700; color: var(--muted); }
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.car-result { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.car-result h4 { font-size: 19px; margin-bottom: 8px; }
.car-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.badge { padding: 4px 8px; border-radius: 999px; background: #eef6ff; color: #0b56c5; font-size: 12px; font-weight: 800; }
.price-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid #edf2f7; font-size: 14px; }
.price-row strong { color: var(--ink); }
.updates-panel { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.updates-list { display: grid; gap: 10px; padding: clamp(20px, 4vw, 32px); list-style: none; }
.updates-list li { padding: 13px 14px; background: #f7fbff; border-left: 5px solid var(--blue); border-radius: var(--radius); font-weight: 700; }
.contact-strip { padding: 20px; background: #102a43; color: #e8f2ff; font-weight: 700; }
.patriot-note { padding: 16px; background: #fff8e1; text-align: center; font-size: 18px; font-weight: 900; }
.quick-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0 26px; }
.stat { padding: 16px; background: #102a43; border-radius: var(--radius); color: #fff; }
.stat strong { display: block; color: #ffe8a3; font-size: 24px; }
.job-highlight {
  background: #eef2fa;
  border-left: 4px solid var(--gold);
  padding: 15px;
  margin: 15px 0;
  border-radius: var(--radius);
}
footer { padding: 22px; background: var(--navy); color: #dce8f7; text-align: center; margin-top: 30px; }
footer p { max-width: 980px; margin: 8px auto 0; font-size: 14px; }
.ad-slot { width: min(1180px, calc(100% - 32px)); margin: 22px auto; padding: 12px; background: #fff; border: 1px dashed #b8c7d9; text-align: center; color: var(--muted); }
.ad-slot::before { content: "Advertisement"; display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.scheme-group {
  margin-bottom: 2.2rem;
}
.group-heading {
  font-size: 26px;
  margin: 32px 0 18px 0;
  color: var(--navy);
  border-left: 6px solid var(--gold);
  padding-left: 18px;
  background: linear-gradient(90deg, #f8fafc, transparent);
  border-radius: 0 12px 12px 0;
}
@media (max-width: 780px) {
  .section-hero { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .car-search-head { flex-direction: column; }
  nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  nav button { white-space: nowrap; }
  .content-grid { grid-template-columns: 1fr; }
}