* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  padding-top: 80px;
  background-image: url(rm222-mind-30.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#title {
  text-align: center;
  padding: 60px 20px 40px;
  font-size: 2.5rem;
}

/* Wrapper that adjusts height automatically */
.contact-wrapper {
  width: 100%;
  padding: 20px;
  text-align: center;
  color: #000000;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Individual card */
.contact-card {
  background: rgba(255, 255, 255, 0.7);
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  object-fit: contain;
}

.contact-card h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 1rem;
  line-height: 1.5;
}

.contact-card a {
  color: #000;
  text-decoration: none;
  word-break: break-word;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  #title {
    font-size: 2.2rem;
  }
  .contact-card {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  #title {
    font-size: 2rem;
    padding: 40px 10px 30px;
  }
  .contact-card {
    max-width: 90%;
    padding: 18px;
  }
  .contact-card img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  #title {
    font-size: 1.8rem;
  }
  .contact-grid {
    flex-direction: column;
    gap: 16px;
  }
  .contact-card {
    max-width: 100%;
    padding: 16px;
  }
  .contact-card img {
    width: 45px;
    height: 45px;
  }
}
