/* =============================================
   COURSE FILTER TOOLBAR
   ============================================= */

.cf-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 50px;
  max-width: 1200px;
  margin: 0 auto 28px;
}

/* ---------- Search Input ---------- */
.cf-search-wrap {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.cf-search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
  pointer-events: none;
  transition: color 0.25s;
}

.cf-search {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  box-sizing: border-box;
}

.cf-search::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.cf-search:focus {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.03);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.06);
}

.cf-search:focus ~ .cf-search-icon {
  color: rgba(167, 139, 250, 0.6);
}

/* ---------- Dropdown Select ---------- */
.cf-select-wrap {
  position: relative;
  flex-shrink: 0;
}

.cf-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 11px 38px 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  min-width: 160px;
  box-sizing: border-box;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-opacity='0.3' stroke-width='1.3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.cf-select:focus {
  border-color: rgba(139, 92, 246, 0.4);
  background-color: rgba(139, 92, 246, 0.03);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.06);
}

.cf-select option {
  background: #111640;
  color: #fff;
  padding: 8px;
}

/* ---------- View Toggle Buttons ---------- */
.cf-view-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 4px;
}

.cf-view-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
  background: transparent;
  color: rgba(255, 255, 255, 0.25);
}

.cf-view-btn:hover {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
}

.cf-view-btn.cf-view-active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(139, 92, 246, 0.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .cf-toolbar {
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .cf-search-wrap {
    max-width: 100%;
    order: 1;
    flex-basis: 100%;
  }

  .cf-select-wrap {
    order: 2;
    flex: 1;
  }

  .cf-select {
    width: 100%;
    min-width: unset;
  }

  .cf-view-toggle {
    order: 3;
    margin-left: auto;
  }
}

/* LIST VIEW */
.tc-list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card becomes horizontal */
.tc-list-view .tc-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: 100%;
  padding: 10px;
}

/* Image section (left) */
.tc-list-view .tc-card-top {
  width: 280px;
  min-width: 280px;
  height: auto;
}

.tc-list-view .tc-card-top img {
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Content section (right) */
.tc-list-view .tc-card-body {
  flex: 1;
  padding: 15px 20px;
}

/* Adjust title spacing */
.tc-list-view .tc-card-title {
  margin-bottom: 8px;
}

/* Optional: align stats in one row */
.tc-list-view .tc-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hide overlay/icon if needed */
.tc-list-view .tc-card-top-overlay,
.tc-list-view .tc-card-icon {
  display: none;
}