/* Blog discovery: archive pagination + related posts.
   Loaded only on the WordPress blog, matching the theme's card language
   (white cards, 1px slate border, blue #2563eb accent, 20-24px radius). */

.aws-related {
  margin: 34px 0 10px;
}

.aws-related__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.aws-related__heading {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.aws-related__sub {
  margin: 6px 0 0;
  font-size: 0.95rem;
  color: #64748b;
}

.aws-related__all {
  font-size: 0.92rem;
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
}

.aws-related__all:hover {
  text-decoration: underline;
}

.aws-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.aws-related__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.aws-related__card:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

.aws-related__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px;
  text-decoration: none;
  color: inherit;
}

.aws-related__link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 20px;
}

.aws-related__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: #0f172a;
  transition: color 0.18s ease;
}

.aws-related__card:hover .aws-related__title {
  color: #2563eb;
}

.aws-related__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 10px 0 16px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #475569;
}

.aws-related__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #64748b;
}

/* Archive pagination */

.aws-pagination {
  display: flex;
  justify-content: center;
  margin: 34px 0 10px;
}

.aws-pagination__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aws-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.aws-pagination .page-numbers:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.aws-pagination .page-numbers.is-current {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.aws-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

@media (max-width: 1100px) {
  .aws-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .aws-related__grid {
    grid-template-columns: 1fr;
  }

  .aws-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
  }
}
