@keyframes mainfadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  text-decoration: none;
}

.main {
  max-width: 100%;
  overflow-x: auto; /* Enables horizontal scroll */
  padding: 1rem;
  opacity: 0;
  animation: mainfadeIn 0.8s ease forwards;
  animation-delay: 0.3s;
  margin-left: 40px;
  margin-right: 40px;
}

.lecture-grid {
  display: flex; /* Change from grid to flex */
  gap: 1.5rem;
  flex-wrap: nowrap; /* Keep cards in one line */
}

.lecture-card {
  flex: 0 0 auto; /* Prevents shrinking, allows horizontal flow */
  width: 550px; /* Set a fixed width for consistency */
  background-color: transparent;
  border: 1px solid rgb(0, 0, 0);
  border-radius: 10px;
  text-align: center;
  padding: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lecture-card:hover {
  transform: scale(1.05);
  background-color: rgba(43, 33, 100, 0.075);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.lecture-card img {
  width: 100%;
  border-radius: 8px;
}

.lecture-card p {
  color: antiquewhite;
  margin-top: 0.5rem;
  font-weight: bold;
}

.button {
  cursor: pointer;
}

.main::-webkit-scrollbar {
  height: 10px;
}

.main::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}

.modal-content {
  border-radius: 15px;
  border: 1px solid #fff;
}

.modal-footer .btn {
  min-width: 120px;
}
