.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.subcategory-header {
  width: 100%;
  margin-bottom: 20px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
  width: 100%;
}
.course {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.course:hover {
  transform: translateY(-5px);
  border-color: var(--main-light-color);
  box-shadow: 0 15px 30px rgba(223, 14, 154, 0.2);
  background: rgba(255, 255, 255, 0.1);
}
.course-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--main-light-color);
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(223, 14, 154, 0.3);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.course-title a {
  text-decoration: none;
  color: var(--main-light-color);
}
.course-title a:hover {
  text-decoration: underline;
}
.favorite-checkbox {
  cursor: pointer;
}
.course-content {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}
.pagination a,
.pagination .current {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--main-white);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.pagination a:hover {
  background: var(--main-light-color);
  border-color: var(--main-light-color);
}
.pagination .current {
  background: var(--main-light-color);
  border-color: var(--main-light-color);
  font-weight: bold;
}

.no-courses {
  text-align: center;
  padding: 60px 20px;
  opacity: 0.7;
}
.no-courses h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--main-light-color);
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
  .header h1 {
    font-size: 2rem;
  }
  .course {
    padding: 20px;
    min-height: 180px;
  }
}
@media (min-width: 1200px) {
  .courses-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
