/* Blog grid container */
.blog-grid,
.wp-block-post-template,
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
}

/* Individual cards */
.blog-grid article,
.wp-block-post,
.posts-grid article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Make images same size */
.blog-grid img,
.wp-block-post-featured-image img,
.posts-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Prevent weird title spacing */
.blog-grid h2,
.wp-block-post-title,
.posts-grid h2 {
    margin-top: 15px;
    line-height: 1.3;
}

/* Optional: equal card heights */
.blog-grid article,
.wp-block-post,
.posts-grid article {
    background: white;
}
object-fit: cover;
@media (max-width: 768px) {
    .blog-grid,
    .wp-block-post-template,
    .posts-grid {
        grid-template-columns: 1fr;
    }
}
/* Search container */
.wp-block-search,
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Search input */
.wp-block-search__input,
.search-field {
    height: 48px;
    width: 260px;
    padding: 0 16px;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
}

/* Input hover/focus */
.wp-block-search__input:focus,
.search-field:focus {
    border-color: #2d5bff;
    box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.15);
}

/* Search button */
.wp-block-search__button,
.search-submit {
    height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 12px;
    background: #2d5bff;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Button hover */
.wp-block-search__button:hover,
.search-submit:hover {
    background: #1f46d8;
}