/* hero */
.newsdetail_hero{
    position: relative;
}
.newsdetail_hero_txt{
    position: absolute;
    color: #fff;
    z-index: 1;
    top: 50%;
    left: 50%;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}
.newsdetail_content_thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media screen and (max-width:767px) {
    .newsdetail_hero_img {
        aspect-ratio: 440/213;
        img{
            object-fit: unset;
        }
    }
}
/* content */
.newsdetail_content{
    padding-top: 5.5rem;
    padding-bottom: 6rem;
}
.newsdetail_content_time{
    color: #A6CE39;
}
.newsdetail_content_inner_img_explain{
    font-style: italic;
    margin-top: -3rem;
    margin-bottom: 6rem;
}
.newsdetail_content_inner_img{
    margin-top: 4rem;
}
.newsdetail_content_inner_img_inner{
    margin-bottom: 5rem;
}
.newsdetail_content_title{
    color: black;
    max-width: 140rem;
    margin-bottom: 1rem;
}
.newsdetail_other_item_img {
    aspect-ratio: 470 / 251;
    overflow: hidden;
    img {
        transition: transform .4s ease;
        ;
    }
}
.newsdetail_content_inner {
    color: #555555;
    * {
        max-width: 100%;
    }
    img {
        margin-bottom: .8rem;
        width:100%;
    }
    .wp-caption {
        text-align: center;
        margin-block: 4rem;
        margin-inline:auto;
        width:100% !important;
        p {
            color: #898181;
        }
    }
}
.newsdetail_content_time{
    background-color: #F5F5F5;
    border-radius: .6rem;
    padding-inline: 1.5rem;
    width: max-content;
    margin-bottom: 2rem;
}
.newsdetail_content_img{
    margin-bottom: 4rem;
}
.newsdetail_content_inner_des, .newsdetail_content_inner_title{
    margin-bottom: 1rem;
}
.newsdetail_content_share{
    border-top: 1px solid #A6CE39;
    width: 100%;
    display: flex;
    padding-top: 1.5rem;
    justify-content: right;
    margin-top: 4rem;
}
.newsdetail_content_share_inner{
    display: flex;
    align-items: center;
    gap: 1.6rem;
     &:hover {
         .newsdetail_content_share_icon
         {
            background-color: #A6CE39;
            &:after {
                opacity: 0;
                transform: scale(1.5);
            }
        }
    }
}
.newsdetail_content_share_icon{
    width:3.8rem;
    background-color: #014129;
    transition: .4s ease background-color;
    position: relative;
    border-radius: 50%;
    img {
        position: relative;
        z-index: 2;
    }
    &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: #014129;
        opacity: 1;
        transition: opacity .4s ease, transform .4s ease;
    }
 
}
.newsdetail_content_share_inner{
    color: #014129;
    text-decoration: none;
    &:hover{
        color: inherit;
    }
}
@media screen and (max-width:991px) {
    .newsdetail_content_inner_img_explain {
        margin-bottom: 4rem;
    }
}
@media screen and (max-width:767px) {
    .newsdetail_content{
        padding-top: 4.5rem;
        padding-bottom: 10rem;
    }
    .newsdetail_content_title {
        margin-bottom: 1.5rem;
        max-width: 38rem;
    }
    .newsdetail_content_time{
        padding-inline: 2rem;
    }
    .newsdetail_content_img {
        margin-bottom: 3rem;
    }
    .newsdetail_content_inner_img{
        margin-top: 3rem;
    }
    .newsdetail_content_inner_img_explain{
        margin-bottom: 3rem;
    }
    .newsdetail_content_inner_img_inner {
        margin-bottom: 3rem;
    }
}
/* orther */
.newsdetail_other{
    padding-bottom: 8.5rem;
}
.newsdetail_other_title{
    margin-bottom: 2.5rem;
}
.newsdetail_other_item{
    display: flex;
    flex-direction: column;
    grid-column: auto;
    text-decoration: none;
    color: #5C5C5C;
    position: relative;
       &:hover {
        color: #5C5C5C;
        .newsdetail_other_item_img img {
            transform: scale(1.15);
        }
        .newsdetail_other_item_detail {
            transform: translateX(1rem);
        }
    }
}
.newsdetail_other_inner{
    grid-template-columns: repeat(3, 1fr);
    row-gap: 8rem;
    margin-bottom: 9rem;
}
.newsdetail_other_item_txt{
    flex: 1;
    padding: 3rem 3.5rem 4.5rem;
    background-color: #F5F5F5;
}
.newsdetail_other_item_title{
    margin-bottom: 2.5rem;
}
.newsdetail_other_item_des{
    display: -webkit-box;
    -webkit-line-clamp: 3;       /* Số dòng tối đa */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em;
}
.newsdetail_other_paging_num{
    padding-inline: 1rem;
    display: block;
    max-width: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #A6CE39;
    border: 1px solid #A6CE39;
    transition: all .3s ease;
    &.active{
        color: #fff;
        background-color: #014129;
        border: none;
    }
    &:hover{
        color: #fff;
        background-color: #014129;
        border: none;
    }
}
.newsdetail_other_paging{
    display: flex;
    justify-content: center;
    gap: 1.4rem;
}
.newsdetail_other_paging_prev, .newsdetail_other_paging_next{
    display: flex;
    justify-content: center;
    align-items: center;
    img{
        width: .7rem;
    }
}
.newsdetail_other_paging_prev2, .newsdetail_other_paging_next2{
    display: flex;
    justify-content: center;
    align-items: center;
    img{
        width: 1.1rem;
    }
}
.newsdetail_other_paging_more{
    color: #A6CE39;
    align-self: flex-end;
}
.newsdetail_other_item_time{
    position: absolute;
    padding-inline: 2rem;
    padding-block: .2rem;
    border-radius: .6rem;
    background-color: #F5F5F5;
    top: 22.5rem;
    left: 1.1rem;
    color: #A6CE39;
    z-index: 10;
}
.newsdetail_other_item_detail{
        transition: transform .4s ease;
        bottom: -1.5rem;
        position: absolute;
        display: flex;
        width: 11.8rem;
        padding-block: .2rem;
        gap: .8rem;
        justify-content: center;
        align-items: center;
        background-color: #A6CE39;
        border-radius: .6rem;
        left: 3rem;
    }
    .newsdetail_other_item_detail_txt{
        color: #fff;
    }
    .newsdetail_other_item_detail_img{
        width: 1.4rem;
    }
    .newsdetail_content_inner {
        & .wp-caption {
            p {
                margin: 0;
            }
        }
    }
