.evo-youtube-videos .card {
  height: 100%;
}

.evo-youtube-videos .card-body {
  display: flex;
  flex-direction: column;
}

.evo-youtube-videos .card-text {
  flex-grow: 1;
}

.evo-youtube-videos .btn {
  margin-top: auto;
}

/* Play overlay styling */
.evo-youtube-videos .card-img-top {
  position: relative;
  overflow: hidden;
}

.evo-youtube-videos .card-img-top a {
  display: block;
  position: relative;
  text-decoration: none;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.evo-youtube-videos .card-img-top a:hover .play-overlay {
  color: #ff0000;
  background: rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.evo-youtube-videos .card-img-top a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.evo-youtube-videos .card-img-top a:hover:before {
  opacity: 1;
}

.evo-youtube-videos .card-img-top img {
  transition: transform 0.3s ease;
}

.evo-youtube-videos .card-img-top a:hover img {
  transform: scale(1.05);
}

.evo-youtube-title {
  font-weight: bolder;
}
.evo-youtube-btn {
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
}

/* Custom YouTube Modal Styles */
.evo-youtube-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 1050; /*evo_radix sets nav bar to z-index of 1020 !!!!!*/
}

.evo-youtube-modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  max-width: 800px;
}

.evo-youtube-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.evo-youtube-modal.show,
.evo-youtube-modal:target,
.evo-youtube-modal[style*="block"] {
  display: block !important;
}

.evo-youtube-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.evo-youtube-modal .close-button {
  position: absolute;
  top: -40px;
  right: 0px;
  color: #000;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.evo-youtube-modal .close-button:hover {
  color: #ff0000;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Screen reader only class */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Admin form documentation styles */
.evo-youtube-instructions {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 20px;
  margin-top: 20px;
}

.evo-youtube-instructions h3 {
  margin-top: 0;
  color: #495057;
  font-size: 18px;
  font-weight: 600;
}

.evo-youtube-instructions ol,
.evo-youtube-instructions p {
  margin-bottom: 15px;
}

.evo-youtube-instructions ol:last-child,
.evo-youtube-instructions p:last-child {
  margin-bottom: 0;
}

.evo-youtube-example-value {
  color: #6c757d;
  font-size: 16px;
  font-weight: 300;
  font-family: 'Courier New', Courier, monospace;
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #e9ecef;
}

.mutted {
  color: #f8f9fa;
  font-size: 20px;
  font-weight: 500;
  font-family: 'Courier New', Courier, monospace;
  background: #f8f9fa;
}
