.line-height-1-3 {
    line-height: 1.3 !important;
}

/* ── Blog Card Image Fix (Mobile) ─────────────────────────── */
/* Featured card (style-2) */
.dz-card.style-2 .dz-media {
    height: 260px;
    overflow: hidden;
}

.dz-card.style-2 .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Side cards (style-3) */
.dz-card.style-3 .dz-media {
    overflow: hidden;
    flex-shrink: 0;
}

.dz-card.style-3 .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Grid cards (style-1) */
.dz-card.style-1 .dz-media {
    height: 220px;
    overflow: hidden;
}

.dz-card.style-1 .dz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile overrides */
@media (max-width: 767px) {
    .dz-card.style-2 .dz-media {
        height: 220px;
    }

    .dz-card.style-3 {
        flex-direction: column !important;
    }

    .dz-card.style-3 .dz-media {
        width: 100% !important;
        height: 180px;
    }

    .dz-card.style-1 .dz-media {
        height: 190px;
    }
}

/* ── Blog Post Page — Mobile Horizontal Overflow Fix ─────── */

/* Prevent the entire page from overflowing */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.search-result-item .res-img img {
    border-radius: 10px;
}

/* All editor-generated content must stay inside the box */
.dz-post-text.style-1,
.dz-post-text.style-1 * {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

/* Images inside blog content */
.dz-post-text.style-1 img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Tables inside blog content — make them scrollable */
.dz-post-text.style-1 table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
}

/* Pre / code blocks */
.dz-post-text.style-1 pre,
.dz-post-text.style-1 code {
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 100%;
}

/* Iframes / embeds */
.dz-post-text.style-1 iframe,
.dz-post-text.style-1 video,
.dz-post-text.style-1 embed,
.editor-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 767px) {

    /* Sidebar on mobile goes below content — no overflow */
    .dz-custom-sticky-sidebar {
        margin-top: 0 !important;
    }

    /* Author card flex wrap on small screens */
    .dz-author-profile.style-1 {
        flex-wrap: wrap;
    }

    /* Related articles card image height on mobile */
    .dz-card.style-1.m-t70 {
        margin-top: 0 !important;
    }
}

/* Dark Theme Overrides for Blog Page elements */
[data-theme-version=dark] .dz-author-profile,
[data-theme-version=dark] .widget.style-1,
[data-theme-version=dark] .floating-share-widget .share-icon {
    background-color: #121824 !important;
    border-color: #1e293b !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

[data-theme-version=dark] .dz-author-profile h4,
[data-theme-version=dark] .widget-title,
[data-theme-version=dark] .popular-post-item .title {
    color: #f1f5f9 !important;
}

[data-theme-version=dark] .popular-post-item:hover {
    background-color: #1e293b !important;
}

[data-theme-version=dark] .dz-post-text {
    color: #cbd5e1 !important;
}

[data-theme-version=dark] .dz-post-text h1,
[data-theme-version=dark] .dz-post-text h2,
[data-theme-version=dark] .dz-post-text h3,
[data-theme-version=dark] .dz-post-text h4,
[data-theme-version=dark] .dz-post-text h5,
[data-theme-version=dark] .dz-post-text h6,
[data-theme-version=dark] .dz-post-text strong {
    color: #f1f5f9 !important;
}

[data-theme-version=dark] .breadcrumb-wrapper .text-dark {
    color: #f1f5f9 !important;
}