.our-agents-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin: 20px 0;
}

.agent-card {
    width: calc(25% - 20px);
    box-sizing: border-box;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 3px 3px 5px -3px rgba(66, 68, 90, 0.57);
    -moz-box-shadow: 3px 3px 5px -3px rgba(66, 68, 90, 0.57);
    box-shadow: 3px 3px 5px -3px rgba(66, 68, 90, 0.57);
}

.agent-card img.featured-image {
    width: 100%;
    height: auto;
}

.agent-details {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #0000007D;
    padding: 15px;
}

.agent-details:before {
    position: absolute;
    z-index: 10;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    filter: blur(10px);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.agent-details h4 {
    margin: 0;
    color: #ffffff !important;
}

.agent-details h5 {
    margin: 0;
    color: #ffffff !important;
    font-weight: 500;
}

.agent-details h6 {
    margin: 0;
    color: #ffffff !important;
    font-weight: 500;
}

.agent-details p {
    font-size: 0.9em;
    color: #333;
    color: #ffffff;
    margin-bottom: 0;
}

@media screen and (max-width: 1024px) {
    .agent-card {
        width: calc(33.33% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .agent-card {
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 480px) {
    .agent-card {
        width: 100%;
    }
}