/**
 * Blog Post Styles
 * Clean, semantic CSS for blog posts matching the article format
 */

/* Blog Post Article */
.blog-post {
    /* Default article styles - no extra container needed */
}

/* Heading hierarchy - matches the manual article style */
.blog-post h1,
.blog-post-title {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    text-align: left;
}

.blog-post h2 {
    font-size: 2.17em;
}

.blog-post h3 {
    font-size: 1.5em;
}

.blog-post h4 {
    font-size: 0.93em;
}

/* Header */
.blog-post-header {
    margin-bottom: 2em;
}

.blog-post-meta {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 0.5em;
}

.blog-post-date {
    color: #888;
    font-size: 0.95em;
}

/* Content */
.blog-post-content {
    line-height: 1.8;
    font-size: 1.1em;
}

/* Reset ul and li to default HTML styles - override Materialize CSS */
.blog-post ul,
.blog-post ul:not(.browser-default),
.blog-post-content ul,
.blog-post-content ul:not(.browser-default) {
    list-style-type: disc !important;
    color: black !important;
    margin: 1em 0;
    padding-left: 40px;
}

.blog-post ul li,
.blog-post ul:not(.browser-default) > li,
.blog-post-content ul li,
.blog-post-content ul:not(.browser-default) > li {
    list-style-type: disc !important;
    display: list-item !important;
    margin: 0.5em 0 !important;
}

/* Images in content */
.blog-post img,
.blog-post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Sections within article */
.blog-post section {
    margin-bottom: 2em;
}

/* Related Jobs Section */
.blog-related-jobs {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid #e0e0e0;
}

.related-jobs-title {
    font-size: 2em;
    margin-bottom: 1.5em;
}

.related-jobs-list {
    /* Container for job items */
}

.related-job-item {
    display: flex;
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.job-logo {
    flex-shrink: 0;
    margin-right: 1.5em;
    width: 120px;
}

.job-logo-img {
    border-radius: 4px;
    max-width: 100%;
}

.job-content {
    flex: 1;
}

.job-title {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.5em;
    text-align: left;
}

.job-title a {
    color: #1976d2;
    text-decoration: none;
}

.job-title a:hover {
    text-decoration: underline;
}

.job-dealer-name {
    color: #666;
    margin: 0.25em 0;
    font-weight: 600;
}

.job-location {
    color: #888;
    margin: 0.25em 0;
    font-size: 0.95em;
}

.job-actions {
    margin-top: 1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2em;
    }
    
    .blog-post-content {
        font-size: 1em;
    }
    
    .related-job-item {
        flex-direction: column;
    }
    
    .job-logo {
        margin-right: 0;
        margin-bottom: 1em;
        width: 100%;
        text-align: center;
    }
}
