/* ============================================= */
/* BLOG POST — INDIVIDUAL ARTICLE STYLES          */
/* ============================================= */

/* ---- ARTICLE HERO ---- */
.article-hero {
    background: var(--navy);
    padding: 130px 10% 72px;
    border-bottom: 4px solid var(--accent-gold);
}

.article-breadcrumb {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.article-breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: opacity 0.2s;
}

.article-breadcrumb a:hover { opacity: 0.75; }
.article-breadcrumb span { margin: 0 8px; }

.article-category {
    display: inline-block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(212,175,55,0.15);
    padding: 5px 12px;
    margin-bottom: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.article-hero h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    font-weight: normal;
    color: var(--white);
    line-height: 1.25;
    max-width: 820px;
    margin: 0 0 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.article-meta-item strong {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.article-meta-sep {
    width: 1px;
    height: 13px;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

/* ---- ARTICLE BODY WRAPPER ---- */
.article-outer {
    background: var(--white);
    padding: 64px 10% 80px;
}

.article-wrap {
    max-width: 860px;
    margin: 0 auto;
}

/* ---- TABLE OF CONTENTS ---- */
.article-toc {
    background: var(--slate);
    border-left: 3px solid var(--accent-gold);
    padding: 28px 32px;
    margin-bottom: 52px;
}

.article-toc-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--silver);
    margin-bottom: 16px;
    display: block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.article-toc ol {
    margin: 0;
    padding: 0 0 0 20px;
}

.article-toc li {
    margin-bottom: 9px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-toc a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.article-toc a:hover { color: var(--accent-gold); }

/* ---- ARTICLE TYPOGRAPHY ---- */
.article-wrap h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.75rem;
    color: var(--navy);
    font-weight: normal;
    margin: 56px 0 18px;
    line-height: 1.3;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
    scroll-margin-top: 90px;
}

.article-wrap h2.no-rule {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.article-wrap h3 {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    margin: 36px 0 14px;
}

.article-wrap p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #3a3a3a;
    margin: 0 0 22px;
}

.article-wrap ul,
.article-wrap ol {
    padding-left: 22px;
    margin-bottom: 22px;
}

.article-wrap li {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #3a3a3a;
    margin-bottom: 9px;
}

.article-wrap strong { color: var(--navy); }
.article-wrap a { color: var(--navy); font-weight: 600; }
.article-wrap a:hover { color: var(--accent-gold); }

/* ---- CODE BLOCKS ---- */
.code-block {
    background: #0d1520;
    border-radius: 3px;
    margin: 28px 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.code-block-header {
    background: #162135;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.code-block-lang {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.code-block-file {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    font-family: 'Courier New', Courier, monospace;
}

.code-block pre {
    margin: 0;
    padding: 22px 20px;
    overflow-x: auto;
    font-size: 0.81rem;
    line-height: 1.72;
    font-family: 'Courier New', Courier, monospace;
}

.code-block code {
    color: #c9d1d9;
    font-family: inherit;
    font-size: inherit;
}

/* Basic syntax color hints (applied via span in markup) */
.code-block .kw  { color: #ff7b72; }  /* keywords */
.code-block .st  { color: #a5d6ff; }  /* strings */
.code-block .cm  { color: #8b949e; font-style: italic; }  /* comments */
.code-block .fn  { color: #d2a8ff; }  /* function names */
.code-block .nm  { color: #79c0ff; }  /* numbers/names */
.code-block .op  { color: #ffa657; }  /* operators/decorators */

/* ---- INSIGHT / CALLOUT BOX ---- */
.insight-box {
    margin: 32px 0;
    padding: 26px 30px;
    background: rgba(22,40,70,0.05);
    border-left: 4px solid var(--navy);
}

.insight-box-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    display: block;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.insight-box p {
    margin: 0;
    color: #333;
    font-size: 0.98rem;
    line-height: 1.8;
}

/* ---- PULL QUOTE ---- */
.article-pull-quote {
    margin: 40px 0;
    padding: 28px 38px;
    border-left: 4px solid var(--accent-gold);
    background: rgba(212,175,55,0.06);
}

.article-pull-quote p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.3rem;
    line-height: 1.65;
    color: var(--navy);
    margin: 0;
    font-style: italic;
}

/* ---- DATA TABLE ---- */
.article-table-wrap {
    overflow-x: auto;
    margin: 28px 0;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.article-table th {
    background: var(--navy);
    color: var(--white);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.article-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #eaeaea;
    color: #444;
    line-height: 1.55;
    font-size: 0.93rem;
}

.article-table tr:nth-child(even) td {
    background: var(--slate);
}

/* ---- ARTICLE TECH STACK ---- */
.article-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

/* ---- AUTHOR BLOCK ---- */
.article-author-block {
    background: var(--slate);
    border: 1px solid #e4e8ee;
    border-top: 3px solid var(--navy);
    padding: 28px 30px;
    margin-top: 56px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.author-avatar {
    width: 54px;
    height: 54px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.35rem;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 3px;
}

.author-info .author-title {
    font-size: 0.72rem;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    display: block;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.author-info p {
    font-size: 0.88rem;
    line-height: 1.72;
    color: #555;
    margin: 0;
}

/* ---- BUSINESS IMPACT SECTION ---- */
.business-impact-section {
    background: var(--navy);
    padding: 72px 10%;
    border-top: 4px solid var(--accent-gold);
}

.business-impact-section .section-overline {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.business-impact-section h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2.1rem;
    color: var(--white);
    font-weight: normal;
    margin: 0 0 44px;
    max-width: 640px;
    line-height: 1.3;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.impact-item {
    background: rgba(255,255,255,0.06);
    border-top: 2px solid var(--accent-gold);
    padding: 26px 22px;
}

.impact-item h4 {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: var(--accent-gold);
    margin: 0 0 12px;
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.impact-item p {
    font-size: 0.93rem;
    line-height: 1.72;
    color: rgba(255,255,255,0.72);
    margin: 0;
}

/* ---- RELATED POSTS ---- */
.related-posts-section {
    padding: 65px 10%;
    background: var(--white);
    border-top: 1px solid #eaeaea;
}

.related-posts-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--silver);
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.related-posts-section h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.8rem;
    color: var(--navy);
    margin: 0 0 36px;
    font-weight: normal;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    background: var(--slate);
    border-top: 3px solid var(--navy);
    padding: 26px 24px 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(22,40,70,0.09);
}

.related-post-cat {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.related-post-card h4 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: normal;
    line-height: 1.45;
    margin: 0 0 16px;
    flex-grow: 1;
}

.related-post-read {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--navy);
    margin-top: auto;
    transition: color 0.2s;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.related-post-card:hover .related-post-read {
    color: var(--accent-gold);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .article-hero { padding: 110px 6% 56px; }
    .article-outer { padding: 52px 6% 70px; }
    .business-impact-section { padding: 60px 6%; }
    .related-posts-section { padding: 52px 6%; }
}

@media (max-width: 768px) {
    .article-hero { padding-top: 140px; }
    .article-wrap h2 { font-size: 1.5rem; margin-top: 44px; }
    .article-hero h1 { font-size: 1.75rem; }
    .impact-grid { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr; }
    .article-author-block { flex-direction: column; gap: 14px; }
    .business-impact-section h2 { font-size: 1.7rem; }
    .code-block pre { font-size: 0.73rem; }
    .article-toc { padding: 20px 20px; }
    .article-pull-quote { padding: 22px 24px; }
    .article-pull-quote p { font-size: 1.1rem; }
}

/* ---- RELATED CAPABILITIES (shared with case-study.css) ---- */
.cs-related-section {
    padding: 65px 10%;
    background-color: var(--slate);
    background-image: radial-gradient(rgba(22, 40, 70, 0.06) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
    border-bottom: 1px solid #eaeaea;
}

.cs-related-label {
    display: block;
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.cs-related-section h3 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 2rem;
    color: var(--navy);
    margin: 0 0 28px 0;
    font-weight: normal;
}

.cs-related-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cs-related-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--navy);
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.3s, transform 0.2s;
}

.cs-related-link:hover {
    background-color: var(--accent-gold);
    color: var(--navy);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cs-related-section { padding: 50px 6%; }
}
