/* SAIT-MODX.BY — Related Articles v1.0, article template 25 */
.smx-related {
  background: #f2f2f2;
  padding: 1rem 0 4rem;
}
.smx-related__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.smx-related__title { margin: 0; color: #1c2938; font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.25; font-weight: 750; }
.smx-related__all { color: #007ac9; font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.smx-related__all:hover { text-decoration: underline; }
.smx-related__list { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.smx-related__card { display: flex; flex-direction: column; flex: 1 1 calc((100% - 2.5rem) / 3); max-width: calc((100% - 2.5rem) / 3); min-width: 0; border: 1px solid #e1e7ed; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 8px 28px rgba(11,30,48,.045); transition: transform .2s ease, box-shadow .2s ease; }
.smx-related__card:hover { transform: translateY(-3px); box-shadow: 0 13px 32px rgba(11,30,48,.09); }
.smx-related__picture { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eaf6fd, #d5e8fb); overflow: hidden; }
.smx-related__picture img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.smx-related__card:hover .smx-related__picture img { transform: scale(1.035); }
.smx-related__body { display: flex; flex: 1; flex-direction: column; gap: .7rem; padding: 1.1rem 1.25rem 1.25rem; }
.smx-related__date { font-size: .875rem; color: #637284; }
.smx-related__name { margin: 0; font-size: 1.15rem; line-height: 1.42; font-weight: 700; }
.smx-related__name a { color: #1c2938; text-decoration: none; }
.smx-related__name a:hover { color: #007ac9; }
.smx-related__intro { color: #526477; font-size: .95rem; line-height: 1.55; margin: 0; }
.smx-related__more { color: #007ac9; font-size: 1rem; font-weight: 700; text-decoration: none; margin-top: auto; padding-top: .35rem; }
.smx-related__more:hover { text-decoration: underline; }
.smx-related a:focus-visible { outline: 2px solid #007ac9; outline-offset: 3px; }
@media (max-width: 991px) {
  .smx-related__card { flex-basis: calc((100% - 1.25rem) / 2); max-width: calc((100% - 1.25rem) / 2); }
}
@media (max-width: 767px) {
  .smx-related { padding: .5rem 0 2.5rem; }
  .smx-related__header { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .smx-related__card { flex-basis: 100%; max-width: 100%; }
  .smx-related__list { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .smx-related__card, .smx-related__picture img { transition: none; }
}