/* Reorganized from wwwroot/css/news1.css. */


.news-details {
    position: relative;
    display: block;
}


.news-details__left {
    position: relative;
    display: block;
}

/* Keep detail headlines compact across all supported languages. */
html[lang="km"] .news-details .detail-post-title,
html[lang="en"] .news-details .detail-post-title,
html[lang="fr"] .news-details .detail-post-title {
    font-size: clamp(2rem, 2.25vw, 2.125rem);
}

/* Khmer glyphs need more vertical room when long news titles wrap. */
html[lang="km"] .news-details .detail-post-title {
    line-height: 1.45 !important;
}

/* Keep English and French detail headlines at the same spacing. */
html[lang="en"] .news-details .detail-post-title,
html[lang="fr"] .news-details .detail-post-title {
    line-height: 1.32 !important;
}

.sidebar__search {
    position: relative;
    display: block;
    background-color: var(--fr-search-bg);
}

.sidebar__single + .sidebar__single {
    margin-top: 0px;
}

.sidebar__post {
    position: relative;
    display: block;
    padding: 35px 20px 20px;
    background-color: var(--fr-surface-muted);
    overflow: hidden;
    z-index: 1;
}

    .sidebar__post .sidebar__title {
        margin-left: 20px;
    }

.sidebar__title {
    margin: 0;
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--fr-purple);
}

.sidebar__post-list {
    margin: 0;
}

.sidebar__post-list li {
    display: flex;
    align-items: center;
    padding: 5px 20px 5px;
    transition: all 500ms ease;
}

.sidebar__post-image {
    margin-right: 20px;
}

    .sidebar__post-image > img {
        width: 70px;
    }

.sidebar__post-content {
    position: relative;
    top: -3px;
}

    .sidebar__post-content h3 {
        font-size: 18px;
        margin: 0;
        line-height: 26px;
    }

        .sidebar__post-content h3 a {
            color: black;
            transition: all 500ms ease;
            display: block;
            font-size: 13px;
            font-weight: 400;
            text-decoration-line:none;
        }


.sidebar__category {
    position: relative;
    display: block;
    background-color: var(--fr-surface-muted);
    padding: 46px 30px 33px;
    overflow: hidden;
    z-index: 1;

}

.sidebar__category-list {
    margin: 0;
}

    .sidebar__category-list li + li {
        margin-top: 4px;
    }

    .sidebar__category-list li.active a {
        background-color: rgb(255, 255, 255);
        box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.05);
        color: black;
    }

    .sidebar__category-list li a {
        color: gray;
        position: relative;
        transition: all 500ms ease;
        display: block;
        background: none;
        padding: 7px 20px 7px;
        letter-spacing: -0.02em;
    }

.sidebar__search-form {
    position: relative;
}

.news-details__img img {
    width: 100%;
    height:auto;
    object-fit:contain;
}


.responsive-img {
    max-width: 100%;
    height: auto;
}


/* Dark background for Fancybox HTML content */
.fancybox__container .f-html {
    background-color: #000 !important; /* pure black */
    color: #fff !important; /* white text */
}


/* Optional: soften it a bit */
.fancybox__container .f-html {
    background-color: rgba(0, 0, 0, 0.9) !important;
}


.description-paragraph,
.description-paragraph * {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}


.description-paragraph img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


.description-paragraph table {
    width: 100% !important;
    table-layout: fixed;
}


.description-paragraph td,
.description-paragraph th {
    word-break: break-word;
    white-space: normal !important;
}


.news-details__content .ck-content {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-break: anywhere !important;
    max-width: 100%;
}


.news-details__content .ck-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}


.news-details__content .ck-content td,
.news-details__content .ck-content th {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
    padding: 0.5rem;
    border: 1px solid #ddd;
}


.news-details__content .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
