/* aboutstyles.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f4f6f8;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

main[data-testid="test-about-page"] {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  width: 100%;
  max-width: 700px;
}

h1 {
  text-align: center;
  color: #222;
  margin-bottom: 1.5rem;
}

section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  color: #007bff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

p {
  line-height: 1.6;
  font-size: 1rem;
  color: #444;
}

ul {
  margin-left: 1.5rem;
  list-style-type: disc;
  color: #444;
}

li {
  margin-bottom: 0.5rem;
}

/* Navigation between pages */
body > nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(244, 246, 248, 0.9);
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body > nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

body > nav a {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
  transition: color 0.2s ease;
}

body > nav a:hover {
  color: #0056b3;
  text-decoration: underline;
}

body > nav a:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Adjust body padding to account for fixed nav */
body {
  padding-top: 4rem;
}

/* ✅ Responsive layout */
@media (max-width: 600px) {
  main {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  p,
  li {
    font-size: 0.95rem;
  }
}
