main {
  padding-top: 15vh;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.section {
  h2 {
    padding-bottom: 2rem;
  }

  p {
    padding: 1rem 0 1rem 0;
    font-size: 110%;
  }
}

.image-box {
  /* background: var(--d); */ /* dark placeholder */
  border-radius: 8px;
  flex: 1;
  min-height: 200px;
  max-height: 50dvh;
  animation: fadeIn 1s ease-in-out;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}


/* Image sizing logic */
.image-row .image-box:nth-child(1):only-child {
  flex: 100%;
}

.image-row .image-box:nth-child(1),
.image-row .image-box:nth-child(2):nth-last-child(2) {
  flex: 1 1 48%; /* two images side by side ~50% */
}

.image-row .image-box:nth-child(1),
.image-row .image-box:nth-child(2),
.image-row .image-box:nth-child(3) {
  flex: 1 1 30%; /* three images ~30% each */
}

/* CTA Section */
.cta-section {
  background: var(--p);
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 3rem;
}

.cta-section h2 {
  padding-bottom: 2rem;
  color: var(--d);
}

.cta-btn {
  display: inline-block;
  background: var(--d);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}

.cta-btn:hover {
  background: var(--p);
  transform: translateY(-3px);
}

/* Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
