img.alignright { float: right; margin: 0 0 1em 1em; }
img.alignleft { float: left; margin: 0 1em 1em 0; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignright { float: right; }
.alignleft { float: left; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

ol.post-list,
ol.comment-list { list-style: none; padding: 0; margin: 0; }

/* General Post Styles */
.post-list li:after { content: ' '; clear: both; display: block; }
.post-entry { overflow: hidden; margin: 0 0 20px; }
.post-image { margin: 0 0 10px; overflow: hidden; }
.post-image a { display: inline-block; }
.post-list .post-image { max-height: 300px; }
.post-meta { clear: both; margin: 0 0 20px; text-align: left; }
.post-meta .post-meta-item { display: inline-block; margin-right: 10px; }
.post-readmore { margin-top: 10px; }
.post-entry iframe { max-width: 100%; }

/* Page Title */
.page-title.title-font {
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 2rem;
}
.page-title.title-font .base {
    font-size: 36px;
    color: #222;
    margin: 0;
    line-height: 1em;
    font-weight: 300;
}
.page-title-wrapper .page-title.title-font {
    border-bottom: 0;
    padding-bottom: 0;
}

/* Post List Item */
.post-list .post-image a {
    width: 300px;
    max-width: 100%;
    height: 200px;
}
.post-list .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post View Page */
.post-view {
    border-right: 0;
    padding-right: 0;
}

.post-content p {
    font-size: 16px;
    margin-bottom: 1em;
    color: #555;
    text-align: justify;
}
.post-content h2 {
    font-size: 28px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #000;
}
.post-content h3 {
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #000;
}
.post-content h4 {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #000;
}
.post-content ol {
    list-style: decimal outside;
    padding-left: 1.5em;
    font-size: 16px;
    margin-bottom: 1em;
    color: #555;
}
.post-content ul {
    list-style: disc outside;
    padding-left: 1.5em;
    font-size: 16px;
    margin-bottom: 1em;
    color: #555;
}
.post-content a {
    color: #bd1e2d;
    text-decoration: underline;
}
.post-content a:hover {
    text-decoration: none;
}
.post-content img {
    max-width: 100%;
    height: auto;
}

/* Automatic article table of contents */
.post-content .df-blog-toc {
    width: fit-content;
    max-width: 100%;
    margin: 1em 0;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 3px;
    background: #f9f9f9;
    color: #555;
}
.post-content .df-blog-toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.post-content .df-blog-toc-title {
    margin: 0;
    font-size: 18px;
    text-align: left;
}
.post-content .df-blog-toc-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #999;
    border-radius: 3px;
    color: #666;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.post-content .df-blog-toc-toggle:focus-visible,
.post-content .df-blog-toc a:focus-visible {
    outline: 2px solid #555;
    outline-offset: 2px;
}
.post-content .df-blog-toc ol {
    counter-reset: toc-item;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 24px;
}
.post-content .df-blog-toc ol ol { padding-left: 1.5em; }
.post-content .df-blog-toc li {
    counter-increment: toc-item;
    overflow-wrap: anywhere;
}
.post-content .df-blog-toc li::before {
    content: counters(toc-item, ".") ". ";
    color: #00e;
}
.post-content .df-blog-toc a { color: #00e; }
.post-content .df-blog-toc nav[hidden] { display: none; }
.post-content .df-blog-toc-anchor { scroll-margin-top: 100px; }

/* Sidebar Categories */
.block-blog .block-title,
.sidebar .block-title {
    margin: 0 0 10px;
    padding: 0;
    font-size: 18px;
    letter-spacing: 0;
    border: none;
    color: #222;
    line-height: 1.5;
    margin-bottom: 15px;
    text-transform: none;
}
.block-blog .block-title strong,
.sidebar .block-title strong {
    font-size: 18px;
    font-weight: 500;
}
.block-blog ul, .block-blog ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.block-blog-categories ul.level1 {
    margin-top: 0.5rem;
    padding-left: 1rem;
}
.block-blog-categories ul.level2 {
    margin-top: 0.25rem;
    padding-left: 1rem;
}
.block-content ul li {
    padding-bottom: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}
.block-content ul li a {
    padding-left: 0;
    font-size: 15px;
    line-height: 22px;
    color: #000;
}
.block-content ul li:hover {
    background-color: transparent;
}
.block-blog-categories {
    margin-bottom: 1rem;
    padding-bottom: 3rem;
}

/* Products shortcode / related */
.shortcode-product {}
.shortcode-product .products { text-align: left; list-style: none; }
.shortcode-product .products > li { display: inline-block; width: 24%; text-align: center; }

/* Pager */
.amblog-pager-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}
.amblog-pager-container .amblog-links {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
.amblog-pager-container .amblog-pagination {
    font-size: 14px;
    color: #7B7373;
}
.amblog-pager-container .amblog-link {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #d8d8d8;
    color: #222;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.amblog-pager-container .amblog-link:hover {
    background-color: #f5f5f5;
    border-color: #bd1e2d;
    color: #bd1e2d;
}
.amblog-pager-container .amblog-link.-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* About Direct Fabrics widget */
.block-blog-text {
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.block-about-author .media {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}
.block-about-author .author-icon {
    flex-shrink: 0;
}
.block-about-author .author-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.block-about-author .author-name {
    font-size: 18px;
    font-weight: 500;
    color: #222;
    margin: 0;
}
.block-about-author .autror-description p {
    font-size: 14px;
    line-height: 1.6;
    color: #7b7373;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .post-view {
        border-right: 0;
        padding-right: 0;
    }
}

/* Full width blog content layout (slide-in drawer replaces page sidebar) */
body[class*="amblog-index-"] .columns {
    display: block !important;
}

body[class*="amblog-index-"] .columns .column.main {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
}

body[class*="amblog-index-"] .columns .sidebar-additional {
    display: contents !important;
}

body[class*="amblog-index-"] .post-list-wrapper {
    border-right: 0 !important;
    padding-right: 0 !important;
}

body[class*="amblog-index-"] .post-view {
    border-right: 0 !important;
    padding-right: 0 !important;
}

/* Show Categories Trigger Button */
.show-categories-wrapper button {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Blog Sidebar Drawer */
#blog-sidebar-drawer [x-cloak] {
    display: none !important;
}

