/* ===========================
   Posts List Grid
   =========================== */
.sb-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.sb-columns-2 { grid-template-columns: repeat(2, 1fr); }
.sb-columns-3 { grid-template-columns: repeat(3, 1fr); }
.sb-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .sb-columns-2,
    .sb-columns-3,
    .sb-columns-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sb-columns-3,
    .sb-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   Card
   =========================== */
.sb-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sb-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sb-card-thumbnail img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.sb-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sb-card-date {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sb-card-title {
    font-size: 1.2em;
    margin: 0;
    line-height: 1.3;
}

.sb-card-title a {
    text-decoration: none;
    color: inherit;
}

.sb-card-title a:hover {
    opacity: 0.8;
}

.sb-card-author {
    font-size: 0.85em;
    color: #666;
}

.sb-card-excerpt {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.sb-read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    color: #0073aa;
}

.sb-read-more:hover {
    text-decoration: underline;
}

/* ===========================
   Single - Dynamic Widgets
   =========================== */
.sb-single-content {
    max-width: 1200px;
    margin: 0 auto;
}

.sb-post-title {
    margin: 0 0 0.5em;
}

.sb-post-content {
    line-height: 1.7;
}

.sb-post-content p {
    margin-bottom: 1em;
}

.sb-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Meta */
.sb-post-meta {
    font-size: 0.9em;
    color: #666;
}

.sb-post-meta a {
    text-decoration: none;
}

.sb-post-meta a:hover {
    text-decoration: underline;
}

.sb-meta-stacked .sb-meta-date,
.sb-meta-stacked .sb-meta-author,
.sb-meta-stacked .sb-meta-tax,
.sb-meta-stacked .sb-meta-comments {
    display: block;
    margin-bottom: 4px;
}

/* ===========================
   Post Excerpt
   =========================== */
.sb-post-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1em;
}

/* ===========================
   Post Comments
   =========================== */
.sb-post-comments {
    margin: 2em 0;
}

.sb-placeholder-block {
    background: #f5f5f5;
    border: 2px dashed #ddd;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 0.95em;
    border-radius: 6px;
}

/* ===========================
   Post Navigation
   =========================== */
.sb-post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.sb-nav-prev,
.sb-nav-next {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 48%;
}

.sb-nav-next {
    text-align: right;
    margin-left: auto;
}

