/* ===========================
   CATEGORY WRAPPER
=========================== */
.category-wrapper {
  display: flex;
  gap: 40px;
  margin-top: 100px; /* header offset */
}

/* ===========================
   SIDEBAR
=========================== */
.category-sidebar {
  width: 220px;
  flex-shrink: 0;
  padding: 20px;
  background-color: #f8f8f8;
}

.category-sidebar h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.category-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-sidebar li {
  margin-bottom: 12px;
}

.category-sidebar a {
  text-decoration: none;
  color: #111;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.category-sidebar a:hover {
  color: #000;
}

.category-sidebar a.active-cat {
  font-weight: 600;
  color: #000;
  border-left: 3px solid #000;
  padding-left: 6px;
}

/* ===========================
   PRODUCT LIST
=========================== */
.course-list {
  flex: 1;
}

.course-list-header {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 30px;
  margin-top: 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 10px;
}

/* ===========================
   PRODUCT GRID
=========================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.course-grid a {
  text-decoration: none;
  color: #111;
}

.course-card {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: scale(1.03);
}

.course-title {
  font-size: 1rem;
  margin-top: 10px;
}

.course-price {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .category-wrapper {
    flex-direction: column;
  }

  .category-sidebar {
    width: 100%;
    margin-bottom: 30px;
  }

  .course-list-header {
    font-size: 1.4rem;
  }

  .course-card {
    height: 220px;
  }
}