
:root {
  --ink: #0A1628;
  --ink-2: #2A3B4D;
  --muted: #5A6B7C;
  --muted-2: #8895A3;
  --line: rgba(10, 22, 40, 0.10);
  --line-strong: rgba(10, 22, 40, 0.18);
  --bg: #FFFFFF;
  --bg-soft: #F6F4EE;
  --accent: #0F6E56;
  --accent-soft: #E1F5EE;
  --accent-deep: #04342C;
  --tag-blue-bg: #E6F1FB;
  --tag-blue-ink: #042C53;
  --tag-amber-bg: #FAEEDA;
  --tag-amber-ink: #412402;
  --tag-purple-bg: #EEEDFE;
  --tag-purple-ink: #26215C;
  --tag-coral-bg: #FAECE7;
  --tag-coral-ink: #4A1B0C;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

.va-blog {
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.va-blog a { color: inherit; text-decoration: none; }
.va-blog img { display: block; max-width: 100%; height: auto; }

.va-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HERO ---------- */
.va-hero {
  padding: 160px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  text-align: left;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
}
.va-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://vitalisanalytics.com/wp-content/uploads/2026/06/blog_hero_workers_left_blank.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.va-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.45);
  z-index: 0;
}
.va-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
.va-hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00e5ff;
  margin: 0 0 14px;
}
.va-hero__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 800px;
  color: #ffffff;
  text-transform: uppercase;
}

/* ---------- FILTER BAR ---------- */
.va-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  flex-wrap: wrap;
}
.va-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.va-chip {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.va-chip:hover { background: var(--bg-soft); }
.va-chip--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.va-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  min-width: 240px;
  background: #fff;
}
.va-search input {
  border: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  width: 100%;
}
.va-search svg { color: var(--muted-2); flex-shrink: 0; }

/* ---------- FEATURED POST ---------- */
.va-featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.va-featured:hover { border-color: var(--line-strong); }
.va-featured__media {
  position: relative;
  min-height: 360px;
  background: #DDE6E2;
}
.va-featured__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.va-featured__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.95);
  color: var(--accent-deep);
}
.va-featured__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.va-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.va-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
}
.va-tag--project { background: var(--accent-soft); color: var(--accent-deep); }
.va-tag--quality { background: var(--tag-blue-bg); color: var(--tag-blue-ink); }
.va-tag--powerbi { background: var(--tag-amber-bg); color: var(--tag-amber-ink); }
.va-tag--controls { background: var(--tag-purple-bg); color: var(--tag-purple-ink); }
.va-tag--analytics { background: var(--tag-coral-bg); color: var(--tag-coral-ink); }
.va-readtime { font-size: 13px; color: var(--muted-2); }
.va-featured__title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.va-featured__excerpt {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}
.va-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.va-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.va-byline__name { font-size: 14px; font-weight: 500; }
.va-byline__date { font-size: 13px; color: var(--muted-2); }
.va-byline__dot { color: var(--muted-2); font-size: 13px; }

/* ---------- POST GRID ---------- */
.va-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}
.va-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.va-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}
.va-card__media {
  aspect-ratio: 16 / 9;
  background: #DDE6E2;
  overflow: hidden;
  position: relative;
}
.va-card__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.va-card:hover .va-card__media img { transform: scale(1.03); }
.va-card__body { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.va-card__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.va-card__excerpt {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 20px;
  flex: 1;
}
.va-card .va-byline { padding-top: 16px; }

/* ---------- PAGINATION ---------- */
.va-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 80px;
}
.va-pagination a.page-numbers,
.va-pagination span.page-numbers {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  text-decoration: none;
}
.va-pagination span.current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.va-pagination a.page-numbers:hover { background: var(--bg-soft); }

/* ---------- NEWSLETTER ---------- */
.va-newsletter {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 80px;
}
.va-newsletter__title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.va-newsletter__lede { font-size: 15px; color: rgba(255,255,255,0.7); margin: 0; }
.va-newsletter__form { display: flex; gap: 8px; }
.va-newsletter__form input {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.va-newsletter__form input::placeholder { color: rgba(255,255,255,0.5); }
.va-newsletter__form button {
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}
.va-newsletter__form button:hover { background: #0c5a47; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .va-hero__inner { display: flex; flex-direction: column; align-items: center; }
  .va-featured { grid-template-columns: 1fr; }
  .va-featured__media { min-height: 240px; aspect-ratio: 16 / 9; }
  .va-featured__body { padding: 28px; }
  .va-grid { grid-template-columns: 1fr; gap: 24px; }
  .va-newsletter { grid-template-columns: 1fr; padding: 32px; }
  .va-hero { padding: 80px 0 60px; }
  .va-search { min-width: 100%; }
}
