/* =========================================
   DEVMIXA BLOG – ELITE PREMIUM EDITION
   (color system same as rest of site:
    #2563eb blue -> #7c3aed purple -> #06b6d4 cyan)
========================================= */

/* Page Background */
.site-main {
    background: linear-gradient(180deg,#f1f5f9 0%,#ffffff 50%);
}

/* Blog Section */
.blog-single {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.blog-single::before {
    content: "";
    position: absolute;
    top: -180px;
    left: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.14), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

.blog-single::after {
    content: "";
    position: absolute;
    bottom: -160px;
    right: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
}

.blog-single .container {
    position: relative;
    z-index: 1;
}

/* =========================================
   FEATURED IMAGE -- premium gradient frame
========================================= */

.blog-featured {
    position: relative;
    width: 100%;
    max-width: 950px;
    margin: 0 auto 50px;
    aspect-ratio: 1200 / 630;
    border-radius: 28px;
    padding: 4px;
    background: linear-gradient(135deg,#2563eb,#7c3aed,#06b6d4);
    box-shadow:
        0 50px 100px rgba(37,99,235,0.18),
        0 10px 30px rgba(15,23,42,0.08);
}

.blog-featured::before {
    content: "";
    position: absolute;
    inset: -30px;
    z-index: -1;
    background: radial-gradient(circle at 30% 20%, rgba(37,99,235,0.25), transparent 60%);
    filter: blur(30px);
    pointer-events: none;
}

.blog-featured-inner {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #0f172a;
}

.blog-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CONTENT CARD */
.blog-single .blog-content {
    position: relative;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    background: #ffffff;
    padding: clamp(25px, 5vw, 80px);
    border-radius: 32px;
    box-shadow: 0 60px 120px rgba(0,0,0,0.08);
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    line-height: 1.9;
    color: #1f2937;
    box-sizing: border-box;
    overflow: hidden;
}

.blog-single .blog-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);
}

/* Title */
.blog-single .blog-content > h1 {
    font-size: 50px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Headings */
.blog-single .blog-content h2 {
    font-size: 32px;
    margin-top: 70px;
    margin-bottom: 20px;
    font-weight: 800;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-single .blog-content h2::after {
    content: "";
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg,#2563eb,#7c3aed);
    display: block;
    margin-top: 10px;
    border-radius: 10px;
}

/* Paragraph */
.blog-single .blog-content p {
    font-size: 19px;
    line-height: 1.9;
    margin-bottom: 28px;
    color: #334155;
}

.blog-single .blog-content p:first-of-type {
    font-size: 20px;
    color: #0f172a;
}

.blog-single .blog-content p:first-of-type::first-letter {
    font-size: 60px;
    font-weight: 800;
    float: left;
    margin-right: 12px;
    color: #2563eb;
}

.blog-single .blog-content ul {
    margin: 30px 0;
    padding-left: 22px;
}

.blog-single .blog-content ul li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #1f2937;
}

.blog-single .blog-content ul li::marker {
    color: #2563eb;
    font-size: 18px;
}

/* =========================
   PREMIUM TABLE DESIGN
========================= */

.blog-single .blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 60px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.blog-single .blog-content table thead {
    background: linear-gradient(90deg,#2563eb,#7c3aed);
    color: #ffffff;
}

.blog-single .blog-content table th {
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.blog-single .blog-content table td {
    padding: 18px;
    font-size: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-single .blog-content table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.blog-single .blog-content table tbody tr:hover {
    background: #eef2ff;
    transition: 0.3s ease;
}

.blog-single .blog-content blockquote {
    background: linear-gradient(135deg,#eef2ff,#f8fafc);
    padding: 30px;
    border-radius: 20px;
    margin: 60px 0;
    border-left: 6px solid #2563eb;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.blog-single .blog-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 28px;
    border-radius: 16px;
    margin: 40px 0;
    overflow-x: auto;
}

.blog-single .blog-content > * {
    animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
    from {opacity:0; transform:translateY(6px);}
    to {opacity:1; transform:translateY(0);}
}

.blog-single .blog-content .container,
.blog-single .blog-content section,
.blog-single .blog-content div {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 768px) {

    .blog-featured {
        margin-bottom: 30px;
        border-radius: 22px;
    }

    .blog-featured-inner {
        border-radius: 18px;
    }

    .blog-single .blog-content {
        padding: 35px;
        font-size: 16px;
    }

    .blog-single .blog-content > h1 {
        font-size: 30px;
    }

    .blog-single .blog-content table th,
    .blog-single .blog-content table td {
        padding: 12px;
        font-size: 14px;
    }
}

/* ==============================
   AUTHOR BOX
============================== */

/* ==============================
   AUTHOR BOX — PREMIUM REDESIGN
============================== */

.blog-author-box {
    position: relative;
    margin: 90px auto 40px;
    max-width: 950px;
    padding: 50px;
    border-radius: 28px;
    background: linear-gradient(145deg,#ffffff,#f8fafc);
    box-shadow: 0 40px 90px rgba(0,0,0,0.07);
    overflow: hidden;
}

.blog-author-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg,#2563eb,#7c3aed,#06b6d4);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.blog-author-box::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    top: -100px;
    background: radial-gradient(circle, rgba(124,58,237,0.12), transparent 70%);
    pointer-events: none;
}

.author-eyebrow {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 7px 18px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.author-inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 36px;
    align-items: center;
}

.author-avatar-ring {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg,#2563eb,#7c3aed,#06b6d4);
    box-shadow: 0 20px 45px rgba(37,99,235,0.25);
}

.author-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #ffffff;
}

.author-role {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 6px;
}

.author-content h3 {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.author-content p {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.author-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg,#2563eb,#7c3aed);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(37,99,235,0.3);
    transition: all 0.35s cubic-bezier(.2,.8,.2,1);
}

.author-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(37,99,235,0.4);
}

@media (max-width: 640px) {
    .blog-author-box { padding: 32px 24px; }
    .author-inner { flex-direction: column; text-align: center; gap: 22px; }
}

.blog-listing {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.blog-listing::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -180px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.10), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.blog-listing .container {
    position: relative;
    z-index: 1;
}

.blog-header {
    text-align: center;
    margin-bottom: 70px;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
    border: 1px solid rgba(37,99,235,0.18);
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.blog-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 14px;
    background: linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.blog-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.blog-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 80px rgba(37,99,235,0.14);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1200 / 630;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.06);
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta .dot {
    color: #2563eb;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a {
    text-decoration: none;
    color: #0f172a;
    transition: 0.3s;
}

.blog-title a:hover {
    color: #2563eb;
}

.blog-excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 18px;
}

.read-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.read-more:hover {
    color: #1e40af;
    gap: 10px;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 28px;
    }

    .blog-header p {
        font-size: 14px;
    }
}

/* =========================================
   RELATED POSTS – ULTRA PREMIUM WOW STYLE
========================================= */

.related-posts {
    padding: 130px 0 140px;
    background: radial-gradient(circle at top left,#eef2ff 0%, #ffffff 40%);
    position: relative;
}

.related-posts h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 70px;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg,#2563eb,#7c3aed,#06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.related-card {
    position: relative;
    background: linear-gradient(145deg,#ffffff,#f8fafc);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.07);
    transition: all 0.45s cubic-bezier(.2,.8,.2,1);
    overflow: hidden;
}

.related-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1px;
    background: linear-gradient(135deg,#2563eb,#7c3aed,#06b6d4);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s ease;
    pointer-events: none;
}

.related-card:hover::before {
    opacity: 1;
}

.related-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 60px 120px rgba(0,0,0,0.15);
}

.related-card a {
    position: relative;
    z-index: 2;
    display: block;
}

.related-meta {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6366f1;
    margin-bottom: 18px;
}

.related-card h4 {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 16px;
}

.related-card h4 a {
    text-decoration: none;
    color: #0f172a;
    transition: 0.35s ease;
}

.related-card h4 a:hover {
    color: #2563eb;
}

.related-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    opacity: 0.9;
}

.related-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 22px;
    transition: 0.4s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-posts {
        padding: 90px 0;
    }

    .related-posts h3 {
        font-size: 26px;
    }

    .related-card {
        padding: 25px;
    }

    .related-card h4 {
        font-size: 19px;
    }

    .related-excerpt {
        font-size: 15px;
    }
}

/* =========================================
   V2 ADDITIONS — WORLD-CLASS BLOG UPGRADE
   Breadcrumb, 2-column layout, sidebar (search +
   lead form + recent posts), auto table of contents,
   inline CTA, share bar, prev/next navigation.
   Color system unchanged: #2563eb -> #7c3aed -> #06b6d4
========================================= */

/* ---------- Breadcrumb ---------- */
.blog-breadcrumb {
    padding: 28px 0 0;
}

.blog-breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
    margin: 0;
    padding: 0;
}

