﻿.route {
    display: flex;
    margin: 0 auto;
    column-gap: 4px;
    font-size: 16px;
    line-height: 24px;
}

.route-home,
.route-news {
    color: #718096;
}


.news-detail-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    /*padding: 0 350px;*/
}

.news-detail-header {
    padding-top: 32px;
    background: linear-gradient(180deg, rgba(182, 0, 2, 0.05) 0%, rgba(182, 0, 2, 0.05) 100%);
}


.news-detail-header-content {
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    /*width: 65.2%;*/
    /*margin: 0px 350px;*/
    /*padding: 20px 20px;*/
    /*margin: 0 auto;*/

    background-color: #fff;
}

.news-detail-title {
    min-height: 43px;
    max-height: 43px;
    font-size: 20px;
    font-weight: 600;
    line-height: 29px;
}

.news-detail-time {
    display: flex;
    column-gap: 10px;
    align-items: center;
    /*margin-top: 20px;*/

    font-size: 14px;
    line-height: 20px;
}

    .news-detail-time img {
        width: 16px;
        height: 16px;
    }

.news-detail-wrapper,
.news-detail-content {
    display: flex;
    flex-direction: column;
}

    .news-detail-wrapper,
    .news-detail-content p,
    .news-detail-first-content p {
        font-size: 14px !important;
    }

.news-detail-first-content,
.news-detail-content-title-small,
.news-detail-content-list li {
    font-size: 14px;
    color: #1A202C;
}

.news-detail-second-content {
    display: flex;
    flex-direction: column;
}

.news-detail-wrapper {
    row-gap: 20px;
}

.news-detail-content {
    row-gap: 16px;
}

.news-detail--image {
    width: 100%;
    padding: 20px;
    margin: 0;
    background-color: #F7F8FC;
}

.news-detail--image {
    width: 100%;
    object-fit: contain;
}

    .news-detail--image img {
        width: 100%;
        object-fit: contain;
    }

.news-detail-content-title {
    padding-bottom: 10px;
    border-bottom: 1px solid #E4E4E4;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.news-detail-content-list {
    list-style: initial;
    padding-left: 15px;
}

    .news-detail-content-list.padding-left {
        padding-left: 50px;
    }

.interact,
.interact-right,
.interact-left,
.interact-wrapper {
    display: flex;
    align-items: center;
}

.interact {
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #E4E4E4;
    border-top: 1px solid #E4E4E4;
}

    .interact span a {
        cursor: pointer;
    }

    .interact img {
        width: 18px;
        height: 18px;
    }

    .interact span {
        font-size: 14px;
        line-height: 20px;
        cursor: pointer;
        white-space: nowrap;
    }

.interact-left {
    column-gap: 16px;
}

.interact-wrapper,
.interact-right {
    column-gap: 10px;
}

.news-detail-comments {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin-top: 20px;
}

.news-detail-comments-title {
    font-size: 20px;
    font-weight: 700;
}

.news-detail-comments-form {
    display: flex;
    align-items: flex-start;
    column-gap: 20px;
}

.news-detail-comments-form-left {
    flex: 1;
    display: flex;
    min-height: 64px;
    padding: 16px;
    column-gap: 10px;
    border-radius: 4px;
    border: 1px solid #D7D7D7;
}

    .news-detail-comments-form-left img {
        width: 24px;
        height: 24px;
        object-fit: cover;
    }

    .news-detail-comments-form-left textarea {
        min-height: 6px;
        border: none;
        padding: 0 10px 10px 0;
        background-color: transparent;
        box-shadow: none;
        font-size: 14px;
        font-weight: 500;
        line-height: 20px;
    }

.news-detail-comments-btn {
    align-self: flex-start;
    padding: 10px 28px;
    background-color: transparent;
    border-radius: 4px;
    border: 1px solid #003B8E;
    color: #003B8E;
    font-size: 16px;
    line-height: 162.023%;
    transition: all linear 0.2s;
}

    .news-detail-comments-btn:hover {
        background-color: #003B8E;
        color: #fff;
    }

