/**
 * Video Section Styles
 * Enhanced styles for video modal functionality
 */

/* Video Container Styles */
.video-style {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.video-style:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-style img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.video-style:hover img {
  transform: scale(1.05);
}

/* Video Overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-style:hover .video-overlay {
  opacity: 1;
}

/* Play Button */
.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 132px;
  width: 132px;
  background: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-icon:hover {
  transform: translate(-50%, -50%) scale(1.1);
  filter: brightness(1.1);
}

.video-icon:focus {
  outline: 2px solid #e40571;
  outline-offset: 4px;
}

.video-icon svg {
  drop-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Video Section Layout */
.video-section {
  min-height: 400px;
  display: flex;
  align-items: center;
}

/* Modal Enhancements */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content {
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.modal-body {
  position: relative;
}

.btn-close {
  position: absolute;
  right: 15px;
  top: 15px;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  opacity: 0.8;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.btn-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

/* Loading State */
.video-loading .modal-body {
  min-height: 300px;
}

.video-loading iframe {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Content Area */
.content-area h2 {
  font-weight: 600;
  line-height: 1.3;
}

.content-area .lead {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.additional-content {
  margin-top: 1rem;
}

.additional-content p:last-child {
  margin-bottom: 0;
}

.video-icon svg{
  height: 132px;
  width: 132px;
}


/* Responsive Design */
@media (max-width: 767px) {
    
   .video-icon{
      height: 64px;
      width: 64px;
   }

    
  .video-section {
    min-height: auto;
  }

  .video-icon {
    height: 60px;
    width: 60px;
  }

  .video-icon svg {
    width: 60px;
    height: 60px;
  }

  .content-area {
    margin-top: 2rem;
    text-align: center;
  }

  .modal-dialog {
    margin: 15px;
  }

  .btn-close {
    right: 10px;
    top: 10px;
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 575px) {
  .video-icon {
    height: 50px;
    width: 50px;
  }

  .video-icon svg {
    width: 50px;
    height: 50px;
  }

  .content-area h2 {
    font-size: 1.5rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .video-style {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  }

  .video-style:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .video-overlay {
    background: rgba(0, 0, 0, 0.6);
  }

  .video-icon:focus {
    outline: 3px solid currentColor;
    outline-offset: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .video-style,
  .video-style img,
  .video-overlay,
  .video-icon,
  .modal.fade .modal-dialog {
    transition: none;
  }

  .video-style:hover img {
    transform: none;
  }

  .video-icon:hover {
    transform: translate(-50%, -50%);
  }
}

/* Print styles */
@media print {
  .video-style {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .video-icon {
    display: none;
  }

  .video-overlay {
    display: none;
  }
}
