.projects__title {
  display: flex;
  align-items: center;
}

.projects__icon {
  width: 30px;
  height: auto;
}

.projects__span {
  font-weight: 500;
  margin-left: 15px;
}

.article__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.article {
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 16px;
}

.article__hero-container {
  margin: 0;
  height: 150px;
  width: 100%;
  position: relative;
}

.article__hero--overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--muted);
  opacity: 0;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.article__hero-container:hover .article__hero--overlay {
  opacity: 0.2;
}

.article__hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.article__hero-caption {
  display: none;
}

.article__title {
  font-weight: 500;
  margin-bottom: 8px;
  text-decoration: none;
}

.article__title h3 {
  transition: color 0.3s ease;
}

.article__title:hover h3 {
  color: var(--secondary);
}

.article__used-technos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.article__techno {
  display: flex;
  align-items: center;
  border: 1px solid white;
  padding: 4px;
  gap: 4px;
  border-radius: 8px;
}

.article__techno img {
  width: 15px;
  height: auto;
}

.article__techno--html {
  background-color: #e34f26;
}

.article__techno--css {
  background-color: #1572b6;
}

.article__techno--js {
  background-color: #f7df1e;
}

.article__techno--js span {
  color: black; /* better contrast */
}

.article__techno--next {
  background-color: #111111;
}

.article__techno--postgres {
  background-color: #336791;
}

.nextjs-icon {
  width: 12px !important;
}

.article__techno span {
  font-size: 12px;
}

.article__description {
  font-weight: 300;
  font-size: 14px;
}

.article__view-project {
  text-decoration: none;
  border: 1px solid white;
  padding: 4px;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .article__container {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}
