:root {
  --teal: #3fd0c9;
  --teal-dark: #2ab5ae;
  --teal-pale: #e8faf9;
  --navy: #0b1b2c;
  --gray: #495057;
  --gray-lt: #6c757d;
  --off-white: #f8fafc;
  --border: #e2e8f0;
  --green-lt: #a9eca5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Urbanist", sans-serif;
}
a {
  text-decoration: none;
}
/* ══ HERO ══ */
.cat-hero {
  position: relative;
  height: 350px;
  overflow: hidden;
}
.cat-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: right;
  transition: background-image 0.4s ease;
}
.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(11, 27, 44, 0.88) 0%,
    rgba(11, 27, 44, 0.65) 55%,
    rgba(11, 27, 44, 0.25) 100%
  );
}
.cat-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 44px;
}
.cat-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #3fd0c9 0%, #70f07f 100%);
  color: #051c2d;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.73rem;
  padding: 4px 13px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}
.cat-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
}
.cat-hero h1 span {
  background: linear-gradient(90deg, #3fd0c9 0%, #70f07f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cat-hero-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 22px;
}
.cat-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(90deg, #3fd0c9 0%, #70f07f 100%);
  color: #051c2d;
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: 10px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.cat-hero-cta:hover {
  background: linear-gradient(90deg, #6ff081 0.1%, #42d2c4 99.9%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(63, 208, 201, 0.35);
}

/* ══ CATALOG SHELL ══ */
.catalog-shell {
  background: var(--off-white);
  padding: 0 0 72px;
}

/* ══ TOPBAR ══ */
.catalog-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.topbar-search {
  position: relative;
  width: 300px;
}
.topbar-search i {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-lt);
  font-size: 0.82rem;
  cursor: pointer;
}
.topbar-search input {
  width: 100%;
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: "Lato", sans-serif;
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--off-white);
  outline: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.topbar-search input:focus {
  border-color: var(--teal);
  background: #fff;
}
.topbar-search input::placeholder {
  color: var(--gray-lt);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.results-count {
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--gray-lt);
  white-space: nowrap;
}
.results-count strong {
  color: var(--navy);
  font-weight: 800;
}
.view-toggle {
  display: flex;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.view-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 28px;
  border-radius: 5px;
  font-size: 0.82rem;
  color: var(--gray-lt);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-btn.active {
  background: var(--navy);
  color: #fff;
}
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--navy);
  cursor: pointer;
}

/* ══ ON SALE BADGE (small pill overlay on card image) ══ */
.sale-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(220, 38, 38, 0.88);
  color: #fff;
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* ══ CATALOG LAYOUT ══ */
.catalog-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-top: 28px;
}
.catalog-main {
  flex: 1;
  min-width: 0;
}

/* ══ SECTION HEADER ══ */
.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-hdr-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-hdr-title i {
  background: linear-gradient(90deg, #3fd0c9 0%, #70f07f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.95rem;
}
.section-hdr-title .icon-sale {
  background: none;
  -webkit-text-fill-color: #dc2626;
  color: #dc2626;
}
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border: 1.5px solid var(--teal);
  border-radius: 8px;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.77rem;
  color: var(--teal-dark);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-view-all:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
}
.btn-view-all i {
  font-size: 0.65rem;
}

/* ══ COURSE SECTION CARD ══ */
.course-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 24px;
  margin-bottom: 22px;
}

