.contact-section {
  padding: 2rem 1.5rem;
  background-color: #ffffff;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
}



.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* Force equal columns */
  gap: 2rem;
  max-width: 800px; /* Constrain maximum width */
  margin: 0 auto; /* Center the grid */
  padding: 0 1rem;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem; /* Reduced horizontal padding */
  text-decoration: none;
  background: white;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
  width: 100%; /* Ensure full width */
  height: 100%; /* Ensure full height */
}

.contact-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); /* Enhanced hover shadow */
}

.contact-icon {
  margin-bottom: 1rem;
  color: #2c3e50;
  font-size: 1.5rem;
}

.contact-type {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-family: 'Lato', sans-serif;
}

.contact-detail {
  color: #666;
  font-size: 0.9rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  text-align: center;
  width: 100%; /* Ensure text takes full width */
  word-wrap: break-word; /* Handle long email addresses */
}

@media (max-width: 768px) {
  .contact-section {
    padding: 2rem 1.5rem;
  }



  .contact-grid {
    gap: 1rem;
  }

  .contact-link {
    padding: 1.5rem 1rem;
  }
  
  .contact-icon {
    font-size: 1.25rem;
  }
  
  .contact-type {
    font-size: 1rem;
  }
  
  .contact-detail {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Stack on very small screens */
  }
  
  .contact-link {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 360px) {
  .contact-detail {
    font-size: 0.75rem;
  }
}