.contact1 {
  height: auto;
  width: 100%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow-x: hidden;
  color: white;
  padding: 40px 20px;
}

.contact1 button {
  background-color: #e6e9ec;
  border-radius: 40px;
  width: 100px;
  border: none;
  color: #334960;
  font-size: 15px;
  transition: all 0.3s ease;
  height: 24px;
}

.contact1 button:hover {
  background-color: #0e2943;
  color: white;
}

.heading1 {
  color: #334960;
  font-family: ui-monospace;
  font-size: 40px;
  margin-top: 15px;
  text-align: center;
}

.contact1 p {
  text-align: center;
  color: #334960;
  width: auto;
  font-family: sans-serif;
  margin: 20px;
  font-size: 17px;
}

.heading2 {
  font-family: ui-monospace;
  color: #334960;
  font-size: 32px;
  margin: 10px 0 7px 10px;

}

.contact-method {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 40px;
  width: 100%;
  padding: 10px;
}

.contact-box {
  width: 100%;
  background-color: white;
  border-radius: 15px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column; /* Changed to vertical layout */
  align-items: flex-start;
  padding: 15px;
  line-height: 1.5;
  color: #334960;
  margin: 5px 0 8px 0px;
  border: 1px solid #7b8e9e;
   height: 165px;
 
}
.contact-box a{
  text-decoration: none;
   color: #334960;
}

.contact-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #0e2943;
}

.contact-box i {
  font-size: 18px;
  margin-right: 8px;
  color: #334960;
}

.contact-box ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 5px;
}

.contact-box p {
  margin: 5px 0;
  font-family: sans-serif;
  color: #334960;
  font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .contact-method {
    grid-template-columns: 1fr;
  }
}
