:root {
    --primary: #3e4095;
    --primary-dark: #2e3070;
    --primary-light: #5a5ca8;
    --primary-pale: rgba(62, 64, 149, 0.08);
    --accent: #00AFEF;
    --accent-dark: #0095cc;
    --accent-light: #33c0f4;
    --accent-pale: rgba(0, 175, 239, 0.1);
    --bg: #f6f8fc;
    --white: #ffffff;
    --text-dark: #13143a;
    --text-body: #3d3f58;
    --text-muted: #7174a0;
    --border: #e2e4f0;
}

/* ── Hero ── */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 175, 239, 0.12);
    pointer-events: none;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.blog-hero .category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-pale);
    border: 1px solid rgba(0, 175, 239, 0.3);
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.blog-hero h1 em {
    font-style: italic;
    color: var(--accent-light);
}

.blog-hero .lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 32px;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.blog-meta .meta-item i {
    color: var(--accent);
    font-size: 14px;
}

.hero-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(8px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-img-card .stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
}

.hero-stat .num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-light);
}

.hero-stat .lbl {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.hero-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 32px rgba(0, 175, 239, 0.35);
}

.hero-icon-wrap i {
    font-size: 36px;
    color: #fff;
}

.hero-img-card .product-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* ── Layout ── */
.blog-layout {
    padding: 60px 0 80px;
}

.blog-content-col {
    max-width: 760px;
}

/* ── Article Body ── */
.article-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-body);
}

.article-body p {
    margin-bottom: 1.4rem;
}

.article-body h2 {
    font-size: 1.7rem;
    color: var(--text-dark);
    margin: 2.5rem 0 1rem;
    padding-left: 16px;
    border-left: 4px solid var(--accent);
}

.article-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1.8rem 0 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ── Callout boxes ── */
.callout {
    border-radius: 14px;
    padding: 24px 28px;
    margin: 2rem 0;
    position: relative;
}

.callout-primary {
    background: var(--primary-pale);
    border-left: 4px solid var(--primary);
}

.callout-accent {
    background: var(--accent-pale);
    border-left: 4px solid var(--accent);
}

.callout-title {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.callout-primary .callout-title {
    color: var(--primary);
}

.callout-accent .callout-title {
    color: var(--accent-dark);
}

.callout p {
    margin: 0;
    font-size: 0.95rem;
}

/* ── Pain points list ── */
.pain-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
}

.pain-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.pain-list li:last-child {
    border-bottom: none;
}

.pain-list li .pain-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(232, 67, 67, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pain-list li .pain-icon i {
    color: #e84343;
    font-size: 14px;
}

.pain-list li strong {
    color: var(--text-dark);
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.pain-list li span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ── Steps ── */
.steps-wrap {
    margin: 1.5rem 0 2rem;
}

.step-card {
    display: flex;
    gap: 18px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
    box-shadow: 0 6px 24px rgba(62, 64, 149, 0.1);
    transform: translateY(-2px);
}

.step-num {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-body h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.step-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Tech Stack ── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 1.5rem 0;
}

.tech-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tech-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-pale);
}

.tech-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon i {
    color: var(--primary);
    font-size: 16px;
}

.tech-item span {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* ── Industry table ── */
.industry-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

.industry-table thead th {
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 20px;
}

.industry-table tbody tr {
    transition: background 0.15s;
}

.industry-table tbody tr:hover {
    background: var(--primary-pale);
}

.industry-table tbody td {
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.industry-table tbody tr:last-child td {
    border-bottom: none;
}

.industry-table td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* ── Quote block ── */
.pull-quote {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 16px;
    padding: 36px 40px;
    margin: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.pull-quote::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 120px;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
}

.pull-quote p {
    font-size: 1.25rem;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
    font-style: italic;
}

/* ── CTA section ── */
.blog-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent-dark) 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.blog-cta h3 {
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.btn-cta-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-cta-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 175, 239, 0.4);
}

.btn-cta-secondary {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, background 0.2s;
    margin-left: 12px;
}

.btn-cta-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ── Sidebar ── */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h5 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 4px;
}

.toc-list a {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.toc-list a:hover,
.toc-list a.active {
    background: var(--primary-pale);
    color: var(--primary);
}

.toc-list a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    transition: background 0.15s;
}

.toc-list a:hover::before,
.toc-list a.active::before {
    background: var(--accent);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--primary-pale);
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
}

.blog-tag:hover {
    border-color: var(--primary);
    background: var(--white);
    color: var(--primary);
}

.share-linkedin {
    background: #0A66C2;
    color: #fff;
}

.share-twitter {
    background: #1DA1F2;
    color: #fff;
}

.share-copy {
    background: var(--primary-pale);
    color: var(--primary);
    border: 1px solid var(--border);
}

/* ── Author strip ── */
.author-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 22px;
    margin: 2.5rem 0;
}

.author-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.author-info {
    flex: 1;
}

.author-info .name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.author-info .role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.author-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--accent-pale);
    color: var(--accent-dark);
    font-weight: 500;
}

/* ── Progress bar ── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s;
    width: 0%;
}

@media (max-width: 991px) {
    .blog-hero {
        padding: 100px 0 60px;
    }

    .hero-img-wrap {
        margin-top: 40px;
    }

    .blog-sidebar {
        position: static;
    }

    .pull-quote {
        padding: 24px;
    }

    .pull-quote p {
        font-size: 1.05rem;
    }

    .blog-cta {
        padding: 32px 24px;
    }

    .btn-cta-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 575px) {
    .blog-hero h1 {
        font-size: 1.7rem;
    }

    .industry-table {
        font-size: 0.8rem;
    }

    .industry-table thead th,
    .industry-table tbody td {
        padding: 10px 12px;
    }

    .step-card {
        flex-direction: column;
        gap: 12px;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* CASE- GRIDS */

.case-studies-grid {
    background: var(--bg);
}

/* Card */
.case-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hover effect */
.case-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(62, 64, 149, 0.12);
    border-color: var(--primary-light);
}

/* Image */
.case-img {
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Image zoom on hover */
.case-item:hover .case-img img {
    transform: scale(1.05);
}

/* Content */
.case-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Title */
.case-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Description */
.case-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;

    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Button wrapper */
.case-btn {
    margin-top: auto;
}

/* Button */
.case-btn .btn {
    background: #ffffff;
    border: 1px solid var(--primary);
    padding: 10px 18px;
    font-size: 0.85rem;
    border-radius: 50px;
    font-weight: 500;
    width: 100%;
    color: var(--accent);
    transition: all 0.3s ease;
}

/* Button hover */
.case-btn .btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 175, 239, 0.3);
}