/**
 * Bull Blog - Front-office Styles
 *
 * @author    Bullmade
 * @copyright Bullmade
 * @license   MIT
 */

/* General Blog Styles */
.bm-blog {
    margin-bottom: 2rem;
}

.bm-blog-description {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Article List */
.bm-blog-articles {
    margin-bottom: 2rem;
}

.bm-blog-article-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.bm-blog-article-item:last-child {
    border-bottom: none;
}

.bm-blog-article-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.bm-blog-article-image:hover img {
    opacity: 0.9;
}

.bm-blog-article-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.bm-blog-article-title a {
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
}

.bm-blog-article-title a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #7a7a7a;
}

.bm-blog-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.bm-blog-article-meta i {
    font-size: 1rem;
}

.bm-blog-article-meta a {
    color: #7a7a7a;
}

.bm-blog-article-meta a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-article-summary {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.bm-blog-read-more {
    font-size: 0.875rem;
}

/* Pagination */
.bm-blog-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.bm-blog-pagination .pagination {
    margin: 0;
}

/* Single Article */
.bm-blog-article-full .bm-blog-article-image {
    margin-bottom: 1.5rem;
}

.bm-blog-article-full .bm-blog-article-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.bm-blog-article-full .bm-blog-article-meta {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1.5rem;
}

.bm-blog-article-content {
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.bm-blog-article-content img {
    max-width: 100%;
    height: auto;
}

.bm-blog-article-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.bm-blog-article-content h3 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.75rem;
}

.bm-blog-article-content p {
    margin-bottom: 1rem;
}

.bm-blog-article-content ul,
.bm-blog-article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.bm-blog-article-content blockquote {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--bm-blog-primary, #2fb5d2);
    background: #f8f9fa;
}

/* Tags */
.bm-blog-article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
}

.bm-blog-article-tags i {
    color: #7a7a7a;
}

.bm-blog-article-tags .badge {
    font-weight: normal;
}

/* Share Buttons */
.bm-blog-share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
}

