.project-card {
  display: flex;
  flex-direction: row; 
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  min-height: 180px;
  gap: 1.5rem;
  position: relative;
  /*margin-left: 300px;
  margin-right: 300px;
  max-width: calc(100% - 600px);*/
  max-width: 1200px;
  box-sizing: border-box;
}

.project-image {
  display: flex;         
  justify-content: center; 
  align-items: center;    
}

.project-image img {
  width: 200px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.project-type {
  font-size: 0.9rem;
  color: #aaa;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
  flex: 1;
  position: relative;
}

.project-content h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.project-content p,
.project-info {
  text-align: justify;
}

.project-content h2 {
  text-align: left;
}

.buttonarrow {
  align-self: flex-end;  
  margin-top: 1rem;     
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #00aaff;
  text-decoration: underline;
  gap: 0.3rem;
  transition: color 0.2s;
  cursor: pointer;
}

.buttonarrow::after {
  content: ">";
  font-weight: bold;
}

.buttonarrow:hover {
  color: #0077cc;
}

.project-info {
  display: flex;
  gap: 1.5rem;   
  margin-bottom: 0.8rem; 
  margin-top: 0.8rem; 
  flex-wrap: wrap;        
}

.info-item {
  font-size: 0.9rem;
  color: #aaa;
}

.info-item strong {
  color: #fff;     
}

@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    margin-left: 1rem;
    margin-right: 1rem;
    width: auto;
    max-width: 100%;
  }

  .project-image img {
    width: 100%;
    height: auto;
  }

  .project-content {
    width: 100%;
  }

  .buttonarrow {
    align-self: flex-start; 
    margin-top: 1rem;
  }
}


.project-card {
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  min-height: 180px;
  gap: 1.5rem;
 /* margin-left: 300px;
  margin-right: 300px;
  max-width: calc(100% - 600px);*/
  box-sizing: border-box;
  overflow: hidden; 
}

.project-image {
  flex: 0 0 40%;       
  display: flex;
}

.project-image img {
  width: 100%;
  height: 100%;        
  object-fit: cover;    
  border-radius: 12px 0 0 12px; 
}

.project-content {
  flex: 1;            
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0;      
}

@media (max-width: 768px) {
  .project-card {
    flex-direction: column;
    margin-left: 1rem;
    margin-right: 1rem;
    width: auto;
    max-width: 100%;
    min-height: auto;
  }

  .project-image {
    flex: unset;
  }

  .project-image img {
    width: 100%;
    height: auto; 
    border-radius: 8px; 
  }

  .project-content {
    width: 100%;
  }
}