.cards-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 20px;
  padding: 0 80px;
}

.project-card {
  transition: all 0.3s ease;
  display: block;
  background-color: #f8f5f0;
  color: #434343;
  overflow: hidden;
  width: fit-content;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  text-decoration: none;
  align-self: start;
}

.project-card:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.card-header{
  transition: all 0.3s ease;
  padding: 5px 15px;
}
.project-text {
  padding: 0 15px;
}

.card-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  display: block;
}
.card-title a{
  color: #332f30;
}

.card-subtitle {
  color: #666;
  font-size: 0.9em;
  display: block;
}

.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.resize-card {
  grid-row: span 2;
}

.resize-card .card-img {
  height: 650px;
  overflow: hidden;
}

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

/* ------------------------------- dark theme ------------------------------- */
body.dark-theme .project-card {
  background-color: #332f30;
  color: #f1f2ee;
}
body.dark-theme .card-title {
  color: #e6e6e6;
}
body.dark-theme .card-title a{
  color: #f8f5f0;
}
body.dark-theme .card-subtitle {
  color: #bcaea9;
}

/* ------------------------------- media query ------------------------------- */
@media screen and (max-width: 1024px) {
  .cards-section {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
}
@media screen and (max-width: 480px) {
  .cards-section {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .resize-card .card-img {
    height: 300px;
  }
  
}