.grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media(max-width:900px){ .grid-wrap { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px){ .grid-wrap { grid-template-columns: 1fr; } }

.grid-item {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    opacity: 0;
    transform: translateY(10px);
    transition: .4s ease;
}

.grid-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.post-title a {
    text-decoration: none;
    color: #222;
}

.post-title a:hover {
    color: #0073aa;
}

.ajax-pagination {
    text-align: center;
    margin-top: 20px;
}

.ajax-pagination a,
.ajax-pagination span {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.ajax-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}






/* Container for spacing between selects */
.ajax-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* space between dropdowns */
    margin-bottom: 20px;
}

/* General select styling */
.ajax-filter-form select {
    padding: 10px 14px;
    font-size: 15px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    appearance: none; /* remove default arrow */
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px; /* adjust width as needed */
}

/* Hover effect */
.ajax-filter-form select:hover {
    border-color: #999;
}

/* Focus effect */
.ajax-filter-form select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 6px rgba(0, 115, 170, 0.3);
}

/* Add a custom arrow */
.ajax-filter-form select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20viewBox%3D'0%200%2010%206'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M0%200l5%206%205-6H0z'%20fill%3D'%23666'%20/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px 6px;
}

/* Responsive: stack dropdowns on small screens */
@media (max-width: 600px) {
    .ajax-filter-form {
        flex-direction: column;
    }

    .ajax-filter-form select {
        width: 100%;
    }
}
