/* Course library archive */

.apm-cl {
  background: #f8fafc;
  padding-bottom: 0;
}

/* Breadcrumb */
.apm-cl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: #64748b;
}

.apm-cl-breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 200ms ease;
}

.apm-cl-breadcrumb a:hover {
  color: #0d5bdb;
}

.apm-cl-breadcrumb__current {
  color: #0f172a;
  font-weight: 500;
}

/* Hero */
.apm-cl-hero {
  position: relative;
  min-height: 320px;
  margin-bottom: 32px;
  overflow: hidden;
}

.apm-cl-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 45%, #e0f2fe 100%);
}

.apm-cl-hero__glow {
  position: absolute;
  top: -20%;
  left: 10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(13, 91, 219, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.apm-cl-hero__shape {
  position: absolute;
  border-radius: 24px;
  opacity: 0.35;
  pointer-events: none;
}

.apm-cl-hero__shape--1 {
  top: 20%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: rgba(13, 91, 219, 0.15);
  transform: rotate(15deg);
}

.apm-cl-hero__shape--2 {
  bottom: 15%;
  left: 25%;
  width: 120px;
  height: 60px;
  background: rgba(22, 163, 74, 0.12);
  border-radius: 999px;
}

.apm-cl-hero__shape--3 {
  top: 10%;
  right: 35%;
  width: 60px;
  height: 60px;
  border: 3px solid rgba(13, 91, 219, 0.2);
  background: transparent;
}

.apm-cl-hero .apm-container {
  position: relative;
  z-index: 1;
  padding-top: 32px;
  padding-bottom: 48px;
}

.apm-cl-hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.apm-cl-hero__badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(13, 91, 219, 0.12);
  color: #0d5bdb;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.apm-cl-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
}

.apm-cl-hero__desc {
  margin: 0 0 28px;
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
}

.apm-cl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apm-cl-hero__visual {
  position: relative;
  justify-self: end;
}

.apm-cl-hero__visual img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.apm-cl-hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: #0d5bdb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  animation: apm-cl-float 4s ease-in-out infinite;
}

