/* Reset and base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: rgb(209, 224, 243);
  color: #222;
}

header {
  text-align: center;
  background-color: #1e2a38;
  color: #f2b632;
  padding: 2rem 1rem;
}

.logo {
  max-width: 10%;      /* increase image size */
  height: auto;
  margin-top: 0rem;   /* reduce top margin */
  margin-bottom: 0rem;/* reduce bottom margin */
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

main {
  padding: 2rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Flex layout for main content */
.tufts-flex-container {
  display: flex;
  width: 80%;
  margin: 0 auto 2rem auto;
  align-items: stretch;
  gap: 2rem;
}

.intro-image {
  flex: 0 50% 40%;
  display: flex;
  align-items: stretch;
}

.intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.right-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 2rem;
}

/* Intro and services sections */
.intro-content,
.services {
  width: 100%;
  margin: 0;
  /* border-radius: 8px; */
  /* box-shadow: 0 2px 8px rgba(30, 42, 56, 0.06); */
  /* background-color: #1e2a38; */
  /* color: white; */
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

.intro-text p,
.services p,
.contact p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.services h2,
.contact h2 {
  color: #1e2a38;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.services ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.services li {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.125rem;
}

/* Contact section */
.contact {
  width: 80%;
  margin: 3rem auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(30, 42, 56, 0.06);
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: bold;
}

input,
textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

button {
  padding: 0.75rem;
  background-color: #1e2a38;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button:hover {
  background-color: #f2b632;
  color: #1e2a38;
}

.msg {
  color: #d9534f;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #1e2a38;
  color: white;
  margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 900px) {
  .tufts-flex-container,
  .contact {
    width: 98%;
  }
  .tufts-flex-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .intro-image,
  .right-column {
    max-width: 100%;
  }
  .intro-image img {
    height: auto;
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .intro-content,
  .services,
  .contact {
    padding: 1rem 0.5rem;
  }
  h1 {
    font-size: 1.3rem;
  }
  .services h2,
  .contact h2 {
    font-size: 1.1rem;
  }
}

.intro-content > *:first-child,
.services > *:first-child {
  margin-top: 0;
}

.intro-content > *:last-child,
.services > *:last-child {
  margin-bottom: 0;
}

.intro-content p,
.services p,
.intro-content h2,
.services h2,
.intro-content ul,
.services ul {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-section {
  width: 100vw;
  background: #2a2a2a;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0 64px 0;
  border: none;
}
.contact-content {
  width: 100vw;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-heading {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 32px;
  color: #ffd600;
  text-align: center;
}
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-row {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.contact-input {
  flex: 1 1 0;
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  margin-bottom: 0;
  background: #fff;
  color: #222;
}
.contact-input:focus, .contact-textarea:focus {
  outline: 2px solid #1e2a38;
}
.contact-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 16px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  background: #fff;
  color: #222;
  resize: vertical;
}
.contact-submit {
  background: #1e2a38;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s;
}
.contact-submit:hover {
  background: #ebb801;
}
@media (max-width: 700px) {
  .contact-content {
    max-width: 98vw;
  }
  .contact-row {
    flex-direction: column;
    gap: 12px;
  }
}