/* =====================================================================
   GINEERS — level2.css  (Main section page: sub-section pictures + links)
   Loaded after common.css
   ===================================================================== */

.level2-head { margin: 12px 0 36px; }

/* ---------- Sub-section cards: 3 per row, next row starts automatically ---------- */
.sub-grid {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* a last, incomplete row is centred */
  gap: 32px;
}
.sub-card { flex: 0 1 calc((100% - 64px) / 3); }
.sub-card a {
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.sub-card a:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  color: var(--text);
}
.sub-card-img {
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  height: 260px;             /* same picture height on every card */
  padding: 22px;
  border-bottom: 5px solid var(--blue-light);
}
.sub-card-img img { width: 100%; height: 100%; object-fit: contain; }
.sub-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.sub-card-title {
  font-family: var(--font-heading);
  font-size: 1.45rem; font-weight: 700;
  color: var(--blue-dark);
}
.sub-card-text { font-size: 1.05rem; color: var(--text-soft); flex: 1; }
.sub-card-more { font-weight: 700; color: var(--blue-dark); margin-top: 6px; }
.sub-card a:hover .sub-card-more { color: var(--red); }

@media (max-width: 1000px) { .sub-card { flex-basis: calc((100% - 32px) / 2); } }
@media (max-width: 620px)  { .sub-card { flex-basis: 100%; } .sub-grid { gap: 24px; } }

/* ---------- Optional info box (e.g. demo account on Software page) ---------- */
.info-box {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--blue-tint);
  border-left: 8px solid var(--blue-dark);
  border-radius: var(--radius);
  font-size: 1.1rem;
}
.info-box h2 { font-size: 1.5rem; }
