/* ========================================
   Single Article Template — Industrial B2B
   ======================================== */

/* -- Hero Bar -- */
.article-hero {
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #0f2b4a 100%);
    padding: 60px 0 50px;
    overflow: hidden;
}

.article-hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,86,179,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.article-hero__content {
    position: relative;
    z-index: 1;
}

.article-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 13px;
}

.article-hero__breadcrumb a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.article-hero__breadcrumb a:hover {
    color: rgba(255,255,255,0.9);
}

.article-hero__breadcrumb span {
    color: rgba(255,255,255,0.3);
}

.article-hero__breadcrumb .current {
    color: #ff8c00;
}

.article-hero__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 16px 0;
    max-width: 800px;
}

.article-hero__meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.article-hero__date,
.article-hero__read {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* -- Article Trust Bar -- */
.article-trust-bar {
    background: #0d2137;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
}

.article-trust-bar__grid {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}

.article-trust-bar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-trust-bar__item svg {
    color: #ff8c00;
    flex-shrink: 0;
}

/* -- Article Body Layout -- */
.article-body {
    padding: 60px 0 40px;
}

.article-body__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: start;
}

/* -- Sidebar / TOC -- */
.article-sidebar {
    position: sticky;
    top: 24px;
}

.article-toc {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 24px 20px;
    margin-bottom: 20px;
}

.article-toc__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d2137;
    margin: 0 0 14px 0;
}

.article-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc__list li {
    margin-bottom: 2px;
}

.article-toc__list a {
    display: block;
    padding: 7px 10px;
    font-size: 13px;
    color: #5a6678;
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    line-height: 1.4;
}

.article-toc__list a:hover {
    color: #0056B3;
    background: rgba(0,86,179,0.04);
    border-left-color: #0056B3;
}

/* -- Sidebar CTA -- */
.article-sidebar__cta {
    background: linear-gradient(135deg, #0d2137 0%, #143658 100%);
    border-radius: 10px;
    padding: 22px 18px;
    color: #ffffff;
    text-align: center;
}

.article-sidebar__cta h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.article-sidebar__cta p {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.article-sidebar__cta .btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff8c00;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.article-sidebar__cta .btn--primary:hover {
    background: #e67e00;
}

/* -- Article Content -- */
.article-content {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0d2137;
    margin: 48px 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8edf2;
    scroll-margin-top: 24px;
}

.article-content h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0d2137;
    margin: 32px 0 12px 0;
    scroll-margin-top: 24px;
}

.article-content p {
    margin: 0 0 16px 0;
    color: #3d4a5c;
}

.article-content ul,
.article-content ol {
    margin: 0 0 20px 0;
    padding-left: 22px;
    color: #3d4a5c;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.article-content strong {
    color: #0d2137;
}

.article-content a {
    color: #0056B3;
    text-decoration: underline;
}

.article-content a:hover {
    color: #ff8c00;
}

/* -- Tables in content -- */
.article-content figure.wp-block-table {
    margin: 24px 0;
    overflow-x: auto;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    overflow: hidden;
}

.article-content thead {
    background: #0d2137;
    color: #ffffff;
}

.article-content thead th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.article-content tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f3f6;
    color: #333;
    vertical-align: top;
}

.article-content tbody tr:nth-child(even) {
    background: #fafbfc;
}

.article-content hr {
    border: none;
    border-top: 1px solid #e8edf2;
    margin: 40px 0;
}

.article-content blockquote {
    border-left: 4px solid #0056B3;
    background: #f6f9fc;
    padding: 18px 22px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #5a6678;
}

/* -- Bottom CTA Section -- */
.article-cta {
    padding: 50px 0 60px;
    background: #f6f8fa;
}

.article-cta__card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.article-cta__text {
    flex: 1;
}

.article-cta__text h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0d2137;
    margin: 0 0 12px 0;
}

.article-cta__text p {
    font-size: 14px;
    color: #5a6678;
    margin: 0;
    line-height: 1.6;
}

.article-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.article-cta__actions .btn--primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff8c00;
    color: #fff;
    border: 2px solid #ff8c00;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.article-cta__actions .btn--primary:hover {
    background: #e67e00;
    border-color: #e67e00;
    box-shadow: 0 4px 16px rgba(255,140,0,0.25);
}

.article-cta__actions .btn--outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #0056B3;
    border: 2px solid #0056B3;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.article-cta__actions .btn--outline:hover {
    background: #0056B3;
    color: #fff;
}

/* -- Related Articles -- */
.article-related {
    padding: 50px 0 60px;
    background: #ffffff;
}

.article-related__title {
    font-size: 20px;
    font-weight: 800;
    color: #0d2137;
    text-align: center;
    margin: 0 0 28px 0;
}

.article-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.article-related__card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: #f6f8fa;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.article-related__card:hover {
    border-color: #0056B3;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,86,179,0.08);
}

.article-related__card-title {
    font-size: 14px;
    font-weight: 600;
    color: #0d2137;
}

.article-related__card-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #0056B3;
    white-space: nowrap;
    flex-shrink: 0;
}

/* -- Responsive -- */
@media (max-width: 1024px) {
    .article-body__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-sidebar {
        position: static;
        order: -1;
    }

    .article-toc {
        display: none;
    }

    .article-hero__title {
        font-size: 28px;
    }

    .article-cta__card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .article-cta__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .article-hero {
        padding: 40px 0 35px;
    }

    .article-hero__title {
        font-size: 22px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-trust-bar__grid {
        gap: 14px;
    }

    .article-related__grid {
        grid-template-columns: 1fr;
    }
}