/* Reset and base */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  background-color: #f9f9f9;
  color: #222;
  line-height: 1.6;
}

/* Header */
header {
  background: black;
  color: white;
  padding: 1rem;
  text-align: center; /* Center logo */
  position: sticky;
  top: 0;
  z-index: 999;
}

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

/* Navigation menu */
.menu {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center nav links */
  gap: 1rem;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.menu a:hover,
.menu a:focus {
  background-color: #333;
  outline: none;
}

/* Main content */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Why Anonymity Section */
#why-anonymity {
  text-align: center;
  margin-bottom: 3rem;
}

#why-anonymity h2 {
  font-weight: 700;
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

#why-anonymity p,
#why-anonymity ul {
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: #222;
  line-height: 1.6;
}

#why-anonymity ul {
  list-style-position: inside;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 1rem;
}

#why-anonymity a.learn-more {
  color: #0070f3;
  font-weight: 600;
  text-decoration: none;
}

#why-anonymity a.learn-more:hover,
#why-anonymity a.learn-more:focus {
  text-decoration: underline;
}

/* Categories grid container */
#categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 3 per row approx */
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

/* Each category box */
.category-box {
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  padding: 1.2rem 1.5rem;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
  cursor: default;
}

.category-box:hover,
.category-box:focus-within {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  outline: none;
}

.category-box h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: #0070f3;
}

.category-box ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}

.category-box ul li {
  margin-bottom: 0.6rem;
}

.category-box a {
  color: #0070f3;
  text-decoration: none;
}

.category-box a:hover,
.category-box a:focus {
  text-decoration: underline;
}

/* Responsive tweaks for very small screens */
@media (max-width: 360px) {
  #categories {
    grid-template-columns: 1fr;
  }
}

/* Footer */
footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 1rem 1rem;
  font-size: 0.75rem; /* smaller font size */
  border-top: 2px solid #0070f3;
  margin-top: 3rem;
  line-height: 1.4;
}