.apm-cl-hero__float--play { top: 8%; left: -6%; animation-delay: 0s; color: #16a34a; }
.apm-cl-hero__float--cert { top: 35%; right: -8%; animation-delay: 0.5s; }
.apm-cl-hero__float--chart { bottom: 30%; left: -10%; animation-delay: 1s; color: #f59e0b; }
.apm-cl-hero__float--book { bottom: 8%; right: 5%; animation-delay: 1.5s; color: #16a34a; }

@keyframes apm-cl-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Search bar */
.apm-cl-search-section {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding: 0 0 8px;
  scroll-margin-top: 96px;
}

.apm-cl-layout {
  scroll-margin-top: 96px;
}

#apm-cl-register {
  scroll-margin-top: 96px;
}

.apm-cl-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding: 8px 8px 8px 20px;
  min-height: 56px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.apm-cl-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 220px;
  min-width: 0;
  color: #64748b;
}

.apm-cl-search__field input,
.apm-cl-search__field select {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 0.9375rem;
  color: #0f172a;
  outline: none;
}

.apm-cl-search__field--select {
  flex: 0 1 180px;
  padding-left: 12px;
  border-left: 1px solid #e2e8f0;
}

.apm-cl-search__views {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
}

.apm-cl-search__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.apm-cl-search__view.is-active,
.apm-cl-search__view:hover {
  background: #fff;
  color: #0d5bdb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Layout */
.apm-cl-layout {
  padding-bottom: 64px;
}

.apm-cl-layout__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.apm-cl-filter-toggle {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.apm-cl-main__count {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  color: #64748b;
}

.apm-cl-main__count strong {
  color: #0f172a;
}

/* Grid */
.apm-cl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* Skeleton */
.apm-cl-skeleton {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.apm-cl-skeleton__card {
  height: 380px;
  border-radius: 18px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: apm-cl-shimmer 1.2s infinite;
}

@keyframes apm-cl-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Card */
.apm-cl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
  border-top: 3px solid #0d5bdb;
}

.apm-cl-card--method-online {
  border-top-color: #0d5bdb;
}

.apm-cl-card--method-offline {
  border-top-color: #059669;
}

.apm-cl-card--method-blended {
  border-top-color: #d97706;
}

.apm-cl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.apm-cl-card__media-wrap {
  position: relative;
}

.apm-cl-card__method {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

.apm-cl-card__method-icon {
  display: inline-flex;
}

.apm-cl-card__method--online {
  background: #0d5bdb;
  color: #fff;
}

.apm-cl-card__method--offline {
  background: #059669;
  color: #fff;
}

.apm-cl-card__method--blended {
  background: #d97706;
  color: #fff;
}

.apm-cl-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.apm-cl-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.apm-cl-card:hover .apm-cl-card__media img {
  transform: scale(1.06);
}

.apm-cl-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 2;
}

.apm-cl-card__badge--hot {
  background: #ef4444;
  color: #fff;
}

.apm-cl-card__badge--sale {
  background: #16a34a;
  color: #fff;
}

.apm-cl-card__float-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0d5bdb;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.apm-cl-card__wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #94a3b8;
  cursor: pointer;
  transition: color 200ms ease, transform 200ms ease;
}

.apm-cl-card__wishlist:hover,
.apm-cl-card__wishlist.is-active {
  color: #ef4444;
}

.apm-cl-card__wishlist.is-active svg {
  fill: #ef4444;
  stroke: #ef4444;
}

.apm-cl-card__wishlist.is-pulse {
  animation: apm-cl-wish-pulse 400ms ease;
}

@keyframes apm-cl-wish-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.apm-cl-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 20px;
  gap: 10px;
}

.apm-cl-card__tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.apm-cl-card__tag--soft { background: #e0f2fe; color: #0369a1; }
.apm-cl-card__tag--pro { background: #dcfce7; color: #166534; }
.apm-cl-card__tag--manage { background: #ede9fe; color: #6d28d9; }
.apm-cl-card__tag--default { background: #f1f5f9; color: #475569; }

.apm-cl-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.apm-cl-card__title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 200ms ease;
}

.apm-cl-card__title a:hover {
  color: #0d5bdb;
}

.apm-cl-card__instructor {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.apm-cl-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: #64748b;
}

.apm-cl-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.apm-cl-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.apm-cl-card__stars {
  display: inline-flex;
  gap: 1px;
  color: #f59e0b;
}

.apm-cl-card__rating-text {
  font-size: 0.8125rem;
  color: #64748b;
}

.apm-cl-card__rating-text span {
  color: #94a3b8;
}

.apm-cl-card__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.apm-cl-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  min-width: 0;
}

.apm-cl-card__price-current,
.apm-cl-card .apm-fc-card__price-current {
  font-size: 1.125rem;
  font-weight: 700;
  color: #16a34a;
}

.apm-cl-card__price-old,
.apm-cl-card .apm-fc-card__price-old {
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.apm-cl-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0d5bdb;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 200ms ease, transform 200ms ease;
}

.apm-cl-card__cta:hover {
  background: #0947ad;
  transform: translateX(2px);
}

/* List view */
.apm-cl-grid--list {
  grid-template-columns: 1fr;
}

.apm-cl-grid--list .apm-cl-card {
  flex-direction: row;
}

.apm-cl-grid--list .apm-cl-card__media-wrap {
  flex: 0 0 280px;
}

.apm-cl-grid--list .apm-cl-card__media {
  height: 100%;
  min-height: 180px;
  aspect-ratio: auto;
}

.apm-cl-grid--list .apm-cl-card__body {
  padding: 24px;
}

/* Filter sidebar */
.apm-cl-filter__overlay {
  display: none;
}

.apm-cl-filter__panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.apm-cl-filter__mobile-head {
  display: none;
}

.apm-cl-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.apm-cl-filter__head h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
}

.apm-cl-filter__clear {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0d5bdb;
  text-decoration: none;
}

.apm-cl-filter__clear:hover {
  text-decoration: underline;
}

.apm-cl-filter__group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.apm-cl-filter__group:last-of-type {
  border-bottom: 0;
  margin-bottom: 16px;
}

.apm-cl-filter__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
}

.apm-cl-filter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.apm-cl-filter__search svg {
  flex-shrink: 0;
  color: #94a3b8;
}

.apm-cl-filter__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 0;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
}

.apm-cl-filter__search input::placeholder {
  color: #94a3b8;
}

.apm-cl-filter__hint {
  margin: 0 0 12px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
}

.apm-cl-filter__checks [data-cl-field-item][hidden] {
  display: none;
}

.apm-cl-filter__select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.875rem;
  color: #0f172a;
  background: #fff;
}

.apm-cl-filter__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apm-cl-filter__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #475569;
  cursor: pointer;
}

.apm-cl-filter__check input {
  width: 16px;
  height: 16px;
  accent-color: #0d5bdb;
}

.apm-cl-filter__stars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.apm-cl-filter__star {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.apm-cl-filter__star input {
  margin-right: 8px;
  accent-color: #0d5bdb;
}

.apm-cl-filter__star-icons {
  display: inline-flex;
  gap: 2px;
  color: #f59e0b;
}

/* Range slider */
.apm-cl-range__track {
  position: relative;
  height: 6px;
  margin: 16px 0 8px;
  background: #e2e8f0;
  border-radius: 999px;
}

.apm-cl-range__fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #0d5bdb;
  border-radius: 999px;
  pointer-events: none;
}

.apm-cl-range input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.apm-cl-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d5bdb;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  pointer-events: auto;
  cursor: pointer;
}

.apm-cl-range input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0d5bdb;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  pointer-events: auto;
  cursor: pointer;
}

