/* Emmaus Publishers main theme — load AFTER main stylesheet and responsive.css.
   Uses the live theme's .bi-container, .bi-theme-heading,
   .bi-theme-subheading, .bi-theme-para and font/color variables. */
.lp-video-section { background: var(--bi-white); overflow: hidden; }
.lp-video-section, .lp-video-section * { box-sizing: border-box; }
/* Theme owns .bi-container width and responsive vertical section padding. */
.lp-video-section .lp-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(35px, 5vw, 75px);
  width: 100%;
}
.lp-video-section .lp-author-story,
.lp-video-section .lp-video-showcase { min-width: 0; }
/* Heading, eyebrow, copy sizes and fonts come directly from existing bi-theme classes. */
.lp-video-section .lp-author-story
.lp-video-section .lp-author-story .bi-theme-heading { text-wrap: balance; }
.lp-video-section .lp-author-story .bi-theme-para {
  margin: 0 0 17px;
  max-width: 100%;
}
.lp-video-section .bi-container{
    padding-bottom:0;
}
.lp-video-section .lp-author-trust {
  display: grid; gap: 22px; margin-top: 35px; padding-top: 30px;
  border-top: 1px solid rgba(69, 56, 41, .15);
}
.lp-video-section .lp-trust-item { display: flex; align-items: flex-start; gap: 16px; }
/* Dedicated class avoids collisions with any existing theme's trust icons. */
.lp-video-section .lp-author-trust-icon {
  flex: 0 0 48px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(224, 135, 79, .08);
  border: 1px solid rgba(224, 135, 79, .25);
  border-radius: 12px; color: var(--theme-color);
  transition: background .3s, color .3s, transform .3s;
}
.lp-video-section .lp-author-trust-icon svg { width: 23px; height: 23px; }
.lp-video-section .lp-trust-copy { flex: 1; min-width: 0; }
.lp-video-section .lp-trust-copy h3 {
  margin: 0 0 5px; color: #453829;
  font-family: var(--font-tertiary); font-size: 19px; font-weight: 600; line-height: 1.4;
}
.lp-video-section .lp-trust-copy p {
  margin: 0; font-size: 13px; line-height: 1.65; color: #716B5D;
}
.lp-video-section .lp-trust-item:hover .lp-author-trust-icon {
  background: var(--theme-color); color: var(--bi-white); transform: translateY(-3px);
}
.lp-video-showcase, .lp-video-slide {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lp-video-slide { width: 100%; opacity: 1; transform: scale(1); transition: opacity .3s, transform .3s; }
.lp-video-slide.is-changing { opacity: 0; transform: scale(.9); }
.lp-video-frame {
  position: relative;
  width: 350px;
  max-width: 100%;
  aspect-ratio: 9 / 18;
  padding: 10px;
  background: #141715;
  border: 4px solid var(--theme-color);
  border-radius: 32px;
  box-shadow: 0 20px 55px #0002;
}
.lp-video-screen { position: relative; width: 100%; height: 100%; background: #111; overflow: hidden; border-radius: 23px; }
.lp-video-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; z-index: 2; }
.lp-video-screen.is-playing .lp-video-iframe { display: block; }
.lp-video-play {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0;
  border: 0; background: #111; cursor: pointer; z-index: 1;
}
.lp-video-screen.is-playing .lp-video-play { display: none; }
.lp-video-thumbnail { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-video-play-icon {
  position: absolute; top: 43%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 66px; height: 66px;
  border-radius: 50%; background: var(--theme-color); color: white; font-size: 25px;
  box-shadow: 0 5px 25px #0005; pointer-events: none;
}
.lp-video-overlay {
  position: absolute; z-index: 3; bottom: 10px; left: 10px; right: 10px;
  padding: 65px 18px 20px; color: white;
  background: linear-gradient(transparent, rgba(0,0,0,.93));
  border-radius: 0 0 23px 23px; pointer-events: none;
}
.lp-video-title { margin: 0 0 9px; font-size: 22px; line-height: 1.25; font-weight: 700; color: white; }
.lp-video-description {
  margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: #ffffffd9;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-video-link { color: white; font-size: 11px; font-weight: 700; text-decoration: underline; pointer-events: auto; }
.lp-video-link:hover { color: var(--bi-primary); }
.lp-video-frame:has(.is-playing) .lp-video-overlay { display: none; }
.lp-video-navigation { display: flex; align-items: center; justify-content: center; gap: 25px; margin-top: 28px; }
.lp-video-navigation[hidden] { display: none !important; }
.lp-video-prev, .lp-video-next {
  width: 45px; height: 45px; border: 1px solid var(--theme-color);
  border-radius: 50%; background: transparent; color: var(--theme-color);
  font-size: 20px; cursor: pointer; transition: background .25s, color .25s;
}
.lp-video-prev:hover, .lp-video-next:hover { background: var(--theme-color); color: white; }
.lp-video-counter { display: flex; align-items: center; gap: 12px; color: var(--theme-color); font-size: 14px; }
.lp-video-current { font-size: 19px; }
.lp-video-counter-line { height: 1px; width: 30px; background: var(--theme-color); }

@media (max-width: 1100px) {
  .lp-video-section .lp-video-layout { gap: 35px; }
  .lp-video-section .lp-video-frame { width: min(100%, 330px); }
}
@media (max-width: 820px) {
  .lp-video-section .lp-video-layout { display: flex; flex-direction: column; align-items: stretch; gap: 40px; }
  .lp-video-section .lp-video-showcase { order: 1; width: 100%; }
  .lp-video-section .lp-author-story { order: 2; width: 100%; }
  .lp-video-section .lp-video-slide { transform: none !important; animation: none !important; }
  .lp-video-section .lp-video-frame { margin: 0 auto; }
}
@media (max-width: 480px) {
  .lp-video-section .lp-video-layout { gap: 30px; }
  .lp-video-section .lp-video-frame { width: min(100%, 270px); }
  .lp-video-section .lp-author-trust { gap: 20px; margin-top: 25px; padding-top: 25px; }
  .lp-video-section .lp-author-trust-icon { flex-basis: 43px; width: 43px; height: 43px; }
  .lp-video-section .lp-trust-copy p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-video-section .lp-video-slide,
  .lp-video-section .lp-video-prev,
  .lp-video-section .lp-video-next,
  .lp-video-section .lp-author-trust-icon { transition: none; }
}
