/* Three Column Video Block */
.three-col-video {
  padding: var(--spacing-20, 80px) var(--spacing-7, 28px);
  overflow: hidden;
}

.three-col-video .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.video-modal-player {
  max-width: 850px;
}

/* Editor Styles */
.three-col-video-block {
  padding: 1.5rem;
  margin: 1rem 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.three-col-video-block h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

.three-col-video-block-editor {
  background: #f9fafb;
  border: 2px dashed #d1d5db !important;
}

.three-col-video-block-editor:hover {
  border-color: #3b82f6 !important;
}

/* Heading Group */
.three-col-video .heading-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3, 12px);
  width: 100%;
}

.three-col-video .subheading {
  color: var(--color-yellow-200, #FBEB8F) !important;
  font-family: var(--font-subheading, "Apolline Std") !important;
  font-size: var(--font-size-xl, 20px) !important;
  font-weight: var(--font-weight-bold, 700) !important;
  line-height: 1.2em !important;
  letter-spacing: 0.4px !important;
  text-transform: capitalize !important;
  text-align: center !important;
  font-kerning: none;
  font-variant-numeric: lining-nums proportional-nums;
}

.three-col-video .main-heading {
  color: var(--color-yellow-200, #FBEB8F) !important;
  font-family: var(--font-heading, "Sora") !important;
  font-size: var(--font-size-7xl, 72px) !important;
  font-weight: var(--font-weight-extrabold, 800) !important;
  line-height: 0.8888888888888888em !important;
  text-transform: uppercase !important;
  text-align: center !important;
}

.three-col-video .body-text {
  color: var(--color-yellow-200, #FBEB8F) !important;
  font-family: var(--font-body, "Azo Sans") !important;
  font-size: var(--font-size-base, 16px) !important;
  font-weight: var(--font-weight-normal, 400) !important;
  line-height: 1.5em !important;
  text-align: center !important;
  max-width: 576px;
}

/* Desktop Grid */
.three-col-video .videos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  justify-content: center;
}

/* Video Card */
.three-col-video .video-card {
  flex: 1;
  min-width: 280px;
  max-width: 420px;
  position: relative;
}

/* Video Container */
.three-col-video .video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
   overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.three-col-video .video-container:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.three-col-video .video-thumbnail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.three-col-video .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  transition: transform 0.3s ease;
}

.three-col-video .video-container:hover .play-icon {
  transform: scale(1.1);
}

/* Card Content */
.three-col-video .card-content {
  margin-top: 16px;
}

.three-col-video .card-title {
  font-family: var(--font-heading, "Sora");
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.three-col-video .card-body-text {
  font-family: var(--font-body, "Azo Sans");
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 12px;
  opacity: 0.9;
}

 
/* CTA Button Wrapper */
.three-col-video .cta-button-wrapper {
  margin-top: 64px;
}

/* Mobile Carousel - Hidden by default */
.three-col-video .mobile-carousel {
  display: none;
  width: 100%;
}

/* Editor Specific Styles */
.three-col-video-editor .rich-text {
  transition: all 0.3s ease;
  border-radius: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
}

.three-col-video-editor .rich-text:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(251, 235, 143, 0.3);
}

.three-col-video-editor .rich-text:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--color-yellow-200, #FBEB8F);
  box-shadow: 0 0 0 2px rgba(251, 235, 143, 0.2);
  outline: none;
}

.three-col-video-editor .delete-video-button {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.three-col-video-editor .video-card:hover .delete-video-button {
  opacity: 1;
}

.three-col-video-editor .add-video-button {
  background: linear-gradient(135deg, #FBEB8F 0%, #F5E86B 100%) !important;
  color: #22240F !important;
  border: 2px solid #D4D2C4 !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(251, 235, 143, 0.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.three-col-video-editor .add-video-button:hover {
  background: linear-gradient(135deg, #F5E86B 0%, #FBEB8F 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 25px rgba(251, 235, 143, 0.4) !important;
}

/* Mobile Styles */
@media (max-width: 767px) {
  .three-col-video {
    padding: var(--spacing-20, 80px) var(--spacing-7, 28px);
  }
  
  .three-col-video .main-heading {
    font-size: var(--font-size-5xl, 48px) !important;
    line-height: 0.9166666666666666em !important;
  }
  
  /* Hide desktop grid, show carousel */
  .three-col-video .videos-grid {
    display: none;
  }
  
  .three-col-video .mobile-carousel {
    display: block;
  }
  
  /* Carousel Viewport */
  .three-col-video .carousel-viewport {
    overflow: hidden;
    position: relative;
    width: 100%;
  }
  
  .three-col-video .carousel-track {
    display: flex;
    transition: transform 0.3s ease;
  }
  
  .three-col-video .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .three-col-video .carousel-slide .video-card {
    width: 100%;
    max-width: 100%;
  }
  
  /* Carousel Controls */
  .three-col-video .carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
     padding: 8px;
    margin-top: 16px;
  }
  
  .three-col-video .carousel-prev,
  .three-col-video .carousel-next {
    padding: 8px;
    background: transparent;
    border: 2px solid var(--color-yellow-200, #FBEB8F);
    color: var(--color-yellow-200, #FBEB8F);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .three-col-video .carousel-prev:hover,
  .three-col-video .carousel-next:hover {
    background-color: var(--color-yellow-200, #FBEB8F);
    color: var(--color-green-950, #22240F);
  }
  
  .three-col-video .carousel-indicator {
    display: flex;
    align-items: center;
    color: var(--color-yellow-200, #FBEB8F);
    font-family: var(--font-heading, "Sora") !important;
    font-size: var(--font-size-2xl, 24px) !important;
    line-height: 1em !important;
    text-transform: uppercase !important;
  }
  
  .three-col-video .carousel-indicator .current-slide {
    font-weight: var(--font-weight-extrabold, 800) !important;
  }
  
  .three-col-video .carousel-indicator .total-slides {
    font-weight: var(--font-weight-normal, 400) !important;
  }
}