/* ══ CATEGORY BROWSE GRID ══ */
.cat-browse-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.cat-browse-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.cat-browse-card:hover {
  border-color: var(--teal);
  box-shadow: 0 6px 20px rgba(63, 208, 201, 0.14);
  transform: translateY(-2px);
}
.cat-browse-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}
.cat-browse-body {
  padding: 11px 13px 13px;
}
.cat-browse-name {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.cat-browse-btn {
  display: block;
  text-align: center;
  width: 100%;
  padding: 6px 0;
  background: linear-gradient(90deg, #3fd0c9 0%, #70f07f 100%);
  color: #051c2d;
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cat-browse-btn:hover {
  background: linear-gradient(90deg, #6ff081 0.1%, #42d2c4 99.9%);
}

/* ══ COURSE GRID ══ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    box-shadow 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.course-card:hover {
  box-shadow: 0 12px 36px rgba(11, 27, 44, 0.1);
  transform: translateY(-3px);
  border-color: transparent;
}
.course-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.course-card:hover .course-img {
  transform: scale(1.04);
}

.course-card-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}
.course-meta {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.course-meta-sep {
  color: var(--border);
  font-weight: 300;
}
.course-meta-dur {
  color: var(--gray-lt);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.course-meta-dur i {
  font-size: 0.58rem;
}
.course-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.91rem;
  color: var(--navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.43em;
}
.course-desc {
  font-size: 0.77rem;
  color: var(--gray-lt);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.31em;
}
.course-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 18px;
}
.stars {
  color: #f59e0b;
  font-size: 0.64rem;
  letter-spacing: 0.5px;
}
.rating-num {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.73rem;
  color: var(--gray);
}
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  gap: 6px;
}
.price-block {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.price-main {
  font-family: "Urbanist", sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--navy);
}
.price-main.on-sale {
  color: #dc2626;
}
.price-orig {
  font-size: 0.76rem;
  color: var(--gray-lt);
  text-decoration: line-through;
}
.card-ctas {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-details-sm {
  padding: 7px 13px;
  background: linear-gradient(90deg, #3fd0c9 0%, #70f07f 100%);
  color: #051c2d;
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-details-sm:hover {
  background: linear-gradient(90deg, #6ff081 0.1%, #42d2c4 99.9%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(63, 208, 201, 0.28);
}
.btn-cart-sm {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.btn-cart-sm:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ══ COURSE LIST ══ */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.course-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.course-row:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(63, 208, 201, 0.1);
}
.course-row-img {
  width: 160px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
.course-row-body {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.course-row-cat {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  margin-bottom: 4px;
}
.course-row-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-row-desc {
  font-size: 0.8rem;
  color: var(--gray-lt);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-row-right {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  min-width: 160px;
}
.course-row-price-main {
  font-family: "Urbanist", sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--navy);
  display: block;
}
.course-row-price-main.on-sale {
  color: #dc2626;
}
.course-row-price-orig {
  font-size: 0.75rem;
  color: var(--gray-lt);
  text-decoration: line-through;
}
.row-sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 50px;
}

/* ══ INLINE MERCH ══ */
.inline-merch {
  background: linear-gradient(135deg, var(--teal-pale) 0%, #f0fffe 100%);
  border: 1px solid rgba(63, 208, 201, 0.22);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 6px 0 18px;
}
.inline-merch-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.inline-merch-title i {
  color: var(--teal-dark);
}
.inline-merch-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.inline-merch-row::-webkit-scrollbar {
  display: none;
}
.im-card {
  flex-shrink: 0;
  width: 200px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(63, 208, 201, 0.18);
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
  display: block;
}
.im-card:hover {
  border-color: var(--teal);
}
.im-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
}
.im-card-body {
  padding: 8px 10px 10px;
}
.im-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--navy);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.im-price {
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--teal-dark);
}

/* ══ EMPTY STATE ══ */
.empty-state {
  text-align: center;
  padding: 72px 20px;
}
.empty-state i {
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 18px;
}
.empty-state h3 {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.empty-state p {
  font-size: 0.9rem;
  color: var(--gray-lt);
  margin-bottom: 20px;
}
.btn-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--navy);
  color: #fff;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-clear:hover {
  background: #1d3a5c;
}

/* ══ LOAD MORE ══ */
.load-more-wrap {
  text-align: center;
  padding: 32px 0 4px;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 36px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-load-more:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  box-shadow: 0 4px 16px rgba(63, 208, 201, 0.16);
}

/* ══ FILTER SIDEBAR ══ */
.filter-sidebar {
  width: 230px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.filter-sidebar::-webkit-scrollbar {
  width: 3px;
}
.filter-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}
.filter-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.filter-hdr {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-hdr-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--navy);
}
.btn-reset-link {
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--gray-lt);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}
.btn-reset-link:hover {
  color: var(--teal-dark);
}
.filter-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.filter-section:last-child {
  border-bottom: none;
}
.filter-section-title {
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-lt);
  margin-bottom: 9px;
}
.cat-btn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cat-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 7px 9px;
  border-radius: 7px;
  font-family: "Urbanist", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition:
    background 0.12s,
    color 0.12s;
}
.cat-btn i {
  color: var(--teal);
  font-size: 0.78rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.cat-btn:hover {
  background: var(--teal-pale);
  color: var(--teal-dark);
}
.cat-btn.active {
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-weight: 700;
}
.cat-btn.active i {
  color: var(--teal-dark);
}
.cat-btn.cat-special {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 11px;
}
.cat-btn.cat-special i {
  color: #f59e0b;
}
.cat-btn.cat-special-sale i {
  color: #ef4444;
}
.filter-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-family: "Lato", sans-serif;
  font-size: 0.83rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}
.filter-opt:hover {
  background: var(--off-white);
}
.filter-opt.active {
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-weight: 700;
}
.filter-opt input {
  accent-color: var(--teal);
  flex-shrink: 0;
}
.filter-opts-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cat-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: "Urbanist", sans-serif;
  font-weight: 700;
  font-size: 0.77rem;
  color: #000;
  cursor: pointer;
  transition: all 0.15s;
}

.info-btn:hover {
  background: var(--gray-lt);
  border-color: var(--gray-lt);
  color: #fff;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1399px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  #cat-hero {
    padding-top: 80px;
  }
}
@media (max-width: 991px) {
  .site-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .filter-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    display: none;
    order: -1;
  }
  .filter-sidebar.open {
    display: block;
  }
  .mobile-filter-btn {
    display: flex;
  }
  .catalog-layout {
    flex-direction: column;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-browse-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .course-row-img {
    width: 120px;
  }
  .course-row-right {
    min-width: 130px;
  }
}
@media (max-width: 767px) {
  #cat-hero {
    padding-top: 80px;
  }
  .cat-hero {
    height: 280px;
  }
  .course-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cat-browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .course-row {
    flex-direction: column;
  }
  .course-row-img {
    width: 100%;
    height: 160px;
  }
  .course-row-right {
    border-left: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }
}
@media (max-width: 575px) {
  .cat-hero {
    height: 320px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .topbar-inner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .topbar-search {
    width: 250px;
  }
  .cat-browse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
