* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #faf8f5;
  color: black;
  line-height: 1.6;
}

/* skip to main content */
.top_text {
  position: absolute;
  left: -10000px;
  overflow: hidden;
  background-color: #d9534f;
  color: white;
  padding: 10px;
  font-weight: bold;
  z-index: 1000;
}

.top_text:focus {
  position: fixed;
  top: 10px;
  left: 10px;
}

.banner {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid #d9534f;
}

nav {
  background-color: #2d2d2d;
  padding: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: block;
  padding: 16px 24px;
  text-decoration: none;
  color: white;
  font-weight: 500;
}

nav a:hover {
  background-color: #d9534f;
}

nav a:focus {
  outline: 3px solid #ff8c42;
  outline-offset: -3px;
  background-color: #d9534f;
}

/* inactive nav links */
nav a[href=""] {
  cursor: not-allowed;
  opacity: 0.5;
  color: #999;
}

nav a[href=""]:hover {
  background-color: #3d3d3d;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-section {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #ff8c42 0%, #d9534f 100%);
  border-radius: 12px;
  margin-bottom: 50px;
  color: white;
}

.hero-section h1 {
  font-size: 2.5em;
  margin: 0 0 20px 0;
  font-weight: 700;
}

.hero-text {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

.intro-text {
  font-size: 1.1em;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: center;
}

.grid_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.grid_item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.grid_item:hover {
  transform: translateY(-5px);
}

.grid_item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.grid_item h2 {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #d9534f;
  font-weight: 600;
}

.grid_item p {
  margin: 0 20px 20px;
  color: #555;
  font-size: 0.95em;
}

h1 {
  color: #2d2d2d;
  font-size: 2em;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

h2 {
  color: #d9534f;
  font-weight: 600;
}

table {
  width: 90%;
  max-width: 900px;
  margin: 30px auto 50px;
  border-collapse: collapse;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

caption {
  font-size: 1.3em;
  font-weight: 600;
  padding: 15px;
  color: #2d2d2d;
  text-align: left;
  background-color: #faf8f5;
}

thead {
  background-color: #d9534f;
}

th {
  padding: 16px;
  color: white;
  font-weight: 600;
  text-align: left;
  font-size: 1em;
}

td {
  padding: 14px 16px;
  color: #2d2d2d;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.95em;
}

tbody tr:hover {
  background-color: #fff5f2;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* form */
.contribute {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contribute_field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d2d2d;
  font-size: 0.95em;
}

input,
textarea,
select {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
  background-color: #fafafa;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #ff8c42;
  background-color: white;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
}

.button_container {
  text-align: center;
  margin-top: 30px;
}

button {
  padding: 14px 40px;
  background: linear-gradient(135deg, #ff8c42 0%, #d9534f 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:focus {
  outline: 3px solid #ff8c42;
  outline-offset: 2px;
}

footer {
  background-color: #2d2d2d;
  color: #faf8f5;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  font-size: 0.9em;
}

footer p {
  margin: 0;
}


@media (max-width: 800px) {
  .banner {
    height: 120px;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    width: 100%;
    text-align: center;
  }

  nav a {
    border-bottom: 1px solid #3d3d3d;
  }

  .hero-section h1 {
    font-size: 1.8em;
  }

  .hero-text {
    font-size: 1em;
  }

  .grid_container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1 {
    font-size: 1.6em;
  }

  table {
    width: 100%;
    font-size: 0.85em;
  }

  th, td {
    padding: 10px 8px;
  }

  .contribute {
    padding: 25px 20px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  button {
    width: 100%;
    padding: 14px 20px;
  }
}

@media (max-width: 500px) {
  main {
    padding: 20px 15px;
  }

  .hero-section {
    padding: 30px 15px;
  }

  table {
    font-size: 0.75em;
  }

  th, td {
    padding: 8px 5px;
  }
}