/* QuickSteps Videos: dance, level and step pages. Colours follow the old LearnDash settings (#59cbe8, #0078b5). */
.qs-videos { --qs-primary: #59cbe8; --qs-secondary: #0078b5; margin: 0 0 2em; }
.qs-videos a { color: var(--qs-primary); text-decoration: none; }
.qs-videos a:hover { color: var(--qs-secondary); }

.qs-videos-heading { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin: 1.5em 0 1em; }
.qs-videos .qs-videos-heading h2 { margin: 0; font-size: 22px; line-height: 1.3; }
/* The theme styles every button and link, so these need to win over it. */
.qs-videos button.qs-videos-expand-all, .qs-videos a.qs-videos-button {
  display: inline-block; background: var(--qs-primary) !important; color: #fff !important; border: 0 !important; border-radius: 1.2em !important;
  padding: .75em 1.8em !important; font-size: 14px !important; font-weight: 700; cursor: pointer; line-height: 1.4; text-transform: none;
}
.qs-videos button.qs-videos-expand-all:hover, .qs-videos a.qs-videos-button:hover { background: var(--qs-secondary) !important; }

.qs-videos-level { border: 2px solid #e2e7ed; border-radius: 6px; margin: 0 0 1.1em; }
.qs-videos-level > summary {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title toggle" "count toggle";
  padding: 1.1em 1.4em; cursor: pointer; list-style: none;
}
.qs-videos-level > summary::-webkit-details-marker { display: none; }
.qs-videos-level-title { grid-area: title; font-size: 1.15em; }
.qs-videos .qs-videos-level-title a { color: #333; }
.qs-videos .qs-videos-level-title a:hover { color: var(--qs-secondary); }
.qs-videos-count { grid-area: count; font-size: .8em; font-weight: 700; color: #6c757d; margin-top: .4em; }
.qs-videos-toggle { grid-area: toggle; align-self: center; color: var(--qs-primary); font-size: .8em; font-weight: 700; }
.qs-videos-toggle::before { content: "\25BE  "; }
.qs-videos-level[open] .qs-videos-toggle { font-size: 0; }
.qs-videos-level[open] .qs-videos-toggle::before { content: "\25B4  Collapse"; font-size: .8rem; }
.qs-videos-level .qs-videos-steps { border-top: 2px solid #e2e7ed; }

.qs-videos-steps { list-style: none; margin: 0; padding: 0; }
.qs-videos-steps li { border-bottom: 1px solid #e2e7ed; margin: 0; }
.qs-videos-steps li:last-child { border-bottom: 0; }
.qs-videos .qs-videos-steps a { display: block; padding: .8em 1.4em; color: #333; }
.qs-videos .qs-videos-steps a:hover { background: #f0f3f6; color: var(--qs-secondary); }

.qs-videos-breadcrumbs { background: #f0f3f6; border-radius: 4px; padding: 1em 1.4em; margin: 0 0 1.5em; }
.qs-videos-sep { margin: 0 .6em; color: #6c757d; }

.qs-videos-list-header {
  display: flex; justify-content: space-between; background: var(--qs-primary); color: #fff; font-weight: 700;
  border-radius: 6px 6px 0 0; padding: .9em 1.4em; font-size: .9em;
}
.qs-videos-list-header + .qs-videos-steps { border: 2px solid #e2e7ed; border-top: 0; border-radius: 0 0 6px 6px; }

.qs-videos-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  border-top: 2px solid #e2e7ed; margin-top: 2em; padding-top: 1.2em;
}
.qs-videos-action { flex: 1; }
.qs-videos-action:last-child { text-align: right; }
.qs-videos .qs-videos-back { font-size: 13px; text-align: center; }
.qs-videos-arrow { font-size: 1.2em; line-height: 1; }

@media (max-width: 640px) {
  .qs-videos-actions { flex-wrap: wrap; }
  .qs-videos-back { order: 3; flex-basis: 100%; }
}
