.az-lessons {
  --az-lessons-text: #33312e;
  --az-lessons-muted: #66635e;
  --az-lessons-turquoise: #017a89;
  --az-lessons-orange: #f58220;
  --az-lessons-line: #d8e4e5;
  --az-lessons-soft: #f2f8f8;
  width: min(100%, 1160px);
  margin: 0 auto;
  color: var(--az-lessons-text);
}

.az-lessons-page-hero {
  padding-block: 60px 32px !important;
  background: #fff;
}
.az-lessons-page-hero .elementor-widget-text-editor { max-width: 680px; }
.az-lessons-catalog-section {
  padding-block: 40px 80px !important;
  background: #f4faf7;
}

.az-lessons *,
.az-lessons *::before,
.az-lessons *::after { box-sizing: border-box; }

.az-lessons__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 32px;
  align-items: end;
  padding: 26px 28px;
  border: 1px solid var(--az-lessons-line);
  border-radius: 20px;
  background: rgba(242, 248, 248, .82);
}

.az-lessons__topics { min-width: 0; margin: 0; padding: 0; border: 0; }
.az-lessons__topics legend,
.az-lessons__sort label,
.az-lessons__mobile-control label {
  display: block;
  margin: 0 0 10px;
  color: var(--az-lessons-text);
  font: 800 14px/1.35 Montserrat, Arial, sans-serif;
}

.az-lessons__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.az-lessons button.az-lessons__chip,
.az-lessons__show-all {
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--az-lessons-line);
  border-radius: 999px;
  background: #fff;
  color: var(--az-lessons-text);
  cursor: pointer;
  font: 700 13px/1.25 Montserrat, Arial, sans-serif;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.az-lessons button.az-lessons__chip:hover { border-color: var(--az-lessons-turquoise); background: #fff; color: var(--az-lessons-turquoise); }
.az-lessons button.az-lessons__chip.is-active {
  border-color: var(--az-lessons-turquoise);
  background: var(--az-lessons-turquoise);
  color: #fff;
}
.az-lessons__chip:focus-visible,
.az-lessons__show-all:focus-visible,
.az-lessons select:focus-visible,
.az-lessons .az-dual-video-card__provider:focus-visible {
  outline: 3px solid rgba(1, 166, 186, .28);
  outline-offset: 3px;
}

.az-lessons__sort select,
.az-lessons__mobile-control select {
  width: 100%;
  min-height: 46px;
  padding: 9px 38px 9px 13px;
  border: 1px solid var(--az-lessons-line);
  border-radius: 12px;
  background: #fff;
  color: var(--az-lessons-text);
  font: 700 13px/1.3 Montserrat, Arial, sans-serif;
}
.az-lessons__mobile-control { display: none; }

.az-lessons__summary {
  margin: 30px 0 22px;
  color: var(--az-lessons-muted);
  font: 700 14px/1.4 Montserrat, Arial, sans-serif;
}

.az-lessons__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 34px;
}
.az-lessons__item { min-width: 0; }
.az-lessons__item[hidden] { display: none !important; }
.az-lessons__item h2 {
  margin: 0 0 14px;
  color: var(--az-lessons-text);
  font: 800 clamp(19px, 1.55vw, 24px)/1.25 Montserrat, Arial, sans-serif;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.az-lessons .az-dual-video-card__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}
.az-lessons .az-dual-video-card__label {
  color: var(--az-lessons-muted);
  font: 700 12px/1.3 Montserrat, Arial, sans-serif;
}
.az-lessons .az-dual-video-card__providers {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--az-lessons-line);
  border-radius: 999px;
  background: var(--az-lessons-soft);
}
.az-lessons .az-dual-video-card__provider {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--az-lessons-muted);
  cursor: pointer;
  font: 700 11px/1.2 Montserrat, Arial, sans-serif;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.az-lessons .az-dual-video-card__provider:hover { color: var(--az-lessons-turquoise); }
.az-lessons .az-dual-video-card__provider.is-active {
  background: var(--az-lessons-turquoise);
  box-shadow: 0 2px 7px rgba(1, 122, 137, .16);
  color: #fff;
}
.az-lessons .az-dual-video-card__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--az-lessons-line);
  border-radius: 16px;
  background: #eef6f5;
}
.az-lessons .az-dual-video-card__stage img,
.az-lessons .az-dual-video-card__stage iframe,
.az-lessons__neutral-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.az-lessons .az-dual-video-card__stage img { object-fit: cover; }
.az-lessons__neutral-preview {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 130, 32, .12), transparent 23%),
    linear-gradient(135deg, #edf8f6, #dff0eb);
  color: var(--az-lessons-turquoise);
  text-align: center;
  font: 800 13px/1.4 Montserrat, Arial, sans-serif;
}
.az-lessons__video-note {
  position: absolute;
  left: 50%;
  bottom: 22px;
  padding: 7px 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--az-lessons-muted);
  white-space: nowrap;
  font: 700 11px/1.25 Montserrat, Arial, sans-serif;
}
.az-lessons .az-dual-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 62px;
  height: 62px;
  padding: 0;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: rgba(245,130,32,.94);
  box-shadow: 0 8px 22px rgba(51,49,46,.18);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.az-lessons .az-dual-video-card__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--az-lessons-orange);
}
.az-lessons .az-dual-video-card__play:focus-visible {
  outline: 4px solid rgba(255,255,255,.94);
  outline-offset: 3px;
}
.az-lessons .az-dual-video-card__play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}
.az-lessons .az-dual-video-card__fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  font: 700 13px/1.4 Montserrat, Arial, sans-serif;
}
.az-lessons__resource { margin: 11px 0 0; }
.az-lessons__resource a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--az-lessons-turquoise);
  font: 800 12px/1.3 Montserrat, Arial, sans-serif;
  letter-spacing: .08em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.az-lessons__resource a:hover { color: var(--az-lessons-orange); }
.az-lessons__resource a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(1, 166, 186, .28);
  outline-offset: 3px;
}

.az-lessons__empty {
  padding: 48px 24px;
  border-radius: 18px;
  background: var(--az-lessons-soft);
  text-align: center;
}
.az-lessons__empty[hidden] { display: none; }
.az-lessons__empty h2 { margin: 0 0 10px; font: 800 24px/1.25 Montserrat, Arial, sans-serif; }
.az-lessons__empty p { margin: 0 0 22px; color: var(--az-lessons-muted); font: 400 17px/1.6 "PT Serif", Georgia, serif; }
.az-lessons__show-all { border-color: var(--az-lessons-orange); background: var(--az-lessons-orange); color: #fff; }

@media (max-width: 767px) {
  .az-lessons-page-hero { padding-block: 40px 24px !important; }
  .az-lessons-catalog-section { padding-block: 32px 56px !important; }
  .az-lessons__controls { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .az-lessons__topics--desktop { display: none; }
  .az-lessons__mobile-control { display: block; }
  .az-lessons__grid { grid-template-columns: 1fr; gap: 38px; }
  .az-lessons__summary { margin-top: 24px; }
  .az-lessons__item h2 { font-size: 20px; }
  .az-lessons .az-dual-video-card__provider { min-height: 40px; padding-inline: 14px; }
  .az-lessons .az-dual-video-card__play { width: 56px; height: 56px; }
}

@media (max-width: 420px) {
  .az-lessons__controls { padding: 20px 16px; border-radius: 16px; }
  .az-lessons__video-note { bottom: 14px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .az-lessons *, .az-lessons *::before, .az-lessons *::after { scroll-behavior: auto !important; transition: none !important; }
}
