@import url('../colors/theme-colors.css');

.catalog__layout--projects .catalog__main {
  margin-top: -40px;
}

.projects-results .language-block {
  margin-bottom: 2rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.projects-results .course-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.projects-results .course-title-row .course-skills-edit {
  margin-left: 1rem;
}

.projects-results .course-title-row h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mkt-text, var(--text-black));
  text-transform: uppercase;
}

/* Selected course is clear from sidebar + page intro — hide duplicate first heading */
.catalog__layout--projects .projects-results .language-block:first-of-type .course-title-row h2 {
  display: none;
}

.catalog__layout--projects
  .projects-results
  .language-block:first-of-type
  .course-title-row:not(:has(.course-skills-edit)) {
  display: none;
}

.projects-results .project-list.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.35rem;
  width: 100%;
}

.projects-results .project-card.is-filtered-out {
  display: none !important;
}

.projects-results .project-card {
  display: flex;
  flex-direction: column;
}

.projects-results .project-inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.projects-results .project-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.projects-results .project-info h3 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.projects-results .project-card-description {
  flex: 0 1 auto;
}

.projects-results .project-info h3 span {
  color: var(--mkt-text-muted, var(--text-grey));
}

.projects-empty-filter,
.projects-empty {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: var(--mkt-text-muted, var(--text-grey));
}
