/*
Theme Name: HomePackersMovers Custom
Author: Sandeep
Description: Custom lightweight theme matching the main website.
Version: 1.0
*/

:root {
    --primary: #004494; /* Dark Blue */
    --secondary: #ff9800; /* Orange */
}

body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    background: #fdfdfd;
    color: #333;
}

/* Header & Footer Styling */
.custom-header { background: white; padding: 15px 5%; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; }
.custom-header a { text-decoration: none; color: var(--primary); font-weight: bold; font-size: 24px; }
.custom-footer { background: #111; color: white; text-align: center; padding: 20px; margin-top: 50px; }

/* Blog Grid */
.section-padding { padding: 50px 5%; max-width: 1200px; margin: auto; }
.section-title { text-align: center; font-size: 34px; color: var(--primary); margin-bottom: 50px; font-weight: 800; }
.section-title span { color: var(--secondary); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }

/* --- 1. IMAGE FIX: object-fit: contain kar diya hai --- */
.blog-card { background:white; border-radius:12px; overflow:hidden; box-shadow:0 5px 15px rgba(0,0,0,0.05); transition:0.3s; border:1px solid #eee; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--secondary); }
.blog-card img { 
    width: 100%; 
    height: 220px; 
    object-fit: contain; /* Ab image nahi katega */
    background: #f9f9f9; 
    padding: 10px;
}
.blog-card-body { padding: 25px; }
.blog-category { font-size: 12px; color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.blog-title { margin: 12px 0; font-size: 20px; line-height: 1.4; }
.blog-title a { color: var(--primary); text-decoration: none; }
.read-more { color: var(--secondary); font-weight: 700; text-decoration: none; }

/* --- 2. SINGLE POST CONTENT FIX --- */
.single-post-container { 
    max-width: 850px; /* Readability ke liye perfect width */
    margin: 40px auto; 
    padding: 0 20px; 
    line-height: 1.8; 
    font-size: 17px; 
}
.single-post-container h1 { color: var(--primary); font-size: 36px; margin-bottom: 20px; }
.single-post-container h2 { color: var(--primary); margin: 30px 0 15px; }
.single-post-container p { margin-bottom: 20px; }
.single-post-container img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin: 20px 0; 
    display: block;
}

/* Mobile responsive padding for post content */
@media (max-width: 768px) {
    .single-post-container { padding: 0 15px; }
    .section-title { font-size: 28px; }
}