/* ==============================================
    Name: Blog page css
    Creact by: Dang Phuong Tay
    Creact at: 31/1/2024
    Update at: 31/1/2024
============================================== */
.blog{
    width: 100%;
    margin-top: 29px;
}
.blog .aligncenter,.wp-video {
    border-radius: 15px  ;
}
.blog a:hover{
    color: #383838;
}
.blog__banner{
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 25rem;
}
.blog__banner::before{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #21212159;
    opacity: .7;
}
.blog__banner img{
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    filter: brightness(0.5);
}
.blog__banner--text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: var(--color-text-6);
}
.blog__banner--text{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.blog__banner--text p{
   font-size: 3.5rem;
   font-weight: 700;
   white-space: nowrap;
   text-transform: capitalize;
}
.blog__banner--text span{
    display: flex;
}
.blog__container{
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}
.blog__container--new{
    /* height: 30vh; */
}
.blog__container--new__header--topic__desc {
font-size: var(--size-text-3);
}
.blog__container--bottom{
    display: flex;
    align-items: start;
    justify-content: space-between;
}
.blog__container--bottom__right{
    width: 30%;
    position: sticky;
    top: 9%;
    padding: 0 15px;
}
.blog__container--bottom__left{
    width: 60%;
}
.blog__container--bottom__right--header__list--item{
    transition: all .2s ease;
}
.blog__container--bottom__right--header__list--item:hover{
    scale: 1.05;
    background: #eee;
}
.blog__container--bottom__right--header__list--item a,
.blog__container--new__header--slide a,
.blog__container--new__list--item a{
    color: #000;
}

.blog__container--bottom__right--header__list--item a,
.blog__container--bottom__left--header__list--item a,
.blog__container--bottom__left--header__list--item,
.blog__container--bottom__right--header__list--item{
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 15px 10px;
}
.blog__container--bottom__right--header__list--item a,
.blog__container--bottom__left--header__list--item a{
    padding: 0;
}
.blog__container--new__list--item__text p,
.blog__container--bottom__left--header__list--item__text p,
.blog__container--bottom__right--header__list--item__text p{
    margin-bottom: 5px;
    font-size: var(--size-text-5);
    font-weight: 500;
}
.blog__container--bottom__right--header__list--item:hover .blog__container--bottom__right--header__list--item__text p{
    color: #000;}
/* .blog__container--new__list--item__text span,
.blog__container--bottom__left--header__list--item__text span,
.blog__container--bottom__right--header__list--item__text span{
    font-size: var(--size-text-4);
    color: var(--color-text-11);
    display: -webkit-box;
    max-height: 3.2rem;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-line-clamp: 2;
    line-height: 1.1rem;
} */
.blog__container--bottom__left--header__list .blog__container--bottom__left--header__list--item__img{
    width: 30%;
    border-radius: var(--border-radius-size-3);
    overflow: hidden;
}
.blog__container--bottom__left--header__list .blog__container--bottom__left--header__list--item__img img{
    width: 100%;
    object-fit: cover;
    height: 20%;
}
.blog__container--bottom__left--header__list .blog__container--bottom__left--header__list--item__text{
    width: 70%;
}
.blog__container--bottom__left--header__list--item__img{
    width: 350px;
    border-radius: var(--border-radius-size-3);
    overflow: hidden;
}
.blog__container--bottom__left--header__list--item__img img{
    width: 100%;
}
.blog__container--bottom__right--header__list--item__number{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-size-6);
    font-size: var(--size-text-5);
    font-style: italic;
    font-weight: 600;
    color: var( --color-text-6);
}
.blog__container--bottom__right--header__list--item__number img{
    width: 100px;
    height: 70px;
    border-radius: 6px;
}
.blog__container--new__header p,
.blog__container--bottom__left--header p,
.blog__container--bottom__right--header p{
    font-size: var(--size-text-9);
    padding-bottom: 20px;
    font-weight: 600;
    border-bottom: 3px solid var(--color-text-1);
    margin-bottom: 20px;
    margin-top: 40px;
}
.blog_title{
    margin-top:23px;
    margin-left:12px;
}
.blog__container--new__header--wrapper{
    position: sticky;
    top: 60px;
    background-color: white;
    z-index: 100;
    width: 100%;
    padding: 0 10px;
    overflow: hidden;
}
.blog__container--new__header{
    padding: 20px 0;

    display: flex;
    overflow-x: scroll;
    scrollbar-width: none;
    position: relative;
}
.blog__container--new__header--slide{
    gap: 20px;
    transition: transform 1.5s ease;
}
.blog_btn{
    line-height: 0;
    position: absolute;
    top: 40%;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 0 5px black;
    z-index: 100;
}
.blog__container--new__header--leftBtn{
    left: -45px;
}
.blog__container--new__header--rightBtn{
    right: 3px;
  
}
.blog__container--new__header--slide{
    display: flex;
}
.blog__container--new__header--topic {
    min-width: 160px;
    border-radius: 9px;
    text-wrap: nowrap;
    padding: 12px 20px;
    border: 1px solid rgb(199, 199, 199);
    display: flex;
    flex-direction: column;
    align-items: start;
    transition: transform 0.3s ease; 
}

.blog__container--new__header--topic:hover {
    transform: translateY(-10px); 
}

.blog__container--new__list{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(350px, 1fr));
    gap: 30px;
    margin-top: 15px;
    padding: 0 15px;
}
.blog__container--new__list--item{
    min-width: 33.333%;
	max-width: 100%;
    transition: all 0.2s ease;
    /* background: #f5f4f4; */
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
    border-radius: 10px;
}
.blog__container--new__list--item:hover{
   scale: 1.05;
}
.blog__container--new__list--item .blog__container--new__list--item__img::before:hover{
    scale: 1.0;
}
.blog__container--new__list--item .blog__container--new__list--item__img::after,
.blog__container--new__list--item .blog__container--new__list--item__img::before{
    position: absolute;
    left: 50%;
    top: 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    content: 'XEM CHI TIẾT';
    font-weight:500 ;
    transform: translate(-50%,-50%);
    color: #fff;
    z-index: 1;
    opacity: 0;
    transition: all .25s ease;
}
.blog__container--new__list--item .blog__container--new__list--item__img::after{
    width: 100%;
    height: 100%;
    content: '';
    left: 50%;
    top: 200%;
    background: #0000005d;
    z-index: 0;
}
.blog__container--new__list--item:hover .blog__container--new__list--item__img::before,
.blog__container--new__list--item:hover .blog__container--new__list--item__img::after{
    top: 50%;
    opacity: 1;
}
.blog__container--new__list--item .blog__container--new__list--item__img::before{
    background: var(--color-text-7);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 15px;
}
.blog__container--new__list--item__img{
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: var(--border-radius-size-3);
    border: 1px solid #007bff8a;
}
.blog__container--new__list--item__img img{
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.blog__container--new__list--item p{
    font-size: var(--size-text-5);
    font-weight: 600;
}
.blog__container--new__list--item__text{
    padding: 10px 20px 5px 20px;
    margin-bottom: 10px;
}
.blog__container--new__list--item__text--at p{
    font-size: 16px;
    font-weight: 400 !important;
    color: #3b3a3a; 
}

.blog__container--new__list--item__text--at span{
    font-size: 16px;
    font-weight: 400 !important;
    color: #3b3a3a;
    padding: 0 20px;
}

.blog__container--new__list--item__text--at{
    color: #383838;
    font-size: var(--size-text-4);
    opacity: .8;
    margin-top: 5px;
    font-weight: 500;
    overflow: hidden;

    height: 50px;
}
.blog__container--new__list--item__text .title{
    display: -webkit-box;
    width: 100%;
    margin-bottom: 8px;
    white-space: normal;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 25px;
    color: #1d511d;
}
.blog__container--new__list--item__text--at p img,
.blog__container--new__list--item__text--at h2,
.blog__container--new__list--item__text--at h1{
    display: none;
}
.blog__container--new__list--item__img img{
    display: block;
}
@media only screen and (max-width: 1250px) {


     .blog__banner{
        height: 15rem;
    }
    .blog__banner--text p{
        font-size: 2rem;
     }
     .blog__banner--text span{
        font-size: var(--size-text-4);
     }
 }
@media only screen and (max-width: 850px) {
    .blog_btn{
        display:none;
    }
    .blog__container--new__list--item__text .title{
        min-height: 0;
    }
    .blog__banner--text{
        width: 450px;
     }
    .blog__banner--text p{
        font-size: 1.7rem;
        white-space: normal;
     }
     .blog__banner--text span{
        font-size: var(--size-text-3);
     }
    .blog__container--bottom__right{
        width: 100%;
        margin-top: 50px;
        padding: 0;
    }
    .blog__container--bottom__left{
        display: none;
    }
    .blog__container--new__header p,
    .blog__container--bottom__left--header p,
    .blog__container--bottom__right--header p{
    font-size: var(--size-text-7);
    padding-bottom: 15px;
    font-weight: 600;
    border-bottom: 3px solid var(--color-text-1);
    margin-bottom: 15px;
    margin-top: 30px;
   
}

.blog__container--new__list--item__img {
    max-height: 320px;
}
 }
@media only screen and (max-width: 750px) {

}
 @media only screen and (max-width: 450px) {
    .blog__banner--text{
        width: 350px;
     }
   

    .blog__container--bottom__right--header__list--item{
        padding: 10px;
    }
    .blog__container--new__header{
    padding: 10px 0;
}
.blog__container--new__header--slide{
    gap: 10px;

}
.blog__container--new__header--topic{
    padding: 8px 15px;
}
 }