.sb-nav-label {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.sb-nav-title {
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
}

.sb-nav-title a {
    text-decoration: none;
    color: inherit;
}

.sb-nav-title a:hover {
    opacity: 0.7;
}

.sb-nav-label-link {
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 600px) {
    .sb-post-navigation {
        flex-direction: column;
    }
    .sb-nav-prev,
    .sb-nav-next {
        max-width: 100%;
    }
    .sb-nav-next {
        text-align: left;
    }
}

/* ===========================
   Author Box
   =========================== */
.sb-author-box {
    display: flex;
    gap: 20px;
    border-radius: 6px;
}

.sb-author-horizontal {
    flex-direction: row;
    align-items: flex-start;
}

.sb-author-vertical {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sb-author-avatar img {
    display: block;
}

.sb-author-name {
    margin: 0 0 8px;
    font-size: 1.2em;
}

.sb-author-bio {
    margin: 0 0 10px;
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}

.sb-author-link a {
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    color: #0073aa;
}

.sb-author-link a:hover {
    text-decoration: underline;
}

/* ===========================
   Post Taxonomy
   =========================== */
.sb-post-taxonomy {
    font-size: 0.95em;
    line-height: 1.6;
}

.sb-post-taxonomy a {
    text-decoration: none;
}

.sb-post-taxonomy a:hover {
    text-decoration: underline;
}

.sb-tax-prefix {
    font-weight: 600;
}

.sb-tax-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85em;
    line-height: 1.4;
}

.sb-tax-badge a {
    text-decoration: none;
    color: inherit;
}

.sb-tax-badge a:hover {
    opacity: 0.7;
}

/* ===========================
   Breadcrumbs
   =========================== */
.sb-breadcrumbs {
    font-size: 0.9em;
    line-height: 1.5;
    color: #666;
}

.sb-breadcrumbs a {
    text-decoration: none;
    color: #0073aa;
}

.sb-breadcrumbs a:hover {
    text-decoration: underline;
}

.sb-breadcrumb-sep {
    margin: 0 2px;
    color: #aaa;
}

.sb-breadcrumb-current {
    color: #333;
}

/* ===========================
   Table of Contents
   =========================== */
.sb-toc {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.sb-toc-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sb-toc-title[role="button"] {
    cursor: pointer;
    user-select: none;
}

.sb-toc-toggle {
    font-size: 0.9em;
    margin-left: 8px;
}

.sb-toc-list {
    margin: 0;
    padding-left: 20px;
    list-style-position: inside;
}

.sb-toc-list li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.sb-toc-level-1 { padding-left: 20px; }
.sb-toc-level-2 { padding-left: 40px; }
.sb-toc-level-3 { padding-left: 60px; }

.sb-toc a {
    text-decoration: none;
    color: #333;
}

.sb-toc a:hover {
    text-decoration: underline;
    color: #0073aa;
}

.sb-toc-hidden {
    display: none;
}

/* ===========================
   Share Buttons
   =========================== */
.sb-share-buttons {
    display: flex;
    flex-wrap: wrap;
}

.sb-share-inline { flex-direction: row; }
.sb-share-stacked { flex-direction: column; }

.sb-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    text-decoration: none;
    font-size: 0.9em;
    line-height: 1;
    transition: opacity 0.2s ease;
    cursor: pointer;
    border: none;
}

.sb-share-btn:hover {
    opacity: 0.85;
}

.sb-share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Colored style */
.sb-share-colored .sb-share-facebook  { background: #1877f2; color: #fff; }
.sb-share-colored .sb-share-twitter   { background: #000;    color: #fff; }
.sb-share-colored .sb-share-linkedin  { background: #0a66c2; color: #fff; }
.sb-share-colored .sb-share-pinterest { background: #e60023; color: #fff; }
.sb-share-colored .sb-share-email     { background: #555;    color: #fff; }
.sb-share-colored .sb-share-whatsapp  { background: #25d366; color: #fff; }
.sb-share-colored .sb-share-telegram  { background: #0088cc; color: #fff; }

/* Outline style */
.sb-share-outline .sb-share-btn {
    background: transparent;
    border: 1px solid currentColor;
}
.sb-share-outline .sb-share-facebook  { color: #1877f2; }
.sb-share-outline .sb-share-twitter   { color: #000; }
.sb-share-outline .sb-share-linkedin  { color: #0a66c2; }
.sb-share-outline .sb-share-pinterest { color: #e60023; }
.sb-share-outline .sb-share-email     { color: #555; }
.sb-share-outline .sb-share-whatsapp  { color: #25d366; }
.sb-share-outline .sb-share-telegram  { color: #0088cc; }

/* Minimal style */
.sb-share-minimal .sb-share-btn {
    background: transparent;
    padding: 6px 10px;
    color: #555;
}
.sb-share-minimal .sb-share-btn:hover {
    color: #000;
}

/* ===========================
   Related Posts
   =========================== */
.sb-related-heading {
    font-size: 1.4em;
    margin: 0 0 20px;
}

/* ===========================
   Dynamic Button
   =========================== */
.sb-dynamic-button-wrap {
    line-height: 1;
}

.sb-dynamic-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.sb-dynamic-button:hover {
    text-decoration: none;
}

.sb-btn-icon {
    display: inline-flex;
    align-items: center;
}

.sb-btn-icon svg,
.sb-btn-icon i {
    width: 1em;
    height: 1em;
    font-size: inherit;
}