/* Video Popup Container Layout */
.evpa-video-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  margin-bottom: 30px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.evpa-video-left {
  flex: 1;
  margin-right: 20px;
}

.evpa-video-left img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.evpa-video-left img:hover {
  transform: scale(1.05);
}

.evpa-video-right {
  flex: 2;
}

.evpa-video-right h3 {
  font-size: 22px;
  font-family: 'Rufina', serif;
  color: #333;
  margin: 0;
  margin-bottom: 10px;
}

.evpa-video-right p {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

/* Video Popup Modal */
.evpa-video-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 50px;
}

.evpa-popup-content {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.evpa-popup-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.evpa-popup-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.evpa-close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #000;
  color: #fff;
  padding: 10px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
}

.evpa-close-popup:hover {
  background: transparent;
}

/* Font Styling Options */
.evpa-video-right h3, .evpa-video-right p {
  font-family: 'Rufina', serif;
  color: #333;
}

/* Responsive Layout */
@media (max-width: 768px) {
  .evpa-video-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .evpa-video-left {
      margin-right: 0;
      margin-bottom: 20px;
  }

  .evpa-video-left img {
      max-width: 80%;
  }

  .evpa-video-right h3 {
      font-size: 20px;
  }

  .evpa-video-right p {
      font-size: 14px;
  }
}

.evpa-video-popup-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 20px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
}
.evpa-video-popup-container:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.evpa-video-left img {
  max-width: 150px;
  margin-right: 20px;
}

.evpa-video-right h3 {
  margin: 0 0 10px;
}

.evpa-video-popup {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}
.evpa-video-popup.active {
  display: flex;
}

.evpa-popup-content {
  background: transparent;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  position: relative;
  border-radius: 8px;
}

.evpa-popup-video iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.evpa-close-popup {
  position: absolute;
  top: -20px;
  right: -5px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}
.evpa-video-popup.active {
  display: flex;
}