/* =========================
   Team Filters (pills)
   ========================= */

.haldu-team-filters{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  margin: 20px 0 24px;
}

/* Op kleinere schermen: liever horizontaal scrollen dan 4 regels hoog */
@media (max-width: 640px){
  .haldu-team-filters{
    position: relative;
    flex-wrap:nowrap;
    justify-content:flex-start;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 6px 6px;
    margin: 14px 0 18px;
    scrollbar-width: none; /* Firefox */
  }
  .haldu-team-filters::-webkit-scrollbar{
    display:none; /* Chrome/Safari */
  }

  /* Subtiele "fade" rechts zodat het duidelijk is dat je kunt swipen */
  .haldu-team-filters::after{
    content:'';
    position:absolute;
    top:0;
    right:0;
    width:40px;
    height:100%;
    pointer-events:none;
    background:linear-gradient(to left, #fff 30%, rgba(255,255,255,0));
  }
}

.htf-btn{
  appearance:none;
  border:1px solid #d7dee7;
  background:#fff;
  color:#0b4f8a;          /* blauw */
  padding:10px 22px;
  border-radius:999px;     /* pill */
  font-weight:700;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  transition:transform .06s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap;      /* netjes bij lange labels */
}

.htf-btn:hover{
  transform:translateY(-1px);
  border-color:#c6d0dc;
}

.htf-btn.is-active{
  background:#ff6600;      /* oranje */
  border-color:#f58220;
  color:#fff;
}

.htf-btn:focus-visible{
  outline:3px solid rgba(245,130,32,.35);
  outline-offset:3px;
}

/* =========================
   Layout
   ========================= */

.team-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

@media (max-width:1024px){
  .team-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:640px){
  .team-grid{ grid-template-columns:1fr; }
}

/* Hover effect setup (matches existing Haldu markup) */
.img-container{
  position: relative;
  display: inline-block;
}

.img-container a{
  display:block;
}

.img-container img{
  display:block;
  width:100%;
  height:auto;
  vertical-align: middle;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

.img-container img:first-child{
  position: relative;
}

.img-container img:last-child{
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  opacity: 0;
}

.img-container:hover img:last-child{
  opacity: 1;
}

.team-name{
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-top: 5px;
}

.team-jobtitle{
  text-align: center;
  color: #ff6600;
}
@media (max-width: 1024px){
  .haldu-team-filters{ cursor: grab; }
  .haldu-team-filters.is-dragging{ cursor: grabbing; }
}