/* ─────────────────────────────────────────────────────────────────────────────
   blog.css - JAIN Online blog (redesigned)
   Modern magazine-style index + clean long-form article layout.
   Loaded after style.css on all /blog/ pages. Brand: blue #1B4F8E, accent #F5B301.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --blog-blue: #1B4F8E;
    --blog-blue-dark: #0f2d52;
    --blog-yellow: #F5B301;
    --blog-ink: #111827;
    --blog-body: #374151;
    --blog-muted: #6b7280;
    --blog-border: #e5e7eb;
    --blog-bg: #f4f6fb;
}

body.blog-body { background: var(--blog-bg); }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────────*/
.blog-breadcrumb {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 24px 0;
    font-size: 13px;
    color: var(--blog-muted);
}
.blog-breadcrumb a { color: var(--blog-blue); text-decoration: none; }
.blog-breadcrumb a:hover { text-decoration: underline; }
.blog-breadcrumb span { margin: 0 6px; opacity: .6; }

/* ─── Index hero (gradient band) ─────────────────────────────────────────────*/
.blog-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(1200px 400px at 80% -10%, rgba(245,179,1,.18), transparent 60%),
                linear-gradient(135deg, var(--blog-blue), var(--blog-blue-dark));
    color: #fff;
    text-align: center;
    padding: 62px 24px 70px;
}
.blog-hero .hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blog-yellow);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.blog-hero h1 { font-size: 2.6rem; line-height: 1.15; margin: 0 auto 14px; max-width: 820px; color: #fff; }
.blog-hero p { font-size: 1.08rem; color: #dbe6f4; max-width: 680px; margin: 0 auto; line-height: 1.7; }
.blog-hero .hero-trust {
    display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
    margin-top: 26px; font-size: 13px; color: #cdddf0;
}
.blog-hero .hero-trust span i { color: var(--blog-yellow); margin-right: 6px; }

/* ─── Featured post grid ─────────────────────────────────────────────────────*/
.blog-feed {
    max-width: 1080px;
    margin: -44px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(15,45,82,.10);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(15,45,82,.16); }
.blog-card-cover {
    position: relative;
    background: linear-gradient(135deg, var(--blog-blue), var(--blog-blue-dark));
    color: #fff;
    padding: 30px 26px 26px;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.blog-card-cover::after {
    content: "";
    position: absolute;
    right: -40px; top: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(245,179,1,.22), transparent 70%);
}
.blog-card-cover .cover-icon { font-size: 2rem; color: var(--blog-yellow); }
.blog-card-cover h2 { font-size: 1.3rem; line-height: 1.35; font-weight: 700; position: relative; z-index: 1; }
.blog-card-tag {
    align-self: flex-start;
    display: inline-block;
    background: var(--blog-yellow);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}
.blog-card-body { padding: 22px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card-body p { font-size: 14.5px; color: var(--blog-body); line-height: 1.7; margin-bottom: 18px; flex: 1; }
.blog-card-foot { display: flex; align-items: center; justify-content: space-between; }
.blog-card-meta { font-size: 12.5px; color: var(--blog-muted); }
.blog-card-meta i { color: var(--blog-blue); margin-right: 4px; }
.blog-card-link { color: var(--blog-blue); font-weight: 700; font-size: 14px; }
.blog-card:hover .blog-card-link { color: var(--blog-blue-dark); }
.blog-card-link i { transition: transform .2s ease; }
.blog-card:hover .blog-card-link i { transform: translateX(4px); }

/* ─── Article layout ─────────────────────────────────────────────────────────*/
.blog-article {
    max-width: 780px;
    margin: 26px auto 40px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(15,45,82,.08);
    padding: 48px 52px;
}
.blog-article .post-tag {
    display: inline-block;
    background: #eef3fa;
    color: var(--blog-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.blog-article h1 { font-size: 2.15rem; color: var(--blog-ink); line-height: 1.22; margin-bottom: 14px; }
.blog-article .post-meta { color: var(--blog-muted); font-size: 13px; margin-bottom: 14px; }
.blog-article .post-intro { font-size: 1.12rem; color: #4b5563; line-height: 1.7; border-left: 3px solid var(--blog-yellow); padding-left: 16px; margin: 22px 0 28px; }
.blog-article h2 { font-size: 1.45rem; color: var(--blog-blue); margin: 36px 0 12px; }
.blog-article h3 { font-size: 1.15rem; color: var(--blog-ink); margin: 26px 0 8px; }
.blog-article p, .blog-article li { font-size: 16px; line-height: 1.8; color: var(--blog-body); }
.blog-article p { margin-bottom: 16px; }
.blog-article ul, .blog-article ol { padding-left: 24px; margin-bottom: 18px; }
.blog-article li { margin-bottom: 8px; }
.blog-article strong { color: var(--blog-ink); }
.blog-article a { color: #2563eb; }

.blog-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0 26px;
    font-size: 14.5px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--blog-border);
}
.blog-article th, .blog-article td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--blog-border); }
.blog-article th { background: var(--blog-blue); color: #fff; font-weight: 600; }
.blog-article tr:nth-child(even) td { background: #f8fafc; }

.blog-keytakeaway {
    background: linear-gradient(135deg, #f0f6ff, #eaf1fb);
    border-left: 4px solid var(--blog-blue);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 26px 0;
}
.blog-keytakeaway strong { color: var(--blog-blue); }

/* ─── Lead CTA box ───────────────────────────────────────────────────────────*/
.blog-cta {
    position: relative;
    overflow: hidden;
    background: radial-gradient(600px 200px at 85% 0%, rgba(245,179,1,.20), transparent 60%),
                linear-gradient(135deg, var(--blog-blue), var(--blog-blue-dark));
    color: #fff;
    border-radius: 18px;
    padding: 38px 34px;
    text-align: center;
    margin: 44px auto;
    max-width: 780px;
}
.blog-cta h2 { color: #fff !important; font-size: 1.55rem; margin: 0 0 10px !important; }
.blog-cta p { color: #dbe6f4; margin-bottom: 24px; max-width: 560px; margin-left: auto; margin-right: auto; }
.blog-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.blog-cta-btn { display: inline-block; padding: 14px 28px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 15px; transition: transform .15s ease, opacity .15s ease; }
.blog-cta-btn.primary { background: var(--blog-yellow); color: #1a1a1a; }
.blog-cta-btn.secondary { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }
.blog-cta-btn:hover { transform: translateY(-2px); opacity: .95; }

/* ─── Related posts ──────────────────────────────────────────────────────────*/
.blog-related { max-width: 780px; margin: 0 auto 60px; padding: 0 4px; }
.blog-related h2 { font-size: 1.3rem; color: var(--blog-blue); margin-bottom: 16px; }
.blog-related ul { list-style: none; padding: 0; }
.blog-related li { margin-bottom: 12px; padding-left: 22px; position: relative; }
.blog-related li::before { content: "\f0a9"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--blog-yellow); position: absolute; left: 0; }
.blog-related a { color: #2563eb; text-decoration: none; font-weight: 500; }
.blog-related a:hover { text-decoration: underline; }

.blog-back-link { display: inline-block; margin: 4px 0 18px; color: #2563eb; text-decoration: none; font-weight: 600; }
.blog-back-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .blog-hero { padding: 46px 20px 60px; }
    .blog-hero h1 { font-size: 1.9rem; }
    .blog-article { padding: 30px 22px; }
    .blog-article h1 { font-size: 1.65rem; }
    .blog-feed { margin-top: -32px; }
}