.apm-cl-range__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748b;
}

.apm-cl-filter__submit {
  width: 100%;
  justify-content: center;
}

/* Pagination */
.apm-cl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.apm-cl-pagination__btn,
.apm-cl-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}

.apm-cl-pagination__btn:hover,
.apm-cl-pagination__num:hover {
  background: #eff6ff;
  color: #0d5bdb;
}

.apm-cl-pagination__num.is-active {
  background: #0d5bdb;
  color: #fff;
}

.apm-cl-pagination__dots {
  color: #94a3b8;
  padding: 0 4px;
}

/* Empty state */
.apm-cl-empty {
  padding: 64px 24px;
  text-align: center;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.apm-cl-empty h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: #0f172a;
}

.apm-cl-empty p {
  margin: 0 0 24px;
  color: #64748b;
}

/* CTA */
.apm-cl-cta {
  margin-top: 16px;
  padding: 48px 0 72px;
}

.apm-cl-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px 56px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0d5bdb 0%, #16a34a 100%);
  color: #fff;
  overflow: hidden;
}

.apm-cl-cta__content {
  flex: 1;
  max-width: 560px;
}

.apm-cl-cta__content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 700;
}

.apm-cl-cta__content p {
  margin: 0 0 24px;
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.6;
}

.apm-cl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.apm-cl-cta .apm-btn--white {
  background: #fff;
  color: #0d5bdb;
  border: 0;
}

.apm-cl-cta .apm-btn--white:hover {
  background: #f8fafc;
}

.apm-cl-cta .apm-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.apm-cl-cta .apm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.apm-cl-cta__art {
  flex-shrink: 0;
  width: 180px;
}

.apm-cl-cta__art svg {
  width: 100%;
  height: auto;
}

/* Stats strip */
.apm-cl-stats {
  padding: 32px 0 16px;
}

.apm-cl-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 36px 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 55%, #eff6ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07);
}

.apm-cl-stats__item {
  text-align: center;
}

.apm-cl-stats__item strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  color: #0d5bdb;
  line-height: 1.15;
}

.apm-cl-stats__item span {
  display: block;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: #64748b;
}

.apm-cl-register {
  margin-top: 8px;
}

.apm-cl-hero-banner {
  margin-bottom: 0;
  min-height: clamp(440px, 56vw, 680px);
  height: clamp(440px, 56vw, 680px);
}

.apm-cl-hero-banner .apm-academy-hero__inner {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.apm-cl-hero-banner.apm-academy-hero--slider .apm-academy-hero__pagination {
  bottom: 24px !important;
}

@media (max-width: 768px) {
  .apm-cl-hero-banner {
    min-height: clamp(340px, 72vw, 480px);
    height: clamp(340px, 72vw, 480px);
  }
}

.apm-cl-layout {
  padding-top: 28px;
}

/* Body lock for mobile filter */
body.apm-cl-filter-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1200px) {
  .apm-cl-grid,
  .apm-cl-skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .apm-cl-hero__grid {
    grid-template-columns: 1fr;
  }

  .apm-cl-hero__visual {
    display: none;
  }

  .apm-cl-layout__grid {
    grid-template-columns: 1fr;
  }

  .apm-cl-filter-toggle {
    display: inline-flex;
  }

  .apm-cl-filter__panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    width: min(360px, 92vw);
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 300ms ease;
  }

  .apm-cl-filter.is-open .apm-cl-filter__panel {
    transform: translateX(0);
  }

  .apm-cl-filter.is-open .apm-cl-filter__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.45);
  }

  .apm-cl-filter__mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .apm-cl-filter__mobile-head h2 {
    margin: 0;
    font-size: 1.125rem;
  }

  .apm-cl-filter__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
  }

  .apm-cl-filter__head h3 {
    display: none;
  }

  .apm-cl-grid,
  .apm-cl-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apm-cl-cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 32px;
  }

  .apm-cl-cta__actions {
    justify-content: center;
  }

  .apm-cl-stats__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  .apm-cl-search-section {
    margin-top: -16px;
  }
}

@media (max-width: 640px) {
  .apm-cl-search {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .apm-cl-search__field--select {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
  }

  .apm-cl-search__views {
    margin-left: 0;
    align-self: flex-end;
  }

  .apm-cl-hero__actions {
    flex-direction: column;
  }

  .apm-cl-hero__actions .apm-btn {
    width: 100%;
    justify-content: center;
  }

  .apm-cl-grid,
  .apm-cl-skeleton {
    grid-template-columns: 1fr;
  }

  .apm-cl-grid--list .apm-cl-card {
    flex-direction: column;
  }

  .apm-cl-grid--list .apm-cl-card__media-wrap {
    flex: none;
  }

  .apm-cl-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .apm-cl-card__cta {
    justify-content: center;
  }

  .apm-cl-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .apm-cl-cta__actions .apm-btn {
    width: 100%;
    justify-content: center;
  }
}
