.year-section {
  margin-bottom: 30px;
}

.year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 15px 20px;
  background: rgba(11, 82, 133, 0.1);
  border: 2px solid rgba(11, 82, 133, 0.3);
  transition: all 0.3s ease;
  user-select: none;
}

.year-header:hover {
  background: rgba(11, 82, 133, 0.15);
  border-color: rgba(11, 82, 133, 0.4);
}

.year-header h2 {
  margin: 0;
  color: #0b5285;
  font-size: 1.8rem;
}

html.dark-mode .year-header {
  background: rgba(186, 218, 85, 0.1);
  border-color: rgba(186, 218, 85, 0.3);
  border-radius: 12px;
}

html.dark-mode .year-header:hover {
  background: rgba(186, 218, 85, 0.15);
  border-color: rgba(186, 218, 85, 0.4);
}

html.dark-mode .year-header h2 {
  color: #bada55;
}

html.dark-mode .year-toggle {
  color: #bada55;
}

.year-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: #0b5285;
}

.year-header.collapsed .year-toggle {
  transform: rotate(0deg);
}

.year-header:not(.collapsed) .year-toggle {
  transform: rotate(180deg);
}

.year-content {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 1;
  margin-top: 20px;
}

.year-content h2 {
    font-size: 1.25rem;
}
.year-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}