/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+Devanagari:wght@300;400;500;600;700&display=swap');

/* Basic Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: 'Inter', 'Noto Sans Devanagari', Arial, sans-serif; 
    line-height: 1.7; 
    background-color: #f8fafc; /* हल्का बैकग्राउंड रंग */
    color: #2d3748; 
    font-weight: 400;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
}

/* Header */
header { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #2d3748; 
    padding: 10px 0;
    min-height: 80px; 
    border-bottom: 4px solid #667eea;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a { 
    color: #4a5568; 
    text-decoration: none; 
    font-weight: 500;
    transition: color 0.3s ease;
}

header .logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

header .logo img {
    transition: transform 0.3s ease;
}

header .logo a:hover img {
    transform: rotate(-5deg) scale(1.05);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

header nav ul { 
    display: flex;
    align-items: center;
    list-style: none; 
    gap: 8px;
}

header nav ul li { 
    position: relative;
}

header nav ul li a { 
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

header nav ul li a:hover { 
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px; 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    z-index: 1001; /* हेडर से ऊपर */
    animation: fadeInDown 0.3s ease-out;
}

.dropdown-content li { 
    border-bottom: 1px solid #f1f5f9;
}
.dropdown-content li:last-child { border-bottom: none; }

.dropdown-content li a { 
    padding: 12px 18px; 
    display: block;
    font-weight: 400;
    border-radius: 0;
}

.dropdown-content li a:hover {
    background: #f0f4ff;
    color: #667eea;
    transform: translateX(5px);
    box-shadow: none;
}

.dropdown:hover .dropdown-content { display: block; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-bar form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-bar form:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-bar input { 
    padding: 12px 16px; 
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #2d3748;
    width: 250px;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.search-bar button { 
    padding: 12px 18px; 
    background: #667eea; 
    color: white; 
    border: none; 
    cursor: pointer;
    font-weight: 500;
}
.search-bar button:hover { background: #5a67d8; }


/* Main Content, Sidebar, Footer, etc. (No changes needed, your code is great) */
/* ... (आपका बाकी का CSS यहाँ से शुरू होता है) ... */
main.container { display: flex; gap: 30px; margin-top: 30px; align-items: flex-start; }
.main-content { flex: 3; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); padding: 30px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
.sidebar { flex: 1; }
.post-item { display: flex; gap: 25px; margin-bottom: 40px; border-bottom: 2px solid #f1f5f9; padding-bottom: 30px; }
.post-image { max-width: 220px; height: 150px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; }
.post-image:hover { transform: scale(1.02); }
.post-content h2 { margin-top: 0; margin-bottom: 12px; font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
.post-content h2 a { text-decoration: none; color: #2d3748; }
.post-content h2 a:hover { color: #667eea; }
.post-meta { font-size: 0.85em; color: #718096; margin-bottom: 12px; display: flex; align-items: center; gap: 15px; font-weight: 500; }
.post-content p { color: #4a5568; margin-bottom: 15px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; padding: 12px 20px; text-decoration: none; border-radius: 8px; margin-top: 12px; font-weight: 500; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3); }
.read-more:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); }
.single-post .post-image-full { width: 100%; height: 400px; object-fit: cover; margin-bottom: 25px; border-radius: 16px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.single-post .post-body { margin-top: 25px; }
.single-post .post-body p { margin-bottom: 18px; font-size: 1.05rem; line-height: 1.8; color: #4a5568; }
.single-post h1 { font-size: 2.5rem; font-weight: 700; color: #2d3748; margin-bottom: 10px; line-height: 1.3; }
.sidebar .widget { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); padding: 25px; margin-bottom: 25px; border-radius: 16px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); }
.sidebar .widget h3 { margin-top: 0; margin-bottom: 20px; border-bottom: 3px solid #667eea; padding-bottom: 12px; font-size: 1.3rem; font-weight: 600; color: #2d3748; }
.sidebar .widget ul { list-style: none; }
.sidebar .widget ul li { margin-bottom: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar .widget ul li a { text-decoration: none; color: #4a5568; font-weight: 500; }
.sidebar .widget ul li a:hover { color: #667eea; }
.ad-widget, .ad-widget-post { background: linear-gradient(135deg, #f8fafc, #e2e8f0); border: 2px dashed #cbd5e0; text-align: center; padding: 50px 25px; margin: 25px 0; border-radius: 16px; color: #718096; }
footer { background: #667eea; color: #e2e8f0; text-align: center; padding: 20px 0; margin-top: 50px; }
footer p { font-size: 1.1rem; font-weight: 500; }
.login-page-bg { background-color: #f4f4f4; display: flex; justify-content: center; align-items: center; height: 100vh; font-family: Arial, sans-serif; }
.login-form-container { max-width: 400px; width: 100%; margin: 20px; background: #ffffff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); text-align: center; }
.login-form-container h2 { margin-top: 0; margin-bottom: 25px; color: #333; font-size: 24px; }
.login-form-container .error-message { background-color: #f8d7da; color: #721c24; padding: 10px; border: 1px solid #f5c6cb; border-radius: 4px; margin-bottom: 20px; text-align: left; }
.login-form-container form { text-align: left; }
.login-form-container .form-group { margin-bottom: 20px; }
.login-form-container label { display: block; margin-bottom: 8px; font-weight: bold; color: #555; }
.login-form-container input[type="text"], .login-form-container input[type="password"] { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; transition: border-color 0.3s; }
.login-form-container input[type="text"]:focus, .login-form-container input[type="password"]:focus { border-color: #0779e4; outline: none; }
.login-form-container button[type="submit"] { width: 100%; padding: 12px; background-color: #0779e4; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; font-weight: bold; }
.login-form-container button[type="submit"]:hover { background-color: #056ac4; }
/* ... (यहाँ आपका बाकी का CSS समाप्त होता है) ... */


/* =================================
   NEW: Responsive Navigation Styles
   ================================= */
.menu-toggle {
    display: none; /* डिफ़ॉल्ट रूप से छिपा हुआ */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* मेनू रैपर से ऊपर */
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    /* Tablet और छोटे डेस्कटॉप के लिए */
    .menu-toggle {
        display: flex;
    }

    header .container {
        flex-wrap: nowrap; /* लोगो और आइकॉन को एक लाइन में रखने के लिए */
    }

    .nav-wrapper {
        display: none;
        position: absolute;
        top: 80px; /* हेडर की ऊंचाई */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #f1f5f9;
    }
    
    .nav-wrapper.active {
        display: flex;
    }

    .nav-wrapper nav,
    .nav-wrapper nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .nav-wrapper nav ul li {
        width: 100%;
        text-align: center;
    }

    .nav-wrapper nav ul li a {
        display: block;
        padding: 15px 0;
        border-radius: 0;
    }
    
    .dropdown-content {
        position: static;
        display: block; /* ड्रॉपडाउन हमेशा खुला रहेगा जब मुख्य मेनू खुला हो */
        box-shadow: none;
        border: none;
        background: #f8fafc;
        margin-top: 0;
        border-top: 1px solid #eee;
        min-width: 100%;
    }
    .dropdown:hover .dropdown-content {
        animation: none;
    }
    .dropdown-content li a {
        padding: 12px 0;
    }
    
    .search-bar {
        margin-top: 20px;
        width: 90%;
    }
    .search-bar form, .search-bar input {
        width: 100%;
    }

    main.container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* मोबाइल */
    .post-item {
        flex-direction: column;
    }
    .post-image {
        max-width: 100%;
        height: 200px;
    }
    .single-post h1 {
        font-size: 2rem;
    }
    .single-post .post-image-full {
        height: 250px;
    }
}