/* ===== TEAM CARD BASE ===== */
.jifu-team-card {
  position: relative;
  width: 100%;
  background: #1e293b;
  color: #fff;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  margin: 0px;
  background: linear-gradient(#14233b, #14233b) padding-box, linear-gradient(135deg, #ff6b8a 0%, #ff8c42 50%, #f7b733 100%) border-box;
  border: 3px solid transparent;
  border-radius: 24px;
}

/* ===== IMAGE ===== */
.jifu-team-img {
  background: url(/wp-content/uploads/2026/05/BACK-NAMES-2-1.png) no-repeat;
  height: 350px;
  display: flex;
  align-items: flex-end;
}

.jifu-team-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.4s ease;
  /* smooth blur */
}

/* ✅ BLUR ONLY IMAGE ON HOVER */
.jifu-team-card:hover .jifu-team-img img {
  filter: blur(6px);
}

/* ===== TEXT INFO (ALWAYS CLEAR) ===== */
.jifu-team-info {
  padding: 16px;
  position: relative;
  z-index: 2;
  background: #1E293B;
  background: linear-gradient(0deg, rgba(30, 41, 59, 1) 60%, rgba(110, 117, 128, 1) 100%);
  /* keep above blur */
}

.jifu-team-info h3 {
  margin: 0;
  font-size: 18px;
  filter: none !important;
}

.jifu-team-info p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.8;
  filter: none !important;
}

/* ===== HOVER OVERLAY ===== */
.jifu-team-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 3;
  height: calc(100% - 120px);
  top: 0px;
  font-size: 12px;
  overflow-y: auto;
  /* enable scroll */
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: #d4af37 transparent;
  /* Firefox (gold thumb) */
}

/* ===== Chrome, Edge, Safari Scrollbar ===== */
.jifu-team-hover::-webkit-scrollbar {
  width: 4px;
  /* ✅ VERY SMALL SCROLLBAR */
}

.jifu-team-hover::-webkit-scrollbar-track {
  background: transparent;
}

.jifu-team-hover::-webkit-scrollbar-thumb {
  background: #d4af37;
  /* ✅ Gold color (JIFU style) */
  border-radius: 10px;
}

.jifu-team-hover::-webkit-scrollbar-thumb:hover {
  background: #f1c84b;
}

/* ✅ SHOW HOVER CONTENT */
.jifu-team-card:hover .jifu-team-hover {
  opacity: 1;
}