/* ===== Blog Public Styles ===== */

/* Card */
.blog-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    color: #b0bec5;
    font-size: 3rem;
}
.blog-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.blog-card-title a {
    color: #1a1a2e;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: #0D83DD;
}
.blog-card-meta {
    font-size: 0.8rem;
    color: #78909c;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.blog-card-meta i {
    margin-right: 3px;
}
.blog-card-summary {
    font-size: 0.9rem;
    color: #546e7a;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}
.blog-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0D83DD;
    text-decoration: none;
}
.blog-read-more:hover {
    text-decoration: underline;
}

/* Category pill */
.blog-category-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: #e3f2fd;
    color: #0D83DD;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
}
.blog-category-pill:hover {
    background: #bbdefb;
    color: #0b6fc0;
}

/* Sidebar */
.blog-sidebar-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}
.blog-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}
.blog-category-list li {
    margin-bottom: 6px;
}
.blog-category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #546e7a;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}
.blog-category-list a:hover,
.blog-category-list a.active {
    background: #e3f2fd;
    color: #0D83DD;
}
.blog-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.blog-tag {
    background: #e9ecef !important;
    color: #546e7a !important;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.blog-tag:hover,
.blog-tag.active {
    background: #0D83DD !important;
    color: #fff !important;
}

/* Detail page */
.page-hero-sm {
    padding: 110px 0 30px;
}
.blog-detail-hero {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}
.blog-detail-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.blog-detail-byline {
    font-size: 0.85rem;
    color: #78909c;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}
.blog-detail-byline i {
    margin-right: 4px;
}
.blog-detail-tags {
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Prose typography */
.blog-prose {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #37474f;
}
.blog-prose h1, .blog-prose h2, .blog-prose h3, .blog-prose h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1a1a2e;
}
.blog-prose p {
    margin-bottom: 1em;
}
.blog-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}
.blog-prose blockquote {
    border-left: 4px solid #0D83DD;
    padding: 12px 20px;
    margin: 1em 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
    color: #546e7a;
}
.blog-prose pre {
    background: #263238;
    color: #eeffff;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
}
.blog-prose code {
    background: #f0f4f8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.blog-prose pre code {
    background: transparent;
    padding: 0;
}
.blog-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.blog-prose th, .blog-prose td {
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    text-align: left;
}
.blog-prose th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Related */
.blog-related h3 {
    font-weight: 600;
    color: #1a1a2e;
}

/* Breadcrumb */
.breadcrumb-light a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.breadcrumb-light a:hover {
    color: #fff;
}
.breadcrumb-light .active {
    color: rgba(255,255,255,0.6);
}
.breadcrumb-light .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}
