/* Adapted from: https://github.com/hsma-programme/decision_intelligence_atlas/blob/main/index.qmd */

.value-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.5rem;
  border-radius: 10px;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
  text-decoration: none;
  background-color: #0a4568;
}

.value-box.pale {
  background-color: #3484ac;
}

.value-box:hover {
  transform: translateY(-4px);
}

.value-box .icon {
  font-size: 4.5rem;
  line-height: 1rem;
  padding-left: 1rem;
  margin-right: 2rem;
}

.value-box .text {
  margin-top: -1rem;
}

.value-box .title {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0.2rem 0;
}

.value-box.small-title .title {
  font-size: 1.3rem;
}

.value-box .details {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.3;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* Collapse to a single column on small screens */
@media (max-width: 600px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

/* Small inline buttons for framework / intro links */
.inline-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: #e0f0ff;
  color: #000;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #b3d4ff;
  margin: 0.1rem 0.25rem 0.1rem 0;
  white-space: nowrap;
}

.inline-btn:hover,
.inline-btn:focus {
  background-color: #c9e3ff;
  text-decoration: none;
}

.inline-btn .inline-btn-icon {
  margin-right: 0.3rem;
  font-size: 0.8rem;
  opacity: 0.9;
}
