/* ============================================================
   TEK IT Specialist — Shared Blog Article Styles
   ============================================================ */

:root {
    --accent-teal: #35b3e9;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --text-dim: #718096;
    --border: rgba(0,0,0,0.08);
    --section-bg: #f8fafc;
    --card-shadow: 0 8px 30px rgba(0,0,0,0.08);
    --paragraph-size: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding-top: 80px;
    background: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ── Breadcrumb ── */
.article-breadcrumb {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 20px 0;
    font-size: 13px;
    color: var(--text-dim);
}
.article-breadcrumb a { color: var(--accent-teal); text-decoration: none; }
.article-breadcrumb span { margin: 0 7px; }

/* ── Article Header ── */
.article-header {
    max-width: 860px;
    margin: 0 auto;
    padding: 36px 20px 0;
}
.article-cat-badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(53,179,233,0.1);
    color: var(--accent-teal);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-decoration: none;
}
.article-header h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.25;
    margin: 0 0 20px;
}
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
    font-size: 13px;
    color: var(--text-dim);
}
.article-meta-bar span { display: flex; align-items: center; gap: 6px; }
.article-meta-bar .read-time { color: var(--accent-teal); font-weight: 700; }

/* ── Featured Image ── */
.article-featured-img {
    max-width: 860px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
.article-featured-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}
@media (max-width: 600px) {
    .article-featured-img img { height: 220px; }
}

/* ── Article Layout (content + sidebar) ── */
.article-layout {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}
@media (max-width: 960px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { order: -1; }
}

/* ── Article Body ── */
.article-body { min-width: 0; }
.article-body p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-gray);
    margin: 0 0 22px;
}
.article-body h2 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: var(--text-dark);
    margin: 48px 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(53,179,233,0.15);
}
.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 30px 0 14px;
}
.article-body ul, .article-body ol {
    margin: 0 0 22px 22px;
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.85;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-dark); }
.article-body a { color: var(--accent-teal); text-decoration: none; border-bottom: 1px solid rgba(53,179,233,0.3); transition: border-color 0.2s; }
.article-body a:hover { border-bottom-color: var(--accent-teal); }
.article-body blockquote {
    margin: 30px 0;
    padding: 20px 28px;
    border-left: 4px solid var(--accent-teal);
    background: rgba(53,179,233,0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--text-gray);
    font-size: 17px;
    line-height: 1.7;
}

/* ── Callout box ── */
.callout {
    background: rgba(53,179,233,0.07);
    border: 1px solid rgba(53,179,233,0.2);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 28px 0;
}
.callout strong { color: var(--text-dark); display: block; margin-bottom: 8px; font-size: 15px; }
.callout p { margin: 0; font-size: 15px; }

/* ── Table of Contents ── */
.toc {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 0 0 40px;
}
.toc-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}
.toc li { margin-bottom: 6px; }
.toc a { color: var(--accent-teal); text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* ── Sidebar ── */
.article-sidebar {
    position: sticky;
    top: 96px;
}
.sidebar-card {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
}
.sidebar-card h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(53,179,233,0.2);
}
.sidebar-cta {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
}
.sidebar-cta h4 { color: #fff; font-size: 16px; margin: 0 0 10px; line-height: 1.4; }
.sidebar-cta p { color: rgba(255,255,255,0.7); font-size: 13px; margin: 0 0 18px; line-height: 1.6; }
.sidebar-cta a {
    display: block;
    background: var(--accent-teal);
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.sidebar-cta a:hover { background: #fff; color: var(--accent-teal); }
.related-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.related-link:last-child { border-bottom: none; }
.related-link:hover { transform: translateX(4px); }
.related-link .rel-cat { font-size: 10px; color: var(--accent-teal); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 3px; }
.related-link .rel-title { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.4; }

/* ── Social share ── */
.social-share {
    margin: 48px 0 0;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.social-share span { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-linkedin { background: #0A66C2; color: #fff; }
.share-twitter  { background: #000; color: #fff; }
.share-email    { background: #f1f5f9; color: var(--text-dark); border: 1px solid var(--border); }

/* ── Article CTA section ── */
.article-cta {
    background: linear-gradient(135deg, rgba(53,179,233,0.08), rgba(53,179,233,0.03));
    border: 1px solid rgba(53,179,233,0.2);
    border-radius: 24px;
    padding: 40px;
    margin: 48px 0;
    text-align: center;
}
.article-cta h3 { font-size: 22px; font-weight: 800; color: var(--text-dark); margin: 0 0 12px; }
.article-cta p { color: var(--text-gray); font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
.article-cta a {
    display: inline-block;
    background: var(--accent-teal);
    color: #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.article-cta a:hover { transform: translateY(-2px); background: #1a202c; }

/* ── Related articles grid ── */
.related-section {
    background: #f8fafc;
    padding: 70px 20px;
}
.related-inner {
    max-width: 1160px;
    margin: 0 auto;
}
.related-inner h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.related-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.related-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(0,0,0,0.09); }
.related-card-img { height: 160px; overflow: hidden; background: #e2e8f0; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-card:hover .related-card-img img { transform: scale(1.06); }
.related-card-body { padding: 20px; flex: 1; }
.related-card-body .rc-cat { font-size: 11px; font-weight: 700; color: var(--accent-teal); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; display: block; }
.related-card-body h3 { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.4; margin: 0 0 10px; }
.related-card-body .rc-meta { font-size: 12px; color: var(--text-dim); }
