body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', sans-serif;
  background-color: #212121;
  color: #fff;
  overflow-y: scroll;
}

.page-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  flex: 0 0 28%;
  max-width: 320px;
  padding: 20px;
  box-sizing: border-box;
  background-color: #212121;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.name {
  margin: 10px 0 25px;
  font-size: 1.8rem;
  font-weight: 700;
  padding-left: 2mm;
}

.affiliation {
  display: none;
}


.photo-wrapper {
  position: relative;
  overflow: hidden;
}

.profile-pic {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: filter 0.3s ease;
}

.photo-wrapper::after {
  content: 'Photo: Melanie Savage';
  position: absolute;
  bottom: 4px;
  left: 4px;
  padding: 2px 4px;
  font-size: 0.8rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-wrapper.active .profile-pic {
  filter: grayscale(100%) brightness(0.5);
}

.photo-wrapper.active::after {
  opacity: 1;
}

@media (hover: hover) {
  .photo-wrapper:hover .profile-pic {
    filter: grayscale(100%) brightness(0.5);
  }
  .photo-wrapper:hover::after {
    opacity: 1;
  }
}

.main-content {
  flex: 1;
  padding: 68px 20px 20px 20px;
  box-sizing: border-box;
  border-left: 1px solid #333;
  position: relative;
  z-index: 1;
}

.accordion {
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid #333;
}

.accordion-header {
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  padding-left: 1mm;
}

.accordion-header:hover {
  color: #bbb;
}

.accordion-header::after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
  transform: translateY(-50%) rotate(45deg);
}

.hestia-logo {
  height: calc(1.4rem * 3.4 / 2.5);
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.75mm;
}

.accordion-header:hover .hestia-logo {
  opacity: 0.8;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;

  padding-left: 1mm;
  padding-right: 2.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 5000px;
}

.publication {
  margin-bottom: 1.2em;
  border-left: 3px solid #d4b483;
  padding-left: 0.6em;
}

.publication p {
  margin: 0.2em 0;
  line-height: 1.4;
}

.publication .small {
  font-size: 0.9rem;
  color: #bbb;
}

.pub-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5em;
}

.pub-btn {
  background-color: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: lowercase;
}

.pub-btn:hover {
  background-color: #555;
}

.pub-content {
  display: none;
  margin-top: 0.5em;
  padding: 0.5em;
  border-left: 2px solid #444;
  background-color: #2a2a2a;
  font-size: 0.9rem;
  color: #ccc;
}

.pub-content a {
  color: #d4b483;
}
.pub-content a:hover,
.pub-content a:focus {
  color: #cfa766;
  text-decoration: underline;
}

.pub-btn.active {
  background-color: #555;
}

.pub-btn.active + .pub-content {
  display: block;
}

.research-note {
  font-size: 1rem;
  margin-top: 0.2em;
  margin-bottom: 1.2em;
}

.hestia-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 1rem;
  align-items: center;
}

.hestia-image {
  max-width: 320px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  flex: 0 0 auto;
}

.hestia-text {
  flex: 1;
  margin-top: -20px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #000;
  padding: 10px;
  border-radius: 8px;
  max-width: 90%;
  max-height: 80vh;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content video {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal .close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

.social-links {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  padding-left: 2mm;
}

.social-links img {
  height: 16px;
  width: auto;
  display: block;
}

.social-links a:hover img {
  opacity: 0.7;
}

.intro {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  padding-right: 2.5rem;
}

.speaking-intro {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

.year-item {
  border-bottom: 1px solid #333;
}

.year-header {
  width: 100%;
  padding: 10px 0;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  position: relative;
  padding-left: 1mm;
}

.year-header:hover {
  color: #bbb;
}

.year-header::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.year-item.active .year-header::after {
  transform: translateY(-50%) rotate(45deg);
}

.year-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 1mm;
  padding-right: 2.5rem;
}

.year-item.active .year-content {
  max-height: 1000px;
}

.year-content p {
  margin: 0.2em 0;
  line-height: 1.4;
  font-size: 0.9rem;
  color: #ccc;
}

.year-content a {
  color: #d4b483;
}
.year-content a:hover,
.year-content a:focus {
  color: #cfa766;
  text-decoration: underline;
}

.accordion-item:first-child .publication {
  display: none;
}

a {
  color: #d4b483;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #cfa766;
}

.earth-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  max-width: 280px;
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}

@media screen and (max-width: 900px) {
  .sidebar {
    flex: 0 0 40%;
    max-width: none;
  }
}

@media screen and (max-width: 600px) {
  .page-container {
    flex-direction: column;
  }
  .sidebar {
    flex: none;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #333;
    position: relative;
  }
  .main-content {
    flex: none;
    width: 100%;
    padding-top: 36px;
    border-left: none;
  }
  .earth-image {
    width: 40%;
  }
  .hestia-text {
    margin-top: 0;
  }
}

.speaking-years .year-item {
  margin-left: 2.5rem;
  margin-right: 2.5rem;
}

.speaking-years .year-item:last-child {
  border-bottom: none;
}

.speaking-years .year-header {
  padding-left: 0;
}

.speaking-years .year-content {
  padding-left: 0;
  padding-right: 0;
}

.speaking-years .year-content .event-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.4em;
  font-size: 0.9rem;
}

.speaking-years .year-content .event-row:last-child {
  margin-bottom: 1.2em;
}

.speaking-years .year-content .event-date {
  flex: 0 0 auto;
  min-width: 5.5em;
  font-weight: 600;
  color: #fff;
  border-right: 3px solid #d4b483;
  padding-right: 0.6em;
  margin-right: 0.6em;
}

.speaking-years .year-content .event-details {
  flex: 1;
  color: #ccc;
}

.speaking-years .year-content .event-details a {
  color: #d4b483;
}
.speaking-years .year-content .event-details a:hover,
.speaking-years .year-content .event-details a:focus {
  color: #cfa766;
  text-decoration: underline;
}

.vision-goals {
  list-style: none;
  margin: 0.6em 0;
  padding: 0;
  border-left: 3px solid #d4b483;
}

.vision-goals li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.vision-goals li::before {
  content: '';
  position: absolute;
  left: calc((1.5rem - 0.35em) / 2);
  top: 0.55em;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background-color: #d4b483;
}

.highlight {
  color: #d4b483;
  font-weight: 600;
}

@media screen and (max-width: 600px) {
  .speaking-years .year-item {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .speaking-years .year-content .event-date {
    min-width: 4.5em;
  }
}