/* 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;
  }
}

.vpfe-video-popup-container {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vpfe-video-popup-container:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vpfe-video-left {
    flex: 0 0 200px;
    margin-right: 20px;
}

.vpfe-video-left img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.vpfe-video-right {
    flex: 1;
}

.vpfe-video-right h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.vpfe-video-right p {
    margin: 0;
    color: #666;
}

.vpfe-video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 999999;
}

.vpfe-popup-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

.vpfe-close-popup {
    position: absolute;
    right: -30px;
    top: -30px;
    background: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vpfe-popup-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.vpfe-popup-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}