.pfm-filters {
    margin-bottom: 20px;
    text-align: center;
    min-width:88%;
}

.pfm-filters button {
    margin: 0 5px;
    padding: 8px 15px;
    cursor: pointer;
    border: none;
    background: #f9f6de;
    color: #333;
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
}

.pfm-filters button.active {
    background: #2d3f47;
    color: #fff;
}

.pfm-post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.pfm-post-image-wrapper img {
    height: 170px !important;
    object-fit: cover;
    width: 100% !important;
    border-radius:8px !important;
}
.pfm-post {
    width: calc(25% - 20px);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.pfm-post:hover {
    transform: translateY(-5px);
}

.pfm-post h4 {
    font-size: 14px;
    margin-top: 8px;
    color: white;
}

.pfm-post img {
    width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    height: 170px;
}

.pfm-post-hover-desc {
    position: absolute;
    padding-top: 5px;
    bottom: 0;
    width: 93.5%;
    left: 0px;
    padding-bottom: 5px;
    right: 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    color: #fff;
    padding: 0px 10px;
    font-size: 0.9em;
    display: none;
    overflow: hidden;
    max-height: 3em;
    line-height: 1.5em;
    z-index: 2;
    border-radius: 4px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pfm-post:hover .pfm-post-hover-desc {
    display: -webkit-box;
}

.pfm-recommended-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    line-height: 1.5em;
    transition: all 0.3s ease;
    color: #666;
}
#pfm-posts{
    min-width:89%;
}
.pfm-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: auto;
    z-index: 9999;
}
.pfm-modal-content img:first-of-type{
    width:100% !important;
}
.pfm-modal-content {
    background: #fff;
    padding: 20px;
    max-width: 800px;
    margin: auto;
    position: relative;
    border-radius: 8px;
}
.content-wrapper p{
    color:black;
}
.pfm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.pfm-modal-header h2{
    color:#333;
    margin-top:0;
    margin-bottom:10px;
}
.pfm-contact-btn {
    background: #2d3f47;
    color: #fff;
    padding: 8px 12px;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.pfm-contact-btn:hover {
    opacity: 0.8
}

.pfm-recommended {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pfm-recommended-post {
    width: 25%;
    cursor: pointer;
}

.pfm-recommended-post img {
    width: 100%;
    border-radius: 6px !important;
    object-fit: cover !important;
    height: 130px !important;
}

.pfm-recommended-post h5{
    font-size: 15px;
    margin-bottom: 0;
    margin-top:7px;
    color:#333;
}
.pfm-recommended-post .pfm-recommended-desc{
    font-size: 12px;
}

/* Close icon styles */
.pfm-modal-close {
    position: absolute;
    top: -8px;
    right: 5px;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.pfm-modal-close:hover {
    color: red;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .pfm-post {
        width: calc(33.33% - 20px);
    }

    .pfm-recommended-post {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .pfm-post {
        width: calc(50% - 20px);
    }

    .pfm-recommended-post {
        width: 50%;
    }
}

@media (max-width: 480px) {
    .pfm-post,
    .pfm-recommended-post {
        width: 100%;
    }

    .pfm-filters button {
        display: block;
        margin: 10px auto;
    }
}
@media (min-width: 991px){
    .pfm-modal {
        min-Width:100% !important;
    }
}
.hidden{
    display:none !important;
}
.hero-banner{
    margin-top:-95px !important;
}
.wpcf7-form label, .wpcf7-form-control-wrap, .wpcf7-form input, .wpcf7-form textarea{
    width: 100%;
    display: block;
}
.wpcf7-form input{
    height:40px;    
}
#contact{
    padding-bottom:0 !important;
}
.wpcf7-submit{
    width: 100px !important;
    border-radius: 50px;
    background: black;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}
.wpcf7-submit:hover{
    opacity:0.8;
}
main{
    padding-bottom:0 !important;
}
footer div{
    padding-top:20px !important;
    padding-bottom:20px !important;
}
#wpforms-submit-13{
    margin-bottom:25px;
}