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

body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f8;
  color: #222;
  line-height: 1.6;
}

.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #1f2937, #F08058);
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

main {
  width: min(1100px, 90%);
  margin: 3rem auto;
  display: grid;
  gap: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card,
.card {
  background-color: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-card h2 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 2rem;
  font-weight: bold;
  color: #F08058;
}

.card h2 {
  margin-bottom: 1rem;
}

.highlights {
  display: grid;
  gap: 0.8rem;
}

table {
  min-width: 650px;
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table-container {
  width: 100%;
  overflow-x: auto;
}

th,
td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

th {
  background-color: #f9fafb;
  color: #1f2937;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.objective-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
}

.objective-item.validated strong {
  color: #16a34a;
}

.objective-item.pending strong {
  color: #dc2626;
}

.yearly-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.year-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.year-card:hover {
  transform: translateY(-4px);
  border-color: #F08058;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.10);
}

.year-card h3 {
  color: #F08058;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.year-card ul {
  list-style: none;
  padding-left: 0;
}

.year-card li {
  margin-bottom: 0.5rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
  margin-top: 1.5rem;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: bold;
  color: #1f2937;
  font-size: 0.95rem;
}

.filters select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background-color: #f9fafb;
  color: #1f2937;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filters select:hover {
  background-color: white;
  border-color: #F08058;
}

.filters select:focus {
  outline: none;
  border-color: #F08058;
  box-shadow: 0 0 0 3px rgba(240, 128, 88, 0.2);
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 0.7rem !important;
  min-height: 49px;
  padding: 0.85rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background-color: #f9fafb;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.checkbox-label:hover {
  background-color: white;
  border-color: #F08058;
  transform: translateY(-2px);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: #F08058;
  cursor: pointer;
}

.results-count {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background-color: #fff7ed;
  color: #F08058;
  font-weight: bold;
}

@media (max-width: 768px) {
  .hero {
    width: 100%;
    padding: 3rem 1.5rem;
    text-align: center;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
  }

  main {
    width: 92%;
    margin: 2rem auto;
    gap: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .card {
    padding: 1.5rem;
  }

  .stat-card p {
    font-size: 1.8rem;
  }

  .yearly-stats {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .checkbox-label {
    justify-content: flex-start;
  }

  .table-container {
    overflow-x: visible;
  }

  table {
    min-width: 0;
    width: 100%;
  }

  table thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f1f1;
    text-align: right;
  }

  table td:last-child {
    border-bottom: none;
  }

  table td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #1f2937;
    text-align: left;
  }
}