.rapi-card {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fbf4f8cc;
  border-radius: 20px;
  transition: none;
  transform: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.rapi-card:hover {
  transform: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.rapi-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 4px solid var(--color);
  box-shadow: 0 0 0 5px rgba(var(--color-rgb), 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rapi-card:hover .rapi-avatar {
  transform: scale(1.05);
  box-shadow: 0 0 0 6px rgba(var(--color-rgb), 0.3);
}

.rapi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rapi-card h3 {
  font-size: 2rem;
  margin-bottom: 0rem;
  color: #1f1f1f;
}

.rapi-handle {
  font-size: 1.1rem;
  color: #777;
  margin-bottom: 1rem;
  font-weight: 400;
}

.rapi-card .search-btn {
  padding: 0.75rem 1.6rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rapi-card .search-btn i {
  transition: transform 0.3s ease;
}

.rapi-card .search-btn:hover i {
  transform: translateX(5px);
}

@media (max-width: 600px) {
  .rapi-card {
    max-width: 100%;
    margin: 2rem auto;
    padding: 1.5rem;
  }

  .rapi-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
  }

  .rapi-card h3 {
    font-size: 1.6rem;
  }

  .rapi-handle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .rapi-card .search-btn {
    padding: 0.75rem 1.6rem;
    font-size: 1rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
  section {
    margin: 0 2rem !important;
  }
}