.agent-card {
     border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
    overflow: hidden;
    /*margin: 15px !important;*/
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 2px 4px #00000040;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    position: relative !important;
    height: 350px;
    /*margin: 35px !important;*/
    position: relative;

}
.agent-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25) !important;
}

.agent-card img {
  width: 100%;
  height: auto !important;
  display: block !important;
  height: 350px !important;    
  object-fit: cover;
  object-position: top;
}
.agent-info {
  position: absolute;
  z-index: 999;
  padding: 20px !important;
  
  font-family: BentonSans;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  bottom: 0;
  /*background: #002349 !important;*/
  background: rgba(0, 35, 73, 0.7) !important;
  width: 100%;
   /* 👇 hide initially */
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}
/* 👇 show on hover */
.agent-card:hover .agent-info {
  opacity: 1;
  transform: translateY(0);
}
.agent-info a {
  margin: 0 0 10px !important;
  font-size: 14px  !important;
  font-weight: 500 !important;
  color: #fff !important;    
  line-height: 25px !important;
  text-transform: uppercase !important;
}
.agent-info a.fl-view-all {
  padding: 9px 20px !important;
}
/* Carousel wrapper */
.agent-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.agent-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.agent-carousel-track .agent-card {
  flex: 0 0 calc(33.333% - 20px);
  box-sizing: border-box;
}

/* Arrows */
.agent-carousel-wrapper-navigation .prev,
.agent-carousel-wrapper-navigation .next,
.featured-agent-carousel-wrapper-navigation .fl-arrow--prev,
.featured-agent-carousel-wrapper-navigation .fl-arrow--next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 14px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  transition: background 0.3s ease;
  z-index: 10;
}

.agent-carousel-wrapper-navigation .prev:hover,
.agent-carousel-wrapper-navigation .next:hover{
  background: #b8860b; /* gold hover */
}

.agent-carousel-wrapper-navigation .prev{ left: -70px; }  /* moved further outside */
.agent-carousel-wrapper-navigation .next{ right: -70px; } /* moved further outside */
@media (max-width: 1268px) {
  .agent-carousel-track .agent-card { flex: 0 0 50%; }
  .agent-carousel-wrapper-navigation .prev{ left: 10px; }
  .agent-carousel-wrapper-navigation .next{ right: 10px; }
}
@media (max-width: 668px) {
  .agent-carousel-track .agent-card { flex: 0 0 100% ; }
}

.agent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.agent-grid .agent-card {
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
}

/* Agent Filter Form */
.agent-filter {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px !important;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  align-items: center;
}

.agent-filter input{
  display: block;
  flex: 1;
  min-width: 200px;
  border-radius: 8px 0 0 8px;
  background: rgba(255, 255, 255, 1) !important;
  border: 1px solid #e0e0e0 !important;
  padding: 14px 18px !important;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #c9a84c !important;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
  border-radius: 6px !important;
}

.agent-filter button {
  border-radius: 0 8px 8px 0 !important;
  padding: 14px 32px !important;
  background: linear-gradient(135deg, #002349 0%, #003d6b 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
}

.agent-filter button:hover {
  background: #001a35 !important;
}

/* Responsive Grids */
@media (max-width: 1268px) {
  .agent-grid .agent-card {
    flex: 0 0 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .agent-grid {
    gap: 15px;
  }
  
  .agent-grid .agent-card {
    flex: 0 0 100%;
  }
  
  .agent-filter {
    padding: 15px;
    gap: 10px;
  }
  
  .agent-filter input,
  .agent-filter select,
  .agent-filter button {
    min-width: 100%;
    flex: 0 0 calc(50% - 8px) !important;
  }
}