/**
 * 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;
}

/* Equal-height cards so every row aligns regardless of title length. */
.bm-blog-product-card {
    background: var(--bm-blog-product-bg, #fff);
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bm-blog-product-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

/* Uniform square image area; contain so products are never cropped. */
.bm-blog-product-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    overflow: hidden;
}

.bm-blog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bm-blog-product-card:hover .bm-blog-product-image img {
    transform: scale(1.04);
}

.bm-blog-product-info {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bm-blog-product-title {
    font-size: 0.95rem;
    line-height: 1.4;
    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);
}

/* Push the price to the bottom so prices align across a row. */
.bm-blog-product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bm-blog-primary, #2fb5d2);
    margin-top: auto;
}

/* Stock status badge */
.bm-blog-product-stock {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0.45rem;
    padding: 0.22rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 3px;
}

.bm-blog-product-stock--in {
    color: #1b8a4b;
    background: #e6f6ec;
}

.bm-blog-product-stock--out {
    color: #c0392b;
    background: #fdecea;
}

.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:#fff;
  border:2px solid #1B1B1B;
  border-radius:0;
  padding:0;
  margin:0 0 40px;
}

.bm-blog-toc-title{
  background:#1B1B1B;
  color:#fff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin:0;
  padding:12px 20px;
  border-bottom:3px solid #DB041F;
}

.bm-blog-toc-list{
  list-style:none;
  margin:0;
  padding:14px 20px 16px;
  counter-reset:pd-toc;
}

.bm-blog-toc-item{
  counter-increment:pd-toc;
  margin:0;
}

.bm-blog-toc-item a{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:8px 0;
  color:#1B1B1B;
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  text-decoration:none;
  border-bottom:1px solid #E6E6E6;
  transition:color .12s;
}

.bm-blog-toc-item a::before{
  content:counter(pd-toc,decimal-leading-zero);
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:22px;
  margin-top:1px;
  background:#DB041F;
  color:#fff;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.05em;
}

.bm-blog-toc-item a:hover{color:#DB041F}

.bm-blog-toc-item:last-child a{border-bottom:none}

/* h3-underpunkter: nedtonet, grå blok */
.bm-blog-toc-level-3 a{font-weight:500;color:#666}
.bm-blog-toc-level-3 a::before{background:#666}

@media(max-width:700px){
  .bm-blog-toc-list{padding:10px 16px 12px}
}

/* 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 widths; overridden per-shop by inline --bm-medium-width /
       --bm-medium-header-width set from the settings on the wrapper element. */
    --bm-medium-width: 1000px;
    --bm-medium-header-width: 1000px;
}

.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;
}

/* The header (kicker, title, standfirst, meta) has its own width so the
   title section can be narrower or wider than the body. */
.bm-blog-medium .bm-blog-medium-header {
    max-width: var(--bm-medium-header-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;
    }
}


/* ==========================================================================
   "Mentioned in our blog" block on product pages
   ========================================================================== */

.bm-blog-product-mentions {
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

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

.bm-blog-product-mentions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.bm-blog-product-mention {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    color: var(--bm-blog-heading-color, #232323);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bm-blog-product-mention:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    color: var(--bm-blog-primary, #2fb5d2);
}

.bm-blog-product-mention-image {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    background-color: #f1f3f5;
}

.bm-blog-product-mention-image--placeholder {
    background-color: var(--bm-blog-primary, #2fb5d2);
    opacity: 0.15;
}

.bm-blog-product-mention-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   Centered, Medium-style header for the blog/category listing pages
   ========================================================================== */
.bm-blog-listing-header {
    text-align: center;
    max-width: 720px;
    margin: 0.5rem auto 2.75rem;
    padding: 0 1rem;
}

.bm-blog-listing-title {
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--bm-blog-heading-color, #232323);
}

.bm-blog-listing-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #6c757d;
}

.bm-blog-listing-desc p:last-child {
    margin-bottom: 0;
}

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

    .bm-blog-listing-desc {
        font-size: 1.05rem;
    }
}


/* ==========================================================================
   Grid layout for the blog/category listing pages
   ========================================================================== */
.bm-blog-articles--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

/* Fixed column counts (chosen in the settings when grid layout is active). */
.bm-blog-articles--grid.bm-blog-articles--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bm-blog-articles--grid.bm-blog-articles--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bm-blog-articles--grid.bm-blog-articles--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .bm-blog-articles--grid[class*="bm-blog-articles--cols-"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bm-blog-articles--grid[class*="bm-blog-articles--cols-"] {
        grid-template-columns: 1fr;
    }
}

.bm-blog-grid-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--bm-blog-grid-radius, 8px);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.bm-blog-grid-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.bm-blog-grid-card-image {
    display: block;
    overflow: hidden;
}

.bm-blog-grid-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bm-blog-grid-card:hover .bm-blog-grid-card-image img {
    transform: scale(1.04);
}

.bm-blog-grid-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.bm-blog-grid-card .bm-blog-article-title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin: 0 0 0.6rem;
}

.bm-blog-grid-card .bm-blog-article-meta {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.bm-blog-grid-card .bm-blog-article-summary {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-blog-grid-card .bm-blog-read-more {
    margin-top: auto;
    align-self: flex-start;
}


/* ==========================================================================
   Sidebar: popular widget + custom HTML blocks
   ========================================================================== */
.bm-blog-recent-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    color: #868e96;
}

.bm-blog-recent-views .material-icons {
    font-size: 14px;
}

.bm-blog-widget-html img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   Article body links: underlined and recolored (buttons excluded)
   ========================================================================== */
.bm-blog-article-single .bm-blog-article-content a:not(.btn) {
    color: var(--bm-blog-link-color, #2fb5d2);
    text-decoration: underline;
}

.bm-blog-article-single .bm-blog-article-content a:not(.btn):hover {
    color: var(--bm-blog-primary-hover, #1a9cb8);
}

/* The underline/colour is for prose links only. Links generated by shortcodes
   (product cards, galleries, image/CTA blocks, etc. — everything wrapped in a
   bm-blog-shortcode-* container) keep their own styling. */
.bm-blog-article-single .bm-blog-article-content [class*="bm-blog-shortcode"] a:not(.btn) {
    color: var(--bm-blog-heading-color, #232323);
    text-decoration: none;
}

.bm-blog-article-single .bm-blog-article-content [class*="bm-blog-shortcode"] a:not(.btn):hover {
    color: var(--bm-blog-primary, #2fb5d2);
}
