.flex-container {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-around;
  padding: 0.5rem;
  margin: 1;
  gap: 10px 10px;
    > * {
    border: 0;
    padding: 0;
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }
}

.projects-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 2rem;
  background-color: var(--bg-color);
}

/* Card Base */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-sec-color);
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(187, 187, 187, 0.1);
}

.card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* fill height if needed */
}

.card-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: var(--text-color);
}

.card-summary {
  font-size: 0.9rem;
  color:var(--text-color);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-tags {
  margin-top: auto; /* Pushes this to the bottom of the card */
  border-top: 1px solid var(--bg-sec-color);
  padding-top: 0.75rem;
}

.tags-trigger {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--accent-color);
  list-style: none; /* Hides default triangle in some browsers */
  outline: none;
}

.tags-trigger::-webkit-details-marker {
  display: none;
}

.tags-trigger::after {
  content: '+'; 
  float: right;
  font-weight: bold;
}

details[open] .tags-trigger::after {
  content: '-';
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  animation: fadeIn 0.3s ease-in-out;
}

.tag {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--accent-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}