.blog-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.blog-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #cbd5e1;
}

.blog-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.blog-breadcrumb a:hover {
    text-decoration: underline;
}

.blog-breadcrumb li[aria-current="page"] {
    color: #0f172a;
    font-weight: 600;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Two-column layout ---------- */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 50px;
    align-items: start;
    width: 100%;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

@media (max-width: 1100px) {
    .blog-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 36px;
    }
}

@media (max-width: 960px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
}

/* ---------- Sidebar widgets ---------- */
.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.sidebar-widget h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
}

.sidebar-search-form {
    display: flex;
    gap: 8px;
}

.sidebar-search-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s;
}

.sidebar-search-form input:focus {
    border-color: #2563eb;
}

.sidebar-search-form button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
}

.sidebar-search-form button:hover {
    transform: scale(1.08);
}

.blog-search-result-note {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: -34px 0 40px;
    position: relative;
    z-index: 1;
}

.blog-search-result-note strong {
    color: #0f172a;
}

.blog-search-result-note a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.blog-no-results {
    text-align: center;
    color: #64748b;
    padding: 60px 20px;
    font-size: 15px;
}

.blog-no-results a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-cta {
    background: linear-gradient(160deg, #eef2ff, #ffffff);
    border: 1px solid rgba(37, 99, 235, 0.12);
    position: relative;
    overflow: hidden;
}

.sidebar-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
}

