/***** Filter **********/
.cust-post-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    /* padding: 10px; */
    padding: 0;
    /* background-color: #f8f8f8; */
    border-radius: 8px;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .cust-post-filters, .search-parameters {
        flex-wrap: wrap;
    }
}

/* @media (min-width: 600px) {
    .cust-post-filters input[type=text] {
        width: 20%;
    }
} */

.filter-item {
    display: flex;
    align-items: center;
    width: 30%;
}

.filter-item input[type="text"] {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    width: 200px;
}

.filter-item select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.featured-btn {
    background-color: transparent;
    border: none;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-btn .star-icon {
    color: #f5b300;
}

/* .filter-item select,
.filter-item input {
    width: 150px;
} */

.cust-post-filters .post-featured {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #4b5563;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
}

.cust-post-filters .post-featured.active {
    border: 1px solid #f58548;
    background-color: #f58548;
    color: #ffffff;
}

.cust-post-filters .post-featured.active svg {
    stroke: #ffffff;
    fill: #ffffff;
}

.cust-post-filters #clear-filters {
    background-color: #117042;
    padding: 12px;
    font-size: 14px;
}

/* .cust-post-filters #clear-filters, .cust-post-filters #filters-message {
    display: none !important;
} */

.search-parameters {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 20px;
}

.clear-select-result {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/********** Category Listing *************/
.cust-category-list {
    font-family: 'Inter', sans-serif;
}

/* SECTION */
/* .cust-category-list .category-section {
    padding-top: 64px;
    padding-bottom: 64px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
} */

/* CONTAINER */
.cust-category-list .container {
    max-width: 72rem;
    /* max-w-6xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* RESPONSIVE PADDING */
@media (min-width: 640px) {
    .cust-category-list .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .cust-category-list .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* TITLE */
.cust-category-list .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1D285C;
    text-align: center;
    margin-bottom: 8px;
}

/* SUBTITLE */
.cust-category-list .section-subtitle {
    font-size: 14px;
    color: #4b5563;
    text-align: center;
    margin-bottom: 40px;
}

/* GRID */
.cust-category-list .category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* BREAKPOINTS EXACT */
@media (min-width: 640px) {
    .cust-category-list .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .cust-category-list .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* CARD */
.cust-category-list .category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* HOVER SHADOW */
.cust-category-list .category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* IMAGE WRAP */
.cust-category-list .img-wrap {
    position: relative;
    height: 112px;
    /* h-28 */
    overflow: hidden;
}

/* IMAGE */
.cust-category-list .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* SCALE HOVER */
.cust-category-list .category-card:hover img {
    transform: scale(1.05);
}

/* OVERLAY EXACT */
.cust-category-list .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(29, 40, 92, 0.6);
    transition: background-color 0.3s ease;
}

.cust-category-list .category-card:hover .overlay {
    background-color: rgba(29, 40, 92, 0.5);
}

/* COUNT BADGE */
.cust-category-list .count {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background-color: #F58548;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TITLE OVERLAY */
.cust-category-list .bottom-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/********** Project Listing *************/
.cust-post-list {
    font-family: 'Inter', sans-serif;
    margin-top: 50px;
}

/* GRID */
.cust-post-list .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .cust-post-list .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cust-post-list .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */
/* .cust-post-list .card-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
} */

.cust-post-list .post-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.cust-post-list .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* IMAGE */
.cust-post-list .card-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.cust-post-list .card-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cust-post-list .post-card:hover .card-image img {
    transform: scale(1.05);
}

/* BADGES */
.cust-post-list .badge {
    position: absolute;
    top: 12px;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 20px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.cust-post-list .badge span {
    height: 16px;
}

.cust-post-list .badge img {
    width: 16px;
    height: 16px;
}

.cust-post-list .featured {
    left: 12px;
    background: #F58548;
    color: #fff;
    font-weight: 700;
}

.cust-post-list .category {
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #1D285C;
    font-weight: 600;
}

/* CONTENT */
.cust-post-list .card-content {
    padding: 20px;
}

.cust-post-list .location {
    font-size: 12px;
    font-weight: 600;
    color: #199C63;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cust-post-list .location svg {
    width: 12px;
    height: 12px;
}

.cust-post-list .title {
    font-size: 16px;
    font-weight: 700;
    color: #1D285C;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.cust-post-list .post-card:hover .title {
    color: #199C63;
}

.cust-post-list .description {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
}

.cust-post-list .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.cust-post-list .tags span {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    background: rgba(25, 156, 99, 0.1);
    color: #199C63;
    font-weight: 500;
}

.cust-post-list .view-post {
    font-size: 14px;
    font-weight: 600;
    color: #F58548;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.cust-post-list .post-card:hover .view-post {
    gap: 10px;
}

/* Post Ajax Filter Pagination design */

.cust-post-list .pagination {
    text-align: center;
    margin-top: 40px;
} 

.cust-post-list .pagination span, .cust-post-list .pagination a {
    padding: 10px;
    border: 1px solid;
}

/* Container */
.ajax-post-filter-result {
    position: relative;
}
 
/* Overlay Loader */
.apf-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    display: none;
}
 
/* Spinner */
.apf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: apf-spin 0.8s linear infinite;
}
 
@keyframes apf-spin {
    100% { transform: rotate(360deg); }
}
 
/* Fade effect */
.ajax-post-filter-result.loading .posts-grid {
    opacity: 0.5;
    transition: 0.3s;
}

.ajax-post-filter-loadmore {
    background-color: #F58548;
    visibility: hidden;
    margin-top: 30px;
}