.post-filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 56px;
}

.post-filter-form input[type="text"] {
    flex: 60%;
    min-width: 0;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFF;
}

.post-filter-form select[name="category"] {
    flex: 20%;
    min-width: 0;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFF;
}

.post-filter-form select[name="order"] {
    flex: 10%;
    min-width: 0;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
    background: #FFF;
}

.post-filter-form input[type="text"],
.post-filter-form select {
    padding: 14px 16px;
    cp-card-sizing: border-cp-card;
}

.post-filter-form select {
    padding-right: 40px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='15' viewcp-card='0 0 14 15' fill='none'%3E%3Cpath d='M3.5 5.75L7 9.25L10.5 5.75' stroke='%231E293B' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px 16px !important;
    /* For IE/Edge fallback */
    border-radius: 8px !important;
}

/* For Firefox, add a bit of extra specificity */
@-moz-document url-prefix() {
    .post-filter-form select {
        padding-right: 40px;
    }
}

@media (max-width: 600px) {
    .post-filter-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .post-filter-form input[type="text"],
    .post-filter-form select[name="category"],
    .post-filter-form select[name="order"] {
        flex: 100%;
        width: 100%;
    }
}

.post-filter-form button {
    background-color: #a11e29;
    color: white;
    cursor: pointer;
}

.post-filter-form button:hover {
    background-color: #000;
}



.cp-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 8px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    font-size: 0.9em;
    color: #666;
}

.post-title {
    font-size: 1.2em;
    margin: 10px;
    color: #333;
}

.post-excerpt {
    padding: 0 10px 10px;
    font-size: 0.95em;
    color: #555;
}

.read-more {
    display: block;
    margin: 10px;
    padding: 8px 16px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.read-more:hover {
    background-color: #005177;
}

/* Load More Button */
.load-more-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.load-more-button:hover {
    background-color: #005177;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cp-card {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .cp-card {
        flex: 1 1 100%;
    }

}

/* Skeleton Loader Styling */

.cp-loading-skeleton {
    width: 100%;
}

.cp-loading-skeleton .cp-card {
    background: #f9f9f9;
    pointer-events: none;
    width: 100%;
    margin-top: 48px;
}

.skeleton-image {
    width: 100%;
    height: 340px;
    background: #e0e0e0;
    animation: pulse 1.5s infinite;
    border-radius: 8px;
}

.skeleton-card-content {
    padding: 10px;
}

.skeleton-text {
    background: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}