.projekti-directory {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.projekti-archive__header {
  margin-bottom: 1.5rem;
}

.projekti-filters {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.projekti-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.projekti-filter label {
  font-weight: 600;
  font-size: 0.95rem;
}

.projekti-filter select {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
}

.projekti-search {
  margin-bottom: 2rem;
}

.projekti-search input {
  width: 20%;
  max-width: 500px;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.projekti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.projekt-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  background: #fff;
  position: relative;
}

.projekt-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.projekt-card__thumb {
  line-height: 0;
  overflow: hidden;
  max-height: 200px;
}

.projekt-card__thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.projekt-card:hover .projekt-card__thumb img {
  transform: scale(1.05);
}

.projekt-card__content {
  padding: 1.5rem;
}

.projekt-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.projekt-card__title a {
  color: #1a4d7a;
  text-decoration: none;
}

.projekt-card__title a:hover {
  color: #ae152d;
}

.projekt-card__meta {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

.projekt-card__status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.projekt-card__status--planning {
  background: #fef3c7;
  color: #92400e;
}

.projekt-card__status--active {
  background: #d1fae5;
  color: #065f46;
}

.projekt-card__status--completed {
  background: #dbeafe;
  color: #1e40af;
}

.projekt-card__status--on-hold {
  background: #fee2e2;
  color: #991b1b;
}

.projekt-card__excerpt {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.projekt-card__ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  z-index: 2;
}

.projekt-card__ribbon img {
  max-width: 70%;
  max-height: 70%;
  display: block;
}

@media (max-width: 640px) {
  .projekti-grid {
    grid-template-columns: 1fr;
  }
  
  .projekti-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .projekti-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .projekti-filter select {
    width: 100%;
  }
}
