/* Catalogue: category, search, product, Career Services, topic pages (MVLCO design, rebuilt). */

/* ---------- Category banner and cards ---------- */
.mv-category-banner {
  position: relative;
  padding: 56px var(--mvlco-gutter);
  background: linear-gradient(135deg, var(--mvlco-deep-blue), var(--mvlco-primary));
  text-align: center;
}
.mv-category-banner h1 { margin: 0; color: var(--mvlco-white); font-size: clamp(28px, 4vw, 42px); }

.mv-catalog { padding: 40px 0 60px; background: var(--mvlco-bg-tint); }
.mv-catalog__title { margin: 0 0 20px; font-size: clamp(26px, 3vw, 36px); }

.mv-catalog__card {
  margin-bottom: 30px;
  padding: 28px;
  border-radius: 18px;
  background: var(--mvlco-white);
  box-shadow: var(--mvlco-shadow-soft);
}
.mv-catalog__card-title { margin-bottom: 20px; font-size: 22px; }
.mv-catalog__grid { margin-top: 24px; }

.mv-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.mv-subcats__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--mvlco-border);
  border-radius: var(--mvlco-radius);
  color: var(--mvlco-deep-blue);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: transform var(--mvlco-transition), box-shadow var(--mvlco-transition);
}
.mv-subcats__card:hover { transform: translateY(-4px); box-shadow: var(--mvlco-shadow-soft); }
.mv-subcats__card img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--mvlco-radius-sm); }

/* ---------- Toolbar, pager, notices, states ---------- */
.mv-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.mv-toolbar__field { display: inline-flex; align-items: center; gap: 8px; color: var(--mvlco-text-muted); font-size: 14px; }
.mv-toolbar select, .mv-option__select {
  padding: 9px 14px;
  border: 1px solid var(--mvlco-border);
  border-radius: var(--mvlco-radius-sm);
  background: var(--mvlco-white);
  color: var(--mvlco-text);
  font: inherit;
}

.mv-pager { margin-top: 36px; }
.mv-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mv-pager a, .mv-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--mvlco-radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.mv-pager a { border: 1px solid var(--mvlco-border); background: var(--mvlco-white); color: var(--mvlco-deep-blue); }
.mv-pager a:hover { border-color: var(--mvlco-primary); color: var(--mvlco-primary); }
.mv-pager span[aria-current] { background: var(--mvlco-primary); color: var(--mvlco-white); }

.mv-notice { margin: 16px 0; padding: 12px 16px; border-radius: var(--mvlco-radius-sm); }
.mv-notice--warning { border-left: 4px solid var(--mvlco-warning); background: #FFF8EC; color: #5A3B00; }

.mv-status { padding: 60px 20px; text-align: center; }
.mv-status--compact { padding: 32px 12px; }
.mv-status__title { margin-bottom: 8px; font-size: 22px; }
.mv-status p { color: var(--mvlco-text-muted); }

.mv-search-page__form { display: flex; gap: 12px; max-width: 640px; margin-bottom: 24px; }
.mv-search-page__form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--mvlco-border);
  border-radius: var(--mvlco-radius-pill);
  font: inherit;
}

/* ---------- Breadcrumb ---------- */
.mv-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; }
.mv-breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.mv-breadcrumb a { color: inherit; }

/* ---------- Course page hero (Product_Video_Template_Youtube) ---------- */
.mv-product-hero { padding: 20px 0 40px; background: var(--mvlco-navy-section); color: var(--mvlco-white); }
.mv-product-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.mv-product-hero__main { flex: 0 1 55%; min-width: 0; }
.mv-product-hero__video { flex: 0 1 40%; min-width: 0; }
.mv-product-hero .mv-breadcrumb { color: rgba(255, 255, 255, 0.8); }
.mv-product-hero__title { margin: 10px 0 0; color: var(--mvlco-white); font-family: var(--mvlco-font-body); font-size: 34px; font-weight: 700; line-height: 1.3; }

.mv-product-hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 60px; margin-top: 25px; }

.mv-video-frame--hero { border-radius: 18px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35); }

