/*
 * AI Post Publisher Pro — Post Layout Styles
 * Loaded on ALL frontend pages AND in the admin editor.
 * Uses ONLY class-based selectors so the layout never changes in editor.
 * ================================================================
 */

/* ── Wrapper ──────────────────────────────────────────────────── */
.srkr-wrap {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #222;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}
.srkr-wrap * { box-sizing: border-box; }

/* ── Intro paragraph ─────────────────────────────────────────── */
.srkr-intro {
    background: #fff;
    padding: 10px 0 14px;
    font-size: 14px;
    margin: 0 0 4px;
}

/* ── Social buttons ──────────────────────────────────────────── */
.srkr-social {
    text-align: center;
    margin: 8px 0 16px;
}
.srkr-btn-wa,
.srkr-btn-tg {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none !important;
    margin: 0 4px 4px;
}
.srkr-btn-wa { background: #25D366; }
.srkr-btn-tg { background: #0088cc; }
.srkr-btn-wa:hover { background: #1da851; color: #fff !important; }
.srkr-btn-tg:hover { background: #006fa8; color: #fff !important; }

/* ── Generic box (bordered section) ─────────────────────────── */
.srkr-box {
    border: 2px solid #1a6b2a;
    border-radius: 2px;
    margin: 0 0 20px;
    overflow: hidden;
}

/* ── Box heading ─────────────────────────────────────────────── */
.srkr-box-head {
    background: #1a6b2a;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 700;
}
.srkr-box-subhead {
    background: #2d8a3e;
    color: #fff;
    text-align: center;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
}
.srkr-site-tag {
    text-align: center;
    font-size: 11px;
    color: #555;
    padding: 4px 0 6px;
    border-bottom: 1px solid #ccc;
}

/* ── Two-column row inside short details box ─────────────────── */
.srkr-two-col {
    display: flex;
    gap: 0;
}
.srkr-col {
    flex: 1;
    padding: 10px 12px;
}
.srkr-col:first-child {
    border-right: 1px solid #ddd;
}
.srkr-col ul {
    margin: 4px 0;
    padding-left: 18px;
}
.srkr-col ul li {
    margin: 3px 0;
    font-size: 13px;
    line-height: 1.5;
}
.srkr-col-head {
    font-weight: 700;
    font-size: 13px;
    color: #1a6b2a;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
    margin-bottom: 8px;
}
.srkr-date-red {
    color: #cc0000 !important;
    font-weight: 700;
}
.srkr-fee-method {
    font-size: 12px;
    color: #444;
    margin-top: 6px;
    padding: 6px 8px;
    background: #f9fef9;
    border: 1px dashed #ccc;
    border-radius: 3px;
}

/* ── Age Limit + Total Posts bar ─────────────────────────────── */
.srkr-age-total-bar {
    display: flex;
    border-top: 2px solid #1a6b2a;
}
.srkr-age-col {
    flex: 1;
    padding: 10px 12px;
    border-right: 1px solid #ccc;
    font-size: 13px;
}
.srkr-age-col ul {
    margin: 4px 0;
    padding-left: 16px;
}
.srkr-age-col li {
    margin: 3px 0;
}
.srkr-age-title {
    font-weight: 700;
    color: #1a3a6b;
    margin-bottom: 6px;
    font-size: 13px;
}
.srkr-age-note {
    font-size: 12px;
    color: #555;
    font-style: italic;
}
.srkr-total-col {
    flex: 0 0 150px;
    padding: 10px 12px;
    text-align: center;
    background: #f0fff4;
}
.srkr-total-label {
    font-size: 11px;
    font-weight: 700;
    color: #1a6b2a;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.srkr-total-number {
    font-size: 28px;
    font-weight: 900;
    color: #1a3a6b;
    line-height: 1.2;
    margin: 4px 0 2px;
}
.srkr-total-sub {
    font-size: 11px;
    color: #555;
}

/* ── Also Check bar ──────────────────────────────────────────── */
.srkr-also-check {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 8px 14px;
    margin: 0 0 20px;
    font-size: 13px;
    border-radius: 3px;
}
.srkr-also-check strong { color: #856404; }
.srkr-also-check a { color: #856404; text-decoration: underline; }

/* ── Section heading (dark blue bar) ─────────────────────────── */
.srkr-section-head {
    background: #1a3a6b;
    color: #fff;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 14px;
    margin: 0;
}

/* ── Generic content pad inside box ─────────────────────────── */
.srkr-content-pad {
    padding: 10px 14px;
}
.srkr-content-pad ul,
.srkr-content-pad ol {
    margin: 6px 0;
    padding-left: 22px;
}
.srkr-content-pad li {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.55;
}

/* ── Warning / note lines ────────────────────────────────────── */
.srkr-warn-note {
    font-size: 12px;
    color: #cc0000;
    font-weight: 700;
    margin-top: 10px;
}
.srkr-italic-note {
    font-size: 12px;
    color: #555;
    font-style: italic;
    margin-top: 10px;
}

/* ── Tables ──────────────────────────────────────────────────── */
.srkr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.srkr-table th,
.srkr-table td {
    border: 1px solid #bbb;
    padding: 7px 10px;
    text-align: left;
}
.srkr-table thead tr {
    background: #1a3a6b;
    color: #fff;
}
.srkr-table tbody tr:nth-child(even) { background: #f5f9ff; }
.srkr-table tbody tr:nth-child(odd)  { background: #fff; }
.srkr-table td strong { color: #1a3a6b; }
.srkr-center { text-align: center !important; }
.srkr-bold   { font-weight: 700 !important; }

/* Important Links table: action column center */
.srkr-links-table td:last-child { text-align: center; }

/* ── Link buttons ────────────────────────────────────────────── */
.srkr-link-green,
.srkr-link-blue {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 3px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 12px;
    color: #fff !important;
}
.srkr-link-green { background: #1a6b2a; }
.srkr-link-blue  { background: #1a3a6b; }
.srkr-link-green:hover { background: #145521; color: #fff !important; }
.srkr-link-blue:hover  { background: #122a52; color: #fff !important; }

/* ── FAQ section ─────────────────────────────────────────────── */
.srkr-faq {
    padding: 10px 14px;
}
.srkr-faq-item {
    margin: 8px 0;
    padding: 8px 10px;
    background: #f9f9f9;
    border-left: 3px solid #1a6b2a;
    border-radius: 2px;
}
.srkr-faq-q {
    color: #1a3a6b;
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 4px;
}
.srkr-faq-a {
    color: #333;
    font-size: 13px;
    margin: 0;
}

/* ── Disclaimer ──────────────────────────────────────────────── */
.srkr-disclaimer {
    font-size: 11px;
    color: #888;
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .srkr-two-col {
        flex-direction: column;
    }
    .srkr-col:first-child {
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .srkr-age-total-bar {
        flex-direction: column;
    }
    .srkr-age-col {
        border-right: none;
        border-bottom: 1px solid #ccc;
    }
    .srkr-total-col {
        flex: none;
        padding: 10px;
    }
    .srkr-table,
    .srkr-links-table {
        font-size: 12px;
    }
    .srkr-table th,
    .srkr-table td {
        padding: 5px 7px;
    }
}

/* ================================================================
   NORMAL POST LAYOUT  (Blog / Article — H1 to H6 + Paragraph)
   All styles scoped to .app-normal-post so they never clash
   with Sarkari Result styles or theme styles.
   ================================================================ */

.app-normal-post {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #222;
    max-width: 860px;
    margin: 0 auto;
    word-break: break-word;
}

/* ── Headings ──────────────────────────────────────────────────── */
.app-normal-post h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a3a6b;
    line-height: 1.3;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1a6b2a;
}
.app-normal-post h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a6b;
    margin: 32px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #1a6b2a;
    line-height: 1.35;
}
.app-normal-post h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a6b;
    margin: 24px 0 10px;
    padding-left: 10px;
    border-left: 3px solid #e0a800;
    line-height: 1.35;
}
.app-normal-post h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 18px 0 8px;
}
.app-normal-post h5 {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    margin: 14px 0 6px;
}
.app-normal-post h6 {
    font-size: 13px;
    font-weight: 700;
    color: #777;
    margin: 12px 0 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Paragraphs ────────────────────────────────────────────────── */
.app-normal-post p {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}
.app-normal-post p:last-child { margin-bottom: 0; }

/* ── Lists ─────────────────────────────────────────────────────── */
.app-normal-post ul,
.app-normal-post ol {
    margin: 10px 0 18px 24px;
    padding: 0;
}
.app-normal-post ul { list-style: disc; }
.app-normal-post ol { list-style: decimal; }
.app-normal-post li {
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.65;
    color: #333;
}
.app-normal-post li::marker { color: #1a6b2a; font-weight: 700; }

/* Nested lists */
.app-normal-post ul ul,
.app-normal-post ol ol,
.app-normal-post ul ol,
.app-normal-post ol ul {
    margin: 4px 0 4px 20px;
    list-style: circle;
}

/* ── Inline formatting ─────────────────────────────────────────── */
.app-normal-post strong,
.app-normal-post b {
    font-weight: 700;
    color: #1a3a6b;
}
.app-normal-post em,
.app-normal-post i {
    font-style: italic;
    color: #555;
}
.app-normal-post u { text-decoration: underline; }
.app-normal-post mark {
    background: #fff3cd;
    color: #856404;
    padding: 1px 3px;
    border-radius: 2px;
}
.app-normal-post code {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 13px;
    color: #c7254e;
}
.app-normal-post pre {
    background: #282c34;
    color: #abb2bf;
    border-radius: 5px;
    padding: 16px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    margin: 16px 0;
}
.app-normal-post pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}
.app-normal-post blockquote {
    margin: 20px 0;
    padding: 14px 18px;
    background: #f0f4ff;
    border-left: 5px solid #1a3a6b;
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: #444;
}
.app-normal-post blockquote p { margin: 0; }

/* ── Tables ────────────────────────────────────────────────────── */
.app-normal-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}
.app-normal-post table th,
.app-normal-post table td {
    border: 1px solid #c0c0c0;
    padding: 9px 12px;
    text-align: left;
    vertical-align: top;
}
.app-normal-post table thead tr {
    background: #1a3a6b;
    color: #fff;
}
.app-normal-post table thead th { font-weight: 700; }
.app-normal-post table tbody tr:nth-child(even) { background: #f5f8ff; }
.app-normal-post table tbody tr:nth-child(odd)  { background: #fff; }
.app-normal-post table tbody tr:hover           { background: #ebf0ff; }

/* ── Links ─────────────────────────────────────────────────────── */
.app-normal-post a {
    color: #1a3a6b;
    text-decoration: underline;
}
.app-normal-post a:hover { color: #1a6b2a; }

/* ── Images ────────────────────────────────────────────────────── */
.app-normal-post img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 12px 0;
}

/* ── Horizontal rule ───────────────────────────────────────────── */
.app-normal-post hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 28px 0;
}

/* ── FAQ Definition List ───────────────────────────────────────── */
.app-normal-post dl { margin: 12px 0 20px; }
.app-normal-post dt {
    font-weight: 700;
    color: #1a3a6b;
    font-size: 15px;
    margin: 14px 0 4px;
    padding-left: 10px;
    border-left: 3px solid #1a6b2a;
}
.app-normal-post dd {
    margin: 0 0 10px 22px;
    color: #444;
    font-size: 14px;
    line-height: 1.65;
}

/* ── Conclusion section highlight ──────────────────────────────── */
.app-normal-post h2:last-of-type,
.app-normal-post h2.conclusion {
    background: #f0fff4;
    border-left: 4px solid #1a6b2a;
    padding: 8px 14px;
    border-radius: 0 4px 4px 0;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .app-normal-post h1 { font-size: 22px; }
    .app-normal-post h2 { font-size: 18px; }
    .app-normal-post h3 { font-size: 16px; }
    .app-normal-post h4 { font-size: 15px; }
    .app-normal-post p,
    .app-normal-post li { font-size: 14px; }
    .app-normal-post table { font-size: 12px; }
    .app-normal-post table th,
    .app-normal-post table td { padding: 6px 8px; }
}

/* ── Normal post: hide stray "n" text nodes (AI output artefact) ── */
/* This targets text directly in .app-normal-post that is just "n"   */
.app-normal-post > br { display: none; }


/* ══════════════════════════════════════════════════════════════
   NORMAL POST — Enhanced Professional Layout (v6)
   All styles scoped to .app-normal-post
   AdSense-friendly, human-readable, clean design
   ══════════════════════════════════════════════════════════════ */

/* ── Article Intro Block ───────────────────────────────────────── */
.app-normal-post .app-article-intro {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 100%);
    border-left: 5px solid #1a6b2a;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
}
.app-normal-post .app-article-intro p { margin: 0; color: #222; }

/* ── Key Highlights Box ───────────────────────────────────────── */
.app-normal-post .app-key-highlights {
    background: #fff;
    border: 2px solid #1a6b2a;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 0 0 28px;
    box-shadow: 0 2px 8px rgba(26,107,42,.08);
}
.app-normal-post .app-key-highlights h3 {
    color: #1a6b2a;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0f0e5;
    display: flex;
    align-items: center;
    gap: 6px;
}
.app-normal-post .app-key-highlights h3::before {
    content: "★";
    color: #f59e0b;
}
.app-normal-post .app-key-highlights ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}
.app-normal-post .app-key-highlights ul li {
    position: relative;
    padding: 4px 0 4px 22px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    border-bottom: 1px dashed #e8f5e9;
}
.app-normal-post .app-key-highlights ul li:last-child { border-bottom: none; }
.app-normal-post .app-key-highlights ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a6b2a;
    font-weight: 700;
    font-size: 13px;
}

/* ── Social Share Row — inside normal post ────────────────────── */
.app-normal-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}
.app-nsocial-wa,
.app-nsocial-tg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 20px;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    transition: opacity .2s;
}
.app-nsocial-wa { background: #25D366; }
.app-nsocial-tg { background: #0088cc; }
.app-nsocial-wa:hover { opacity: .88; }
.app-nsocial-tg:hover { opacity: .88; }

/* ── FAQ Items (app-faq-* classes from new prompt) ────────────── */
.app-normal-post .app-faq-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    margin: 0 0 10px;
    overflow: hidden;
}
.app-normal-post .app-faq-q {
    background: #f0f7ff;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 14px;
    color: #1a3a6b;
    border-left: 4px solid #1a3a6b;
    margin: 0;
}
.app-normal-post .app-faq-a {
    padding: 10px 14px;
    font-size: 14px;
    color: #444;
    line-height: 1.65;
    margin: 0;
    background: #fff;
}

/* ── Also support legacy <dl><dt><dd> FAQ format ─────────────── */
.app-normal-post dl { margin: 12px 0 20px; }
.app-normal-post dt {
    font-weight: 700;
    color: #1a3a6b;
    font-size: 15px;
    margin: 12px 0 4px;
    padding: 8px 12px;
    background: #f0f7ff;
    border-left: 4px solid #1a3a6b;
    border-radius: 0 4px 4px 0;
}
.app-normal-post dd {
    margin: 0 0 10px 18px;
    color: #444;
    font-size: 14px;
    line-height: 1.65;
    padding: 6px 0;
}

/* ── Blockquote ────────────────────────────────────────────────── */
.app-normal-post blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
    position: relative;
}
.app-normal-post blockquote::before {
    content: "\201C";
    position: absolute;
    top: -6px;
    left: 12px;
    font-size: 48px;
    color: #f59e0b;
    opacity: .3;
    line-height: 1;
}
.app-normal-post blockquote p { margin: 0; }

/* ── Section divider between h2 sections ─────────────────────── */
.app-normal-post h2 {
    background: #fff;
    border-left: 5px solid #1a6b2a;
    padding: 8px 14px;
    border-radius: 0 4px 4px 0;
    color: #1a3a6b;
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 14px;
    line-height: 1.4;
}
.app-normal-post h3 {
    color: #1a6b2a;
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 10px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e0f0e5;
}

/* ── Disclaimer ───────────────────────────────────────────────── */
.app-normal-post .app-normal-disclaimer {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #999;
    border-radius: 0 4px 4px 0;
    padding: 10px 14px;
    font-size: 12px;
    color: #888;
    margin-top: 28px;
    font-style: italic;
}

/* ── Also Check / Related Posts box ─────────────────────────── */
.app-normal-post .app-also-check {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 10px 16px;
    margin: 20px 0;
    font-size: 14px;
    color: #2e7d32;
}
.app-normal-post .app-also-check a {
    color: #1a6b2a;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Inline tip / info box ───────────────────────────────────── */
.app-normal-post .app-tip-box {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 18px 0;
    font-size: 14px;
    color: #1565c0;
}
.app-normal-post .app-tip-box strong { color: #0d47a1; }

/* ── Responsive adjustments ──────────────────────────────────── */
@media (max-width: 600px) {
    .app-normal-post .app-article-intro { padding: 12px 14px; font-size: 15px; }
    .app-normal-post .app-key-highlights { padding: 12px 14px; }
    .app-normal-post h2 { font-size: 17px; padding: 6px 10px; }
    .app-normal-post h3 { font-size: 15px; }
    .app-normal-social { gap: 8px; padding: 10px 12px; }
    .app-nsocial-wa, .app-nsocial-tg { font-size: 12px; padding: 6px 12px; }
}

