body main.alcrs-main {
  background: var(--theme-color-3);
  color: var(--theme-color-2);
}

.alcrs-page-title {
  font-size: var(--h3-font-size);
  font-weight: 700;
  color: var(--theme-color-2);
}

/* category pills */
.alcrs-category-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.alcrs-category-pill {
  color: var(--theme-color-4);
  background: var(--bg-gradient-2);
  border-radius: 200px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.7s ease;
  display: inline-block;
}

.alcrs-category-pill:hover {
  background: var(--theme-color-10);
  color: var(--theme-color-4);
}

.alcrs-category-pill.alcrs-active {
  background: var(--theme-color-8);
  border-color: var(--theme-color-8);
  color: #ffffff;
  font-weight: 600;
}

/* show more / less toggle, only used on mobile */
.alcrs-category-toggle {
  display: none;
}

@media (max-width: 767.98px) {
  /* Capped to ~3 rows of pills, the script opens it to the full height */
  .alcrs-category-scroll {
    max-height: 7.75rem;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  /* fade the last row out while collapsed, same idea as the course overview box */
  .alcrs-category-scroll.alcrs-truncated {
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
  }

  .alcrs-category-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.5rem auto 0;
    padding: 0.35rem 1rem;
    border: 1px solid var(--theme-color-4);
    border-radius: 200px;
    background: var(--primary-color);
    color: var(--theme-color-4);
    font-size: 0.85rem;
    font-weight: 600;
  }

  .alcrs-category-toggle[hidden] {
    display: none;
  }

  .alcrs-category-toggle i {
    transition: transform 0.3s ease;
  }

  .alcrs-category-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
  }
}

@media (min-width: 768px) {
  /* ignore any inline height left over from the mobile toggle */
  .alcrs-category-scroll {
    max-height: none !important;
  }
}

/* search bar */
.alcrs-search-input {
  border: 1px solid var(--theme-color-10);
  border-radius: 200px 0 0 200px;
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  border-right: none;
}

.alcrs-search-input:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--theme-color-10);
}

.alcrs-search-btn {
  border-radius: 0 200px 200px 0 !important;
  padding: 0.7rem 2rem 0.7rem 1rem !important;
}

/* sort dropdown */
.alcrs-sort-label {
  font-size: 0.85rem;
  color: var(--theme-color-2);
  font-weight: 500;
}

.alcrs-dropdown-menu-custom {
  border-radius: 12px;
  border: 1px solid var(--theme-color-10);
  overflow: hidden;
  padding: 0;
}

.alcrs-dropdown-menu-custom .form-check {
  padding: 0.65rem 1rem 0.65rem 2.2rem;
  margin: 0;
  font-size: 0.85rem;
}

.alcrs-dropdown-menu-custom .form-check.alcrs-selected {
  background: var(--theme-color-5);
  color: #ffffff;
  font-weight: 600;
}

/* course card */
.alcrs-course-card {
  background: var(--bg-gradient-6);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: 0 2px 10px rgba(48, 66, 121, 0.06);
  position: relative;
}

.alcrs-course-thumb-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-gradient-2);
}

.alcrs-course-thumb {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.alcrs-course-badge {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--theme-color-8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.alcrs-course-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-color-2);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.alcrs-course-meta {
  font-size: 0.72rem;
  color: var(--theme-color-4);
  margin-bottom: 0.1rem;
}

.alcrs-course-desc {
  font-size: 0.72rem;
  color: #9aa4b8;
}

.alcrs-price{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
}

.alcrs-price-old {
  font-size: 0.78rem;
  color: #464e60;
  text-decoration: line-through;
}

.alcrs-price-new {
  font-size: 1rem;
  font-weight: 700;
  color: var(--theme-color-8);
}

.alcrs-addtocart-btn {
  font-size: 0.75rem;
  padding: 0.4rem 1rem !important;
  white-space: nowrap;
}

/* ad banner */
.alcrs-ad-banner {
  position: sticky;
  top: 1rem;
}

/* pagination */
.alcrs-custom-pagination .alcrs-page-btn {
  border-radius: 200px;
  padding: 0.35rem 0.85rem;
  font-size: 1.1rem;
  color: var(--theme-color-4);
  background: var(--bg-gradient-2);
  text-decoration: none;
}

.alcrs-custom-pagination .alcrs-page-btn.alcrs-active {
  background: var(--theme-color-5);
  border-color: var(--theme-color-5);
  color: #fff;
  font-weight: 600;
}

.alcrs-custom-pagination .alcrs-page-btn:hover {
  background: var(--theme-color-3);
}

@media (max-width: 767.98px) {
  .alcrs-course-card .d-flex {
    flex-direction: column;
  }

  .alcrs-course-thumb-wrap {
    width: 100%;
    height: 130px;
    margin-bottom: 0.6rem;
  }

  .alcrs-price-block {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
  .alcrs-price-new {
    font-size: 1.5rem;
  }
  .alcrs-course-thumb {
    width: 100%;
  }
  .alcrs-price{
  flex-direction: row-reverse;
}
}
