/* =============================
   MAIN LAYOUT
============================= */
.ccw-layout {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1300px;
  margin: auto;
}

/* =============================
   SIDEBAR FILTER
============================= */
.ccw-sidebar {
  width: 280px;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
}

.ccw-sidebar h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Search */
.ccw-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 13px;
}

/* Filter group */
.ccw-filter-group {
  margin-top: 18px;
}

.ccw-filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
}

.ccw-filter-group input[type="checkbox"] {
  accent-color: #2563eb;
}

/* Apply Button */
.ccw-apply-btn {
  margin-top: 20px;
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* =============================
   CONTENT AREA
============================= */
.ccw-content {
  flex: 1;
}

/* Header */
.ccw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.ccw-header h2 {
  font-size: 18px;
  font-weight: 700;
}

/* Grid */
.ccw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* =============================
   COURSE CARD
============================= */
.ccw-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ccw-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ccw-card p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

.ccw-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.ccw-badge {
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
}

/* Button */
.ccw-card a {
  margin-top: 12px;
  text-align: center;
  background: #2563eb;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* =============================
   PAGINATION
============================= */
.ccw-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.ccw-pagination a {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.ccw-pagination .active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

@media (max-width: 768px) {

  .ccw-layout {
    flex-direction: column;
  }

  .ccw-sidebar {
    width: 100%;
  }

  .ccw-grid {
    grid-template-columns: 1fr;
  }

  .ccw-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
