/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com/
Description: GeneratePress Child Theme
Author: Your Name
Template: generatepress
Version: 1.0
*/

@import url("../generatepress/style.css");
/* ==========================================================================
   ONLY FOR SINGLE POSTS & PAGES (EXCLUDES HOMEPAGE COMPLETELY)
   ========================================================================== */

/* 1. Base Container & Typography (No Home) */
body:not(.home):not(.front-page).single .entry-content,
body:not(.home):not(.front-page).page .entry-content,
body:not(.home):not(.front-page).single article,
body:not(.home):not(.front-page).page article {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #2d3748;
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
}

body:not(.home):not(.front-page).single .entry-content p,
body:not(.home):not(.front-page).page .entry-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #334155;
}

/* 2. Meta Info Box (Date, Author, Category) */
body:not(.home):not(.front-page).single .entry-meta,
body:not(.home):not(.front-page).page .entry-meta,
body:not(.home):not(.front-page).single .post-meta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #64748b;
}

/* 3. Boxed Headings (H1, H2, H3, H4) */
body:not(.home):not(.front-page).single .entry-title,
body:not(.home):not(.front-page).page .entry-title,
body:not(.home):not(.front-page).single .entry-content h1,
body:not(.home):not(.front-page).page .entry-content h1 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin: 20px 0 16px 0;
}

/* H2 - Red Accent Left Border Box */
body:not(.home):not(.front-page).single .entry-content h2,
body:not(.home):not(.front-page).page .entry-content h2 {
    font-size: 21px;
    font-weight: 700;
    color: #1e293b;
    background: #f8fafc;
    border-left: 5px solid #e74c3c;
    border-top: 1px solid #edf2f7;
    border-right: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    border-radius: 0 8px 8px 0;
    padding: 12px 18px;
    margin: 32px 0 18px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* H3 - Blue Left Accent Box */
body:not(.home):not(.front-page).single .entry-content h3,
body:not(.home):not(.front-page).page .entry-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    border-left: 4px solid #3b82f6;
    border-bottom: 1px dashed #e2e8f0;
    padding: 8px 14px;
    margin: 26px 0 14px 0;
}

/* H4 - Green Accent Subheading */
body:not(.home):not(.front-page).single .entry-content h4,
body:not(.home):not(.front-page).page .entry-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    padding-left: 10px;
    border-left: 3px solid #10b981;
    margin: 20px 0 10px 0;
}

/* 4. Lists (Bullet & Numbered) */
body:not(.home):not(.front-page).single .entry-content ul,
body:not(.home):not(.front-page).single .entry-content ol,
body:not(.home):not(.front-page).page .entry-content ul,
body:not(.home):not(.front-page).page .entry-content ol {
    background: #fdfdfd;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 18px 20px 18px 40px;
    margin: 20px 0 25px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

body:not(.home):not(.front-page).single .entry-content ul li,
body:not(.home):not(.front-page).single .entry-content ol li,
body:not(.home):not(.front-page).page .entry-content ul li,
body:not(.home):not(.front-page).page .entry-content ol li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.65;
}

body:not(.home):not(.front-page).single .entry-content ul li::marker,
body:not(.home):not(.front-page).page .entry-content ul li::marker {
    color: #e74c3c;
    font-size: 1.1em;
}

/* 6. Blockquote */
body:not(.home):not(.front-page).single .entry-content blockquote,
body:not(.home):not(.front-page).page .entry-content blockquote {
    background: #fff8f8;
    border-left: 4px solid #e74c3c;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 25px 0;
    font-style: italic;
    color: #4b5563;
}

/* 7. Comment Box */
body:not(.home):not(.front-page).single #comments,
body:not(.home):not(.front-page).page #comments {
    margin-top: 45px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

body:not(.home):not(.front-page).single #comments .comments-title,
body:not(.home):not(.front-page).single #respond .comment-reply-title,
body:not(.home):not(.front-page).page #comments .comments-title,
body:not(.home):not(.front-page).page #respond .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: block;
}

