.srr-related-rankings,
.srr-related-rankings * {
  box-sizing: border-box;
}

.srr-related-rankings {
  width: 100%;
  max-width: 1120px;
  margin: 28px auto;
  padding: 20px;
  border: 1px solid #dbe5f3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: #0f172a;
  clear: both;
  font-family: inherit;
}

.srr-related-rankings .srr-related-head {
  margin: 0 0 14px;
}

.srr-related-rankings .srr-related-head h2 {
  margin: 0 0 6px;
  color: #0b1220;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.srr-related-rankings .srr-related-head p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.55;
}

.srr-related-rankings .srr-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.srr-related-rankings.srr-layout-compact .srr-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.srr-related-rankings .srr-related-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #dbe5f3;
  border-radius: 16px;
  background: #eff6ff;
}

.srr-related-rankings .srr-related-card:nth-child(2n) {
  background: #ecfdf5;
}

.srr-related-rankings .srr-related-card:nth-child(3n) {
  background: #fff7ed;
}

.srr-related-rankings .srr-related-category {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 4px 9px;
  border: 1px solid #c7d7f2;
  border-radius: 999px;
  background: #ffffff;
  color: #2563eb;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.srr-related-rankings .srr-related-card h3 {
  margin: 0 0 9px;
  color: #0b1220;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
}

.srr-related-rankings .srr-related-card h3 a {
  color: #0b1220;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.srr-related-rankings .srr-related-card h3 a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.srr-related-rankings .srr-related-card p {
  margin: 0 0 10px;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.srr-related-rankings .srr-related-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none;
}

.srr-related-rankings .srr-related-link:hover {
  background: #1d4ed8;
  color: #ffffff !important;
  text-decoration: none;
}

.srr-related-rankings.srr-related-inline {
  margin-top: 22px;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
}

.srr-related-rankings.srr-related-inline .srr-related-head h2 {
  font-size: clamp(20px, 2.1vw, 24px);
}

.srr-related-rankings.srr-related-inline .srr-related-head p {
  font-size: 15px;
}

@media (max-width: 900px) {
  .srr-related-rankings.srr-layout-compact .srr-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .srr-related-rankings {
    margin: 22px 0;
    padding: 15px;
    border-radius: 18px;
  }

  .srr-related-rankings .srr-related-grid {
    grid-template-columns: 1fr;
  }

  .srr-related-rankings .srr-related-card {
    padding: 14px;
  }

  .srr-related-rankings .srr-related-head h2 {
    font-size: 22px;
  }
}
