/* section-featured-news */
.section-featured-news .post-item h5.post-title {
    display: -webkit-box;        
    -webkit-box-orient: vertical;
    overflow: hidden;           
    text-overflow: ellipsis;    
    -webkit-line-clamp: 3;      
    line-height: 1.3em;         
    height: calc(1.3em * 3);
}
/* section-news-categories */
.section-news-categories .post-item .box-text-inner .post-title{
    display: -webkit-box;        
    -webkit-box-orient: vertical;
    overflow: hidden;           
    text-overflow: ellipsis;    
    -webkit-line-clamp: 2;      
    line-height: 1.3em;         
    height: calc(1.3em * 2);
    margin-bottom:10px;
}
/* section-all-news */
.section-all-news .post-item .post-item-inner{
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    height:100%;
}
.section-all-news .post-item .post-item-inner .post-thumbnail img{
    height:250px;
    object-fit:cover;
    width:100%;
}
.section-all-news .post-item .post-item-inner .post-content{
    padding:15px 10px 20px;
}
.section-all-news .post-item .post-item-inner .icon-box-post{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:5px;
}
.section-all-news .post-item .post-item-inner .icon-box-post span.icon{
    width:24px;
    min-width:24px;
    height:24px;
    display:block
}
.section-all-news .post-item .post-item-inner .icon-box-post .text-inner-icon{
    font-size: var(--font-small);
    line-height:24px;
    display: -webkit-box;        
    -webkit-box-orient: vertical;
    overflow: hidden;           
    text-overflow: ellipsis;    
    -webkit-line-clamp: 1;      
    line-height: 1.1em;         
}
.section-all-news .post-item .post-item-inner .post-title{
    display: -webkit-box;        
    -webkit-box-orient: vertical;
    overflow: hidden;           
    text-overflow: ellipsis;    
    -webkit-line-clamp: 2;      
    line-height: 1.1em;         
    height: calc(1.2em * 2);
    margin-bottom:10px;
}
.section-all-news .post-item .post-item-inner .post-title a{
    color: var(--fs-color-secondary);
}
.section-all-news .post-item .post-item-inner .post-excerpt{
    font-size: var(--font-small);
    height:100px;
}
.section-all-news .post-item .post-item-inner a.read-more{
    position: relative;
}
.section-all-news .post-item .post-item-inner a.read-more:after{
    content:"";
    height:1px;
    width:20px;
    bottom:-2px;
    position: absolute;
    left:0;
    background: var(--fs-color-primary);
    transition: .3s ease;

}
.section-all-news .post-item .post-item-inner a.read-more:hover:after{
    width:100%;
}

.section-all-news .row-grid-news{
    position: relative;
}
.section-all-news .row-grid-news.loading:before {
    content: "";
    background: rgba(255, 255, 255, 0.7);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 9;
}

@keyframes spinner-animate {
  0% { transform: translate(-50%,-50%) rotate(0deg); }
  100% { transform: translate(-50%,-50%) rotate(360deg); }
}
.loading-news-spinner .spinner-inner div {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 5px solid var(--fs-color-secondary);
    border-top-color: transparent;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: spinner-animate 1s linear infinite;
}
.loading-news-spinner {
    width: 64px;
    height: 64px;
    display: inline-block;
    overflow: hidden;
    background: transparent;
    position: fixed;
    top: 50%;
    z-index: 99;
    left: 50%;
    display:none;
    transform: translate(-50%,-50%);
}
.loading-news-spinner .spinner-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  transform-origin: 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.loading-news-spinner .spinner-inner div { box-sizing: content-box; }
/* =============================
   ALL NEWS PAGINATION
   ============================= */
.all-news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 30px;
    font-family: inherit;
}

/* Nút page */
.all-news-pagination .page-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.all-news-pagination .page-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

/* Nút active */
.all-news-pagination .page-btn.active {
    background-color: var(--fs-color-primary); /* màu chủ đạo */
    color: #fff;
    border-color: var(--fs-color-primary);
    font-weight: 600;
}

/* Dots */
.all-news-pagination .dots {
    display: inline-block;
    padding: 0 6px;
    color: #999;
    font-weight: 500;
    user-select: none;
}

/* Nút next / prev có icon */
.all-news-pagination .page-btn.next,
.all-news-pagination .page-btn.prev {
    width: 36px;
    height: 36px;
    padding: 0;
}

.all-news-pagination .page-btn.next svg,
.all-news-pagination .page-btn.prev svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Disabled state */
.all-news-pagination .page-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Responsive nhỏ hơn 480px */
@media (max-width: 480px) {
    .all-news-pagination {
        gap: 4px;
    }

    .all-news-pagination .page-btn {
        min-width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .all-news-pagination .page-btn.next,
    .all-news-pagination .page-btn.prev {
        width: 28px;
        height: 28px;
    }

    .all-news-pagination .page-btn svg {
        width: 12px;
        height: 12px;
    }
}
