/* Blog plugin styles */
.blog-page {
    background: #f7f9fc;
    padding: 24px 0 60px;
}

.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0 30px;
}

.blog-header h1 {
    font-size: 32px;
    margin: 0 0 6px;
    color: #0f172a;
}

.blog-header p {
    margin: 0;
    color: #64748b;
}

.blog-cta {
    background: #101828;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.blog-detail {
    align-items: start;
}

.blog-main .section-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.blog-featured-grid {
    columns: 2 280px;
    column-gap: 20px;
}

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 20px;
    break-inside: avoid;
}

.blog-card-image img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.blog-card-body {
    padding: 16px;
}

.blog-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
    align-items: center;
    flex-wrap: wrap;
}

.blog-tag {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    text-decoration: none;
}

.blog-card-body h3,
.blog-card-body h4 {
    margin: 12px 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.blog-card-body p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

.blog-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

.blog-list {
    margin-top: 32px;
}

.blog-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 18px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    margin-bottom: 18px;
}

.blog-row-thumb img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.blog-row-body h4 {
    margin: 10px 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.blog-row-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.blog-link {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
}

.blog-pagination {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.blog-pagination a {
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.blog-pagination a.active {
    background: #101828;
    color: #fff;
}

.blog-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}

.sidebar-card h5 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #0f172a;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.sidebar-card ul li {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 14px;
}

.sidebar-card ul li a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-card ul li a.active {
    color: #16a34a;
}

.sidebar-card .count {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud span {
    background: #f1f5f9;
    color: #334155;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.tag-cloud a {
    background: #f1f5f9;
    color: #334155;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
}

.tag-cloud a.active {
    background: #0f172a;
    color: #fff;
}

.blog-filter-pill {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff7ed;
    color: #c2410c;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    align-items: center;
}

.blog-filter-pill span {
    background: #fed7aa;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.blog-filter-pill a {
    color: #16a34a;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
}

.popular-posts li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.popular-posts a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.blog-article {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.blog-article h1 {
    margin: 14px 0 10px;
    font-size: 30px;
    color: #0f172a;
}

.blog-meta.blog-meta-inline {
    gap: 14px;
}

.blog-author-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
    font-weight: 600;
    flex-wrap: wrap;
}

.blog-author-inline .author-avatar {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-block;
}

.blog-author-inline .author-avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.blog-author-inline .author-verified {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 7px;
    border: 2px solid #fff;
}

.blog-author-inline .author-name {
    font-weight: 600;
    color: #0f172a;
}

.blog-author-inline .author-name.author-link {
    text-decoration: none;
    color: #0f172a;
}

.blog-author-inline .author-name.author-link:hover {
    color: #16a34a;
    text-decoration: underline;
}

.blog-author-inline .author-location {
    font-size: 12px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.blog-hero-image img {
    width: 100%;
    border-radius: 16px;
    margin: 16px 0;
    object-fit: cover;
    max-height: 420px;
}

.blog-content {
    color: #334155;
    line-height: 1.7;
}

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    height: 110px;
    object-fit: cover;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.blog-tags span {
    background: #0f172a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
}

.blog-tags a {
    background: #0f172a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
}

.blog-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.blog-like-btn {
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    padding: 8px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
}

.blog-like-btn.liked {
    background: #fee2e2;
    color: #b91c1c;
}

.blog-views {
    color: #64748b;
    font-size: 13px;
}

.blog-comments {
    margin-top: 24px;
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.comment-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.comment-sort label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comment-sort select {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.85rem;
    background: #f8fafc;
}

.comment-form-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 18px;
}

.comment-form-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-form-card .comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.comment-form-card .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form textarea,
.comment-reply-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    font-family: inherit;
    background: #fff;
}

.comment-form-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.comment-form button,
.comment-reply-actions button {
    background: #101828;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.comment-thread {
    display: grid;
    gap: 16px;
}

.comment-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-card .comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.comment-card .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}

.comment-author {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.comment-author:hover {
    color: #16a34a;
}

.comment-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comment-time {
    color: #94a3b8;
}

.comment-top-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #4338ca;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 11px;
}

.comment-card.top-comment .comment-text {
    background: #fef9c3;
    border: 1px solid #fde68a;
}

.comment-text {
    background: #f1f5f9;
    padding: 10px 12px;
    border-radius: 12px;
    color: #0f172a;
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.comment-reaction,
.comment-reply-btn,
.comment-view-more {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.comment-load-more {
    margin-top: 16px;
    background: #f1f5f9;
    border: none;
    color: #0f172a;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.comment-load-more:hover {
    background: #e2e8f0;
}

.comment-reaction.active {
    color: #0f172a;
}

.comment-reaction.active[data-reaction="useful"] {
    color: #16a34a;
}

.comment-reaction.active[data-reaction="not_useful"] {
    color: #dc2626;
}

.comment-reply-btn:hover,
.comment-view-more:hover {
    color: #16a34a;
}

.comment-reply-form {
    margin-top: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    display: none;
}

.comment-reply-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.comment-children {
    margin-top: 12px;
    margin-left: 46px;
    padding-left: 14px;
    border-left: 1px solid #e2e8f0;
    display: grid;
    gap: 14px;
}

.comment-hidden {
    display: none;
}

.comment-notice {
    background: #fef3c7;
    color: #92400e;
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.blog-empty {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    color: #64748b;
    text-align: center;
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    align-items: center;
}

.blog-breadcrumb a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #16a34a;
}

.blog-breadcrumb .crumb-sep {
    color: #cbd5e1;
}

.blog-editor-shell .blog-editor-toolbar,
.blog-editor-shell .blog-wysiwyg {
    display: none;
}

.blog-editor-shell.is-enhanced .blog-editor-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.blog-editor-shell.is-enhanced .blog-wysiwyg {
    display: block;
}

.blog-editor-shell.is-enhanced .blog-plain-editor {
    display: none;
}

.blog-editor-toolbar button {
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

.blog-wysiwyg {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
    min-height: 260px;
    color: #0f172a;
    line-height: 1.6;
}

.blog-wysiwyg:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.blog-wysiwyg blockquote {
    border-left: 3px solid #94a3b8;
    margin: 12px 0;
    padding-left: 12px;
    color: #475569;
}

.blog-plain-editor {
    min-height: 260px;
    resize: vertical;
}

.blog-tag-grid {
    display: grid;
    gap: 8px;
}

.blog-tag-option {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
}

.blog-image-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.blog-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.blog-gallery-preview img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}

/* Home page blog section */
.home-blog-section {
    margin-top: 30px;
}

.home-blog-section .panel {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.home-blog-section .blog-list-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

.home-blog-section .blog-list-item:last-child {
    border-bottom: none;
}

.home-blog-section img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
}

.home-blog-section .blog-list-item h4 {
    margin: 6px 0 8px;
    font-size: 16px;
    color: #0f172a;
}

.home-blog-section .blog-meta {
    font-size: 12px;
}

@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
    .blog-row {
        grid-template-columns: 1fr;
    }
    .blog-row-thumb img {
        height: 180px;
    }
    .comment-children {
        margin-left: 18px;
    }
}
