.past-masters-section {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

.past-masters-section .wp-block-html {
  width: 1000px !important;
  max-width: 90vw !important;
}

details.past-masters {
  width: 100% !important;
  background: #f7f4ec !important;
  border: 1px solid #cfc7b8 !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin: 1.5rem 0 0.75rem 0 !important;
  box-sizing: border-box !important;
}

details.past-masters summary {
  cursor: pointer !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  padding: 0.5rem !important;
}

details.past-masters .past-masters-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  margin-top: 1rem !important;
}

details.past-masters .past-masters-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

details.past-masters table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fffdf8 !important;
  font-size: 0.9rem !important;
}

details.past-masters th {
  background: #d0cabb !important;
  text-align: left !important;
  padding: 0.55rem !important;
  font-weight: 700 !important;
}

details.past-masters td {
  padding: 0.5rem 0.55rem !important;
  border-bottom: 1px solid #ddd6c9 !important;
  vertical-align: top !important;
}

details.past-masters tr:nth-child(even) {
  background: #f3efe6 !important;
}

details.past-masters td:first-child,
details.past-masters th:first-child {
  width: 35% !important;
  white-space: nowrap !important;
}

@media (max-width: 1000px) {
  details.past-masters .past-masters-grid,
  details.past-masters .past-masters-grid-2 {
    grid-template-columns: 1fr !important;
  }
}