/* ── Trainings Section (Modular) ── */
.tr-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px; /* Optimized height */
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  background: #0f172a;
}

.tr-card-img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  opacity: 0.85; 
  transition: all 0.8s ease; 
}

.tr-card:hover .tr-card-img { 
  transform: scale(1.1); 
  opacity: 0.5; 
  filter: blur(2px); 
}

.tr-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 60%, transparent 100%);
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  z-index: 5;
  transition: all 0.5s ease;
}

.tr-card-overlay h4 { 
  font-size: 1.2rem; 
  font-weight: 800; 
  margin: 0; 
  letter-spacing: 0.5px;
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1); 
}

.tr-card-content { 
  opacity: 0; 
  max-height: 0; 
  overflow: hidden; 
  transition: all 0.5s ease; 
  transform: translateY(20px); 
}

/* Hover Reveal Logic (Services approach) */
.tr-card:hover .tr-card-overlay {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tr-card:hover .tr-card-overlay h4 { 
  transform: translateY(-10px); 
}

.tr-card:hover .tr-card-content { 
  opacity: 1; 
  max-height: 250px; 
  transform: translateY(0); 
  margin-top: 10px; 
}

.tr-card-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

.tr-swiper-container {
  padding-bottom: 50px !important;
}


