    /* ##########################################################
        Website Application News Custom StyleSheet
    ############################################################# */

    /* ======== News Top Hero Section ======== */
    .filter-row {
        max-width: 1100px;
        margin: 0 auto;
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 30px;
    }

    /* --- Search column --- */
    .search-col {
        flex: 1 1 50%;
        min-width: 0;
        display: flex;
        gap: 12px;
    }

    .search-col input[type="text"] {
        flex: 1;
        min-width: 0;
        padding: 12px 20px;
        border-radius: 999px;
        border: 1px solid #d8d6cc;
        background-color: #fff;
        font-size: 14px;
        color: #555;
        outline: none;
    }

    .search-col input[type="text"]::placeholder {
        color: #9a9890;
    }

    .search-col input[type="text"]:focus {
        border-color: #b7b4a6;
    }

    .clear-btn {
        flex: 0 0 auto;
        padding: 12px 22px;
        border-radius: 999px;
        border: 1px solid #d8d6cc;
        background-color: var(--mint);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: #555;
        cursor: pointer;
        white-space: nowrap;
    }

    .clear-btn:hover {
        background-color: var(--navy);
        color: white;
    }

    /* --- Filter column --- */
    .filter-col {
        flex: 1 1 50%;
        min-width: 0;
        position: relative;
    }

    .filter-col select {
        float: inline-end;
        width: 60%;
        height: 100%;
        padding: 12px 40px 12px 20px;
        border-radius: 999px;
        border: 1px solid #d8d6cc;
        background-color: #fff;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
        color: #6b6a63;
        /* text-transform: uppercase; */
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        outline: none;
    }

    .filter-col select:focus {
        border-color: #b7b4a6;
    }

    .filter-col::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 18px;
        width: 8px;
        height: 8px;
        border-right: 2px solid #6b6a63;
        border-bottom: 2px solid #6b6a63;
        transform: translateY(-70%) rotate(45deg);
        pointer-events: none;
    }

    hr.divider {
        max-width: 1100px;
        margin: 0 auto 8px;
        border: none;
        border-top: 1px solid #ddd;
    }

    #newsResultsSummary{
        max-width: 1100px;
        margin: 0 auto 32px;
        font-size: 13px;
        color: #666;
    }

    .card-grid {
        max-width: 1100px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    @media (max-width: 900px) {
        .card-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .card-grid {
            grid-template-columns: 1fr;
        }

        .search-bar {
            flex-direction: column;
        }
    }

    .card {
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .card-image {
        position: relative;
        height: 200px;
        overflow: hidden;
    }

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .badge {
        /* position: absolute;
        top: 12px;
        left: 12px; */
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #fff;
        text-transform: uppercase;
    }

    .badge-general {
        background-color: #3b4a63;
    }

    .badge-scam {
        background-color: #c1443b;
    }

    .badge-no-licensed {
        background-color: #fa0101;
    }

    .badge-event {
        background-color: #c8792f;
    }

    .card-body {
        padding: 18px 18px 20px;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .card-date {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #8a8f74;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .card-title {
        font-size: 17px;
        font-weight: 700;
        color: #7a1f1f;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .card-excerpt {
        font-size: 13.5px;
        color: #6b6a63;
        line-height: 1.5;
        flex: 1;
        margin-bottom: 16px;
    }

    .card-link {
        font-size: 13px;
        font-weight: 600;
        color: #2f5d8a;
        text-decoration: none;
    }

    .card-link:hover {
        text-decoration: underline;
    }

    .featured-news {
        padding-bottom: 50px;
    }

    /* news detail */
    .article {
        max-width: 620px;
        margin: 0 auto;
    }

    /* --- Badge --- */
    .badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #fff;
        text-transform: uppercase;
        margin-bottom: 16px;
    }

    .badge-general {
        background-color: #3b4a63;
    }

    .badge-scam {
        background-color: #c1443b;
    }

    .badge-no-licensed {
        background-color: #fa0101;
    }

    .badge-event {
        background-color: #c8792f;
    }

    /* --- Title & meta --- */
    .article-title {
        font-family: var(--serif);
        font-size: 34px;
        font-weight: 700;
        line-height: 1.25;
        color: #1e1d18;
        margin-bottom: 14px;
    }

    .article-meta {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #8a8f74;
        text-transform: uppercase;
        margin-bottom: 28px;
    }

    /* --- Hero image --- */
    .article-image {
        width: 100%;
        border-radius: 6px;
        overflow: hidden;
        margin-bottom: 28px;
    }

    .article-image img {
        width: 100%;
        display: block;
        object-fit: cover;
    }

    /* --- Lead paragraph --- */
    .article-lead {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.6;
        color: #1e1d18;
        margin-bottom: 24px;
    }

    /* --- Body (rich text from the Quill editor) ---
       Mirrors the editor's own rules (.ql-editor) so the page looks like what was typed:
       tabs/repeated spaces are kept (pre-wrap), blocks have no extra margins — spacing
       comes from the empty lines (<p><br></p>) the author adds in the editor. */
    .article-body {
        font-size: 15px;
        line-height: 1.75;
        color: #4a4941;
        white-space: pre-wrap;
        tab-size: 4;
        -moz-tab-size: 4;
        overflow-wrap: anywhere;
        word-break: normal;
        min-width: 0;
        max-width: 100%;
    }

    /* `> div` covers older records that were saved with <p> converted to <div> */
    .article-body p,
    .article-body > div,
    .article-body h1,
    .article-body h2,
    .article-body h3,
    .article-body h4,
    .article-body ul,
    .article-body ol,
    .article-body blockquote {
        margin: 0;
        padding: 0;
    }

    .article-body h1,
    .article-body h2,
    .article-body h3,
    .article-body h4 {
        color: #1e1d18;
        font-weight: 700;
        line-height: 1.4;
    }
    /* same relative sizes as the editor */
    .article-body h1 { font-size: 2em; }
    .article-body h2 { font-size: 1.5em; }
    .article-body h3 { font-size: 1.17em; }
    .article-body h4 { font-size: 1em; }

    /* the global `* { margin:0; padding:0 }` reset strips list indents/markers — restore them */
    .article-body ul,
    .article-body ol {
        padding-left: 1.5em;
    }
    .article-body ul { list-style: disc outside; }
    .article-body ol { list-style: decimal outside; }
    .article-body li {
        padding-left: 0.3em;
    }

    .article-body strong, .article-body b { font-weight: 700; color: #1e1d18; }
    .article-body em, .article-body i { font-style: italic; }
    .article-body u { text-decoration: underline; }
    .article-body s { text-decoration: line-through; }
    .article-body a { color: #4f6b1e; text-decoration: underline; }

    .article-body blockquote {
        border-left: 4px solid #ddd9cc;
        padding-left: 16px;
        margin: 5px 0;
        color: #6b6a60;
    }

    .article-body img { max-width: 100%; height: auto; }

    /* Quill alignment / indentation classes */
    .article-body .ql-align-center  { text-align: center; }
    .article-body .ql-align-right   { text-align: right; }
    .article-body .ql-align-justify { text-align: justify; }
    .article-body .ql-indent-1 { padding-left: 3em; }
    .article-body .ql-indent-2 { padding-left: 6em; }
    .article-body .ql-indent-3 { padding-left: 9em; }
    .article-body li.ql-indent-1 { margin-left: 1.5em; padding-left: 0.2em; }
    .article-body li.ql-indent-2 { margin-left: 3em;   padding-left: 0.2em; }
    .article-body li.ql-indent-3 { margin-left: 4.5em; padding-left: 0.2em; }
    .article-body ul li.ql-indent-1 { list-style-type: circle; }
    .article-body ul li.ql-indent-2 { list-style-type: square; }
    .article-body ol li.ql-indent-1 { list-style-type: lower-alpha; }
    .article-body ol li.ql-indent-2 { list-style-type: lower-roman; }

    /* lead (short description) is plain text — keep line breaks the author typed */
    .article-lead {
        white-space: pre-line;
        overflow-wrap: anywhere;
    }

    /* Khmer: stacked vowels/subscripts need more line height, and Georgia has no Khmer glyphs */
    html[lang="km"] .article-title {
        font-family: var(--khmer);
        line-height: 1.5;
    }
    html[lang="km"] .article-lead  { line-height: 1.85; }
    html[lang="km"] .article-body  { line-height: 2; }
    html[lang="km"] .article-body h1,
    html[lang="km"] .article-body h2,
    html[lang="km"] .article-body h3,
    html[lang="km"] .article-body h4 { line-height: 1.7; }

    /* keep wide pasted content (images, tables, code) inside the column */
    .article,
    .article-body > * { min-width: 0; }
    .article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
    .article-body pre   { max-width: 100%; overflow-x: auto; }
    .article-image img  { height: auto; }

    /* --- Divider --- */
    #hrdivider{
        margin-top: 28px;
        margin-bottom: 15px;
    }
    .divider {
        border: none;
        border-top: 1px solid #ddd9cc;
        margin: 40px 0 24px;
    }

    /* --- Related section --- */
    .related-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #8a8f74;
        text-transform: uppercase;
        margin-bottom: 16px;
    }

    .related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .related-card {
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .related-card-image {
        position: relative;
        height: 110px;
        overflow: hidden;
    }

    .related-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .card-image .badge,
    .related-card .badge {
        position: absolute;
        top: 10px;
        left: 10px;
        margin-bottom: 0;
    }

    .related-card-body {
        padding: 14px 16px 18px;
    }

    .related-card-date {
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 0.5px;
        color: #8a8f74;
        text-transform: uppercase;
        margin-bottom: 8px;
    }

    .related-card-title {
        font-size: 14px;
        font-weight: 700;
        color: #7a1f1f;
        line-height: 1.4;
    }

    /* --- Responsive --- */
    @media (max-width: 640px) {
        .filter-row {
            flex-direction: column;
        }

        .filter-col {
            flex: 1 1 auto;
            height: 44px;
        }

        .search-col {
            flex-direction: row;
        }

        .clear-btn {
            padding: 12px 16px;
        }
    }

    @media (max-width: 400px) {
        .search-col {
            flex-direction: column;
        }

        .clear-btn {
            width: 100%;
        }
    }

    
    /* --- Responsive --- */
    @media (max-width: 480px) {
        .article-title { font-size: 26px; }
        .article-lead { font-size: 16px; }
        .article-body { font-size: 14.5px; }
        /* deep indents would squeeze text into a sliver on phones */
        .article-body .ql-indent-2 { padding-left: 4em; }
        .article-body .ql-indent-3 { padding-left: 5em; }
        .related-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    }

    @media (max-width: 360px) {
        .related-grid { grid-template-columns: 1fr; }
    }

    /* --- Khmer: every piece of News content uses the Khmer font ---
       Covers the News list + detail pages (sections marked .news-page), including the cards
       rendered by news.js, form controls, and pasted rich text (!important beats inline
       font-family styles copied from Word/Google Docs). Icon fonts (.ti) are left alone. */
    html[lang="km"] .news-page,
    html[lang="km"] .news-page *:not(.ti):not([class^="ti-"]):not([class*=" ti-"]),
    html[lang="km"] .news-page input::placeholder,
    html[lang="km"] .news-page textarea::placeholder {
        font-family: var(--khmer) !important;
    }
