/* ─────────────────────────────────────────
   Shared Blog Post Styles — pancardseva.in
   ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
    background: #f0f4f8; margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Post Header ─── */
.post-header-hero {
    background: linear-gradient(135deg, #001d3d 0%, #003366 40%, #004d99 100%);
    color: white; padding: 55px 0 45px;
    position: relative; overflow: hidden;
}
.post-header-hero::before {
    content: ''; position: absolute; top: -40%; right: -15%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,153,51,0.07) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.post-header-hero .container { position: relative; z-index: 1; }
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.7); text-decoration: none; font-size: 13px;
    margin-bottom: 18px; transition: all 0.2s;
    font-weight: 500;
}
.back-link:hover { color: white; gap: 8px; }
.post-meta-bar {
    display: flex; gap: 10px; flex-wrap: wrap;
    font-size: 13px; opacity: 0.8; margin-bottom: 16px;
    align-items: center;
}
.post-meta-bar span { display: flex; align-items: center; gap: 5px; }
.post-tag {
    background: rgba(255,255,255,0.12); padding: 4px 12px;
    border-radius: 20px; font-size: 11px; font-weight: 700;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.post-header-hero h1 {
    font-size: 2.1em; font-weight: 800; line-height: 1.25;
    max-width: 750px; letter-spacing: -0.02em;
}

/* ─── Layout ─── */
.post-layout {
    max-width: 1100px; margin: 0 auto; padding: 40px 24px 60px;
    display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: start;
}

/* ─── Article ─── */
.article-body {
    background: white; border-radius: 16px; padding: 40px;
    box-shadow: 0 4px 20px rgba(0,51,102,0.06);
    border: 1px solid rgba(0,51,102,0.04);
}
.article-body h2 {
    color: #003366; font-size: 1.3em; margin: 32px 0 14px;
    padding-top: 22px; border-top: 1px solid #f1f5f9;
    font-weight: 700; letter-spacing: -0.01em;
}
.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body p { color: #475569; line-height: 1.8; margin-bottom: 16px; font-size: 15px; }
.article-body ul, .article-body ol { color: #475569; padding-left: 22px; margin-bottom: 18px; }
.article-body li { margin-bottom: 10px; line-height: 1.7; font-size: 15px; }
.article-body strong { color: #1e293b; }
.article-body a { color: #003366; font-weight: 600; text-decoration-color: rgba(0,51,102,0.3); }
.article-body a:hover { text-decoration-color: #003366; }

/* ─── Info / Download Box ─── */
.dl-box {
    background: linear-gradient(135deg, #f0f7ff, #e0edff);
    border: 1.5px solid #c5d7f2; border-radius: 14px;
    padding: 26px; margin: 28px 0; text-align: center;
}
.dl-box h3 { color: #003366; margin-bottom: 8px; font-size: 1.1em; font-weight: 700; }
.dl-box p { color: #475569; font-size: 14px; margin-bottom: 16px; }
.btn-dl-post {
    display: inline-flex; align-items: center; gap: 10px;
    background: #003366; color: white !important;
    padding: 13px 26px; border-radius: 10px; text-decoration: none;
    font-weight: 700; font-size: 14px; transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(0,51,102,0.25);
}
.btn-dl-post:hover { background: #004d99; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,51,102,0.35); }
.btn-dl-post.accent { background: #e67e22; box-shadow: 0 4px 15px rgba(230,126,34,0.3); }
.btn-dl-post.accent:hover { background: #c96a10; }

/* ─── Step List ─── */
.step-list { list-style: none !important; padding: 0 !important; counter-reset: steps; }
.step-list li {
    counter-increment: steps; padding: 16px 16px 16px 54px;
    background: #f8fafc; border-radius: 12px; margin-bottom: 10px;
    border-left: 3px solid #003366; position: relative;
    transition: background 0.2s;
}
.step-list li:hover { background: #f1f5f9; }
.step-list li::before {
    content: counter(steps); position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px; background: #003366; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px; line-height: 1;
}

/* ─── Sidebar ─── */
.sidebar { position: sticky; top: 90px; }
.sidebar-card {
    background: white; border-radius: 14px; padding: 22px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,51,102,0.06);
    border: 1px solid rgba(0,51,102,0.04);
}
.sidebar-card h4 {
    font-size: 14px; font-weight: 700; color: #003366;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card ul li { margin-bottom: 9px; }
.sidebar-card ul li a {
    color: #475569; text-decoration: none; font-size: 13px;
    display: flex; align-items: center; gap: 8px; transition: all 0.2s;
}
.sidebar-card ul li a:hover { color: #003366; transform: translateX(2px); }
.btn-sidebar {
    display: block; background: #003366; color: white !important;
    padding: 11px 16px; border-radius: 10px; text-decoration: none;
    font-weight: 700; font-size: 13px; text-align: center;
    margin-bottom: 9px; transition: all 0.2s;
}
.btn-sidebar:hover { background: #004d99; transform: translateY(-2px); }
.btn-sidebar.accent { background: #e67e22; }
.btn-sidebar.accent:hover { background: #c96a10; }

/* ─── Footer (inline in posts) ─── */
.post-footer {
    background: linear-gradient(135deg, #001d3d 0%, #003366 50%, #004d99 100%);
    color: #e8f0fe; padding: 45px 0 0;
}
.post-footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 28px; padding-bottom: 35px;
}
.post-footer-grid h6 { color: #ff9933; margin-bottom: 12px; font-weight: 700; font-size: 15px; }
.post-footer-grid ul { list-style: none; padding: 0; }
.post-footer-grid ul li { margin-bottom: 8px; }
.post-footer-grid ul li a, .post-footer-grid ul li span {
    color: #8dabc4; font-size: 13px; text-decoration: none; transition: color 0.2s;
}
.post-footer-grid ul li a:hover { color: #ffd580; }
.post-footer-grid p { color: #8dabc4; font-size: 13px; line-height: 1.7; }
.footer-copy {
    text-align: center; border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 24px; font-size: 13px; color: #5a8ab5;
}
.footer-copy p { line-height: 1.6; }

/* ─── Responsive — Tablet ─── */
@media (max-width: 900px) {
    .post-layout { grid-template-columns: 1fr; }
    .sidebar {
        position: static;
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .sidebar-card { margin-bottom: 0; }
}

/* ─── Responsive — Mobile ─── */
@media (max-width: 640px) {
    .post-header-hero {
        padding: 40px 0 30px;
    }
    .post-header-hero .container {
        padding-left: 20px; padding-right: 20px;
    }
    .post-header-hero h1 {
        font-size: 1.35em; line-height: 1.3;
    }
    .post-meta-bar { font-size: 12px; gap: 8px; }
    .post-tag { font-size: 10px; padding: 3px 10px; }
    .back-link { font-size: 12px; margin-bottom: 14px; }

    .post-layout { padding: 20px 16px 40px; }

    .article-body { padding: 22px 18px; border-radius: 14px; }
    .article-body h2 { font-size: 1.15em; margin: 24px 0 12px; padding-top: 18px; }
    .article-body p { font-size: 14px; line-height: 1.75; }
    .article-body li { font-size: 14px; }

    .dl-box { padding: 20px 16px; margin: 20px 0; }
    .dl-box h3 { font-size: 1em; }
    .dl-box p { font-size: 13px; }
    .btn-dl-post { padding: 12px 20px; font-size: 13px; width: 100%; justify-content: center; }

    .step-list li { padding: 14px 14px 14px 48px; font-size: 14px; }
    .step-list li::before { left: 12px; width: 24px; height: 24px; font-size: 11px; }

    .sidebar { grid-template-columns: 1fr; gap: 12px; }
    .sidebar-card { padding: 18px; }
    .sidebar-card h4 { font-size: 13px; }

    .post-footer { padding-top: 35px; }
    .post-footer .container { padding-left: 20px; padding-right: 20px; }
    .post-footer-grid { gap: 20px; }
    .footer-copy { padding: 16px 20px; font-size: 12px; }
}

/* ─── Tiny phones ─── */
@media (max-width: 380px) {
    .post-header-hero h1 { font-size: 1.2em; }
    .article-body { padding: 18px 14px; }
    .article-body h2 { font-size: 1.05em; }
    .article-body p, .article-body li { font-size: 13.5px; }
}