body:not(.home):not(.front-page).single #commentform input[type="text"],
body:not(.home):not(.front-page).single #commentform input[type="email"],
body:not(.home):not(.front-page).single #commentform input[type="url"],
body:not(.home):not(.front-page).single #commentform textarea,
body:not(.home):not(.front-page).page #commentform input[type="text"],
body:not(.home):not(.front-page).page #commentform input[type="email"],
body:not(.home):not(.front-page).page #commentform input[type="url"],
body:not(.home):not(.front-page).page #commentform textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 16px;
    box-sizing: border-box;
    outline: none;
}

body:not(.home):not(.front-page).single #commentform input:focus,
body:not(.home):not(.front-page).single #commentform textarea:focus,
body:not(.home):not(.front-page).page #commentform input:focus,
body:not(.home):not(.front-page).page #commentform textarea:focus {
    background: #ffffff;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

body:not(.home):not(.front-page).single #commentform input[type="submit"],
body:not(.home):not(.front-page).page #commentform input[type="submit"] {
    background: #e74c3c;
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* 8. Mobile Responsiveness */
@media (max-width: 768px) {
    body:not(.home):not(.front-page).single .entry-content,
    body:not(.home):not(.front-page).page .entry-content {
        font-size: 16px;
        padding: 0 10px;
    }
    body:not(.home):not(.front-page).single .entry-title,
    body:not(.home):not(.front-page).page .entry-title {
        font-size: 22px;
    }
    body:not(.home):not(.front-page).single .entry-content h2,
    body:not(.home):not(.front-page).page .entry-content h2 {
        font-size: 18px;
        padding: 10px 14px;
    }
    body:not(.home):not(.front-page).single .entry-content ul,
    body:not(.home):not(.front-page).page .entry-content ul {
        padding-left: 30px;
    }
    body:not(.home):not(.front-page).single #comments,
    body:not(.home):not(.front-page).page #comments {
        padding: 16px;
    }
}
/* पुरानी थीम के हेडर, लोगो और मेनू को छिपाने के लिए */
header#masthead, 
.site-header, 
.main-navigation, 
#site-navigation {
    display: none !important;
}
/* 1. Container ki extra spacing aur margin khatam karein */
.single .site-content {
    max-width: 100% !important;
}

.single .inside-article {
    padding: 0 !important;
}

/* 2. Post Title (H1) aur Text ko safe padding dein taaki cut-off na ho */
.single .entry-header,
.single .entry-content > p,
.single .entry-content > h2,
.single .entry-content > h3,
.single .entry-content > ul,
.single .entry-content > ol {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* 3. Post Title ko specifically clean align karein */
.single h1.entry-title {
    word-break: break-word !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* 4. Images ko bilkul full width aur edge-to-edge rakhein */
.single .entry-content img,
.single .entry-content .wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Online Update HTML - Sidebar Width Fix */
@media (min-width: 768px) {

    /* Sidebar outer spacing */
    .sidebar,
    #secondary,
    .widget-area {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Sidebar widgets */
    .sidebar .widget,
    #secondary .widget,
    .widget-area .widget {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box;
    }
}
/* YouTube Video Mobile Fix - CSS Only */

.entry-content iframe[src*="youtube"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    display: block !important;
    margin: 15px 0 !important;
    border: 0 !important;
}

/* WordPress YouTube Embed */
.entry-content .wp-block-embed {
    width: 100% !important;
    max-width: 100% !important;
    margin: 15px 0 !important;
}

.entry-content .wp-block-embed__wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile */
@media only screen and (max-width: 767px) {

    .entry-content iframe[src*="youtube"] {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin: 12px 0 !important;
    }

    .entry-content .wp-block-embed,
    .entry-content .wp-block-embed__wrapper {
        width: 100% !important;
        max-width: 100% !important;
        margin: 12px 0 !important;
        padding: 0 !important;
    }
}
