/* --- Master Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f7f9; color: #333; line-height: 1.6; overflow-x: hidden; }

/* --- Heading Title Gap Fix --- */
h1, h2, .blog-content h2, .main-content h1 {
    line-height: 1.2 !important; 
}

/* --- Full Width Header --- */
header { background: #0056b3; width: 100%; padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); display: block; }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; flex-wrap: wrap; }
.logo { font-size: 26px; font-weight: bold; color: #ffffff !important; text-decoration: none; }
.logo span { color: #ffdd57; }
nav { display: flex; align-items: center; }
nav a { color: #ffffff !important; margin-left: 25px; font-weight: 500; text-decoration: none; transition: 0.3s; }
nav a:hover { color: #ffdd57 !important; }
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }

/* --- Main Layout Grid --- */
.blog-container { display: flex; max-width: 1200px; margin: 40px auto; gap: 30px; padding: 0 20px; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

/* --- Featured Blog Cards --- */
.blog-card { background: white; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); display: flex; flex-direction: row; overflow: hidden; border: 1px solid #eee; transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-5px); }
.blog-image { width: 320px; flex-shrink: 0; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-content { padding: 25px; flex: 1; }
.blog-content h2 { margin-bottom: 12px; }
.blog-content h2 a { color: #0056b3; font-size: 21px; text-decoration: none; }
.post-meta { font-size: 13px; color: #888; margin-bottom: 15px; }
.read-more { display: inline-block; margin-top: 15px; color: white; background: #0056b3; padding: 10px 22px; border-radius: 6px; font-size: 14px; font-weight: bold; text-decoration: none; }

/* --- Sidebar Widgets --- */
.sidebar-widget { background: white; padding: 20px; border-radius: 12px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.sidebar-widget h3 { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #eee; font-size: 18px; color: #333; }
.cat-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 12px; background: #fafafa; border: 1px solid #eee; border-radius: 8px; color: #333; text-decoration: none; transition: 0.3s; }
.cat-item:hover { background: #f0f7ff; border-color: #0056b3; }
.cat-badge { background: #0056b3; color: white; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.cat-badge.empty { background: #0056b3; color: white; opacity: 0.8; } 

.popular-post { margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 12px; }
.popular-post:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.popular-post a { color: #0056b3; font-weight: bold; font-size: 15px; text-decoration: none; line-height: 1.4; display: block; }
.popular-post p { font-size: 12px; color: #888; margin-top: 5px; }

/* --- Contact Form Layout --- */
.contact-form { width: 100%; }
.contact-form .form-group { margin-bottom: 20px; text-align: left; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; color: #333; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; font-family: inherit; }
.submit-btn { width: 100%; background: #0056b3; color: white; padding: 14px; border: none; border-radius: 6px; font-weight: bold; font-size: 16px; cursor: pointer; transition: 0.3s; }
.submit-btn:hover { background: #004494; }

/* --- Full Width Footer Fix --- */
footer { background: #002b5c; width: 100%; padding: 60px 0 20px; margin-top: 60px; display: block; }
footer p, footer h3, footer li, footer span { color: #ffffff !important; }
footer a { color: #cbd5e0 !important; text-decoration: none; transition: 0.3s; }
footer a:hover { color: #ffffff !important; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; gap: 40px; padding: 0 20px; flex-wrap: wrap; }
.footer-col { flex: 1; min-width: 250px; }
.footer-col h3 { border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding-top: 5px; }
.footer-col ul li { margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; color: #888 !important; }
.footer-bottom p { color: #888 !important; }

/* --- Mobile Responsive Fixes --- */
@media (max-width: 900px) {
    .blog-container { flex-direction: column; }
    .sidebar { width: 100%; }
    .blog-card { flex-direction: column; }
    .blog-image { width: 100%; height: 250px; }
    .header-container { flex-wrap: wrap; }
    
    /* Updated Mobile Menu */
    nav { 
        width: 100%; 
        display: none; 
        background: #0056b3; /* Header wala exact same color */
        margin-top: 15px; 
        padding: 0; 
        border-radius: 6px; 
    }
    nav.show { display: flex; flex-direction: column; text-align: center; }
    nav a { 
        color: #ffffff !important; 
        margin: 0 auto; 
        padding: 15px 0; 
        display: block; 
        width: 90%; /* Divider ko zyada lamba (wider) karne ke liye */
        border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Professional grey/light divider */
        font-weight: 500;
    }
    nav a:last-child { border-bottom: none; }
    nav a:hover { background: transparent; color: #ffdd57 !important; }
    
    .mobile-menu-btn { display: block; }
}