/* Category filtering styles */
.categories-summary a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.categories-summary a:hover {
  color: #0366d6;
}

.categories-summary a.active-category {
  font-weight: bold;
  color: #0366d6;
  border-left: 3px solid #0366d6;
  padding-left: 8px;
  margin-left: -8px;
}

/* Smooth transition for filtered posts */
.post-item {
  transition: opacity 0.3s ease;
}

.post-item[style*="display: none"] {
  opacity: 0;
}

/* Style the posts label link */
#posts-label {
  text-transform: none !important; /* Override theme's uppercase */
  display: flex;
  align-items: baseline;
  gap: 10px;
}

#posts-label a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

#posts-label a:hover {
  color: #0a59b0;
}

.posts-label-sep {
  color: #bbb;
}

.posts-speaking-link {
  font-size: 14px;
  text-transform: none; /* Keep lowercase */
  letter-spacing: 0.5px;
}

/* Speaking section styles */
.speaking {
  width: 80%;
}

/* Speaking page list */
.speaking-list {
  margin: 20px 30px;
  padding: 0;
  list-style: none;
}

.speaking-list-item a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid #ececec;
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.speaking-list-item a:hover {
  color: #0a59b0;
}

.speaking-title {
  font-size: 14px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  margin-top: 0;
  font-weight: normal;
  text-align: center;
}

.speaking ul {
  list-style-type: none;
  padding: 0;
  margin-top: 0;
}

.speaking ul li:last-child a {
  border-bottom: 0;
}

.speaking ul a {
  display: block;
  font-family: "Merriweather";
  text-align: center;
  padding: 1rem 0;
  text-decoration: none;
  border-bottom: 1px solid #ececec;
  color: #000;
  transition: color 0.3s;
}

.speaking ul a:hover {
  color: #0a59b0;
}

@media screen and (max-width: 768px) {
  .speaking ul a {
    padding: 2rem 0;
  }
}

/* Layout override (plainwhite theme):
 * Make the left "about" column match the height of the right "content" column on desktop.
 * The theme uses `position: fixed` + `height: 100vh` for `.about`, which prevents equal-height columns.
 */
@media screen and (min-width: 769px) {
  main.container {
    align-items: stretch;
  }

  main.container .about {
    position: static;
    height: auto;
    padding-bottom: 0;
    justify-content: flex-start;
    padding-top: 8vh;
    flex: 0 0 220px;
    max-width: 280px;
  }

  main.container .content {
    margin-left: 0;
    max-width: none;
    width: auto;
    flex: 1 1 auto;
  }
}
