.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  background: #fff8e1;
  color: #222;
  font-weight: bold;
  padding: 10px 0;
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.marquee-container:hover .marquee-text {
  animation-play-state: paused;
}


/* overwriting grid layout */
/* Make grid 4 columns on desktop, responsive on smaller screens */
.grid.cards ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.grid.cards li {
  text-align: center;
}

.grid.cards img {
  max-width: 100%;
  border-radius: 8px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Tablet screens (≤900px): show 4 columns */
@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile screens (≤600px): show 2 columns */
@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}




/* Horizontal line style override */
hr {
  border: none;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2); /* Light mode visible */
}

[data-md-color-scheme="slate"] hr {
  background-color: rgba(255, 255, 255, 0.3); /* Dark mode visible */
}


mjx-container[jax="CHTML"][display="true"]{
  text-align: left!important;
  margin: 5px 0 !important;
}