.search-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.live-search {
  grid-column: 1 / -1;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  background: #311a4c;
  color: #eee;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(200, 150, 255, 0.2);
}

.live-search::placeholder {
  color: #bbb;
}

.filter-item {
  background: #24132e;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(200, 150, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
}

.filter-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(200, 150, 255, 0.25);
}

.filter-item a {
  text-decoration: none;
  color: #f8f8f8;
  display: block;
}

.filter-item h1 {
  font-size: 1.8rem;
  color: #c084f5;
  margin-top: 0.8rem;
}

.filter-item p {
  color: #ccc;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

/* 💠 Optional class image */
.class-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}



/* Existing styles */
.search-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.live-search {
  grid-column: 1 / -1;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  background: #311a4c;
  color: #eee;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(200, 150, 255, 0.2);
}

.live-search::placeholder {
  color: #bbb;
}

.filter-item {
  background: #24132e;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(200, 150, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-align: center;
  cursor: pointer; /* Indicate clickability */
}

.filter-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(200, 150, 255, 0.25);
}

.filter-item .class-card {
  text-decoration: none;
  color: #f8f8f8;
  display: block;
}

.filter-item h1 {
  font-size: 1.8rem;
  color: #c084f5;
  margin-top: 0.8rem;
}

.filter-item p {
  color: #ccc;
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

/* Optional class image */
.class-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content {
  background: #1a0b24;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  padding: 2rem;
  box-shadow: 0 0 20px rgba(200, 150, 255, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s ease;
  color: #f8f8f8;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #c084f5;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #e0b0ff;
}

#modal-body {
  margin-top: 1rem;
}

#modal-body h1 {
  font-size: 2rem;
  color: #c084f5;
  margin-bottom: 1rem;
}

#modal-body h2 {
  font-size: 1.5rem;
  color: #e0b0ff;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#modal-body p {
  color: #ccc;
  line-height: 1.6;
  margin: 0.5rem 0;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}