.related-pages {
  box-sizing: border-box;
  margin: 0;
  padding: 56px 20px 72px;
  scroll-margin-top: 24px;
  background: #ffffff;
  color: #1a1a1a;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  text-align: start;
}

.related-pages *,
.related-pages *::before,
.related-pages *::after {
  box-sizing: border-box;
}

html[lang="en"] .related-pages {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

.related-pages-inner {
  width: min(860px, 100%);
  margin: 0 auto;
}

.related-pages h2 {
  margin: 0 0 18px;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-pages a.related-card {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20, 16, 18, 0.06);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.related-pages a.related-card:hover {
  color: inherit;
  box-shadow: 0 14px 34px rgba(20, 16, 18, 0.1);
  transform: translateY(-1px);
}

.related-pages a.related-card:focus-visible {
  outline: 2px solid #e1001d;
  outline-offset: 3px;
}

.related-card-media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 156px;
  max-width: none;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: #e7e2de;
  transition: transform 0.45s ease;
}

.related-pages a.related-card:hover .related-card-media {
  transform: scale(1.04);
}

.related-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 22px;
}

.related-kicker {
  color: #e1001d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.related-title {
  margin: 0;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.related-more {
  align-self: flex-end;
  margin-top: 4px;
  color: #e1001d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .related-pages {
    padding: 40px 16px 56px;
  }

  .related-pages h2 {
    font-size: 24px;
  }

  .related-pages a.related-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .related-card-media {
    min-height: 118px;
  }

  .related-card-body {
    gap: 6px;
    padding: 12px 14px;
  }

  .related-kicker {
    font-size: 13px;
  }

  .related-title {
    font-size: 16px;
  }

  .related-more {
    font-size: 14px;
  }
}
