/* Top Projects — builder project carousel (3 cards per slide) */

.top-projects-section {
  background: #f8fafc;
}

.top-projects-section__header {
  align-items: flex-start;
}

.top-projects-section__view-all {
  white-space: nowrap;
}

.top-project-card {
  background: #ffffff;
  border: 1px solid #e5edf8;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  color: inherit;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.15rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.top-project-card:hover,
.top-project-card:focus-visible {
  border-color: #cfe2ff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: inherit;
  transform: translateY(-2px);
}

.top-project-card__head {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.top-project-card__title {
  color: #001b44;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.top-project-card__icon {
  align-items: center;
  background: #eef5ff;
  border-radius: 10px;
  color: #2563eb;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.95rem;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.top-project-card__divider {
  background: #e8eef6;
  height: 1px;
  margin: 1rem 0 1.1rem;
  width: 100%;
}

.top-project-card__meta {
  display: grid;
  gap: 1rem 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.15rem;
}

.top-project-card__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.top-project-card__meta-icon {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1;
}

.top-project-card__meta-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.top-project-card__meta-value {
  color: #001b44;
  display: -webkit-box;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.top-project-card__cta {
  align-items: center;
  background: #0d6efd;
  border-radius: 10px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 600;
  justify-content: center;
  margin-top: auto;
  min-height: 42px;
  padding: 0.65rem 1rem;
  transition: background 0.2s ease;
  width: 100%;
}

.top-project-card:hover .top-project-card__cta,
.top-project-card:focus-visible .top-project-card__cta {
  background: #0b5ed7;
}

@media (max-width: 991.98px) {
  .top-project-card__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .top-projects-section__header {
    flex-direction: column;
    gap: 1rem;
  }
}
