/* Lesson presentation mode — fullscreen overlay */

.lesson-presentation-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--e-global-color-4b2f6ae);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.lesson-presentation-overlay.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.lesson-presentation-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--e-global-color-08c87c3);
  font-size: 24px !important;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.lesson-presentation-body {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 96px;
}

.lesson-presentation-slide {
  max-width: 860px;
  width: 100%;
}

/* Slide transition: sliding to "next" exits left / enters from the
   right; "prev" is the mirror image. Timing (220ms) matches ANIM_MS
   in lesson-presentation.js — keep them in sync if you change one. */
.lesson-presentation-slide.lp-anim-out-next {
  animation: lp-slide-out-left 220ms ease forwards;
}
.lesson-presentation-slide.lp-anim-in-next {
  animation: lp-slide-in-right 220ms ease forwards;
}
.lesson-presentation-slide.lp-anim-out-prev {
  animation: lp-slide-out-right 220ms ease forwards;
}
.lesson-presentation-slide.lp-anim-in-prev {
  animation: lp-slide-in-left 220ms ease forwards;
}

@keyframes lp-slide-out-left {
  to { opacity: 0; transform: translateX(-28px); }
}
@keyframes lp-slide-out-right {
  to { opacity: 0; transform: translateX(28px); }
}
@keyframes lp-slide-in-right {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes lp-slide-in-left {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lesson-presentation-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
}

.lesson-presentation-content {
  font-size: 1.05rem;
  line-height: 1.6;
}

.lesson-presentation-footer {
  position: relative;
  flex: 0 0 auto;
  background: var(--e-global-color-08c87c3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 0;
}

.lesson-presentation-logo {
  position: absolute;
  left: 24px;
  top: 0;
  height: 100%;
  width: auto;
  display: block;
}

.lesson-presentation-nav {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #fff !important;
  background-color: #fff !important;
  color: var(--e-global-color-08c87c3) !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: transform 150ms ease;
}

.lesson-presentation-nav:hover {
  transform: scale(1.08); /* mirrors Elementor's "grow" hover animation */
}

.lesson-presentation-nav.is-disabled {
  opacity: 0.35;
  cursor: default;
}

.lesson-presentation-nav.is-disabled:hover {
  transform: none;
}

.lesson-presentation-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* The SVG markup is the same "angle-right" icon for both buttons —
   mirror it for "prev" instead of shipping a second icon. */
.lesson-presentation-prev .lesson-presentation-icon {
  transform: scaleX(-1);
}

.lesson-presentation-counter {
  background: #fff;
  color: #333;
  border-radius: 999px;
  padding: 4px 18px;
  font-weight: 600;
  min-width: 60px;
  text-align: center;
}

@media (max-width: 700px) {
  .lesson-presentation-body {
    padding: 48px 24px;
  }

  /* Not enough room next to the nav controls on small screens. */
  .lesson-presentation-logo {
    display: none;
  }
}
