/* ============================================================
   Archive hub styles — Tests, Case Studies
   ============================================================ */

/* ── Tests Featured ── */
.tests-featured {
  background: #1F2A3D;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.tests-featured__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.tests-featured__glow--tr {
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(36,106,180,0.3), transparent 70%);
}
.tests-featured__glow--bl {
  bottom: -80px; left: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(137,190,64,0.15), transparent 70%);
}

.tests-featured__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.tests-featured__title {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
}

.tests-featured__note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 360px;
  line-height: 1.5;
}

.tests-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.tests-featured__card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 32px 28px;
  text-decoration: none;
  color: #fff;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.tests-featured__card:hover {
  border-color: var(--feat-color);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--feat-color) 20%, transparent);
  text-decoration: none;
}

.tests-featured__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.tests-featured__card-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: -0.01em;
}

.tests-featured__card-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 18px;
  flex: 1;
}

.tests-featured__card-cta {
  color: var(--feat-color);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Tests Browse (grouped list + sticky sidebar) ── */
.tests-browse {
  background: #fff;
  padding: 80px 0;
  border-top: 1px solid #EAEAE7;
}

.tests-browse__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}

.tests-browse__sidebar {
  position: sticky;
  top: 88px;
}

.tests-browse__sidebar-photo {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 28px;
}

.tests-browse__sidebar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 0;
}

.tests-browse__sidebar-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--apoh-blue);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tests-browse__sidebar-title {
  font-size: 30px;
  font-weight: 900;
  color: #1F2A3D;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.1;
}

.tests-browse__sidebar-lead {
  font-size: 14px;
  line-height: 1.7;
  color: #585961;
  margin: 0;
}

/* Group sections */
.tests-browse__group--border {
  padding-top: 36px;
  margin-top: 36px;
  border-top: 1px solid #EAEAE7;
}

.tests-browse__group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.tests-browse__group-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.tests-browse__group-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Test rows */
.tests-browse__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #F0F0EE;
  text-decoration: none;
  transition: all 0.12s;
}
.tests-browse__row:hover { text-decoration: none; }

.tests-browse__row-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #1F2A3D;
  line-height: 1.3;
  transition: color 0.12s;
}
.tests-browse__row:hover .tests-browse__row-name {
  color: var(--row-accent);
}

.tests-browse__row-meta {
  font-size: 10px;
  color: #6E7079;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tests-browse__row-arrow {
  font-size: 13px;
  color: var(--row-accent);
  font-weight: 800;
  opacity: 0.45;
  transition: opacity 0.12s;
}
.tests-browse__row:hover .tests-browse__row-arrow { opacity: 1; }

@media (max-width: 768px) {
  .tests-featured__grid { grid-template-columns: 1fr; }
  .tests-featured__title { font-size: 28px; }
  .tests-browse__grid { grid-template-columns: 1fr; gap: 40px; }
  .tests-browse__sidebar { position: static; }
  .tests-browse__sidebar-photo { max-width: 240px; }
}

/* ── Case Studies Filter Bar ── */
.cs-hub__filter-bar {
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 18px 0;
}

.cs-hub__filter-bar .apoh-container {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cs-hub__filter-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--fg-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cs-hub__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-hub__chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-1);
  background: #fff;
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  transition: all 0.15s;
}
.cs-hub__chip:hover { border-color: var(--apoh-blue); color: var(--apoh-blue); }
.cs-hub__chip--active { background: var(--apoh-blue); color: #fff; border-color: var(--apoh-blue); }
.cs-hub__chip--active:hover { color: #fff; }

/* ── Case Studies Hub Grid ── */
.cs-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.cs-hub__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-base);
  box-shadow: 0 1px 3px rgba(31, 42, 61, 0.04), 0 4px 16px rgba(31, 42, 61, 0.06);
}

.cs-hub__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(31, 42, 61, 0.12);
  text-decoration: none;
}

.cs-hub__card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.cs-hub__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-hub__card-tags {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cs-hub__card-tag {
  padding: 5px 12px;
  background: rgba(31, 42, 61, 0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-hub__card-body { padding: 24px 28px; }

.cs-hub__card-title {
  font-size: 22px;
  font-weight: 900;
  color: #1F2A3D;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cs-hub__card-summary {
  font-size: 14px;
  line-height: 1.6;
  color: #585961;
  margin: 0 0 14px;
}

.cs-hub__card-meta {
  font-size: 12px;
  color: #9A9CA3;
  font-weight: 600;
}

@media (max-width: 768px) {
  .tests-featured__grid { grid-template-columns: 1fr; }
  .tests-featured__title { font-size: 28px; }
  .cs-hub__grid { grid-template-columns: 1fr; }
}
