/* Contact Section */
.contact-section {
  max-width: 900px;
  margin: 50px auto;
  padding: 40px 20px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Title */
.contact-section h2 {
  background-color: #2D1D74;
  color: white;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Container (Flexible Layout) */
.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap; /* Prevents wrapping on larger screens */
}

/* Contact Boxes */
.contact-box {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  flex: 1; /* Makes both boxes take equal width */
  text-align: left;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  min-width: 300px; /* Ensures they don't shrink too much */
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Box Title */
.contact-box h3 {
  color: #2D1D74;
  border-bottom: 3px solid #2D1D74;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 20px;
  text-transform: uppercase;
}

/* Contact Details */
.contact-box p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

/* Contact Links */
.contact-box a {
  text-decoration: none;
  color: #2D1D74;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

.contact-box a:hover {
  color: #ce0909;
}

/* Material Icons Styling */
.material-icons-outlined {
  color: #2D1D74;
  font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Contact Section */
  .contact-section {
    padding: 20px 10px;
    width: 100%; /* Ensure the contact section takes full width of the screen */
    margin: 0 auto; /* Center the contact section */
    box-sizing: border-box; /* Include padding and border in width calculation */
  }

  /* Contact Container */
  .contact-container {
    flex-direction: column; /* Stack the contact boxes vertically */
    gap: 15px; /* Reduce gap for better spacing on mobile */
    align-items: center; /* Center the contact boxes */
    justify-content: center;
    width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
  }
  /* Contact Box */
  .contact-box {
    padding: 15px; /* Reduce padding for a more compact look */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure the box takes full width */
    max-width: 100%; /* Prevent overflow */
    margin: 0 auto; /* Center each contact box */
    text-align: center; /* Center the text inside the box */
    box-sizing: border-box; /* Include padding and border in width calculation */
  }

  /* Contact Box Title */
  .contact-box h3 {
    font-size: 16px; /* Adjust title size */
    margin-bottom: 10px;
  }

  /* Contact Details */
  .contact-box p {
    font-size: 13px; /* Slightly smaller text for mobile readability */
    line-height: 1.4;
    margin-bottom: 10px; /* Space between details */
  }

  /* Material Icons */
  .material-icons-outlined {
    font-size: 16px; /* Adjust icon size */
    margin-right: 8px;
  }

  /* Ensure that images or content doesn't overflow the container */
  img, iframe {
    max-width: 100%;
    height: auto;
  }
}
