/* ============================================================
   Fasten-Trade Expert Article Styles
   Professional, strict, clean design
   Font: Roboto Slab (headings) + system stack (body)
   Accent: #cb0037 | Text: #2d2d2d | BG: #ffffff
   ============================================================ */

/* --- Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;500;600;700&display=swap');

/* --- Article Wrapper --- */
.expert-article {
    font-family: 'Roboto Slab', 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #2d2d2d;
    background: #ffffff;
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
}

/* --- Section Blocks --- */
.article-section {
    background: #ffffff;
    border-left: 4px solid #cb0037;
    padding: 28px 32px;
    margin: 32px 0;
    border-radius: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.article-section:hover {
    box-shadow: 0 2px 12px rgba(203,0,55,0.08);
}

.article-section h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #cb0037;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* --- Subsection Blocks --- */
.article-subsection {
    background: #fafafa;
    padding: 20px 24px;
    margin: 20px 0;
    border-left: 3px solid #cb0037;
    border-radius: 0;
}

.article-subsection h3 {
    font-family: 'Roboto Slab', serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 14px 0;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

/* --- Paragraphs --- */
.expert-article p {
    margin: 0 0 16px 0;
    color: #2d2d2d;
    line-height: 1.75;
}

.expert-article p:last-child {
    margin-bottom: 0;
}

/* --- Strong / Bold --- */
.expert-article strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* --- Links --- */
.expert-article a {
    color: #cb0037;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.expert-article a:hover {
    color: #a0002c;
    border-bottom-color: #cb0037;
}

/* ============================================================
   TABLES — Interactive, professional
   ============================================================ */
.expert-table,
.expert-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.5;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
}

.expert-table thead,
.expert-article table thead {
    background: #cb0037;
    color: #ffffff;
}

.expert-table thead th,
.expert-article table thead th {
    padding: 14px 16px;
    font-family: 'Roboto Slab', serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.expert-table tbody tr,
.expert-article table tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #e8e8e8;
}

.expert-table tbody tr:hover,
.expert-article table tbody tr:hover {
    background-color: #fff5f7;
}

.expert-table tbody tr:nth-child(even),
.expert-article table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.expert-table tbody tr:nth-child(even):hover,
.expert-article table tbody tr:nth-child(even):hover {
    background-color: #fff5f7;
}

.expert-table tbody td,
.expert-article table tbody td {
    padding: 12px 16px;
    color: #2d2d2d;
    border: none;
    vertical-align: top;
}

.expert-table tbody td:first-child,
.expert-article table tbody td:first-child {
    font-weight: 600;
    color: #1a1a1a;
}

/* Table responsive wrapper */
.expert-table,
.expert-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   LISTS
   ============================================================ */
.expert-list,
.expert-article ul:not([class]) {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.expert-list li,
.expert-article ul:not([class]) li {
    position: relative;
    padding: 8px 0 8px 24px;
    margin: 0;
    line-height: 1.6;
    color: #2d2d2d;
}

.expert-list li::before,
.expert-article ul:not([class]) li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 8px;
    background: #cb0037;
    border-radius: 0;
    transform: rotate(45deg);
}

/* Ordered lists */
.expert-article ol:not([class]) {
    padding-left: 24px;
    margin: 16px 0;
    counter-reset: item;
    list-style: none;
}

.expert-article ol:not([class]) li {
    counter-increment: item;
    padding: 8px 0 8px 8px;
    line-height: 1.6;
    color: #2d2d2d;
}

.expert-article ol:not([class]) li::before {
    content: counter(item);
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #cb0037;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    border-radius: 0;
}

/* Normative list */
.normative-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.normative-list li {
    padding: 6px 0 6px 20px;
    border-left: 2px solid #e0e0e0;
    margin: 0;
    font-size: 14px;
    color: #555;
    transition: border-color 0.2s ease;
}

.normative-list li:hover {
    border-left-color: #cb0037;
    color: #2d2d2d;
}

/* ============================================================
   FORMULA BLOCK
   ============================================================ */
.formula-block {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #cb0037;
    padding: 20px 24px;
    margin: 24px 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    color: #1a1a1a;
    text-align: center;
    letter-spacing: 0.02em;
    overflow-x: auto;
    white-space: nowrap;
}

/* ============================================================
   IMAGE BLOCK
   ============================================================ */
.image-singlepost-a {
    margin: 32px 0;
    text-align: center;
    background: #ffffff;
    padding: 0;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    overflow: hidden;
}

.image-singlepost-a img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0;
}

/* ============================================================
   RELATED LINKS BLOCKS
   ============================================================ */
.article-related-links,
.category-related-links,
.product-related-links {
    background: #fafafa;
    border-top: 3px solid #cb0037;
    padding: 20px 24px;
    margin: 36px 0 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.article-related-links p,
.category-related-links p,
.product-related-links p {
    margin: 0;
    color: #555;
}

.article-related-links strong,
.category-related-links strong,
.product-related-links strong {
    display: block;
    font-family: 'Roboto Slab', serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.article-related-links a,
.category-related-links a,
.product-related-links a {
    display: inline-block;
    color: #cb0037;
    text-decoration: none;
    padding: 4px 0;
    margin-right: 16px;
    border-bottom: 1px dashed #cb0037;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.article-related-links a:hover,
.category-related-links a:hover,
.product-related-links a:hover {
    color: #a0002c;
    border-bottom-style: solid;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .expert-article {
        font-size: 15px;
        padding: 0 8px;
    }

    .article-section {
        padding: 20px 16px;
        margin: 20px 0;
    }

    .article-section h2 {
        font-size: 19px;
    }

    .article-subsection {
        padding: 16px;
    }

    .article-subsection h3 {
        font-size: 16px;
    }

    .expert-table thead th,
    .expert-article table thead th {
        padding: 10px 12px;
        font-size: 11px;
    }

    .expert-table tbody td,
    .expert-article table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .formula-block {
        padding: 16px;
        font-size: 13px;
    }

    .image-singlepost-a {
        margin: 20px 0;
    }

    .article-related-links,
    .category-related-links,
    .product-related-links {
        padding: 16px;
    }

    .article-related-links a,
    .category-related-links a,
    .product-related-links a {
        display: block;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .expert-article {
        font-size: 14px;
    }

    .article-section {
        padding: 16px 12px;
        border-left-width: 3px;
    }

    .article-section h2 {
        font-size: 17px;
    }

    .article-subsection h3 {
        font-size: 15px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .expert-article {
        color: #000;
        max-width: 100%;
    }

    .article-section {
        box-shadow: none;
        border-left: 2px solid #000;
        break-inside: avoid;
    }

    .expert-table thead,
    .expert-article table thead {
        background: #000;
    }

    .article-related-links,
    .category-related-links,
    .product-related-links {
        display: none;
    }

    .image-singlepost-a {
        border: 1px solid #ccc;
    }
}
