
/* Industrial Insights - Global Styles */

:root {
    --ii-primary: #16324f;
    --ii-secondary: #245b83;
    --ii-accent: #ed8b23;
    --ii-text: #263445;
    --ii-muted: #68788a;
    --ii-background: #f5f7fa;
    --ii-white: #ffffff;

    --ii-container: 1200px;
    --ii-radius: 8px;
}

body {
    color: var(--ii-text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--ii-secondary);
}

a:hover {
    color: var(--ii-accent);
}


.ii-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--ii-accent);
    color: var(--ii-white);
    border-radius: var(--ii-radius);
    text-decoration: none;
    font-weight: 600;
}

.ii-button:hover {
    background: var(--ii-primary);
    color: var(--ii-white);
}

/* Homepage */
.ii-homepage {
    color: var(--ii-text);
}

.ii-container {
    width: min(1600px, calc(100% - 100px));
    margin-inline: auto;
}

.ii-hero {
    padding: 100px 0;
    background: linear-gradient(120deg, #102b45, #245b83);
    color: #fff;
}

.ii-eyebrow {
    color: #f2a23a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.ii-hero h1 {
    max-width: 850px;
    color: #fff;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.15;
}

.ii-hero h1 span {
    display: block;
    margin-top: 15px;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 400;
}

.ii-hero-description {
    max-width: 700px;
    color: #e3edf5;
    font-size: 17px;
    line-height: 1.8;
}

.ii-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.ii-button-outline {
    background: transparent;
    border: 1px solid #fff;
}

.ii-section {
    padding: 70px 0;
}

.ii-section-light {
    background: #f5f7fa;
}

.ii-section h2 {
    margin-bottom: 30px;
    color: var(--ii-primary);
    font-size: 32px;
}

.ii-category-grid,
.ii-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ii-category-card,
.ii-article-card {
    display: block;
    padding: 25px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.ii-category-card:hover,
.ii-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(20, 45, 70, .08);
}

.ii-category-card h3,
.ii-article-card h3 {
    color: var(--ii-primary);
}

.ii-category-card p,
.ii-article-card p {
    color: var(--ii-muted);
    line-height: 1.7;
}

.ii-article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .ii-hero {
        padding: 65px 0;
    }

    .ii-section {
        padding: 45px 0;
    }

    .ii-category-grid,
    .ii-article-grid {
        grid-template-columns: 1fr;
    }
}
.ii-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.ii-tool-card {
    padding: 25px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
}

.ii-tool-card h3 {
    color: var(--ii-primary);
}

.ii-tool-card p {
    color: var(--ii-muted);
    line-height: 1.7;
}

.ii-tool-card span {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 10px;
    background: #fff3df;
    color: #b56b12;
    font-size: 12px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .ii-tool-grid {
        grid-template-columns: 1fr;
    }
}
/* Article card improvements */
.ii-article-card {
    overflow: hidden;
    padding: 0 0 22px;
}

.ii-article-card > a {
    display: block;
    text-decoration: none;
}

.ii-article-card img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    margin-bottom: 18px;
    border-radius: 0;
}

.ii-article-card h3 {
    margin: 0 20px 12px;
    font-size: 20px;
    line-height: 1.4;
}

.ii-article-card p {
    margin: 0 20px;
    font-size: 14px;
    line-height: 1.7;
}

.single .content-area {
    float: none;
    width: 75%;
    min-width: 0;
}

.single .widget-area {
    float: none;
    width: 25%;
    min-width: 0;
}

/* Article content */
.single .entry-content {
    line-height: 1.85;
    font-size: 16px;
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
}

/* Mobile layout */
@media (max-width: 768px) {
    .single .site-content {
        display: block;
    }

    .single .content-area,
    .single .widget-area {
        float: none;
        width: 100%;
    }

    .single .widget-area {
        margin-top: 35px;
    }

    .single .entry-content {
        font-size: 16px;
    }
}

/* =========================================
   Industrial Insights - Table of Contents
========================================= */

