    .news-log-details-dl {
        display: grid;
        grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr);
        gap: 0.5rem 1rem;
    }

    .news-log-details-dl dt {
        color: #4b5563;
        font-weight: 600;
        font-size: 0.8125rem;
        min-width: 0;
    }

    .news-log-details-dl dd {
        margin: 0;
        font-size: 0.8125rem;
        color: #111827;
        word-break: break-word;
        min-width: 0;
    }

    .news-log-nested-box {
        border: 1px solid #e5e7eb;
        background: #f9fafb;
        border-radius: 0.5rem;
        padding: 0.5rem 0.625rem;
        overflow-x: auto;
    }

    .news-log-html-rendered-value {
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        background: #fff;
        padding: 0.625rem 0.75rem;
        overflow: auto;
        max-height: 30rem;
    }

    .news-log-image-rendered-value img {
        max-width: 100%;
        max-height: 14rem;
        width: auto;
        height: auto;
        object-fit: cover;
        border-radius: 0.5rem;
        border: 1px solid #e5e7eb;
        background: #fff;
    }

    .news-log-split-grid>.kt-card {
        min-width: 0;
        border: 1px solid #e5e7eb;
        border-radius: 0.85rem;
        overflow: hidden;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .news-log-split-grid .kt-card-body {
        overflow-x: auto;
        padding-top: 1rem;
        background: #fff;
    }

    .news-log-old-card .kt-card-header {
        background: linear-gradient(90deg, #fff1f2 0%, #ffffff 70%);
        border-bottom: 1px solid #fecdd3;
    }

    .news-log-new-card .kt-card-header {
        background: linear-gradient(90deg, #ecfeff 0%, #ffffff 70%);
        border-bottom: 1px solid #bae6fd;
    }

    .news-log-old-card .kt-card-title,
    .news-log-new-card .kt-card-title {
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

    .news-log-old-card .kt-card-title::before,
    .news-log-new-card .kt-card-title::before {
        content: "";
        width: 0.6rem;
        height: 0.6rem;
        border-radius: 999px;
        display: inline-block;
    }

    .news-log-old-card .kt-card-title::before {
        background: #f43f5e;
        box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.16);
    }

    .news-log-new-card .kt-card-title::before {
        background: #06b6d4;
        box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
    }

    .news-log-values p {
        margin: 0 0 0.55rem 0;
        padding: 0.35rem 0.45rem;
        border-radius: 0.4rem;
        line-height: 1.45;
        font-size: 0.84rem;
        word-break: break-word;
    }

    .news-log-values p strong {
        color: #334155;
        margin-right: 0.35rem;
    }

    .news-log-old-card .news-log-values p {
        background: rgba(244, 63, 94, 0.04);
    }

    .news-log-new-card .news-log-values p {
        background: rgba(6, 182, 212, 0.04);
    }
    .tt-inline-news-embed { border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb; max-width: 100%; margin: 1rem 0; }
    .tt-inline-news-embed__link { display: flex; align-items: stretch; gap: 12px; text-decoration: none; color: inherit; padding: 10px; }
    .tt-inline-news-embed__media { flex: 0 0 120px; width: 120px; height: 120px; }
    .tt-inline-news-embed__img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
    .tt-inline-news-embed__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
    .tt-inline-news-embed__title { font-weight: 700; font-size: 15px; line-height: 1.35; color: #111827; }
    .tt-inline-news-embed__time { font-size: 13px; color: #6b7280; }

    .news-list-card .news-dt-outer {
        position: relative;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    /* Grid child for DataTables layout; no horizontal scroll */
    #news_datatable_wrapper .news-table-hscroll {
        grid-area: table;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
        border: 1px solid #e5e7eb;
        border-radius: 0.625rem;
        background: #fff;
    }

    #news_datatable_wrapper .news-table-hscroll table.dataTable {
        grid-area: unset !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        margin: 0 !important;
        table-layout: fixed !important;
    }

    #news_datatable_wrapper .news-table-hscroll table.dataTable thead th {
        white-space: nowrap;
        line-height: 1.2;
        vertical-align: middle;
        box-sizing: border-box;
        font-size: 0.72rem;
        padding: 0.6rem 0.5rem !important;
    }

    #news_datatable_wrapper .news-table-hscroll table.dataTable tbody td {
        vertical-align: middle;
        overflow: hidden;
        padding: 0.55rem 0.5rem !important;
        font-size: 0.8125rem;
        line-height: 1.35;
    }

    /* Column widths (colgroup + cells stay in sync) */
    #news_datatable_wrapper .news-table-hscroll col.news-dt-col-id { width: 4.25rem; }
    #news_datatable_wrapper .news-table-hscroll col.news-dt-col-thumb { width: 3.5rem; }
    #news_datatable_wrapper .news-table-hscroll col.news-dt-col-title { width: 36%; }
    #news_datatable_wrapper .news-table-hscroll col.news-dt-col-category { width: 12%; }
    #news_datatable_wrapper .news-table-hscroll col.news-dt-col-reporter { width: 16%; }
    #news_datatable_wrapper .news-table-hscroll col.news-dt-col-publish { width: 8.5rem; }
    #news_datatable_wrapper .news-table-hscroll col.news-dt-col-golive { width: 4.5rem; }
    #news_datatable_wrapper .news-table-hscroll col.news-dt-col-actions { width: 6.75rem; }

    #news_datatable_wrapper .news-dt-pending .news-table-hscroll col.news-dt-col-title { width: 32%; }
    #news_datatable_wrapper .news-dt-pending .news-table-hscroll col.news-dt-col-category { width: 11%; }
    #news_datatable_wrapper .news-dt-pending .news-table-hscroll col.news-dt-col-reporter { width: 14%; }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-id {
        white-space: nowrap !important;
        word-break: keep-all !important;
        text-align: center;
        font-variant-numeric: tabular-nums;
        font-size: 0.75rem;
        color: #4b5563;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-thumb {
        text-align: center;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-title {
        white-space: normal;
        word-break: break-word;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-category {
        white-space: normal;
        word-break: keep-all;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-reporter {
        white-space: normal;
        word-break: break-word;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-publish {
        white-space: nowrap;
        text-align: center;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-golive {
        white-space: nowrap;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-actions {
        white-space: nowrap;
        overflow: visible;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }

    #news_datatable_wrapper .news-table-hscroll table.dataTable tbody td.news-dt-cell-thumb img {
        width: 2.5rem !important;
        height: 2.5rem !important;
        margin: 0 auto;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-chip-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem;
        align-items: flex-start;
        max-width: 100%;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-chip-row .news-dt-chip {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.2;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-title-link {
        display: block;
        text-decoration: none;
        color: #1d4ed8;
        max-width: 100%;
        transition: color 0.15s ease;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-title-link .news-dt-title-inner {
        color: #1d4ed8;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-title-link:hover {
        color: #1e3a8a;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-title-link:hover .news-dt-title-inner {
        color: #1e3a8a;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-title-link:focus-visible {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
        border-radius: 0.25rem;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-title-inner {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.8125rem;
        line-height: 1.4;
        word-break: break-word;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-news-alert {
        margin-top: 0.3rem;
        padding-top: 0.25rem;
        border-top: 1px solid #dc2626;
        color: #dc2626;
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0.01em;
        text-decoration: none;
        white-space: pre-wrap;
        word-break: break-word;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-title-link .news-dt-news-alert,
    #news_datatable_wrapper .news-table-hscroll .news-dt-title-link:hover .news-dt-news-alert {
        color: #dc2626;
        text-decoration: none;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-reporter {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
        font-size: 0.78rem;
        color: #374151;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-status-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: 0.68rem;
        padding: 0.2rem 0.45rem;
        line-height: 1.15;
    }

    #news_datatable_wrapper .news-table-hscroll .news-dt-cell-actions .inline-flex {
        justify-content: center;
        gap: 0.2rem;
    }

    .news-thumb-library-card {
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: #fafafa;
    }

    .news-thumb-preview {
        width: 100%;
        max-width: 190px;
        height: 110px;
        border-radius: 0.5rem;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border: 1px solid #e5e7eb;
        margin: 0 auto 0.75rem;
    }

    /* Keep SweetAlert above custom live-update modals */
    .swal2-container {
        z-index: 100200 !important;
    }

    #news_tags + .select2-container .select2-selection--multiple {
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        min-height: 42px;
        padding: 4px 6px;
    }

    #news_tags + .select2-container .select2-search__field {
        margin-top: 3px !important;
    }

    #news_tags + .select2-container .select2-selection__choice {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1d4ed8;
        border-radius: 999px;
        padding: 2px 10px;
        font-size: 12px;
    }

    #news_location_division + .select2-container .select2-selection--single,
    #news_location_district + .select2-container .select2-selection--single,
    #news_location_upazila + .select2-container .select2-selection--single {
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        min-height: 42px;
        padding: 4px 8px;
    }

    #news_location_division + .select2-container .select2-search__field,
    #news_location_district + .select2-container .select2-search__field,
    #news_location_upazila + .select2-container .select2-search__field {
        margin-top: 4px !important;
    }

    .news-location-cascade {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        width: 100%;
    }

    .news-location-cascade > .min-w-0 {
        min-width: 0;
    }

    .news-location-cascade .select2-container {
        width: 100% !important;
    }

    @media (max-width: 767px) {
        .news-location-cascade {
            grid-template-columns: 1fr;
        }
    }

    .news-view-shell {
        max-width: 1200px;
        margin: 0 auto;
    }

    .news-view-hero {
        position: relative;
        border-radius: 1rem;
        overflow: hidden;
        background: linear-gradient(135deg, #1e293b 0%, #334155 45%, #475569 100%);
        min-height: 11rem;
    }

    .news-view-hero img {
        width: 100%;
        height: 14rem;
        object-fit: cover;
        display: block;
    }

    .news-view-hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.2) 55%, transparent 100%);
        pointer-events: none;
    }

    .news-view-meta-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.02em;
    }

    .news-view-content {
        font-size: 0.9375rem;
        line-height: 1.7;
        color: #374151;
    }

    .news-view-content img {
        max-width: 100%;
        height: auto;
        border-radius: 0.5rem;
    }

    .news-view-content figure.image {
        display: block;
        max-width: 100%;
        margin: 1.25rem 0;
    }

    .news-view-content figure.image img {
        display: block;
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .news-view-content figure.image figcaption {
        margin-bottom: 0.75rem;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid #e5e7eb;
        font-size: 0.875rem;
        line-height: 1.45;
        color: #6b7280;
        text-align: left;
    }

    .news-view-content figure.align-left {
        float: left;
        margin: 0 1rem 0.75rem 0;
        max-width: min(100%, 420px);
    }

    .news-view-content figure.align-right {
        float: right;
        margin: 0 0 0.75rem 1rem;
        max-width: min(100%, 420px);
    }

    .news-view-content h1,
    .news-view-content h2,
    .news-view-content h3 {
        color: #111827;
        margin-top: 1.25em;
        margin-bottom: 0.5em;
    }

    .news-view-content p {
        margin-bottom: 0.9em;
    }

    .news-view-content a {
        color: #2563eb;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    /* Inline related-news cards inserted from the editor (class prefix: tt-inline-news-embed) */
    .news-view-content .tt-inline-news-embed {
        border: 1px solid #e5e7eb;
        border-radius: 0.625rem;
        background: #f9fafb;
        max-width: 100%;
        margin: 1.25rem 0;
    }

    .news-view-content .tt-inline-news-embed__link {
        display: flex;
        align-items: stretch;
        gap: 0.75rem;
        text-decoration: none;
        color: inherit;
        padding: 0.65rem 0.75rem;
    }

    .news-view-content .tt-inline-news-embed__link:hover .tt-inline-news-embed__title {
        color: #1d4ed8;
    }

    .news-view-content .tt-inline-news-embed__media {
        flex: 0 0 7.5rem;
        width: 7.5rem;
        height: 7.5rem;
    }

    .news-view-content .tt-inline-news-embed__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.5rem;
        display: block;
    }

    .news-view-content .tt-inline-news-embed__text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        justify-content: center;
    }

    .news-view-content .tt-inline-news-embed__title {
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.35;
        color: #111827;
    }

    .news-view-content .tt-inline-news-embed__time {
        font-size: 0.8125rem;
        color: #6b7280;
    }

    .news-view-sidebar-card {
        border-radius: 0.875rem;
        border: 1px solid #e5e7eb;
        background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .news-view-dl dt {
        font-size: 0.6875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #9ca3af;
    }

    .news-view-dl dd {
        font-size: 0.875rem;
        color: #1f2937;
        margin-bottom: 0.85rem;
    }

    .news-view-chip {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.65rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 500;
        margin: 0.2rem 0.35rem 0.2rem 0;
    }

    .news-layout-main {
        min-width: 0;
    }

    .news-layout-side {
        min-width: 0;
    }

    @media (min-width: 1280px) {
        .news-layout-side .kt-card {
            position: sticky;
            top: 1rem;
        }
    }

    /* Admin panel mobile responsiveness */
    .admin-layout {
        --sidebar-width: 280px;
        --admin-header-height: 3.5rem;
    }

    #sidebar {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    #sidebar_header,
    #sidebar_footer {
        flex: 0 0 auto;
    }

    #sidebar_menu {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-behavior: smooth;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .admin-layout .admin-main-panel {
        min-width: 0;
    }

    @media (min-width: 1024px) {
        .admin-layout .admin-main-panel {
            margin-inline-start: calc(var(--sidebar-width) + 5px);
        }
    }

    .admin-layout .admin-mobile-header {
        height: var(--admin-header-height);
        background-color: var(--background, #fff);
    }

    @media (max-width: 1023px) {
        .admin-layout #scrollable_content.admin-scrollable-content {
            overflow: visible !important;
        }

        .admin-layout .admin-main-panel,
        .admin-layout .admin-page-content,
        .admin-layout .kt-card,
        .admin-layout .kt-card-body {
            position: relative;
            z-index: 0;
        }

        .admin-layout .select2-container--open {
            z-index: 1051 !important;
        }

        .admin-layout .select2-dropdown {
            z-index: 1051 !important;
        }

        #sidebar {
            z-index: 1200 !important;
            width: min(var(--sidebar-width), 88vw);
            max-width: 88vw;
            height: 100vh;
            max-height: 100vh;
        }

        .kt-drawer-backdrop {
            z-index: 1190 !important;
        }

        #sidebar #sidebar_menu {
            min-height: 0;
            flex: 1 1 auto;
            margin-top: 0.75rem;
            margin-bottom: 0.75rem;
        }

        #sidebar [data-kt-scrollable] {
            height: auto !important;
            max-height: calc(100vh - 11.5rem);
        }

        .admin-layout .kt-container-fixed,
        .admin-layout .admin-page-content.kt-container-fixed {
            padding-inline: 0.875rem;
        }

        .admin-layout .kt-card-header,
        .admin-layout .kt-card-body {
            padding-inline: 1rem;
        }

        .admin-layout .kt-card-header {
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .admin-layout .kt-form-item .kt-input,
        .admin-layout .kt-form-item .kt-select,
        .admin-layout .kt-form-item textarea,
        .admin-layout .kt-form-item input[type="text"],
        .admin-layout .kt-form-item input[type="email"],
        .admin-layout .kt-form-item input[type="password"],
        .admin-layout .kt-form-item input[type="number"],
        .admin-layout .kt-form-item input[type="url"],
        .admin-layout .kt-form-item input[type="date"],
        .admin-layout .kt-form-item input[type="datetime-local"] {
            width: 100%;
        }

        .admin-layout .flex.items-center.justify-between.flex-wrap.gap-3,
        .admin-layout .flex.items-center.justify-between.gap-3 {
            align-items: flex-start;
        }

        .admin-layout .category-table-wrap,
        .admin-layout .dataTables_wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .admin-layout .category-table-wrap table.dataTable,
        .admin-layout .dataTables_wrapper table.dataTable {
            min-width: 40rem;
        }

        #news_datatable_wrapper .news-table-hscroll {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        #news_datatable_wrapper .news-table-hscroll table.dataTable {
            min-width: 45rem;
        }

        .admin-layout #success-toast,
        .admin-layout #error-toast {
            left: 0.75rem;
            right: 0.75rem;
            top: 0.75rem;
        }

        .admin-layout #success-toast > div,
        .admin-layout #error-toast > div {
            min-width: 0;
            width: 100%;
        }
    }

    @media (max-width: 639px) {
        .admin-layout .kt-btn {
            min-height: 2.5rem;
        }

        .admin-layout .flex.items-center.gap-2:has(.kt-btn),
        .admin-layout .flex.items-center.gap-3:has(.kt-btn) {
            flex-wrap: wrap;
        }

        .admin-layout .news-log-split-grid {
            grid-template-columns: 1fr !important;
        }

        .admin-layout .news-log-details-dl {
            grid-template-columns: 1fr;
        }
    }


