/* ============================================
   Saaszo Digital Agency - Premium Blog Styles
   ============================================ */

:root {
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --text-main: #1e293b;
    --text-muted: #475569;
    --bg-body: #ffffff;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Base Override */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
}

/* ============================================
   Post Content Typography (The "Premium" Look)
   ============================================ */

.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ---- ALL Headings base ---- */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.25;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 80px; /* for anchor links */
}

/* ---- H1 ---- */
.post-content h1 {
    font-size: 36px;
    color: var(--primary-dark);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.6rem;
}

/* ---- H2 ---- */
.post-content h2 {
    font-size: 28px;
    color: var(--primary-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* ---- H3 ---- */
.post-content h3 {
    font-size: 22px;
    color: #1e293b;
}

/* ---- H4 ---- */
.post-content h4 {
    font-size: 19px;
    color: #334155;
    font-weight: 700;
}

/* ---- H5, H6 ---- */
.post-content h5 { font-size: 17px; }
.post-content h6 { font-size: 15px; color: var(--text-muted); }

/* ---- Paragraphs ---- */
.post-content p {
    margin-top: 0;
    margin-bottom: 1.6rem;
    font-size: 17px;
    line-height: 1.85;
    color: #475569;
}

/* First paragraph after a heading — slightly larger lead text */
.post-content h2 + p,
.post-content h3 + p {
    font-size: 17.5px;
    color: #334155;
}

/* Generic child spacing fallback */
.post-content > * {
    margin-bottom: 1.2em;
}

/* ---- Lists ---- */
.post-content ul,
.post-content ol {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    padding-left: 1.75rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.65rem;
    padding-left: 0.4rem;
    font-size: 17px;
    line-height: 1.75;
    color: #334155;
}

.post-content ul li::marker,
.post-content ol li::marker {
    color: var(--primary);
    font-weight: bold;
}

/* Nested lists */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ---- Links — Internal & External ---- */
.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s, background 0.2s;
    font-weight: 600;
    border-radius: 2px;
}

.post-content a:hover {
    color: var(--primary-dark);
    background: rgba(99, 102, 241, 0.08);
    text-decoration-color: var(--primary-dark);
}

/* External links — add icon after */
.post-content a[href^="http"]:not([href*="digital.saaszo.in"])::after,
.post-content a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
    opacity: 0.7;
}

/* ---- Blockquotes ---- */
.post-content blockquote {
    border-left: 5px solid var(--primary);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #334155;
    border-radius: 0 1rem 1rem 0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.post-content blockquote p {
    margin-bottom: 0;
    color: #334155;
}

/* ---- Strong / Bold ---- */
.post-content strong,
.post-content b {
    color: var(--text-main);
    font-weight: 800;
}

/* ---- Italic / Em ---- */
.post-content em,
.post-content i {
    color: #475569;
}

/* ---- Code ---- */
.post-content code {
    font-family: 'Courier New', Courier, monospace;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.15em 0.4em;
    font-size: 0.88em;
    color: #dc2626;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* ---- Horizontal Rule ---- */
.post-content hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 3rem 0;
}

/* ---- Tables ---- */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 15px;
    overflow-x: auto;
    display: block;
}

.post-content th {
    background: var(--primary-dark);
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
}

.post-content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.post-content tr:nth-child(even) td {
    background: #f8fafc;
}

/* ---- Images within content ---- */
.post-content img {
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 100%;
    height: auto;
    display: block;
}

.post-content figure {
    margin: 2rem 0;
    text-align: center;
}

.post-content figcaption {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

/* ---- Table of Contents Box ---- */
.post-content .bg-slate-50 {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
}

.post-content .bg-slate-50 ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.post-content .bg-slate-50 li {
    margin-bottom: 0.4rem;
    padding-left: 0;
    font-size: 15px;
}

.post-content .bg-slate-50 a {
    font-weight: 500;
    color: #475569;
    text-decoration: none;
}

.post-content .bg-slate-50 a:hover {
    color: var(--primary);
    background: transparent;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {

    .post-content,
    .post-content p,
    .post-content ul li,
    .post-content ol li {
        font-size: 16px;
    }

    .post-content h1 { font-size: 28px; }
    .post-content h2 { font-size: 23px; }
    .post-content h3 { font-size: 20px; }
    .post-content h4 { font-size: 17px; }

    .post-content blockquote {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    .post-content pre {
        font-size: 0.82rem;
        padding: 1rem;
    }
}