@media screen and (max-width:991px) {
    .newsdetail_other_inner{
        row-gap: 5rem;
        margin-bottom: 9rem;
        grid-template-columns: repeat(2, 1fr);
    }
    .newsdetail_other_item_txt{
        padding: 2rem 2.5rem 3.5rem;
    }
    .newsdetail_other_item_title {
        margin-bottom: 1rem;
    }
    .newsdetail_other_item_time {
        top: 15.5rem;
    }
    .newsdetail_other_item_detail{
        width: 10.5rem;
    }
    .newsdetail_other{
        padding-bottom: 6rem;
    }
}
@media screen and (max-width:767px) {
    .newsdetail_content_inner {
        & .wp-caption {
            margin-block: 2.4rem;
        }
    }
    .newsdetail_content_inner {
        img {
            margin-bottom: .8rem;
        }
    }
    .newsdetail_other_title {
        font-size: 2.5rem;
        margin-bottom: 4rem;
    }
    .newsdetail_other_inner{
        grid-template-columns: repeat(1, 1fr);
        row-gap: 7rem;
        margin-bottom: 9rem;
    }
    .newsdetail_other_item_txt{
        padding: 2rem 3rem 2.5rem;
        .newsdetail_other_item_title{
            font-size: 1.7rem;
        }
        .newsdetail_other_item_des{
            font-size: 1.6rem;
        }
    }
    .newsdetail_other_item_title {
        margin-bottom: 1.5rem;
    }
    .newsdetail_other{
        padding-bottom: 4.7rem;
    }
    .newsdetail_other_inner{
        margin-bottom: 7rem;
    }
    .newsdetail_other_item_detail{
        bottom: -1.2rem;
        position: absolute;
        display: flex;
        width: 12rem;
        justify-content: center;
        align-items: center;
        background-color: #A6CE39;
        border-radius: .6rem;
        bottom: -1.2rem;
        left: 3rem;
    }
    .newsdetail_other_item_detail_txt{
        color: #fff;
    }
    .newsdetail_other_item_time{
        top: 19.2rem;
    }
}