/* Options */
.mv-option { margin-top: 18px; }
.mv-option__label { margin-bottom: 10px; font-weight: 600; font-size: 16px; }
.mv-option__required { margin-left: 3px; color: var(--mvlco-price-old); }
.mv-option__description { margin-bottom: 8px; font-size: 14px; opacity: 0.9; }
.mv-option__pills { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.mv-option__unsupported { margin: 0; font-size: 14px; opacity: 0.85; }
.mv-option__text {
  width: 100%;
  max-width: 480px;
  padding: 11px 14px;
  border: 2px solid #D5DEEA;
  border-radius: 9px;
  font: inherit;
}

.mv-pill { position: relative; display: inline-flex; cursor: pointer; }
.mv-pill input { position: absolute; opacity: 0; pointer-events: none; }
.mv-pill span,
button.mv-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--mvlco-white);
  color: #0D5BE1;
  font-weight: 600;
  font-size: 14px;
  transition: box-shadow 0.2s, background 0.2s;
}
.mv-pill input:checked + span {
  background: linear-gradient(135deg, var(--mvlco-footer-follow), #FFB300);
  color: #000;
  box-shadow: 0 8px 20px rgba(255, 208, 0, 0.4);
}
.mv-pill input:focus-visible + span { outline: 3px solid var(--mvlco-gold); outline-offset: 2px; }
.mv-pill input:disabled + span { opacity: 0.7; cursor: default; }
button.mv-pill--live { border: 2px solid #DDE3EF; border-radius: 50px; color: #1A3A8A; cursor: pointer; }
button.mv-pill--live:hover { border-color: #2952C8; box-shadow: 0 2px 10px rgba(41, 82, 200, 0.15); }

/* Price */
.mv-price { display: flex; flex-direction: column; }
.mv-price__old { color: rgba(255, 255, 255, 0.7); text-decoration: line-through; font-size: 18px; }
.mv-price__value { color: var(--mvlco-white); font-size: 42px; font-weight: 800; line-height: 1.15; transition: opacity 0.2s; }
.mv-price__value[aria-busy="true"] { opacity: 0.55; }
.mv-price__note { color: rgba(255, 255, 255, 0.7); font-size: 14px; }
.mv-price__message { margin-top: 6px; color: var(--mvlco-yellow); font-size: 13px; }

/* Buy entry point */
.mv-buy { display: flex; flex-direction: column; gap: 6px; }
.mv-buy__button {
  padding: 16px 36px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mvlco-footer-follow), #FFB300);
  box-shadow: 0 10px 30px rgba(255, 208, 0, 0.5);
  color: #000;
  font-weight: 700;
  font-size: 16px;
}
.mv-buy__button:disabled { cursor: not-allowed; opacity: 0.6; box-shadow: none; }
.mv-buy__note { font-size: 12px; opacity: 0.8; }

/* Discount chips (MvlcoProductDiscountBadge) */
.mv-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mv-badges__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 12px;
  border: 1px solid #C8E6C9;
  border-radius: var(--mvlco-radius-pill);
  background: #EEF7EF;
  color: #1B5E20;
  font-size: 13px;
  line-height: 1.2;
}
.mv-badges__title { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mv-badges__saving { padding: 2px 8px; border-radius: var(--mvlco-radius-pill); background: #D7ECD9; font-weight: 700; font-size: 0.88em; }
.mv-badges__amount { color: #2E7D32; font-weight: 700; }

/* Quick facts and information */
.mv-quickfacts {
  width: min(1200px, calc(100% - 32px));
  margin: 40px auto;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--mvlco-white);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.mv-quickfacts h2 { color: #0B2D5C; font-size: 22px; }

.mv-product-info { padding: 20px 0 40px; }
.mv-product-info__description { max-width: 1200px; margin: 0 auto; }

.mv-rich-text { overflow-wrap: anywhere; }
.mv-rich-text img { max-width: 100%; height: auto; }
.mv-rich-text iframe { max-width: 100%; }
.mv-rich-text table { max-width: 100%; border-collapse: collapse; }
.mv-rich-text ul, .mv-rich-text ol { padding-left: 22px; list-style: revert; }

.mv-specs { margin-top: 30px; }
.mv-specs__title { font-size: 22px; }
.mv-specs table { width: 100%; border-collapse: collapse; }
.mv-specs th, .mv-specs td { padding: 10px 12px; border-bottom: 1px solid var(--mvlco-border); text-align: left; vertical-align: top; }
.mv-specs th { width: 35%; color: var(--mvlco-deep-blue); }

/* ---------- Career Services ---------- */
.mv-cs__page { padding-top: 24px; padding-bottom: 40px; color: #16233A; }
.mv-cs__hero {
  margin-bottom: 28px;
  padding: 40px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #001B3A, #003A7D);
  color: var(--mvlco-white);
  text-align: center;
}
.mv-cs__hero h1 { margin-bottom: 8px; color: var(--mvlco-white); font-family: var(--mvlco-font-body); font-size: 34px; }
.mv-cs__hero .mv-rich-text { max-width: 680px; margin: 0 auto; opacity: 0.9; }

.mv-cs__experience {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  border: 2px solid #E6EBF3;
  border-left: 5px solid #0D5BE1;
  border-radius: 16px;
  background: var(--mvlco-white);
}
.mv-cs__experience-label { display: block; color: #0B2D5C; font-size: 16px; font-weight: 800; }
.mv-cs__hint { display: block; color: #6B7891; font-size: 13.5px; }
.mv-cs__experience select { flex: 0 0 260px; padding: 13px 15px; border: 2px solid #D5DEEA; border-radius: 11px; color: #0B2D5C; font: inherit; font-weight: 700; }

.mv-cs__section-title { margin: 30px 0 6px; color: #0B2D5C; font-family: var(--mvlco-font-body); font-size: 23px; font-weight: 800; }
.mv-cs__section-sub { margin-bottom: 20px; color: #5A6880; font-size: 14.5px; }

.mv-cs__plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mv-cs__plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 2px solid #E6EBF3;
  border-radius: 18px;
  background: var(--mvlco-white);
  box-shadow: 0 10px 30px rgba(11, 45, 92, 0.06);
}
.mv-cs__plan.is-selected { border-color: #0D5BE1; box-shadow: 0 18px 46px rgba(13, 91, 225, 0.22); }
.mv-cs__plan h3 { margin-bottom: 16px; color: #0B2D5C; font-family: var(--mvlco-font-body); font-size: 21px; font-weight: 800; }
.mv-cs__features { margin: 0 0 20px; }
.mv-cs__features li { position: relative; margin-bottom: 10px; padding-left: 26px; color: #3A4763; font-size: 14.5px; }
.mv-cs__features li::before { content: "✓"; position: absolute; left: 0; color: #1F9D55; font-weight: 800; }
.mv-cs__amount { color: #0B2D5C; font-size: 36px; font-weight: 800; line-height: 1; }
.mv-cs__amount-note { margin: 5px 0 20px; color: #8794AA; font-size: 12.5px; font-weight: 600; text-transform: uppercase; }
.mv-cs__select { margin-top: auto; padding: 14px; border: 2px solid #0D5BE1; border-radius: 11px; background: var(--mvlco-white); color: #0D5BE1; font-weight: 800; }
.mv-cs__plan.is-selected .mv-cs__select { background: #0D5BE1; color: var(--mvlco-white); }

.mv-cs__details { padding: 22px 24px; border: 1px solid #E6EBF3; border-radius: 16px; background: var(--mvlco-white); }
.mv-cs__details .mv-option__label { color: #0B2D5C; font-size: 14.5px; font-weight: 700; }

.mv-cs__bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 14px 22px;
  border: 1px solid #E6EBF3;
  border-top: 3px solid var(--mvlco-footer-follow);
  border-radius: 14px 14px 0 0;
  background: var(--mvlco-white);
  box-shadow: 0 -8px 26px rgba(11, 45, 92, 0.12);
}
.mv-cs__selection { flex: 1 1 220px; color: #5A6880; font-size: 14.5px; }
.mv-cs__selection strong { color: #0B2D5C; }
.mv-cs__total { color: #0B2D5C; font-size: 30px; font-weight: 800; white-space: nowrap; }
.mv-cs .mv-buy__note { color: var(--mvlco-text-muted); }

/* ---------- Topic pages ---------- */
.mv-topic { padding: 40px 0 60px; }
.mv-topic__title { margin-bottom: 24px; font-size: clamp(26px, 3.4vw, 40px); }

/* ---------- Live enquiry dialog ---------- */
.mv-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.55);
}
.mv-dialog[hidden] { display: none; }
.mv-dialog__box {
  position: relative;
  width: 400px;
  max-width: 100%;
  padding: 30px 26px;
  border-radius: 14px;
  background: var(--mvlco-white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.mv-dialog__box h2 { text-align: center; color: #1A1A2E; font-family: var(--mvlco-font-body); font-size: 22px; }
.mv-dialog__info { padding: 14px 16px; border-left: 4px solid #2952C8; border-radius: 0 8px 8px 0; background: #F0F4FF; color: #333; font-size: 13.5px; line-height: 1.55; }
.mv-dialog__form input { width: 100%; margin: 5px 0; padding: 11px 14px; border: 1px solid #DDD; border-radius: 8px; font: inherit; }
.mv-dialog__submit {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1A3A8A, #2952C8);
  color: var(--mvlco-white);
  font-weight: 600;
}
.mv-dialog__close { position: absolute; top: 10px; right: 14px; width: 36px; height: 36px; border: 0; background: none; color: #999; font-size: 26px; }
.mv-dialog__message { margin: 10px 0 0; font-size: 14px; text-align: center; }
.mv-dialog__message.is-ok { color: var(--mvlco-success); }
.mv-dialog__message.is-error { color: var(--mvlco-error); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mv-product-hero__inner { flex-direction: column; align-items: stretch; }
  .mv-product-hero__main, .mv-product-hero__video { flex-basis: auto; width: 100%; }
  .mv-cs__plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mv-catalog__card { padding: 20px 16px; }
  .mv-toolbar { justify-content: stretch; }
  .mv-toolbar__field { flex: 1 1 140px; }
  .mv-toolbar__field select { flex: 1; }
  .mv-product-hero__title { font-size: 26px; }
  .mv-product-hero__buy { flex-direction: column; align-items: flex-start; gap: 16px; }
  .mv-buy, .mv-buy__button { width: 100%; }
  .mv-price__value { font-size: 34px; }
  .mv-badges { justify-content: center; }
  .mv-quickfacts { margin: 24px auto; }
  .mv-cs__plans { grid-template-columns: 1fr; }
  .mv-cs__hero { padding: 30px 22px; }
  .mv-cs__hero h1 { font-size: 27px; }
  .mv-cs__experience { flex-direction: column; align-items: stretch; }
  .mv-cs__experience select { flex-basis: auto; width: 100%; }
  .mv-cs__total { font-size: 24px; }
  .mv-specs th { width: 45%; }
}

@media (max-width: 480px) {
  .mv-category-banner { padding: 40px 16px; }
  .mv-option__pills { gap: 10px; }
  .mv-pill span, button.mv-pill { padding: 0 16px; }
  .mv-search-page__form { flex-direction: column; }
}

@media (hover: none) {
  .mv-subcats__card:hover { transform: none; }
}

/* ── RioCommerce-backed course pages (MVLCO theme) ─────────────────────────── */
.mv-category-banner__intro { margin: 8px auto 0; max-width: 760px; color: var(--mvlco-white); opacity: 0.9; }
.mv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.mv-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--mvlco-border);
  border-radius: 999px; background: var(--mvlco-white); color: var(--mvlco-deep-blue); font-size: 14px; font-weight: 500; text-decoration: none;
}
a.mv-chip { text-decoration: none; }
.mv-chip:hover { border-color: var(--mvlco-primary); color: var(--mvlco-primary); }
.mv-chip.is-active { background: var(--mvlco-primary); border-color: var(--mvlco-primary); color: var(--mvlco-white); }
.mv-chip__count { font-size: 12px; opacity: 0.75; }
.mv-toolbar__field--grow { flex: 1 1 260px; }
.mv-catalog__count { margin: 0 0 14px; color: var(--mvlco-muted, #555); font-size: 14px; }
nav.mv-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mv-pager__item { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: var(--mvlco-radius-sm); }
.mv-pager__item.is-current { background: var(--mvlco-primary); color: var(--mvlco-white); }

.mv-product-hero__media { flex: 0 1 40%; min-width: 0; }
.mv-product-hero__picture { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--mvlco-radius); background: var(--mvlco-white); }
.mv-product-hero__picture--empty { display: flex; align-items: center; justify-content: center; height: 240px; font-size: 64px; color: var(--mvlco-primary); }
.mv-buy__button { cursor: pointer; }
.mv-notice--success { border-left: 4px solid #1e8e3e; background: #EEF8F0; color: #14532d; }
.mv-product-hero .mv-notice a { color: inherit; text-decoration: underline; }
.mv-enquiry { margin-top: 18px; max-width: 520px; }
.mv-enquiry summary { cursor: pointer; font-weight: 600; color: var(--mvlco-topbar-accent, #ffeb3b); }
.mv-enquiry__form { display: grid; gap: 10px; margin-top: 12px; }
.mv-enquiry__form label { display: grid; gap: 4px; font-size: 14px; }

.mv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0; }
.mv-facts__row { padding: 14px 16px; border: 1px solid var(--mvlco-border); border-radius: var(--mvlco-radius-sm); background: var(--mvlco-white); }
.mv-facts dt { font-size: 13px; color: var(--mvlco-muted, #555); }
.mv-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--mvlco-deep-blue); }

@media (max-width: 992px) {
  .mv-product-hero__media { flex-basis: 100%; }
}

/* ── Courses page (approved "Explore Our Courses" design): Categories sidebar left, courses right ───────── */
.mv-catalog--listing { padding: 24px 0 64px; background: #F5F8FD; }
.mv-catalog__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.mv-catalog__main { min-width: 0; }

/* Sidebar */
.mv-cat-sidebar__panel {
  padding: 24px 18px 18px;
  border: 1px solid #EEF2F8;
  border-radius: 18px;
  background: var(--mvlco-white);
  box-shadow: 0 12px 30px rgba(10, 35, 90, 0.07);
}
.mv-cat-sidebar__summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: default; }
.mv-cat-sidebar__summary::-webkit-details-marker { display: none; }
.mv-cat-sidebar__title {
  position: relative;
  flex: 1;
  margin: 0 0 18px;
  padding: 0 4px 14px;
  color: var(--mvlco-header-title);
  font-size: 24px;
  font-weight: 700;
}
.mv-cat-sidebar__title::after {
  content: "";
  position: absolute;
  left: 4px; bottom: 0;
  width: 84px; height: 4px;
  border-radius: 4px;
  background: var(--mvlco-gold);
}
.mv-cat-sidebar__chevron { display: none; }

.mv-cat-tree { margin: 0; padding: 0; list-style: none; }
.mv-cat-tree__item--group { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--mvlco-header-line); }
.mv-cat-tree__item--group:first-of-type { border-top: 0; }
.mv-cat-tree__item--all + .mv-cat-tree__item--group { border-top: 0; margin-top: 10px; padding-top: 0; }
.mv-cat-tree--nested { margin: 2px 0 6px; padding-left: 40px; }
.mv-cat-tree--nested .mv-cat-tree--nested { padding-left: 14px; margin-left: 4px; border-left: 2px solid var(--mvlco-header-line); }
.mv-cat-tree__row { display: flex; align-items: center; gap: 2px; }
.mv-cat-tree__link {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #33415C;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.mv-cat-tree__name { flex: 1; min-width: 0; }
.mv-cat-tree__item--group > .mv-cat-tree__row .mv-cat-tree__link { color: var(--mvlco-header-text); font-size: 16px; font-weight: 700; }
.mv-cat-tree__icon {
  display: inline-flex;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  color: var(--mvlco-header-title);
  font-size: 18px;
}
.mv-cat-tree__count { flex: 0 0 auto; min-width: 22px; color: #6B778C; font-size: 14px; font-weight: 500; text-align: right; }
.mv-cat-tree__go { font-size: 12px; }
.mv-cat-tree__link:hover, .mv-cat-tree__link:focus-visible { background: var(--mvlco-header-tint); color: var(--mvlco-header-accent-dark); }
.mv-cat-tree__link.is-active,
.mv-cat-tree__item--group > .mv-cat-tree__row .mv-cat-tree__link.is-active {
  background: var(--mvlco-header-accent);
  color: var(--mvlco-white);
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.28);
}
.mv-cat-tree__item--all .mv-cat-tree__link { min-height: 50px; padding: 10px 14px; font-weight: 600; }
.mv-cat-tree__item--all .mv-cat-tree__link:not(.is-active) { border: 1px solid var(--mvlco-header-line); }
.mv-cat-tree__link.is-active .mv-cat-tree__icon,
.mv-cat-tree__link.is-active .mv-cat-tree__count { color: var(--mvlco-white); }
.mv-cat-tree__toggle {
  display: inline-flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4A5874;
  font-size: 12px;
  cursor: pointer;
}
.mv-cat-tree__toggle:hover { background: var(--mvlco-header-tint); }
.mv-cat-tree__toggle i { transition: transform 0.2s ease; }
.mv-cat-tree__toggle[aria-expanded="true"] i { transform: rotate(180deg); }

/* Hero banner */
.mv-courses-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 16px;
  min-height: 196px;
  margin-bottom: 26px;
  padding: 30px 36px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 50%, rgba(56, 160, 255, 0.35), transparent 42%),
    linear-gradient(115deg, #061A44 0%, #0A2E78 55%, #0B47C4 100%);
  color: var(--mvlco-white);
  box-shadow: 0 16px 34px rgba(6, 26, 68, 0.22);
}
.mv-courses-hero h1 { margin: 0; color: var(--mvlco-white); font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; line-height: 1.15; }
.mv-courses-hero__accent { color: #3EC6FF; }
.mv-courses-hero__subtitle { margin: 10px 0 0; color: rgba(255, 255, 255, 0.92); font-size: clamp(15px, 1.4vw, 18px); font-weight: 500; }
.mv-courses-hero__breadcrumb { margin-bottom: 8px; color: rgba(255, 255, 255, 0.8); }
.mv-courses-hero__breadcrumb ol { margin: 0; }
.mv-courses-hero__breadcrumb a { color: var(--mvlco-white); text-decoration: underline; text-underline-offset: 3px; }
.mv-courses-hero__highlights { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.mv-courses-hero__highlights li { display: inline-flex; align-items: center; gap: 10px; max-width: 190px; color: rgba(255, 255, 255, 0.95); font-size: 14px; line-height: 1.3; }
.mv-courses-hero__highlight-icon {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(62, 198, 255, 0.16);
  color: #6FD3FF;
  font-size: 16px;
}
.mv-courses-hero__art { position: relative; width: 240px; height: 170px; justify-self: end; }
.mv-courses-hero__orb {
  position: absolute;
  left: 50%; top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px; height: 108px;
  border: 2px solid rgba(111, 211, 255, 0.7);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 198, 255, 0.35), rgba(11, 71, 196, 0.25));
  box-shadow: 0 0 36px rgba(62, 198, 255, 0.55), inset 0 0 22px rgba(62, 198, 255, 0.35);
  color: var(--mvlco-white);
  font-size: 46px;
  transform: translate(-50%, -50%);
}
.mv-courses-hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(111, 211, 255, 0.55);
  border-radius: 10px;
  background: rgba(6, 26, 68, 0.55);
  color: #8FDCFF;
  font-size: 16px;
}
.mv-courses-hero__chip--1 { left: 6px; top: 22px; }
.mv-courses-hero__chip--2 { left: 30px; bottom: 6px; }
.mv-courses-hero__chip--3 { right: 4px; top: 12px; }
.mv-courses-hero__chip--4 { right: 18px; bottom: 14px; }
.mv-courses-hero__chip--5 { left: 50%; top: -6px; transform: translateX(-50%); }

/* Heading, count and search */
.mv-catalog__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.mv-catalog__title-group { display: flex; align-items: center; gap: 14px; }
.mv-catalog__heading { margin: 0; color: var(--mvlco-header-title); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.mv-catalog__count-pill {
  padding: 6px 14px;
  border: 1px solid var(--mvlco-header-line);
  border-radius: var(--mvlco-radius-pill);
  background: var(--mvlco-white);
  color: #4A5874;
  font-size: 14px;
  white-space: nowrap;
}
.mv-course-search { display: flex; flex: 1 1 380px; gap: 10px; max-width: 560px; }
.mv-course-search__field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #D8E0EC;
  border-radius: 10px;
  background: var(--mvlco-white);
  color: #4A5874;
}
.mv-course-search__field:focus-within { border-color: var(--mvlco-header-accent); box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15); }
.mv-course-search__field input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; color: var(--mvlco-text); font: inherit; font-size: 15px; }
.mv-course-search__button {
  flex: 0 0 auto;
  padding: 0 26px;
  border: 0;
  border-radius: 10px;
  background: var(--mvlco-header-accent);
  color: var(--mvlco-white);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
.mv-course-search__button:hover { background: #3D8DFF; }

/* Course cards (listing layout of the shared card) */
.mv-catalog--listing .mv-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 0; }
.mv-card--listing {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  border: 1px solid #EEF2F8;
  border-radius: 16px;
  overflow: hidden;
  background: var(--mvlco-white);
  box-shadow: 0 10px 24px rgba(10, 35, 90, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mv-card--listing:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(10, 35, 90, 0.12); }
.mv-card--listing .mv-card__picture { display: block; margin: 0; padding: 0; aspect-ratio: 1 / 1; background: #061A44; }
.mv-card--listing .mv-card__picture img { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
.mv-card--listing .mv-card__details { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 16px 18px; text-align: left; }
.mv-card__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.mv-card__title a {
  display: -webkit-box;
  min-height: calc(1.35em * 2);
  overflow: hidden;
  color: var(--mvlco-header-text);
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.mv-card__title a:hover { color: var(--mvlco-header-accent-dark); }
.mv-card__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: #4A5874; font-size: 14px; }
.mv-card__facts li { display: inline-flex; align-items: center; gap: 7px; }
.mv-card__facts i { color: var(--mvlco-header-title); }
.mv-card--listing .mv-card__prices { justify-content: flex-start; margin: 2px 0 0; }
.mv-card--listing .mv-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 0;
  border-radius: 10px;
  background: var(--mvlco-header-accent);
  font-size: 16px;
}
.mv-card--listing .mv-card__button:hover { background: #3D8DFF; }
.mv-card__price--pending {
  padding: 5px 12px;
  border: 1px dashed #F0B429;
  border-radius: var(--mvlco-radius-pill);
  background: #FFF8E6;
  color: #8A5A00;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1279px) {
  .mv-catalog__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
  .mv-cat-sidebar__panel { padding: 22px 12px 14px; }
  .mv-cat-tree--nested { padding-left: 22px; }
  .mv-cat-tree__link { gap: 8px; padding: 7px 8px; font-size: 14px; }
  .mv-cat-tree__toggle { flex-basis: 28px; width: 28px; }
  .mv-courses-hero { grid-template-columns: minmax(0, 1fr); padding: 28px; }
  .mv-courses-hero__art { display: none; }
  .mv-catalog--listing .mv-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet and phone: one column; the sidebar becomes a collapsible "Categories" panel above the courses. */
@media (max-width: 991px) {
  .mv-catalog__layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mv-cat-sidebar__panel { padding: 14px 16px; }
  .mv-cat-sidebar__summary { cursor: pointer; }
  .mv-cat-sidebar__title { margin: 0; padding: 4px 0; font-size: 20px; }
  .mv-cat-sidebar__title::after { display: none; }
  .mv-cat-sidebar__chevron { display: inline-block; color: var(--mvlco-header-text); transition: transform 0.2s ease; }
  .mv-cat-sidebar__panel[open] .mv-cat-sidebar__chevron { transform: rotate(180deg); }
  .mv-cat-sidebar__panel[open] nav { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--mvlco-border); }
  .mv-course-search { max-width: none; }
}

@media (max-width: 639px) {
  .mv-catalog--listing { padding-top: 16px; }
  .mv-courses-hero { min-height: 0; padding: 24px 20px; border-radius: 16px; }
  .mv-courses-hero__highlights { gap: 12px; margin-top: 16px; }
  .mv-courses-hero__highlights li { max-width: none; flex: 1 1 100%; }
  .mv-catalog__bar { gap: 12px; }
  .mv-course-search { flex-basis: 100%; }
  .mv-course-search__button { padding: 0 18px; }
  .mv-catalog--listing .mv-catalog__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Course page (approved premium design): navy hero, white facts card, options, picture and benefits ── */
.mv-pd {
  padding: 22px 0 44px;
  background: var(--mvlco-navy-section);
  color: var(--mvlco-white);
}
.mv-pd__inner { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

.mv-pd__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; }
.mv-pd__crumbs li { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.85); }
.mv-pd__crumbs li + li::before { content: "\203A"; color: rgba(255, 255, 255, 0.6); font-size: 16px; }
.mv-pd__crumbs a { display: inline-flex; align-items: center; gap: 7px; color: var(--mvlco-white); text-decoration: none; }
.mv-pd__crumbs a:hover { text-decoration: underline; }

.mv-pd__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 32px 36px; align-items: start; }
.mv-pd__main, .mv-pd__side { min-width: 0; }
/* The picture column follows the grid but never outgrows the course details beside it. */
.mv-pd__side { width: 100%; max-width: 600px; justify-self: end; margin-top: 8px; }

.mv-pd__title { margin: 0 0 18px; color: var(--mvlco-white); font-size: clamp(28px, 3.3vw, 46px); font-weight: 700; line-height: 1.15; }
.mv-pd__title-accent { color: #3EC6FF; }

/* White course information card */
.mv-pd-info {
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--mvlco-white);
  color: var(--mvlco-text);
  box-shadow: 0 16px 34px rgba(2, 12, 40, 0.28);
}
.mv-pd-info__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 20px; }
.mv-pd-info__facts { display: grid; gap: 9px; margin: 0; }
.mv-pd-info__fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: baseline; }
.mv-pd-info__fact dt { display: inline-flex; align-items: center; gap: 12px; color: var(--mvlco-header-text); font-weight: 600; }
.mv-pd-info__fact dt::after { content: ":"; margin-left: auto; padding-right: 14px; color: #8A94A6; font-weight: 400; }
.mv-pd-info__fact dt i { width: 20px; color: var(--mvlco-header-title); font-size: 17px; text-align: center; }
.mv-pd-info__fact dd { margin: 0; color: #33415C; }
.mv-pd-info__brochure {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--mvlco-header-accent);
  color: var(--mvlco-white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.3);
  transition: background-color 0.2s;
}
.mv-pd-info__brochure:hover { background: #3D8DFF; color: var(--mvlco-white); }
.mv-pd-info__brochure i:first-child { font-size: 18px; }
.mv-pd-info__terms { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mvlco-border); }
.mv-pd-info__terms h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--mvlco-header-title); font-size: 18px; font-weight: 700; }
.mv-pd-info__terms ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; color: #33415C; font-size: 14.5px; line-height: 1.5; }
.mv-pd-info__terms li { position: relative; padding-left: 28px; }
.mv-pd-info__terms li::before {
  content: "\f058";
  position: absolute;
  left: 0; top: 1px;
  color: var(--mvlco-header-accent);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.mv-pd-info a:not(.mv-pd-info__brochure) { color: var(--mvlco-header-accent-dark); }
.mv-pd-info.mv-rich-text ul { padding-left: 18px; }

/* Choose how you learn */
.mv-pd-modes { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; border: 0; }
.mv-pd-modes legend { margin-bottom: 10px; padding: 0; color: var(--mvlco-white); font-size: 22px; font-weight: 700; }
.mv-pd-modes__option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  min-height: 60px;
  padding: 10px 18px;
  border: 1.5px solid rgba(111, 211, 255, 0.35);
  border-radius: 14px;
  background: rgba(4, 22, 61, 0.45);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.mv-pd-modes__option:hover { border-color: rgba(111, 211, 255, 0.7); }
.mv-pd-modes__option:has(input:checked) { border-color: #6FD3FF; background: rgba(22, 119, 255, 0.22); box-shadow: 0 0 0 1px #6FD3FF inset; }
.mv-pd-modes__option:has(input:focus-visible) { outline: 2px solid #FFD24D; outline-offset: 2px; }
.mv-pd-modes__option.is-disabled { opacity: 0.6; cursor: not-allowed; }
.mv-pd-modes__option input { width: 18px; height: 18px; margin: 0; accent-color: var(--mvlco-header-accent); }
.mv-pd-modes__icon { color: #6FD3FF; font-size: 22px; }
.mv-pd-modes__name { font-size: 18px; font-weight: 600; }
.mv-pd-modes__price { display: grid; justify-items: end; text-align: right; }
.mv-pd-modes__amount { font-size: 18px; font-weight: 700; }
.mv-pd-modes__sample { color: rgba(255, 255, 255, 0.78); font-size: 12px; }
.mv-pd-modes__note { grid-column: 3 / -1; color: #FFD66B; font-size: 13px; }

/* Total and Add to Cart */
.mv-pd-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1.5px solid rgba(111, 211, 255, 0.3);
  border-radius: 16px;
  background: rgba(4, 22, 61, 0.55);
}
.mv-pd-buy__total { display: grid; gap: 2px; }
.mv-pd-buy__label { color: rgba(255, 255, 255, 0.8); font-size: 14px; }
.mv-pd-buy__old { color: rgba(255, 255, 255, 0.6); font-size: 15px; text-decoration: line-through; }
.mv-pd-buy__amount { color: var(--mvlco-white); font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.1; }
.mv-pd-buy__amount--tbc { font-size: 24px; }
.mv-pd-buy__pending { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; color: #FFD66B; font-size: 13.5px; font-weight: 600; }
.mv-pd-buy__button {
  display: inline-flex;
  flex: 0 1 280px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFD43B, #FFB800);
  color: #1A1A1A;
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 184, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mv-pd-buy__button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255, 184, 0, 0.4); }
.mv-pd-buy__button:disabled { background: #8A94A6; color: #E8ECF3; box-shadow: none; cursor: not-allowed; }
.mv-pd .mv-notice { margin-top: 12px; }
.mv-pd .mv-notice a { color: inherit; text-decoration: underline; }

/* Picture, video link and benefits */
/* The picture wrapper is the frame itself (no inner padding): a thin cyan border, rounded corners, and the
   picture filling it in a square box — MVLCO's posters are square, so "contain" shows all of the artwork
   (a slightly non-square one gets a thin navy margin, never a crop or a stretch). */
.mv-pd-media {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(111, 211, 255, 0.65);
  border-radius: 18px;
  background: #061A44;
  box-shadow: 0 18px 36px rgba(2, 12, 40, 0.35);
}
.mv-pd-media__picture { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.mv-pd-media__picture--empty { display: flex; align-items: center; justify-content: center; color: #6FD3FF; font-size: 72px; }
.mv-pd-media .mv-video-frame { border-radius: 0; }
/* Compact overlay in the picture's top-left corner; it does not move the picture. */
.mv-pd-media__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  padding: 6px 13px;
  border-radius: var(--mvlco-radius-pill);
  background: #FFD43B;
  color: #1A1A1A;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.mv-pd-media__video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  color: var(--mvlco-white);
  font-weight: 600;
  text-decoration: none;
}
.mv-pd-media__video i { color: #FF3B3B; font-size: 20px; }
.mv-pd-media__video:hover { border-color: #6FD3FF; color: var(--mvlco-white); }
.mv-pd-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.mv-pd-benefits li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  color: var(--mvlco-white);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.mv-pd-benefits li + li { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.mv-pd-benefits__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--mvlco-header-accent);
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.45);
  font-size: 20px;
}

@media (max-width: 1199px) {
  .mv-pd__inner { padding: 0 24px; }
  .mv-pd__grid { gap: 28px; }
  .mv-pd-info__fact { grid-template-columns: 130px minmax(0, 1fr); }
}

/* Tablet and phone: one column — title and facts, options and Add to Cart, then picture and benefits. */
@media (max-width: 991px) {
  .mv-pd__grid { grid-template-columns: minmax(0, 1fr); }
  .mv-pd__side { max-width: 560px; justify-self: start; margin-top: 0; }
}

@media (max-width: 639px) {
  .mv-pd { padding-top: 16px; }
  .mv-pd__inner { padding: 0 16px; }
  .mv-pd-info { padding: 18px 16px; }
  .mv-pd-info__fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mv-pd-info__fact dt::after { display: none; }
  .mv-pd-info__fact dd { padding-left: 32px; }
  .mv-pd-info__brochure { width: 100%; justify-content: center; }
  .mv-pd-modes__option { grid-template-columns: auto auto minmax(0, 1fr); padding: 12px 14px; }
  .mv-pd-modes__price { grid-column: 3; justify-items: start; text-align: left; }
  .mv-pd-modes__note { grid-column: 1 / -1; }
  .mv-pd-buy { padding: 16px; }
  .mv-pd-buy__button { flex: 1 1 100%; }
  .mv-pd-benefits { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .mv-pd-benefits li:nth-child(3) { border-left: 0; }
  .mv-pd-media__badge { top: 10px; left: 10px; padding: 5px 11px; font-size: 12.5px; }
}
