body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  margin: 30px;
}

.subtitle {
  color: #555;
  max-width: 800px;
}

.card {
  
display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  
 width: 100%;
  max-width: 350px;

}

.card img {
  
width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

.card h2 {
  margin-top: 0;
}

.card p {
  line-height: 1.4;
}
.more {
  color: #0066cc;
  cursor: pointer;
  font-weight: bold;
  margin-top: 5px;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.modal-content {
  background: white;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  max-height: 80%;
  overflow-y: auto;
  border-radius: 10px;
}

#close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

 #projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  justify-items: center;
}
/* Για κινητά: μία στήλη */
@media (max-width: 700px) {
  .card {
    flex-direction: column;
  }

  .card img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

.card {
  transition: 0.2s;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}
 
#projects {
    grid-template-columns: 1fr;
  }


}