.sidebar-cta-eyebrow {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sidebar-cta h4 {
    margin-bottom: 8px;
}

.sidebar-cta > p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.6;
}

.blog-lead-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-lead-form input,
.blog-lead-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    resize: vertical;
    box-sizing: border-box;
}

.blog-lead-form input:focus,
.blog-lead-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.blog-lead-form .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.blog-lead-form .btn-gradient {
    margin-top: 4px;
    border: none;
    cursor: pointer;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.blog-lead-form .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.4);
}

.blog-lead-form .btn-gradient:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin-top: 2px;
}

.form-note a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.form-status {
    font-size: 13px;
    min-height: 18px;
}

.form-status-ok {
    color: #16a34a;
    font-weight: 600;
}

.form-status-err {
    color: #dc2626;
    font-weight: 600;
}

.sidebar-recent ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.sidebar-recent li a {
    display: block;
    text-decoration: none;
}

.sidebar-recent .recent-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    transition: color 0.25s;
}

.sidebar-recent li a:hover .recent-title {
    color: #2563eb;
}

.sidebar-recent .recent-date {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ---------- Auto Table of Contents (JS-injected) ---------- */
.blog-single .blog-content .blog-toc {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    padding: 24px 28px !important;
    margin: 36px 0 44px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.blog-toc h4 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2563eb;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: toc;
    margin: 0;
    padding: 0;
}

.blog-toc li {
    counter-increment: toc;
    position: relative;
    padding-left: 28px;
}

.blog-toc li::before {
    content: counter(toc);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-toc a {
    color: #334155;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 600;
    transition: color 0.25s;
}

.blog-toc a:hover {
    color: #2563eb;
}

/* ---------- Inline CTA (inside article) ----------
   Light, on-brand card -- matches the rest of the site's soft
   gradient-tinted aesthetic (sidebar-cta, author-box) instead of
   a jarring dark block. */
.blog-single .blog-content .blog-inline-cta {
    margin: 60px 0 20px;
    padding: 0 !important;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #eef2ff 0%, #ffffff 55%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: 0 30px 70px rgba(37, 99, 235, 0.1);
}

.blog-single .blog-content .blog-inline-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
}

.inline-cta-inner {
    background: transparent;
    border-radius: 21px;
    padding: 44px !important;
    text-align: center;
    color: #0f172a;
}

.inline-cta-eyebrow {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.inline-cta-inner h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #0f172a;
}

.inline-cta-inner > p {
    font-size: 15.5px;
    color: #475569;
    max-width: 520px;
    margin: 0 auto 26px;
    line-height: 1.7;
}

/* The article's global "p:first-of-type" drop-cap rule (see top of
   this file) also matches this CTA paragraph, since it's the first
   <p> inside its own parent. Override it explicitly. */
.blog-single .blog-content .inline-cta-inner > p,
.blog-single .blog-content .inline-cta-inner > p:first-of-type {
    font-size: 15.5px !important;
    color: #475569 !important;
}

.blog-single .blog-content .inline-cta-inner > p::first-letter,
.blog-single .blog-content .inline-cta-inner > p:first-of-type::first-letter {
    all: unset;
}

.inline-cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.inline-cta-actions .btn-gradient,
.inline-cta-actions .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.inline-cta-actions .btn-gradient {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

.inline-cta-actions .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.4);
}

