/* Blog-specific styles to complement NMLS Approved site theme */

/* Post format styles */
.blog-post-detail-content h1,
.blog-post-detail-content h2,
.blog-post-detail-content h3,
.blog-post-detail-content h4,
.blog-post-detail-content h5,
.blog-post-detail-content h6 {
    color: #2a5298;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 700;
}

.blog-post-detail-content p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.blog-post-detail-content ul,
.blog-post-detail-content ol {
    margin-bottom: 1.2em;
    padding-left: 2em;
}

.blog-post-detail-content li {
    margin-bottom: 0.5em;
}

.blog-post-detail-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #2a5298;
    background-color: #f8f9fa;
    font-style: italic;
}

.blog-post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.blog-post-detail-content pre {
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 8px;
    margin: 1.5em 0;
    overflow-x: auto;
}

.blog-post-detail-content code {
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.blog-post-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.blog-post-detail-content th,
.blog-post-detail-content td {
    padding: 0.75em;
    border: 1px solid #dee2e6;
    text-align: left;
}

.blog-post-detail-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.blog-post-detail-content a {
    color: #2a5298;
    text-decoration: none;
    border-bottom: 1px dotted #2a5298;
    transition: all 0.3s ease;
}

.blog-post-detail-content a:hover {
    color: #1e3c72;
    border-bottom: 1px solid #1e3c72;
}

/* Admin form styles */
.tox-tinymce {
    border-radius: 0.25rem;
    border-color: #ced4da !important;
}

.tox-statusbar {
    border-top: 1px solid #ced4da !important;
}

.select2-container--default .select2-selection--multiple {
    border-color: #ced4da;
    border-radius: 0.25rem;
}

/* Animated elements */
.blog-post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .blog-header {
        padding: 30px 0;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-post-detail-content {
        font-size: 1rem;
    }
}