/**
 * CT Blog Post Template - Article layout and typography
 * Ensures proper rendering of Learning Insights and Podcast posts.
 */

/* Reset / base - avoid theme conflicts */
.ct-blog-post-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1f2937;
    background: #fff;
}

/* Header */
.ct-blog-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}
.ct-blog-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ct-blog-logo-link {
    display: block;
    line-height: 0;
}
.ct-blog-logo-img {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}
.ct-blog-nav {
    display: flex;
    gap: 1.5rem;
}
.ct-blog-nav a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
}
.ct-blog-nav a:hover {
    color: #F37021;
}

/* Main content */
.ct-blog-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

/* Article container */
.ct-blog-article {
    margin: 0;
}
.ct-blog-article-inner {
    /* Container for article content */
}

/* Title */
.ct-blog-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    margin: 0 0 12px;
}

/* Meta */
.ct-blog-meta {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 24px;
}
.ct-blog-meta-sep {
    margin: 0 6px;
}

/* Featured image */
.ct-blog-featured-image {
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
}
.ct-blog-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Article content - typography */
.ct-blog-content {
    font-size: 1.0625rem;
    line-height: 1.7;
}
.ct-blog-content p {
    margin: 0 0 1em;
}
.ct-blog-content p:last-child {
    margin-bottom: 0;
}
.ct-blog-content h2,
.ct-blog-content h3,
.ct-blog-content h4 {
    margin: 1.5em 0 0.5em;
    font-weight: 600;
    line-height: 1.3;
}
.ct-blog-content h2 { font-size: 1.5rem; }
.ct-blog-content h3 { font-size: 1.25rem; }
.ct-blog-content h4 { font-size: 1.1rem; }
.ct-blog-content ul,
.ct-blog-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}
.ct-blog-content li {
    margin-bottom: 0.4em;
}
.ct-blog-content blockquote {
    margin: 1.5em 0;
    padding-left: 1em;
    border-left: 4px solid #F37021;
    color: #4b5563;
}
.ct-blog-content a {
    color: #F37021;
    text-decoration: none;
}
.ct-blog-content a:hover {
    text-decoration: underline;
}
.ct-blog-content img {
    max-width: 100%;
    height: auto;
}
.ct-blog-content audio,
.ct-blog-content iframe {
    max-width: 100%;
}

/* Article footer */
.ct-blog-article-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.ct-blog-back,
.ct-blog-insights {
    color: #F37021;
    font-weight: 500;
    text-decoration: none;
}
.ct-blog-back:hover,
.ct-blog-insights:hover {
    text-decoration: underline;
}

/* Page footer */
.ct-blog-footer {
    border-top: 1px solid #e5e7eb;
    padding: 24px 20px;
}
.ct-blog-footer-inner {
    max-width: 720px;
    margin: 0 auto;
}
.ct-blog-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}
.ct-blog-footer a {
    color: #F37021;
    text-decoration: none;
}
.ct-blog-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .ct-blog-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .ct-blog-nav {
        flex-wrap: wrap;
    }
    .ct-blog-title {
        font-size: 1.5rem;
    }
}
