/*
Theme Name: Team Removals Canada Blog
Description: Blog-only theme that includes the header and footer from the main PHP site (/include).
Text Domain: teamremovals-ca-blog
Version: 1.0
Author: Custom
*/

.blog-wrap { max-width: 1140px; margin: 0 auto; padding: 40px 15px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.blog-card { border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; background: #fff; }
.blog-card img { width: 100%; height: 230px; object-fit: cover; display: block; }
.blog-card .card-body { padding: 18px; }
.blog-card h2 { font-size: 20px; margin: 0 0 10px; }
.blog-card h2 a { text-decoration: none; color: inherit; }
.post-meta { font-size: 13px; color: #777; margin-bottom: 10px; }
.single-post-content { max-width: 800px; margin: 0 auto; }
.single-post-content img { max-width: 100%; height: auto; }
.blog-pagination { margin-top: 40px; text-align: center; }
.blog-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; margin: 0 3px; text-decoration: none; }
.blog-pagination .current { background: #222; color: #fff; border-color: #222; }

/* ---- Fixes for PHP-site header/CSS conflicts ---- */
.blog-wrap { padding-top: 150px; }
.blog-wrap h1 { color: #222 !important; margin: 0 0 30px; font-size: 38px; line-height: 1.2; }
.blog-card { display: flex; flex-direction: column; }
.blog-card-body { padding: 18px; display: block !important; }
.blog-card-body, .blog-card-body p, .blog-card-body .post-meta { color: #444 !important; visibility: visible !important; opacity: 1 !important; }
.blog-card-body h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; }
.blog-card-body h2 a { color: #222 !important; text-decoration: none; }
.blog-card-body h2 a:hover { color: #1a2a8c !important; }
.blog-card-body > a { color: #1a2a8c !important; font-weight: 600; text-decoration: none; }
.single-post-content h1, .single-post-content h2, .single-post-content h3,
.single-post-content p, .single-post-content li { color: #222; }
@media (max-width: 767px) { .blog-wrap { padding-top: 110px; } }

/* ---- Forms inside posts and comments ---- */
.single-post-content input[type="text"],
.single-post-content input[type="email"],
.single-post-content input[type="tel"],
.single-post-content input[type="url"],
.single-post-content textarea {
    display: block; width: 100%; max-width: 100%; box-sizing: border-box;
    padding: 12px 14px; margin: 0 0 12px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 15px; color: #222; background: #fff;
}
.single-post-content textarea { min-height: 140px; }
.single-post-content input[type="submit"],
.single-post-content button[type="submit"] {
    background: #1a2a8c; color: #fff; border: 0; border-radius: 4px;
    padding: 12px 28px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.single-post-content input[type="submit"]:hover,
.single-post-content button[type="submit"]:hover { background: #121e66; }
.single-post-content label { display: block; margin-bottom: 6px; font-weight: 600; }
.comment-reply-title, .related-posts h2 { margin: 40px 0 20px; font-size: 26px; }
.related-posts .blog-card-body h3 { font-size: 17px; margin: 0; line-height: 1.35; }
.related-posts .blog-card-body h3 a { color: #222 !important; text-decoration: none; }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment-body { border-bottom: 1px solid #eee; padding: 15px 0; }
