/* ===========================
   Blog Styles
   Canadian Underground Training
   =========================== */

/* ===========================
   Blog Layout
   =========================== */
.blog-hero {
    padding: 140px 0 60px;
    background: var(--bg-black);
    border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.blog-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--text-dim);
}

/* Blog Post Cards (Index Page) */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 800px;
    padding: 60px 0 100px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.1);
}

.blog-card-body {
    padding: 32px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.blog-card-meta .tag {
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.2);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-card .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===========================
   Blog Post Article
   =========================== */
.article-hero {
    padding: 140px 0 48px;
    background: var(--bg-black);
    border-bottom: 1px solid var(--border);
}

.article-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 800px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.article-meta .author-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.article-meta .divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-dim);
}

.article-meta .reading-time {
    color: var(--primary);
    font-weight: 500;
}

/* Article Content */
.article-content {
    padding: 60px 0 40px;
    background: var(--bg-black);
}

.article-body {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
}

.article-body > p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    margin: 48px 0 20px;
    letter-spacing: -0.02em;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.article-body h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.article-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin: 32px 0 12px;
}

.article-body h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin: 24px 0 8px;
}

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

.article-body li {
    margin-bottom: 8px;
    color: var(--text-muted);
    line-height: 1.7;
}

.article-body li strong {
    color: var(--text);
}

.article-body strong {
    color: var(--white);
    font-weight: 600;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}

.article-body a:hover {
    opacity: 0.8;
}

.article-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(217, 119, 6, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
    font-style: italic;
}

.article-body hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 40px 0;
}

/* Salary/Info Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.info-table th {
    background: rgba(217, 119, 6, 0.1);
    color: var(--primary);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--primary);
}

.info-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.info-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Callout Boxes */
.callout {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 28px 0;
}

.callout-amber {
    border-color: rgba(217, 119, 6, 0.3);
    background: rgba(217, 119, 6, 0.05);
}

.callout-green {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.callout h4 {
    margin: 0 0 8px !important;
    padding: 0 !important;
}

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

/* ===========================
   Blog CTA Box
   =========================== */
.blog-cta {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    margin: 48px 0;
    text-align: center;
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.1);
}

.blog-cta h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    border: none !important;
    padding: 0 !important;
}

.blog-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta .btn {
    margin: 0 8px 8px;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin: 48px 0;
}

.author-box-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.author-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 4px !important;
    padding: 0 !important;
}

.author-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Related Posts */
.related-posts {
    padding: 60px 0 80px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.related-posts h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Bottom CTA Section */
.blog-bottom-cta {
    padding: 80px 0;
    background: var(--bg-black);
    border-top: 1px solid var(--border);
    text-align: center;
}

.blog-bottom-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.blog-bottom-cta > p,
.blog-bottom-cta .container > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 580px;
    margin: 0 auto 32px;
}

.cta-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

/* ===========================
   Responsive - Blog
   =========================== */
@media (max-width: 768px) {
    .blog-hero {
        padding: 120px 0 40px;
    }

    .article-hero {
        padding: 120px 0 32px;
    }

    .blog-card-body {
        padding: 24px;
    }

    .blog-cta {
        padding: 28px 20px;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .article-body h2 {
        font-size: 1.35rem;
    }

    .info-table {
        font-size: 0.85rem;
    }

    .info-table th,
    .info-table td {
        padding: 10px 12px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
