
/* ===================== Subject TOC applied on the upsc/subject/content type ===================== */
.mah-subject-toc {
 max-width: 1200px;
 margin: 0 auto;
   
}

.mah-subject-toc-heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
}

.mah-subject-toc-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0;
}

.mah-subject-toc-list li {
  display: inline-block;
}

.mah-subject-toc-list a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #ede9fe;
  color: black;
  border: 1px solid #c4b5fd;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.mah-subject-toc-list a:hover,
.mah-subject-toc-list a:focus {
  background-color: #2c5282;
  color: white;
  outline: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .mah-subject-toc-list {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .mah-subject-toc-list a {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
  }
}
