/**
 * Desktop Reviews - ROBUST VERSION (Attempt 2)
 * 
 * Focus: Rendering stability over aggressive speed optimizations.
 * Removes all 'contain', 'will-change', and 'backface-visibility' 
 * hints that can cause elements to "vanish" during transforms.
 */

/* ===== STABLE CONTAINERS ===== */

.tinyflow-slider {
  /* Simple stacking context */
  position: relative;
  z-index: 1;
}

.tinyflow-slider .splide__track {
  /* CLEAN SLATE: No backface-visibility or will-change */
  overflow: visible !important;
  
  /* Increased padding for transform safety (Attempt 3) */
  padding: 80px 0 !important;
  margin: -80px 0 !important;
}

.tinyflow-slider .splide__list {
  /* Let browser manage rendering naturally */
  overflow: visible !important;
  transition-timing-function: linear;
}

.tinyflow-slider .splide__slide {
  /* Ensure no clipping boundaries */
  overflow: visible !important;
  display: flex !important;
  justify-content: center;
}

/* ===== ROBUST CARD DESIGN ===== */

.tinyflow-slider .card {
  /* FIXED STACKING CONTEXT - Crucial to fix disappearance */
  position: relative !important;
  z-index: 5;
  backface-visibility: hidden; /* Added for rendering stability */
  -webkit-backface-visibility: hidden;
  
  /* Fixed height for visual consistency */
  height: 280px; 
  min-height: 280px;
  max-height: 280px;
  width: 100%;
  
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  
  /* Clean visibility */
  opacity: 1 !important;
  visibility: visible !important;
  
  /* Visuals */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  
  /* Smooth transitions */
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), 
              box-shadow 0.8s cubic-bezier(0.19, 1, 0.22, 1),
              background-color 0.8s ease !important;
}

.tinyflow-slider .card:hover {
  /* Bring to front explicitly */
  z-index: 100 !important;
  
  /* Smooth scale/move */
  transform: translateY(-8px) scale(1.01);
  
  /* Hover visuals */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Force standard properties for compatibility */
.tinyflow-slider .card-text {
  display: -webkit-box !important;
  display: box !important;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  
  margin-top: 10px;
  line-height: 1.5 !important;
  color: #333 !important; 
}

.tinyflow-slider .card-header {
  margin-bottom: 5px;
  flex-shrink: 0;
}

.tinyflow-slider .card-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.05);
  margin: 10px 0;
  flex-shrink: 0;
}

.project-sliders-wrapper {
  height: 680px;
  max-height: 680px;
  overflow: hidden; /* Clips the columns within the section */
  position: relative;
  z-index: 1;
  
  /* Buffer for hover transforms at edges */
  padding: 40px 0;
}

.section-project {
  isolation: isolate;
  background-color: #e9efff;
  display: flex !important;
}