.ii-table-of-contents {
    margin: 30px 0 35px;
    padding: 25px 30px;
    background: #f5f7fa;
    border: 1px solid #e1e7ee;
    border-left: 4px solid #ed8b23;
    border-radius: 6px;
}

.ii-toc-title {
    margin: 0 0 18px;
    color: #16324f;
    font-size: 21px;
    font-weight: 700;
}

.ii-toc-list {
    margin: 0;
    padding-left: 24px;
}

.ii-toc-list li {
    margin: 9px 0;
    padding-left: 4px;
    color: #68788a;
    line-height: 1.6;
}

.ii-toc-list a {
    color: #245b83;
    font-size: 15px;
    text-decoration: none;
    transition: color .2s;
}

.ii-toc-list a:hover {
    color: #ed8b23;
    text-decoration: underline;
}

/* Anchor offset for sticky headers */
.single .entry-content h2[id] {
    scroll-margin-top: 90px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Mobile TOC */
@media (max-width: 768px) {

    .ii-table-of-contents {
        padding: 20px;
        margin: 25px 0;
    }

    .ii-toc-title {
        font-size: 19px;
    }

    .ii-toc-list a {
        font-size: 14px;
    }

}

/* =========================================
   Industrial Insights - Single Article Layout
========================================= */

/* Main page layout */
.single .site-content {
    display: grid;
    grid-template-columns: minmax(0, 1300px) 300px;
    justify-content: center;
    align-items: start;
    gap: 36px;
    max-width: 1600px;
    margin-inline: auto;
    padding: 35px 24px 60px;
}

.single .content-area,
.single .widget-area {
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
}

/* Article container */
.single .inside-article {
    padding: 34px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    box-shadow: 0 3px 16px rgba(20, 45, 70, .035);
}

/* Article title */
.single .entry-title {
    margin-bottom: 14px;
    color: #16324f;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.5px;
}

/* Article content */
.single .entry-content {
    color: #344456;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: break-word;
}

.single .entry-content p {
    margin-bottom: 20px;
}

.single .entry-content h2 {
    margin-top: 42px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5eaf0;
    color: #16324f;
    font-size: 25px;
    line-height: 1.35;
    font-weight: 700;
}

.single .entry-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: #245b83;
    font-size: 20px;
    line-height: 1.45;
}

.single .entry-content h4 {
    margin-top: 22px;
    color: #245b83;
    font-size: 17px;
}

/* Lists */
.single .entry-content ul,
.single .entry-content ol {
    margin: 0 0 24px 24px;
}

.single .entry-content li {
    margin-bottom: 9px;
    padding-left: 4px;
}

/* Images and captions */
.single .entry-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto 12px;
    border-radius: 6px;
}

.single .entry-content figure {
    margin: 30px 0;
}

.single .entry-content figcaption {
    margin-top: 10px;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* Tables */
.single .entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 14px;
}

.single .entry-content th,
.single .entry-content td {
    padding: 12px 14px;
    border: 1px solid #e1e7ee;
    text-align: left;
}

.single .entry-content th {
    background: #f2f5f8;
    color: #16324f;
}

/* Blockquotes */
.single .entry-content blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 4px solid #ed8b23;
    background: #f5f7fa;
    color: #526477;
}

/* Code blocks */
.single .entry-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 18px;
    border-radius: 6px;
    background: #172b3d;
    color: #f5f7fa;
    font-size: 14px;
    line-height: 1.6;
}

/* Links */
.single .entry-content a {
    color: #245b83;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single .entry-content a:hover {
    color: #ed8b23;
}

/* =========================================
   Table of Contents
========================================= */

.single .ii-table-of-contents {
    margin: 30px 0 38px;
    padding: 26px 30px;
    border: 1px solid #e1e7ee;
    border-left: 4px solid #ed8b23;
    border-radius: 7px;
    background: #f5f7fa;
}

.single .ii-toc-title {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    color: #16324f;
    font-size: 22px;
    line-height: 1.4;
}

.single .ii-toc-list {
    margin: 0 0 0 22px;
    padding: 0;
}

