/* ─── Courses overview hero strip ─── */
/* The site header is position:fixed glass-morphic — hero needs top padding to
 * clear it. Matches the homepage hero convention (140px desktop / 84px mobile). */
.courses-hero {
  background: linear-gradient(135deg, #ecfeff 0%, #f8fdff 50%, #ffffff 100%);
  padding: 156px 24px 36px;
  border-bottom: 1px solid var(--border);
}
.courses-hero .section-wrap { max-width: 1400px; margin: 0 auto; }
.courses-eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 500;
}
.courses-hero h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 42px;
  line-height: 1.05;
  color: var(--deep);
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.courses-lede {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 0 22px;
}
.courses-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.courses-hero-stats > div { display: flex; flex-direction: column; }
.courses-hero-stats strong {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 26px;
  color: var(--deep);
  font-weight: 600;
  line-height: 1;
}
.courses-hero-stats span {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 5px;
  font-family: 'Josefin Sans', sans-serif;
}

/* ─── Top category pill row (sticky below header) ─── */
.cat-tabs-wrap {
  position: sticky;
  top: 78px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.cat-tabs {
  display: flex;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border-strong, rgba(6, 182, 212, 0.32));
  border-radius: 100px;
  padding: 9px 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition, all .25s ease);
  white-space: nowrap;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.32);
}
.cat-tab-count {
  font-size: 11px;
  opacity: .75;
  font-weight: 500;
  padding: 1px 7px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 100px;
  letter-spacing: 0;
}
.cat-tab.active .cat-tab-count { background: rgba(255, 255, 255, 0.22); opacity: 1; }

/* ─── Courses-specific layout tweaks ─── */
.courses-main-layout { padding-top: 8px; }
.courses-archive-body .results-bar { padding: 18px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.courses-archive-body .content { padding: 0 24px 48px; min-width: 0; flex: 1; }

/* ─── Card-as-link fixes ─── */
/* The whole card is an <a>, so anchor underlines and link-blue would otherwise
 * leak into title/subtitle/price. Reset and re-apply text colour. */
.courses-archive-body .dest-card,
.courses-archive-body .dest-card:hover,
.courses-archive-body .dest-card:focus,
.courses-archive-body .dest-card:visited,
.courses-archive-body .dest-card * {
  text-decoration: none !important;
}
.courses-archive-body .dest-card { color: var(--text); }
.courses-archive-body .dest-card .card-name { color: var(--text); }
.courses-archive-body .dest-card .card-sub  { color: var(--muted); }
.courses-archive-body .dest-card .price-amount { color: var(--text); }
.courses-archive-body .dest-card .price-srp    { color: var(--dim); }
.courses-archive-body .dest-card .price-per    { color: var(--dim); }

/* Tighten the title → subtitle gap.
 * styles.css gives .card-name min-height for 2 lines (alignment) and .card-sub
 * margin-top: 4px — together that creates a wide gap when title is 1 line. */
.courses-archive-body .dest-card .card-name {
  margin: 0;
  min-height: 0;
  -webkit-line-clamp: 2;
  line-height: 1.18;
}
.courses-archive-body .dest-card .card-sub {
  margin-top: 2px;
  min-height: 0;
  line-height: 1.4;
}

/* Book button — uses the brand logo gradient (green → cyan → blue) like the
 * homepage hero "Plan with Laila" CTA. */
.courses-archive-body .dest-card .card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.96) 0%,
    rgba(6, 182, 212, 0.96) 50%,
    rgba(29, 78, 216, 0.96) 100%);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 20px;
  border-radius: 100px;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow:
    0 6px 18px rgba(29, 78, 216, 0.30),
    0 3px 10px rgba(16, 185, 129, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition: var(--transition, all .2s ease);
}
.courses-archive-body .dest-card:hover .card-cta {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #0ea371 0%, #0891b2 50%, #1e40af 100%);
  box-shadow:
    0 12px 26px rgba(29, 78, 216, 0.42),
    0 5px 14px rgba(16, 185, 129, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* Special card badge variants */
.dest-card .card-season-badge.badge-school {
  background: #dbeafe; border-color: #93c5fd; color: #1e40af;
}
.dest-card .card-season-badge.badge-refresher {
  background: #fef3c7; border-color: #fcd34d; color: #92400e;
}
.dest-card .card-season-badge.badge-bestseller {
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-color: #fcd34d;
  color: #78350f;
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
  font-family: 'Josefin Sans', sans-serif;
}
.no-results h3 {
  font-size: 22px;
  color: var(--deep);
  margin: 0 0 8px;
  font-weight: 600;
}
.no-results p { margin: 0 0 16px; font-size: 14px; }
.no-results .clear-link {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Range slider */
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--primary); }
.range-val {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  min-width: 60px;
  text-align: right;
}

/* Mobile filter button */
.filter-btn-mobile { display: none; }

@media (max-width: 720px) {
  .courses-hero { padding: 100px 18px 24px; }
  .courses-hero h1 { font-size: 30px; }
  .courses-lede { font-size: 14.5px; }
  .courses-hero-stats { gap: 22px; }
  .courses-hero-stats strong { font-size: 22px; }
  .cat-tabs-wrap { top: 64px; }
  .cat-tabs { padding: 10px 16px; }
  .cat-tab { padding: 8px 14px; font-size: 12.5px; }

  .filter-btn-mobile {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-soft);
    border: 1px solid var(--border-strong, rgba(6, 182, 212, 0.32));
    color: var(--deep);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Josefin Sans', sans-serif;
  }
  .filter-btn-mobile:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

  .courses-archive-body .content { padding: 0 16px 32px; }
}

/* ─── Archive hero banner (scoped to /courses/ only) ─── */
body.courses-only-archive-body .courses-hero {
  position: relative;
  background:
    linear-gradient(90deg,
      rgba(15, 23, 42, 0.62) 0%,
      rgba(15, 23, 42, 0.30) 45%,
      rgba(15, 23, 42, 0.05) 70%),
    url('/assets/img/courses/archive-banner.webp') center/cover no-repeat;
  border-bottom: 1px solid rgba(15, 23, 42, 0.15);
}
body.courses-only-archive-body .courses-hero h1,
body.courses-only-archive-body .courses-hero .courses-eyebrow,
body.courses-only-archive-body .courses-hero .courses-lede,
body.courses-only-archive-body .courses-hero-stats strong,
body.courses-only-archive-body .courses-hero-stats span { color: #fff; }
body.courses-only-archive-body .courses-hero .courses-eyebrow { color: rgba(255,255,255,0.92); }
body.courses-only-archive-body .courses-hero .courses-lede,
body.courses-only-archive-body .courses-hero-stats span { color: rgba(255,255,255,0.85); }