.inline-cta-actions .btn-outline {
    border: 1.5px solid rgba(37, 99, 235, 0.35);
    color: #2563eb;
    background: #ffffff;
}

.inline-cta-actions .btn-outline:hover {
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-2px);
}

/* ---------- Share bar ---------- */
.blog-share-bar {
    max-width: 950px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 28px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.share-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-links a,
.share-links button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #334155;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s, background 0.25s, color 0.25s;
}

.share-links a:hover,
.share-links button:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
}

.share-copy-done {
    background: #16a34a !important;
    color: #ffffff !important;
}

/* ---------- Prev / Next navigation ---------- */
.blog-prevnext {
    max-width: 950px;
    margin: 0 auto 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.prevnext-link {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.prevnext-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(37, 99, 235, 0.14);
}

.prevnext-next {
    text-align: right;
}

.prevnext-label {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prevnext-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .blog-prevnext {
        grid-template-columns: 1fr;
    }
    .prevnext-next {
        text-align: left;
    }
}

@media (max-width: 600px) {
    .blog-breadcrumb {
        padding: 18px 0 0;
    }
    .blog-breadcrumb ol {
        font-size: 12px;
    }
    .inline-cta-inner {
        padding: 28px 22px !important;
    }
    .inline-cta-inner h3 {
        font-size: 20px;
    }
    .inline-cta-inner > p {
        font-size: 14px;
    }
    .blog-single .blog-content .blog-inline-cta,
    .blog-single .blog-content .blog-toc {
        margin: 36px 0;
    }
    .blog-share-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
        margin-bottom: 28px;
    }
    .blog-prevnext {
        margin-bottom: 28px;
    }
    .sidebar-widget {
        padding: 22px;
    }
    .blog-sidebar {
        gap: 20px;
        margin-top: 8px;
    }
    .blog-layout {
        gap: 28px;
    }
}
