/* ======================
   TABS (top)
   ====================== */
.ev-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  margin: 8px auto 24px;
}
.ev-tab {
  background: none;
  border: 0;
  cursor: pointer;
  text-align: center;
  color: #777;
  padding: 6px 0 10px;
  position: relative;
}
.ev-tab-title { font-weight: 600; font-size: 15px; display: block; }
.ev-tab-sub   { font-size: 12px; color: #9a9a9a; display: block; margin-top: 4px; }
.ev-tab-underline {
  display: block;
  width: 0;
  height: 3px;
  margin: 8px auto 0;
  background: #0d7bd9;
  border-radius: 2px;
  transition: width .2s ease;
}
.ev-tab.is-active { color: #222; }
.ev-tab.is-active .ev-tab-underline { width: 70%; }

/* ======================
   LAYOUT SHELL
   peek-left | prev | stage | next | peek-right
   ====================== */
.ev-shell {
  display: grid;
  grid-template-columns: 240px 56px minmax(520px, 1fr) 56px 240px;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

/* Peeks (outside controls) */
.ev-peek { 
  display: flex; 
  justify-content: center; 
  align-items: center;
  transition: opacity 0.3s ease;
}
.ev-peek.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.ev-peek-img {
  width: 300px;
  height: 150px;
  border-radius: 14px;
  object-fit: fill;
  box-shadow: 0 12px 28px rgba(0,0,0,.15);
  opacity: .95;
}

/* Controls (tight to hero) — dark circular buttons */
.ev-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(30,32,34,.95);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease, opacity 0.3s ease;
}
.ev-nav:hover { 
  transform: scale(1.06); 
  background: rgba(30,32,34,1); 
}
.ev-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.ev-arrow { font-size: 20px; line-height: 1; }

/* ======================
   STAGE & SLIDES
   ====================== */
.ev-stage {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: visible;
}

/* Base slide positioning */
.ev-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(980px, 86%);
  transform: translateX(-50%) scale(.82);
  opacity: .45;
  z-index: 1;
  transition: transform .35s ease, opacity .35s ease, z-index .0s;
  pointer-events: none;
  display: none;
}
.ev-slide.is-visible { 
  display: block; 
}

/* Center hero */
.ev-slide.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
}

/* Side peeks - now positioned outside arrows using peek images */
.ev-slide.is-prev1,
.ev-slide.is-next1 { 
  display: none !important;
}

/* Outer peeks (for thumbnail display only, not as slides) */
.ev-slide.is-prev2,
.ev-slide.is-next2 { 
  opacity: 0; 
  pointer-events: none; 
}

/* Media element in slide */
.ev-img, .ev-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
  background: #f7f7f7;
}
.ev-iframe { height: min(55vw, 520px); }

/* Play button */
.ev-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.ev-play-icon { 
  font-size: 54px; 
  color: #0d7bd9;
  transition: color 0.2s ease;
}
.ev-play:hover { background: #0d7bd9; }
.ev-play:hover .ev-play-icon { color: #fff; }

/* Captions */
.ev-caption { text-align: center; margin-top: 14px; }
.ev-cap-sub { 
  font-size: 12px; 
  color: #8a8a8a; 
  text-transform: uppercase; 
  letter-spacing: .08em; 
  margin-bottom: 4px; 
}
.ev-cap-title { 
  font-size: 22px; 
  font-weight: 700; 
  color: #222; 
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 1200px) {
  .ev-shell { grid-template-columns: 110px 56px 1fr 56px 110px; }
  .ev-peek-img { width: 96px; height: auto; }
}

@media (max-width: 900px) {
  .ev-shell { grid-template-columns: 70px 48px 1fr 48px 70px; }
  .ev-peek-img { width: 70px; height: auto; }
}

@media (max-width: 680px) {
  .ev-shell { grid-template-columns: 1fr; }
  .ev-peek { display: none; }
  .ev-img { min-height: 250px; }
  .ev-stage {
    width: 88%;
    margin-left: 20px;
  }
  .ev-tabs { gap: 10px; }
  .ev-nav {
    position: absolute;
    top: 55%;
    
    z-index: 10; 
  }
  .ev-prev { left: 8px; }
  .ev-next { right: 8px; }
}

/* ======================
   MODAL (structure only)
   ====================== */
.hover-play-btn {
  position: absolute; 
  inset: 0;
  display: flex; 
  justify-content: center; 
  align-items: center;
  cursor: pointer;
}
.hover-play-btn > span.fa-solid { font-size: 50px; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.9);
  flex-direction: column;
}
.video-modal__header {
  width: 100%; 
  height: 80px;
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  padding: 10px 50px; 
  background: rgba(218,230,255,1); 
  color: #000;
}
.video-modal__body {
  width: 100%; 
  height: calc(100% - 80px);
  display: flex; 
  justify-content: center; 
  align-items: center;
  padding: 30px 0 0;
}
.video-modal__close {
  cursor: pointer; 
  background: none; 
  border: none; 
  color: #000; 
  font-size: 30px;
}
.video-modal__close:hover {
  opacity: 0.7;
}
.mt-10r { margin: 10rem 0; }