.bm-blog-share-label {
    font-weight: 600;
    color: var(--bm-blog-heading-color, #232323);
}

.bm-blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.bm-blog-share-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.bm-blog-share-facebook {
    background: #3b5998;
}

.bm-blog-share-twitter {
    background: #1da1f2;
}

.bm-blog-share-linkedin {
    background: #0077b5;
}

/* Related Articles */
.bm-blog-related {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.bm-blog-related h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.bm-blog-related-item {
    margin-bottom: 1rem;
}

.bm-blog-related-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.bm-blog-related-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.bm-blog-related-item h4 a {
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
}

.bm-blog-related-item h4 a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-related-date {
    font-size: 0.75rem;
    color: #7a7a7a;
}

/* Comments */
.bm-blog-comments {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.bm-blog-comments h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.bm-blog-comments-list {
    margin-bottom: 2rem;
}

.bm-blog-comment {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.bm-blog-comment:last-child {
    border-bottom: none;
}

.bm-blog-comment-avatar {
    flex-shrink: 0;
}

.bm-blog-comment-avatar i {
    font-size: 40px;
    color: #ccc;
}

.bm-blog-comment-content {
    flex: 1;
}

.bm-blog-comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.bm-blog-comment-name {
    color: var(--bm-blog-heading-color, #232323);
}

.bm-blog-comment-date {
    font-size: 0.75rem;
    color: #7a7a7a;
}

.bm-blog-comment-text {
    line-height: 1.6;
    color: #666;
}

/* Comment Form */
.bm-blog-comment-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.bm-blog-comment-form h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Sidebar */
.bm-blog-sidebar {
    position: sticky;
    top: 1rem;
}

.bm-blog-widget {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.bm-blog-widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bm-blog-primary, #2fb5d2);
}

/* Category List */
.bm-blog-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bm-blog-category-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.bm-blog-category-list li:last-child {
    border-bottom: none;
}

.bm-blog-category-list li.active a {
    color: var(--bm-blog-primary, #2fb5d2);
    font-weight: 600;
}

.bm-blog-category-list a {
    color: #666;
    text-decoration: none;
}

.bm-blog-category-list a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

/* Recent Articles Widget */
.bm-blog-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bm-blog-recent-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.bm-blog-recent-list li:last-child {
    border-bottom: none;
}

.bm-blog-recent-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-decoration: none;
}

.bm-blog-recent-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.bm-blog-recent-info {
    display: flex;
    flex-direction: column;
}

.bm-blog-recent-title {
    font-size: 0.875rem;
    color: var(--bm-blog-heading-color, #232323);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.bm-blog-recent-list a:hover .bm-blog-recent-title {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-recent-date {
    font-size: 0.75rem;
    color: #7a7a7a;
}

/* Homepage Widget */
.bm-blog-home {
    padding: 3rem 0;
    background: #f8f9fa;
    margin-bottom: 2rem;
}

.bm-blog-home-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.bm-blog-home-article {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bm-blog-home-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.bm-blog-home-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bm-blog-home-article-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.bm-blog-home-article-title a {
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
}

.bm-blog-home-article-title a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-home-date {
    font-size: 0.75rem;
    color: #7a7a7a;
    margin-bottom: 0.75rem;
    display: block;
}

.bm-blog-home-summary {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.bm-blog-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--bm-blog-primary, #2fb5d2);
    text-decoration: none;
}

.bm-blog-home-link:hover {
    text-decoration: underline;
}

.bm-blog-home-link i {
    font-size: 1rem;
}

.bm-blog-home-more {
    text-align: center;
    margin-top: 2rem;
}

/* Category Page */
.bm-blog-category-description {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* ========================================
   SHORTCODE STYLES
   ======================================== */

/* Product Shortcodes */
.bm-blog-shortcode-products {
    margin: 1.5rem 0;
}

.bm-blog-product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.bm-blog-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bm-blog-product-image img {
    width: 100%;
    height: auto;
}

.bm-blog-product-info {
    padding: 1rem;
}

.bm-blog-product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.bm-blog-product-title a {
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
}

.bm-blog-product-title a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-shortcode-product {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.bm-blog-shortcode-product .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bm-blog-primary, #2fb5d2);
    margin-bottom: 1rem;
}

/* Video Shortcodes */
.bm-blog-shortcode-video {
    margin: 1.5rem 0;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.bm-blog-shortcode-video iframe,
.bm-blog-shortcode-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery Shortcode */
.bm-blog-shortcode-gallery {
    margin: 1.5rem 0;
}

.bm-blog-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.bm-blog-gallery-item img {
    transition: transform 0.3s ease;
}

.bm-blog-gallery-item:hover img {
    transform: scale(1.05);
}

/* Image Shortcode */
.bm-blog-shortcode-image {
    margin: 1.5rem 0;
}

.bm-blog-shortcode-image img {
    border-radius: 4px;
}

.bm-blog-shortcode-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #7a7a7a;
    font-style: italic;
}

/* Button Shortcode */
.bm-blog-article-content .btn {
    margin: 0.25rem;
}

/* Alert Shortcode */
.bm-blog-article-content .alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bm-blog-article-content .alert .material-icons {
    font-size: 1.25rem;
}

/* Accordion Shortcode */
.bm-blog-shortcode-accordion {
    margin: 1.5rem 0;
}

.bm-blog-shortcode-accordion .accordion-button {
    font-weight: 600;
}

/* Tabs Shortcode */
.bm-blog-shortcode-tabs {
    margin: 1.5rem 0;
}

.bm-blog-shortcode-tabs .tab-content {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* Columns Shortcode */
.bm-blog-shortcode-columns {
    margin: 1.5rem 0;
}

/* Spacer Shortcode */
.bm-blog-shortcode-spacer {
    width: 100%;
}

/* Divider Shortcode */
.bm-blog-shortcode-divider {
    margin: 1.5rem auto;
}

/* Heading Shortcode */
.bm-blog-shortcode-heading {
    margin: 1.5rem 0 1rem;
}

/* Quote Shortcode */
.bm-blog-shortcode-quote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid var(--bm-blog-primary, #2fb5d2);
    border-radius: 0 4px 4px 0;
}

.bm-blog-shortcode-quote p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.bm-blog-shortcode-quote .blockquote-footer {
    font-size: 0.875rem;
}

/* CTA Shortcode */
.bm-blog-shortcode-cta {
    margin: 1.5rem 0;
}

.bm-blog-shortcode-cta h3 {
    margin-bottom: 1rem;
}

.bm-blog-shortcode-cta p {
    margin-bottom: 1.5rem;
}

/* ========================================
   CREATIVE ELEMENTS WIDGET STYLES
   ======================================== */

/* Articles Widget */
.bm-blog-ce-articles {
    margin: 1.5rem 0;
}

.bm-blog-ce-article-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.bm-blog-ce-article-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bm-blog-ce-article-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.bm-blog-ce-article-image-link {
    display: block;
}

.bm-blog-ce-article-image-link img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.bm-blog-ce-article-image-link:hover img {
    opacity: 0.9;
}

.bm-blog-ce-article-content {
    padding: 1.25rem;
}

.bm-blog-ce-article-cat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bm-blog-primary, #2fb5d2);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.bm-blog-ce-article-cat:hover {
    background: var(--bm-blog-primary-hover, #1a9cb8);
    color: #fff;
}

.bm-blog-ce-article-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.bm-blog-ce-article-title a {
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
}

.bm-blog-ce-article-title a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-ce-article-meta {
    font-size: 0.8rem;
    color: #7a7a7a;
    margin-bottom: 0.75rem;
}

.bm-blog-ce-article-date {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.bm-blog-ce-article-summary {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bm-blog-ce-article-btn {
    font-size: 0.875rem;
}

/* Categories Widget */
.bm-blog-ce-categories {
    margin: 1.5rem 0;
}

.bm-blog-ce-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bm-blog-ce-cat-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.bm-blog-ce-cat-item:last-child {
    border-bottom: none;
}

.bm-blog-ce-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bm-blog-ce-cat-link:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-ce-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: var(--bm-blog-primary, #2fb5d2);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 12px;
}

.bm-blog-ce-cat-desc {
    font-size: 0.8rem;
    color: #7a7a7a;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Categories Grid Layout */
.bm-blog-ce-categories-grid .bm-blog-ce-cat-item {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: none;
}

.bm-blog-ce-categories-grid .bm-blog-ce-cat-item:hover {
    background: #f0f0f0;
}

/* Categories Inline Layout */
.bm-blog-ce-cat-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.bm-blog-ce-cat-sep {
    color: #ccc;
}

.bm-blog-ce-categories-inline .bm-blog-ce-cat-link {
    display: inline;
}

.bm-blog-ce-categories-inline .bm-blog-ce-cat-count {
    background: transparent;
    color: #7a7a7a;
    min-width: auto;
    height: auto;
    padding: 0;
}

/* Recent Posts Widget */
.bm-blog-ce-recent-posts {
    margin: 1.5rem 0;
}

.bm-blog-ce-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.bm-blog-ce-recent-item:last-child {
    border-bottom: none;
}

.bm-blog-ce-recent-thumb-link {
    flex-shrink: 0;
}

.bm-blog-ce-recent-thumb {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.bm-blog-ce-recent-content {
    flex: 1;
    min-width: 0;
}

.bm-blog-ce-recent-title {
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.bm-blog-ce-recent-title a {
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
}

.bm-blog-ce-recent-title a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-ce-recent-date {
    font-size: 0.75rem;
    color: #7a7a7a;
}

/* Featured Post Widget */
.bm-blog-ce-featured {
    margin: 1.5rem 0;
}

/* Overlay Layout */
.bm-blog-ce-featured-overlay .bm-blog-ce-featured-image {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    overflow: hidden;
}

.bm-blog-ce-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.bm-blog-ce-featured-overlay .bm-blog-ce-featured-content {
    color: #fff;
}

.bm-blog-ce-featured-overlay .bm-blog-ce-featured-title {
    color: #fff;
}

.bm-blog-ce-featured-overlay .bm-blog-ce-featured-title a {
    color: #fff;
}

.bm-blog-ce-featured-overlay .bm-blog-ce-featured-meta {
    color: rgba(255,255,255,0.8);
}

.bm-blog-ce-featured-overlay .bm-blog-ce-featured-summary {
    color: rgba(255,255,255,0.9);
}

/* Featured Post Common Styles */
.bm-blog-ce-featured-cat {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bm-blog-primary, #2fb5d2);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.bm-blog-ce-featured-cat:hover {
    background: var(--bm-blog-primary-hover, #1a9cb8);
    color: #fff;
}

.bm-blog-ce-featured-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.bm-blog-ce-featured-title a {
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
}

.bm-blog-ce-featured-title a:hover {
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-ce-featured-meta {
    font-size: 0.875rem;
    color: #7a7a7a;
    margin-bottom: 1rem;
}

.bm-blog-ce-featured-summary {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.bm-blog-ce-featured-btn {
    display: inline-block;
}

/* Side by Side Layout */
.bm-blog-ce-featured-side .bm-blog-ce-featured-image-link img {
    border-radius: 4px;
}

.bm-blog-ce-featured-side .bm-blog-ce-featured-content {
    padding: 1rem 0;
}

/* Stacked Layout */
.bm-blog-ce-featured-stacked .bm-blog-ce-featured-image-link {
    display: block;
    margin-bottom: 1.25rem;
}

.bm-blog-ce-featured-stacked .bm-blog-ce-featured-image-link img {
    border-radius: 4px;
    width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .bm-blog-article-meta {
        gap: 0.5rem;
    }

    .bm-blog-article-title {
        font-size: 1.25rem;
    }

    .bm-blog-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .bm-blog-share {
        flex-wrap: wrap;
    }

    .bm-blog-comment {
        flex-direction: column;
    }

    .bm-blog-home-article {
        margin-bottom: 1rem;
    }

    /* CE Widget Responsive */
    .bm-blog-ce-featured-overlay .bm-blog-ce-featured-overlay {
        padding: 1rem;
    }

    .bm-blog-ce-featured-title {
        font-size: 1.25rem;
    }

    .bm-blog-ce-featured-side .row {
        flex-direction: column;
    }

    .bm-blog-ce-recent-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bm-blog-ce-recent-thumb {
        width: 100%;
        height: 120px;
    }
}

/* ========================================
   PRODUCT CATEGORY ARTICLE CARDS
   ======================================== */

/* Article card in product listings */
.bm-blog-category-article-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid var(--bm-blog-primary, #2fb5d2);
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bm-blog-category-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(47, 181, 210, 0.25);
}

.bm-blog-category-article-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.bm-blog-category-article-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #e9ecef;
}

.bm-blog-category-article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bm-blog-category-article-card:hover .bm-blog-category-article-image img {
    transform: scale(1.05);
}

.bm-blog-category-article-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bm-blog-primary, #2fb5d2) 0%, var(--bm-blog-primary-hover, #1a9cb8) 100%);
}

.bm-blog-category-article-no-image svg {
    position: absolute;
    color: rgba(255, 255, 255, 0.5);
}

.bm-blog-category-article-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--bm-blog-primary, #2fb5d2);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    z-index: 1;
}

.bm-blog-category-article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.bm-blog-category-article-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bm-blog-heading-color, #232323);
    margin: 0 0 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-blog-category-article-summary {
    flex: 1;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin: 0 0 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-blog-category-article-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bm-blog-primary, #2fb5d2);
    margin-top: auto;
}

.bm-blog-category-article-readmore svg {
    transition: transform 0.2s ease;
}

.bm-blog-category-article-card:hover .bm-blog-category-article-readmore svg {
    transform: translateX(4px);
}

/* Responsive adjustments for category articles */
@media (max-width: 768px) {
    .bm-blog-category-article-card {
        margin-bottom: 1rem;
    }

    .bm-blog-category-article-title {
        font-size: 0.9rem;
    }

    .bm-blog-category-article-summary {
        -webkit-line-clamp: 2;
    }
}

/* ==========================================================================
   Table of contents
   ========================================================================== */

.bm-blog-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.75rem;
}

.bm-blog-toc-title {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.bm-blog-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bm-blog-toc-item {
    line-height: 1.6;
}

.bm-blog-toc-item a {
    color: #343a40;
    text-decoration: none;
}

.bm-blog-toc-item a:hover {
    text-decoration: underline;
}

.bm-blog-toc-level-3 {
    padding-left: 1.1rem;
    font-size: 0.95em;
}

.bm-blog-toc-level-4 {
    padding-left: 2.2rem;
    font-size: 0.9em;
}

/* Offset anchor targets so headings aren't hidden under a sticky header */
.bm-blog-article-content [id] {
    scroll-margin-top: 90px;
}

/* ==========================================================================
   Medium-style article layout
   ========================================================================== */

.bm-blog-medium {
    /* Default content width; overridden per-shop by an inline --bm-medium-width
       set from the "Medium content width" setting on the wrapper element. */
    --bm-medium-width: 1000px;
}

.bm-blog-medium .bm-blog-medium-header,
.bm-blog-medium .bm-blog-medium-body,
.bm-blog-medium .bm-blog-medium-hero {
    max-width: var(--bm-medium-width);
    margin-left: auto;
    margin-right: auto;
}

.bm-blog-medium-header {
    text-align: center;
    padding: 1rem 1rem 1.5rem;
}

.bm-blog-medium-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-decoration: none;
    margin-bottom: 0.75rem;
}

.bm-blog-medium-kicker:hover {
    color: #343a40;
}

.bm-blog-medium-title {
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.bm-blog-medium-standfirst {
    font-size: 1.25rem;
    line-height: 1.5;
    color: #6c757d;
    margin-bottom: 1.25rem;
}

.bm-blog-medium-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: #868e96;
    font-size: 0.95rem;
}

.bm-blog-medium-meta span {
    display: inline-flex;
    align-items: center;
}

.bm-blog-medium-meta span:not(:last-child)::after {
    content: "\00B7";
    margin: 0 0.55rem;
    color: #ced4da;
}

.bm-blog-medium-hero {
    margin: 0 0 2.25rem;
}

.bm-blog-medium-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.bm-blog-medium-body .bm-blog-article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #242424;
}

.bm-blog-medium-body .bm-blog-article-content h2 {
    font-size: 1.75rem;
    margin-top: 2.25rem;
}

.bm-blog-medium-body .bm-blog-article-content h3 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
}

.bm-blog-medium-body .bm-blog-article-content img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .bm-blog-medium-title {
        font-size: 1.9rem;
    }

    .bm-blog-medium-standfirst {
        font-size: 1.1rem;
    }

    .bm-blog-medium-body .bm-blog-article-content {
        font-size: 1.05rem;
    }
}

