/* ==================================================
   PYRO ARTICLE
   Styles for single.php article pages
================================================== */

.pyro-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.pyro-article-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.pyro-article-breadcrumb .pyro-container {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 14px 0;
    overflow: hidden;
    font-size: 13px;
    color: #888;
}

.pyro-article-breadcrumb a {
    flex: 0 0 auto;
    color: #555;
    text-decoration: none;
}

.pyro-article-breadcrumb a:hover {
    color: #e54b00;
}

.pyro-article-breadcrumb span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.single-article {
    padding: 70px 0 90px;
    background: #fff;
    color: #111;
}

.single-article-header {
    max-width: 900px;
    margin: 0 auto 35px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #888;
}

.article-meta a {
    color: #e54b00;
    font-weight: 800;
    text-decoration: none;
}

.single-article-header h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.16;
    letter-spacing: -1.2px;
    font-weight: 900;
}

.article-lead {
    max-width: 820px;
    margin: 22px 0 0;
    font-size: 18px;
    line-height: 1.8;
    color: #666;
}

.single-article-image {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 55px;
    overflow: hidden;
    border-radius: 18px;
    background: #f3f3f3;
}

.single-article-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: cover;
}

.single-article-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 760px);
    justify-content: center;
    align-items: start;
    gap: 55px;
}

.article-toc {
    position: sticky;
    top: 30px;
}

.article-toc-box {
    padding: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fafafa;
}

.article-toc-box strong {
    display: block;
    margin-bottom: 13px;
    font-size: 14px;
    color: #111;
}

#pyro-toc ol {
    margin: 0;
    padding-left: 20px;
}

#pyro-toc li {
    margin-bottom: 9px;
    font-size: 13px;
    line-height: 1.5;
}

#pyro-toc a {
    color: #666;
    text-decoration: none;
}

#pyro-toc a:hover {
    color: #e54b00;
}

.article-content {
    min-width: 0;
    font-size: 17px;
    line-height: 1.9;
    color: #333;
}

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

.article-content h2,
.article-content h3,
.article-content h4 {
    scroll-margin-top: 30px;
    color: #111;
    font-weight: 900;
}

.article-content h2 {
    margin: 48px 0 18px;
    font-size: 30px;
    line-height: 1.35;
}

.article-content h3 {
    margin: 36px 0 14px;
    font-size: 23px;
    line-height: 1.4;
}

.article-content h4 {
    margin: 28px 0 12px;
    font-size: 19px;
}

.article-content p {
    margin: 0 0 22px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px;
    padding-left: 25px;
}

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

.article-content a {
    color: #e54b00;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 10px;
}

.article-content figure {
    max-width: 100%;
    margin: 30px 0;
}

.article-content figure img {
    margin: 0;
}

.article-content figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #888;
    text-align: center;
}

.article-content blockquote {
    margin: 30px 0;
    padding: 20px 24px;
    border-left: 4px solid #e54b00;
    background: #f7f7f7;
    color: #555;
}

.article-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 12px 14px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.article-content th {
    background: #f7f7f7;
    color: #111;
    font-weight: 800;
}

.article-content pre {
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    padding: 18px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.single-article-footer {
    max-width: 1015px;
    margin: 65px auto 0;
}

.article-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.article-share button {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.related-products {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 30px;
    padding: 30px;
    border-radius: 16px;
    background: #101820;
    color: #fff;
}

.related-products span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #e54b00;
}

.related-products h2 {
    margin: 7px 0 8px;
    font-size: 25px;
}

.related-products p {
    max-width: 650px;
    margin: 0;
    color: #bfc3c7;
    line-height: 1.7;
}

.related-products > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 13px 18px;
    border-radius: 8px;
    background: #e54b00;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .single-article {
        padding: 55px 0 70px;
    }

    .single-article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-toc {
        position: static;
    }

    .single-article-image {
        margin-bottom: 40px;
        border-radius: 14px;
    }

    .related-products {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .pyro-container {
        width: calc(100% - 28px);
    }

    .pyro-article-breadcrumb .pyro-container {
        padding: 12px 0;
        font-size: 12px;
    }

    .single-article {
        padding: 42px 0 55px;
    }

    .single-article-header h1 {
        font-size: 34px;
        letter-spacing: -.7px;
    }

    .article-lead {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.75;
    }

    .single-article-image {
        margin-bottom: 32px;
        border-radius: 10px;
    }

    .article-content {
        font-size: 16px;
        line-height: 1.85;
    }

    .article-content h2 {
        margin-top: 38px;
        font-size: 26px;
    }

    .article-content h3 {
        margin-top: 30px;
        font-size: 21px;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .related-products {
        margin-top: 25px;
        padding: 24px;
    }

    .related-products h2 {
        font-size: 23px;
    }

    .related-products > a {
        width: 100%;
        justify-content: center;
    }
}