body {
  font-family: "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f9fa;
  color: #333;
}

header,
footer {
  background-color: #2e2e2e;
  color: white;
  text-align: center;
  padding: 1.5rem;
}

h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

main {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

section {
  margin-bottom: 3rem;
}

h2 {
  color: #2a5d3f;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.3rem;
}

.card {
  background: #fff;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #333;
}

.card ol {
  padding-left: 1.2rem;
}

.card li {
  margin: 0.5rem 0;
}

.notice {
  background-color: #e9ecef;
  color: #333;
  text-align: center;
  padding: 0.75rem;
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 1px solid #ccc;
}

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

.main-nav a,
.nav-link {
  text-decoration: none;
  font-weight: bold;
  color: #2a5d3f;
}

.nav-link.active {
  color: #ff6347;
}

.site-intro {
  max-width: 760px;
  margin: 1.25rem auto 0;
  line-height: 1.6;
  font-size: 1.05rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.header-buttons {
  margin-top: 1.25rem;
}

.button-link {
  display: inline-block;
  padding: 0.75rem 1.1rem;
  background-color: #2a5d3f;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.button-link.secondary {
  background-color: #e9ecef;
  color: #333333;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  display: block;
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid #e4e7ea;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  margin-top: 0;
  color: #2a5d3f;
}

.text-link {
  font-weight: bold;
  color: #2a5d3f;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.result-table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

.result-table th,
.result-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.result-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.result-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.result-table th:first-child,
.result-table td:first-child {
  white-space: nowrap;
  text-align: center;
  width: 50px;
}

select {
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 1rem;
}

.update-post {
  padding: 1em;
  margin-bottom: 2em;
  border-left: 4px solid #444;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.school-name {
  font-size: 0.85rem;
  color: #666;
  display: block;
  margin-top: 2px;
}

.latest-update-card h3 {
  margin-top: 0.4rem;
}

.update-date {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  margin-bottom: 1rem;
  color: #555;
}

.results-note {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.schedule-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

.schedule-table a {
  color: #2a5d3f;
  text-decoration: none;
  font-weight: 600;
}

.schedule-table a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  main {
    padding: 1rem;
  }

  .card,
  header,
  footer {
    padding: 1rem;
  }

  .main-nav ul {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-link {
    text-align: center;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.95rem;
  }
}

.trailforks-embed {
  margin: 1rem 0;
  overflow: hidden;
  border-radius: 12px;
}