.single .ii-toc-list li {
    margin: 0 0 10px;
    padding-left: 4px;
    color: #68788a;
    line-height: 1.6;
}

.single .ii-toc-list li:last-child {
    margin-bottom: 0;
}

.single .ii-toc-list a {
    color: #245b83;
    font-size: 15px;
    text-decoration: none;
}

.single .ii-toc-list a:hover {
    color: #ed8b23;
    text-decoration: underline;
}

.single .entry-content h2[id] {
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   Sidebar
========================================= */

.single .widget-area .widget {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid #e8edf2;
    border-radius: 7px;
    background: #fff;
}

.single .widget-area .widget-title {
    margin-bottom: 16px;
    color: #16324f;
    font-size: 18px;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1000px) {
    .single .site-content {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 24px;
        padding-inline: 20px;
    }

    .single .inside-article {
        padding: 26px;
    }
}

@media (max-width: 768px) {
    .single .site-content {
        display: block;
        padding: 18px 14px 40px;
    }

    .single .inside-article {
        padding: 22px 18px;
    }

    .single .widget-area {
        margin-top: 30px;
    }

    .single .entry-title {
        font-size: 28px;
    }

    .single .entry-content h2 {
        font-size: 22px;
        margin-top: 34px;
    }

    .single .entry-content h3 {
        font-size: 19px;
    }

    .single .ii-table-of-contents {
        padding: 20px;
    }
}

/* Article metadata */
.single .ii-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0 0 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8edf2;
    color: #718096;
    font-size: 13px;
}

.single .ii-article-meta span {
    display: inline-block;
}

/* Related articles */
.single .ii-related-articles {
    margin-top: 45px;
    padding-top: 30px;
    border-top: 1px solid #e5eaf0;
}

.single .ii-related-articles > h2 {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    font-size: 25px;
    color: #16324f;
}

.single .ii-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.single .ii-related-card {
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 7px;
    background: #fff;
}

.single .ii-related-image img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.single .ii-related-card h3 {
    margin: 15px 15px 8px;
    font-size: 16px;
    line-height: 1.45;
}

.single .ii-related-card h3 a {
    color: #16324f;
    text-decoration: none;
}

.single .ii-related-card h3 a:hover {
    color: #ed8b23;
}

.single .ii-related-card p {
    margin: 0 15px 16px;
    font-size: 13px;
    line-height: 1.65;
    color: #68788a;
}

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

    .single .ii-related-image img {
        height: 190px;
    }
}
/* Improve article content spacing */
.single .entry-content > :first-child {
    margin-top: 0;
}

.single .entry-content hr {
    margin: 35px 0;
    border: 0;
    border-top: 1px solid #e5eaf0;
}

.single .entry-content strong {
    color: #263f58;
}

.single .entry-content .wp-block-image {
    margin: 30px 0;
}

.single .entry-content .wp-block-table {
    margin: 28px 0;
}

/* Better focus visibility for keyboard navigation */
.single .entry-content a:focus-visible,
.single .ii-toc-list a:focus-visible {
    outline: 2px solid #ed8b23;
    outline-offset: 3px;
}
/* Override GeneratePress layout on single posts */
body.single-post .site-content .content-area {
    float: none !important;
    width: auto !important;
    min-width: 0;
}

body.single-post .site-content .widget-area {
    float: none !important;
    width: auto !important;
    min-width: 0;
}

body.single-post .site-content {
    display: grid;
    grid-template-columns: minmax(0, 1300px) 300px;
    justify-content: center;
    align-items: start;
    gap: 36px;
}

@media (max-width: 1000px) {
    body.single-post .site-content {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    body.single-post .site-content {
        display: block;
    }

    body.single-post .site-content .content-area,
    body.single-post .site-content .widget-area {
        width: 100% !important;
    }

    body.single-post .site-content .widget-area {
        margin-top: 30px;
    }
}

/* Hide GeneratePress default post metadata on single articles */
body.single-post .entry-header .entry-meta {
    display: none !important;
}
