/* Blog Specific Styles */

/* Ensure the navbar is visible - overriding the transparent background from the main theme's absolute positioning if necessary */
#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.blog-header {
    background-color: #f8f9fa;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.post-card {
    margin-bottom: 2rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card img {
    height: 200px;
    object-fit: cover;
}

.post-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #333;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: #212529;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.65rem;
}

.post-content h4 {
    font-size: 1.35rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-metadata {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.post-metadata .author-name {
    font-size: 1rem;
    color: #212529;
}

.post-metadata .post-date {
    font-size: 0.9rem;
}

/* Markdown Specific Styles */
.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-left: 5px solid #fed136;
    background: #fdfae5;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
}

.post-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-content code {
    background: #f1f1f1;
    color: #d63384;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
}

.post-content table {
    width: 100%;
    margin: 2.5rem 0;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1rem;
}

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

.post-content table thead th {
    background-color: #f8f9fa;
    font-weight: 700;
    border-bottom: 2px solid #dee2e6;
}

.post-content table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #fed136;
    padding-bottom: 0.5rem;
    display: inline-block;
}