* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 80px;
  background-color: #3b0a0f; /* Deep burgundy */
  color: #fdf0f0; /* Optional: base text color */
  margin: 0;
  font-family: "Nunito", sans-serif;
}

main {
  position: relative;
  width: 100%;
  height: 100%;
}

.footer {
  padding: 8px;
  text-align: center;
  margin: auto;
  clear: both;
  font-size: 12px;
  color: white;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.about-teacher {
  padding: 2rem 1rem;
  font-family: "Nunito", sans-serif;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
  background-color: #3b0a0f; /* Ensures full container matches background */
  padding: 2rem;
  border-radius: 1rem;
}

.about-image img {
  width: 100%;
  max-width: 280px;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 4px solid #fdf0f0;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2rem; /* Slightly smaller */
  margin-bottom: 1rem;
  color: #ffe4e1;
}

.about-text p {
  font-size: 1rem; /* Smaller paragraph text */
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (max-width: 1000px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .about-image img {
    max-width: 50vw;
    margin-bottom: 1.5rem;
  }

  .about-text {
    width: 100%;
  }

  .about-text p {
    line-height: 1.4;
    font-size: 1rem;
    padding: 0;
  }
}
