/* ============================================ */
/* TESTIMONIALS WITH READ MORE & VIDEO GALLERY */
/* ============================================ */

/* Read More Button */
.read-more-btn {
  background: transparent;
  border: 2px solid var(--zim-gold, #f5a623);
  color: var(--zim-gold, #f5a623);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  margin-top: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.read-more-btn:hover {
  background: var(--zim-gold, #f5a623);
  color: var(--zim-charcoal, #1a1a1a);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-video {
  max-width: 800px;
  background: transparent;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--zim-gray, #666);
  transition: 0.2s;
  z-index: 10;
}

.modal-close:hover {
  color: var(--zim-crimson, #cc0f0f);
}

.modal-header {
  padding: 1.5rem 1.5rem 0.5rem;
  border-bottom: 2px solid var(--zim-gold, #f5a623);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-header i {
  font-size: 1.8rem;
  color: var(--zim-gold, #f5a623);
}

.modal-header h3 {
  font-size: 1.3rem;
  color: var(--zim-deep-blue, #0a2540);
  margin: 0;
}

.modal-body {
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--zim-charcoal, #1a1a1a);
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  text-align: right;
}

.btn-modal-close {
  background: var(--zim-gold, #f5a623);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.btn-modal-close:hover {
  background: var(--zim-yellow, #d4a017);
}

/* Video Gallery Styles */
.video-testimonials-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.video-section-title {
  text-align: center;
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  color: var(--zim-deep-blue, #0a2540);
  margin-bottom: 0.5rem;
}

.video-section-title i {
  color: var(--zim-crimson, #cc0f0f);
  margin-right: 0.5rem;
}

.video-section-subtitle {
  text-align: center;
  color: var(--zim-gray, #64748b);
  margin-bottom: 2rem;
}

.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-card {
  background: white;
  border-radius: 16px;
  max-width: 400px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(245, 166, 35, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-button i {
  font-size: 1.8rem;
  color: white;
  margin-left: 5px;
}

.video-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--zim-crimson, #cc0f0f);
}

.video-caption {
  padding: 1rem;
}

.video-caption h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--zim-deep-blue, #0a2540);
}

.video-caption p {
  font-size: 0.8rem;
  color: var(--zim-gray, #64748b);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .video-gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .modal-header h3 {
    font-size: 1.1rem;
  }
  
  .video-section-title {
    font-size: 1.3rem;
  }
}


/* Video Modal - Optimized for Streaming */
.modal-video .modal-content {
  background: transparent;
  max-width: 900px;
  width: 90%;
  padding: 0;
  overflow: hidden;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Modal close button for video modal */
.modal-video .modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  background: rgba(0,0,0,0.5);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.modal-video .modal-close:hover {
  background: var(--zim-crimson, #cc0f0f);
  color: white;
}

@media (max-width: 768px) {
  .modal-video .modal-close {
    top: -35px;
    right: 5px;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}