.news-detail-comments-list {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.news-detail-comments-item {
    display: flex;
    column-gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D8D4CE;
}

.news-detail-comments-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.news-detail-comments-content {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
}

.news-detail-comments-info {
    display: flex;
    column-gap: 10px;
}

.news-detail-comments-info {
    font-size: 14px;
}

    .news-detail-comments-info span {
        font-weight: 700;
        line-height: 20px;
    }

.news-detail-comments-mess {
    font-size: 14px;
    line-height: 20px;
}

.interact-comment,
.interact-wrapper {
    display: flex;
    align-items: center;
}

.interact-comment {
    column-gap: 16px;
}

.interact-wrapper {
    column-gap: 4px;
}

    .interact-wrapper img {
        cursor: pointer;
        width: 18px;
        height: 18px;
    }

.pagination {
    justify-content: flex-start;
}

.news-detail-other {
    padding: 40px 120px;
    background: #F7F8FC;
}

.news-detail-other-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-detail-other-wrapper {
    padding: 20px;
    border-top: 1px solid #003B8E;
    border-radius: 4px;
    border: 1px solid #E4E4E4;
    margin-bottom: 20px;
    border-top-color: var(--blue-alias-brand);
    background-color: #fff;
    overflow: hidden;
}

.content-header {
    margin-left: -20px;
    margin-top: -20px;
    border-radius: 4px 0px 0px 4px; /* TL: 10px, TR: 20px, BR: 30px, BL: 40px */

    clip-path: polygon(0 0, 100% 0%, 95% 100%, 0% 100%);
}

.news-detail-other-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.news-detail-other-all-btn {
    display: flex;
    align-items: center;
    column-gap: 10px;
    font-size: 16px;
    line-height: 26px
}

.news-detail-other-list {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

/*bottom*/
/*.news-detail-other-item,
.news-detail-info {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    width:293px;
    height:364px;
}*/

/* Right side */
/*.news-detail-other-item,
.news-detail-info {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    width: 80px;
    height: 80px;
}

*/
.news-detail-other-item {
    display: flex;
    gap: 8px;
}

.news-detail-image {
    border-radius: 4px;
}
/*
.news-detail-other-item img {
    margin-top: 10px;
    margin-right: 10px;
  
    width:80px;
    height: 80px;
}*/
.news-detail-other-item-image {
    width: 100px;
}

    .news-detail-other-item-image .photo {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: center;
        border-radius: 4px;
    }

.news-detail-info {
    flex: 1;
}

.interact-other img {
    margin: auto;
}


.news-detail-title,
.news-detail-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-detail-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 21px;
}

.news-detail-other-time {
    font-size: 14px;
    line-height: 20px;
}

.news-detail-description {
    font-size: 14px;
    line-height: 20px;
}

.interact-other,
.interact-like,
.interact-views {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 4px;
}

    .interact-other img {
        width: 18px;
        height: 18px;
    }

    .interact-other span {
        font-size: 14px;
        line-height: 20px;
    }

.news-detail-content p img {
    width: 100%;
    height: auto;
}

@media only screen and (max-width: 472.98px) {
    .interact {
        flex-direction: column;
        row-gap: 10px;
    }
}

@media only screen and (max-width: 570px) {
    .route {
        padding: 10px;
        flex-wrap: wrap; /* cho phép xuống dòng trên mobile */
        gap: 4px;
    }

    .news-detail--image img {
        /* width: 100%; */
    }

    .news-detail-other-wrapper {
        margin-bottom: 10px;
    }

    .news-detail-comments-form {
        flex-direction: column;
        row-gap: 20px;
    }

    .news-detail-comments-form-left {
        width: 100%;
        min-height: 150px;
    }
}

@media only screen and (max-width: 768px) {
    .route {
        padding: 10px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .news-detail-other-wrapper {
        margin-bottom: 10px;
    }

    .news-detail-wrapper {
        width: 100%;
    }
}

@media only screen and (max-width: 991.98px) {
    .post-main {
        flex-direction: column;
    }

    .pagination {
        justify-content: center;
    }
}

/*@media only screen and (max-width: 1200px) {
    .route {
        padding: 0;
        flex-wrap: wrap;*/ /* cho phép xuống dòng trên mobile */
/*gap: 4px;
    }
}*/

@media only screen and (max-width: 1399.98px) {
    .news-detail-other-header {
        flex-direction: column;
        align-items: flex-end;
        row-gap: 10px;
    }

    .news-detail-other-all-btn {
        justify-self: flex-start;
    }

    .news-detail-other-item {
        flex-direction: column;
    }

    .news-detail-other-item-image {
        width: 100%;
    }

        .news-detail-other-item-image .photo {
            margin-top: 0;
            margin-right: 0;
            width: 100%;
        }
}

@media only screen and (max-width: 1199.98px) {
    .interact-other {
        justify-content: flex-start;
    }
}

/*@media only screen and (max-width: 1400px) {
    .route {
        padding: 0;
        flex-wrap: wrap;*/ /* cho phép xuống dòng trên mobile */
/*gap: 4px;
    }
}*/

/* News Reviews Section */
.news-reviews-content {
    padding: 20px 20px 0 0;
    border-radius: 4px;
    background-color: #fff;
}

    .news-reviews-content:not(:first-child) {
        margin-top: 20px;
    }

.news-reviews-title {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.news-reviews-summary {
    display: flex;
    column-gap: 20px;
}

.news-reviews-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 10px;
    padding: 20px 30px;
    border-radius: 2px;
    background-color: #FBF2F2;
}

.news-reviews-left-text {
    font-size: 12px;
}

.news-reviews-rating-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: normal;
}

.news-reviews-right {
    flex: 4;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.news-reviews-progress {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.news-stars {
    white-space: nowrap;
}

.news-reviews-progress-bar {
    flex: 1;
    height: 10px;
    border-radius: 20px;
    background-color: #D8D8D8;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

    .news-reviews-progress-bar::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: var(--progress-width, 0%);
        background-color: #D8D8D8;
        border-radius: 20px;
        transition: width 0.3s ease, background-color 0.3s ease;
    }

    .news-reviews-progress-bar.reviews-progress-active::after {
        background-color: #003B8E;
    }

.news-reviews-percent {
    min-width: 36.52px;
    padding: 5px;
    border-radius: 2px;
    background-color: #F5F5F3;
    margin-left: auto;
    text-align: center;
}

.news-review-list {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    margin: 30px 0 30px 0;
}

.news-review-item {
    display: flex;
    column-gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #D8D4CE;
}

.news-review-avatar {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
}

    .news-review-avatar img {
        width: 100%;
        object-fit: cover;
    }

.news-review-info {
    display: flex;
    flex-direction: column;
    row-gap: 6px;
    width: 100%;
}

.news-review-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-review-info-left {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

    .news-review-info-left span {
        font-size: 14px;
        font-weight: 700;
        line-height: 20px;
        color: #4A5568;
    }

    .news-review-info-left time {
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
    }

.news-review-info-right {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.news-review-info-rating {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.news-review-info-bottom {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.news-review-btn {
    background: var(--color-primary);
    font-weight: 500;
}

/* Responsive Styles for News Reviews */
@media (max-width: 768px) {
    .news-reviews-content {
        padding: 15px;
    }

    .news-reviews-title {
        font-size: 18px;
    }

    .news-reviews-summary {
        flex-direction: column;
        row-gap: 20px;
    }

    .news-reviews-left {
        padding: 15px 20px;
    }

    .news-review-item {
        flex-direction: column;
    }

    .news-review-avatar {
        width: 64px;
        height: 64px;
    }

    .news-review-info-top {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 8px;
    }

    .news-review-info-left {
        flex-wrap: wrap;
        column-gap: 10px;
    }
}

@media (max-width: 576px) {
    .news-reviews-title {
        font-size: 16px;
    }

    .news-reviews-content {
        padding: 12px;
    }

    .news-reviews-rating-number {
        font-size: 24px;
    }

    .news-reviews-left {
        padding: 12px 15px;
    }

    .news-stars svg {
        width: 12px;
        height: 12px;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-post-relate-item {
    opacity: 1;
}

.skeleton-post-relate-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.skeleton-post-relate-title {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-post-relate-title-short {
    width: 70%;
    margin-bottom: 10px;
}

.skeleton-post-relate-time {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    width: 50%;
    margin-bottom: 8px;
}

.skeleton-post-relate-interact {
    height: 16px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    width: 80px;
}

.interact-other .skeleton-post-relate-interact:first-child {
    margin-right: 16px;
}

@media (max-width: 1399.98px) {
    .skeleton-post-relate-image {
        width: 100%;
    }
}

.post-relate-empty-message,
.post-relate-error-message {
    padding: 20px;
    text-align: center;
    color: #718096;
    font-size: 14px;
    line-height: 20px;
    margin: 10px 0;
    background-color: #F7F8FC;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .post-relate-empty-message,
    .post-relate-error-message {
        padding: 15px;
        font-size: 13px;
    }
}
