body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin: 40px 0 20px;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 40px 20px;
}

.brand-item {
  width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo {
  margin-top: 30px;
}

.brand-item h2 {
  margin: 0 0 12px 0; 
}

.brand-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 380px;
  padding-top: 75%; /* 4:3 verhouding → 3 / 4 = 0.75 = 75% */
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.brand-card span {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 5px 10px;
  border-radius: 6px;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.freetour {
  background-image: url("../images/freetourrome.webp");
}

.dyt {
  background-image: url("../images/discoveryourtour.webp");
}

@media (max-width: 768px) {
  .brands {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin: 20px 10px; 
  }

  .brand-item h2 {
    font-size: 1.3rem; 
  }

  .brand-card {
    height: 220px; 
  }
}



