/* रीसेट और बेसिक स्टाइल्स */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif; /* Arial की जगह Poppins, जैसा कि index.php और category.php में यूज़ किया */
    background: #f4f7f9;
    color: #333;
}

/* नेविगेशन बार */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #ddd !important;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ddd !important;
}

/* मुख्य टाइटल स्टाइल */
.main-title {
    text-align: left;
    margin-top: 20px;
    font-size: 2.5rem;
    color: #1e3c72;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    background: #d1d9e6;
    padding: 10px 15px;
    border-radius: 8px;
}

/* टेक्स्ट साइज़ कंट्रोल्स स्टाइल */
.text-size-controls {
    justify-content: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.text-size-controls label {
    font-weight: bold;
    color: #1e3c72;
}

.text-size-controls button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease; /* ट्रांज़िशन में स्मूथनेस के लिए transform जोड़ा */
}

.text-size-controls button:hover {
    background: #0056b3;
    transform: scale(1.05); /* होवर पर स्मूथ स्केल इफेक्ट */
}

/* पोस्ट कार्ड स्टाइल */
.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.post-image {
    max-width: 100%;
    width: 290px; /* डिफ़ॉल्ट साइज़: JavaScript से सेट वैल्यू के साथ कंसिस्टेंट */
    min-width: 290px; /* सुनिश्चित करें कि साइज़ इससे कम न हो */
    height: auto; /* आस्पेक्ट रेशियो बनाए रखने के लिए */
    min-height: 200px; /* डिफ़ॉल्ट न्यूनतम ऊँचाई सभी इमेजेज़ के लिए */
    object-fit: cover;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease, min-height 0.3s ease;
}

.post-image[src^="/uploads/"] { /* पाथ अपडेट: /myblog/uploads/ से /uploads/ */
    min-height: 230px; /* पोस्ट इमेजेज़ के लिए बढ़ी हुई न्यूनतम ऊँचाई */
}

.post-title {
    color: #333;
    font-size: 30px !important; /* डिफ़ॉल्ट साइज़ बढ़ाया, Bootstrap h5 को ओवरराइड करने के लिए */
    font-weight: 600; /* टाइटल को थोड़ा बोल्ड किया */
    line-height: 1.4; /* पढ़ने में आसानी के लिए */
    transition: color 0.3s ease, font-size 0.3s ease;
}

.post-title:hover {
    color: #007bff;
}

.post-meta {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-meta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.post-meta span {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 5px;
    color: #007bff;
}

.post-description {
    font-size: 16px;
    transition: font-size 0.3s ease;
    line-height: 1.8;
    color: #333;
}

.read-more-btn {
    pointer-events: auto !important;
    opacity: 1 !important;
    cursor: pointer !important;
    background-color: #007bff !important;
    color: #fff !important;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background-color: #0056b3 !important;
}

/* साइडबार स्टाइल्स */
.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1e3c72;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.sidebar-link {
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.sidebar-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.list-group-item {
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    margin-bottom: 5px;
    padding: 10px;
    transition: background 0.3s ease;
}

.list-group-item:hover {
    background: #e9ecef;
}

/* पेजिनेशन स्टाइल्स */
.pagination-btn {
    background: #007bff;
    color: #fff;
    border: none;
    transition: background 0.3s ease;
}

.pagination-btn:hover {
    background: #0056b3;
}

.page-item.active .page-link {
    background: #0056b3;
    border-color: #0056b3;
}

/* फूटर स्टाइल्स */
footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* पोस्ट पेज विशिष्ट स्टाइल्स */
.post-content {
    font-size: 20px;
    transition: font-size 0.3s ease;
}

.post-title.h1 {
    background: #e6ecf5;
    padding: 10px 15px;
    border-radius: 8px;
}

.post-content h1:not(.shortcode-box h1),
.post-content h2:not(.shortcode-box h2),
.post-content h3:not(.shortcode-box h3),
.post-content h4:not(.shortcode-box h4),
.post-content h5:not(.shortcode-box h5),
.post-content h6:not(.shortcode-box h6) {
    background: #e6ecf5;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    transition: font-size 0.3s ease;
}

/* रेस्पॉन्सिव डिज़ाइन */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .post-meta span {
        font-size: 0.8rem;
    }

    .post-image {
        width: 290px; /* रेस्पॉन्सिव स्क्रीन पर भी डिफ़ॉल्ट साइज़ */
        min-width: 290px;
        height: auto;
        min-height: 200px; /* डिफ़ॉल्ट न्यूनतम ऊँचाई */
        border-radius: 12px 12px 0 0; /* छोटी स्क्रीन पर इमेज को ऊपर से राउंडेड */
    }

    .post-image[src^="/uploads/"] { /* पाथ अपडेट: /myblog/uploads/ से /uploads/ */
        min-height: 230px; /* पोस्ट इमेजेज़ के लिए बढ़ी हुई न्यूनतम ऊँचाई */
    }

    .post-title {
        font-size: 24px !important; /* रेस्पॉन्सिव स्क्रीन के लिए थोड़ा छोटा साइज़ */
    }

    .sidebar {
        margin-top: 20px;
    }

    .sidebar-title {
        font-size: 1.2rem;
    }

    .sidebar-link {
        font-size: 0.9rem;
    }

    /* टेक्स्ट साइज़ कंट्रोल्स को छोटी स्क्रीन पर सेंटर करें */
    .text-size-controls {
        justify-content: center;
    }

    /* पोस्ट डिस्क्रिप्शन को छोटी स्क्रीन पर थोड़ा छोटा करें */
    .post-description {
        font-size: 14px;
    }
}

/* और छोटी स्क्रीन (मोबाइल) के लिए */
@media (max-width: 576px) {
    .main-title {
        font-size: 1.8rem;
    }

    .post-image {
        width: 100%; /* बहुत छोटी स्क्रीन पर इमेज फुल-विड्थ */
        min-width: 100%;
        min-height: 180px; /* थोड़ा छोटा */
    }

    .post-image[src^="/uploads/"] {
        min-height: 200px; /* पोस्ट इमेजेज़ के लिए बढ़ी हुई न्यूनतम ऊँचाई */
    }

    .post-title {
        font-size: 20px !important; /* और छोटा साइज़ */
    }

    .post-meta {
        padding: 8px;
    }

    .post-meta span {
        font-size: 0.75rem;
    }

    .read-more-btn {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
}