
/* Freedom Pest Library - Complete Replacement CSS */

*{box-sizing:border-box;}

.pest-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:28px;
}

.pest-card{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #d9d9d9;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  display:flex;
  flex-direction:column;
  transition:.2s;
}

.pest-card:hover{
  transform:translateY(-5px);
  box-shadow:0 16px 32px rgba(0,0,0,.15);
}

.pest-image{
  height:240px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  padding:20px !important;
  background:#fff;
}

.pest-image img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:170px !important;
  max-height:170px !important;
  object-fit:contain !important;
  margin:0 auto !important;
}

.pest-copy{
  padding:24px;
  border-top:1px solid #ececec;
}

.pest-copy h3{
  margin:0 0 10px;
}

.species{
  margin:18px 0;
}

.species span{
  display:inline-block;
  margin:4px;
  padding:6px 12px;
  border-radius:999px;
  background:#eef3f8;
  font-size:.85rem;
}

.learn{
  display:inline-block;
  margin-top:12px;
  font-weight:bold;
  text-decoration:none;
}

@media (max-width:700px){
  .pest-grid{
    grid-template-columns:1fr;
  }

  .pest-image{
    height:200px !important;
  }

  .pest-image img{
    max-width:140px !important;
    max-height:140px !important;
  }
}
