/* Course 2 only. Do not change Course 1 sales video frame. */

/* /courses/ask-better — larger centered cover */
#course-2:not(.catalog-course-2) .sales-block-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
}

#course-2:not(.catalog-course-2) .sales-video-frame {
  position: relative !important;
  width: 280px !important;
  max-width: 280px !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  margin: 0 auto !important;
  background: transparent !important;
  overflow: hidden !important;
  contain: none !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  line-height: 0 !important;
}

#course-2:not(.catalog-course-2) .sales-video-frame img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
}


/* Course 2 detail page: switch to a landscape sales-video frame once the MP4 exists. */
#course-2:not(.catalog-course-2) .sales-video-frame.has-video {
  width: min(100%, 40rem) !important;
  max-width: 40rem !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  background: #000 !important;
  contain: paint !important;
}

#course-2:not(.catalog-course-2) .sales-video-frame.has-video video {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}

#course-2:not(.catalog-course-2) .sales-cta {
  width: 100%;
  max-width: 24rem;
}

@media (max-width: 767px) {
  #course-2:not(.catalog-course-2) .sales-video-frame {
    width: min(280px, calc(100vw - 48px)) !important;
    max-width: min(280px, calc(100vw - 48px)) !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (min-width: 768px) {
  #course-2:not(.catalog-course-2) .sales-block-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
  }
  #course-2:not(.catalog-course-2) .sales-video-frame {
    width: 12.75rem !important;
    max-width: 12.75rem !important;
    flex: 0 0 12.75rem !important;
    margin: 0 !important;
  }
  #course-2:not(.catalog-course-2) .sales-video-frame.has-video {
    width: min(58%, 40rem) !important;
    max-width: 40rem !important;
    flex: 1 1 32rem !important;
  }
  #course-2:not(.catalog-course-2) .sales-cta {
    flex: 1 1 auto;
    max-width: 24rem;
  }
}

/* /courses catalog only — same card geometry as Course 1 */
#course-2.catalog-course-2 .sales-block-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.7rem !important;
}

#course-2.catalog-course-2 .sales-video-frame {
  position: relative !important;
  width: 108px !important;
  max-width: 108px !important;
  height: 192px !important;
  min-height: 192px !important;
  aspect-ratio: 9 / 16 !important;
  margin: 0 !important;
  background: #000 !important;
  overflow: hidden !important;
  contain: paint !important;
  flex: none !important;
  padding: 0 !important;
  line-height: 0 !important;
}

#course-2.catalog-course-2 .sales-video-frame img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

#course-2.catalog-course-2 .sales-cta {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 24rem !important;
}

@media (min-width: 768px) {
  #course-2.catalog-course-2 .sales-block-inner {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 1.1rem !important;
  }
  #course-2.catalog-course-2 .sales-video-frame {
    width: 12.75rem !important;
    max-width: 12.75rem !important;
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
  }
}

#course-2 .sales-cta .btn,
#course-2 .sales-cta .btn-soon {
  width: 100%;
}

#course-2 .sales-cta .btn + .btn {
  margin-top: 0.45rem;
}

.btn-soon {
  opacity: 0.75;
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.catalog-cta-block {
  padding: 2rem 0;
}
@media (min-width: 640px) {
  .catalog-cta-block {
    padding: 2.5rem 0;
  }
}
.catalog-cta {
  max-width: 42rem;
  text-align: left;
}
.catalog-cta h2 {
  margin: 0;
  color: var(--foreground);
}
.catalog-cta .lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
}
.catalog-cta .btn {
  margin-top: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.catalog-cta .note {
  margin-top: 0.75rem;
  text-align: left;
}
@media (max-width: 379px) {
  .catalog-cta {
    text-align: center;
  }
  .catalog-cta .note,
  .catalog-cta .lede {
    text-align: center;
  }
}

/* Bundle: stack on phones so text is not squeezed beside the wide graphic */
.bundle-block {
  padding-top: 1.5rem;
}
.bundle-inner {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 1rem !important;
}
.bundle-frame {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  overflow: hidden;
  background: #000;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  line-height: 0;
}
.bundle-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.bundle-entry .sales-cta {
  width: 100% !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
}
.bundle-entry .sales-cta .btn {
  width: 100%;
}
@media (min-width: 768px) {
  .bundle-inner {
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.25rem !important;
  }
  .bundle-frame {
    max-width: 32rem !important;
    flex: 1 1 18rem !important;
  }
  .bundle-entry .sales-cta {
    max-width: 26rem !important;
    flex: 1 1 16rem !important;
  }
}
