/* Container chính cho trang tin tức */
.sfm-news-page {
    max-width: 1200px; 
    margin: 40px auto;
   
}

.sfm-news-page-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: #117552;
}

/* Lưới hiển thị 2 cột */
.sfm-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px; 
}



/* Các lớp kế thừa 100% từ Widget Tin Tức */
.sfm-news-page .news-item {
    background: transparent;
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sfm-news-page .news-item-inner {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}

.sfm-news-page .news-img {
    width: 38%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-radius: 8px; 
    min-height: 160px; 
}

.sfm-news-page .news-img .scale-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.sfm-news-page .news-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sfm-news-page .news-item:hover .news-img img {
    transform: scale(1.05); 
}

.sfm-news-page .news-info {
    padding: 0 0 0 25px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 62%;
}

.sfm-news-page .news-name {
    font-size: 20px;
    font-weight: 600;
    color: #424242; /* Màu đậm vừa */
    line-height: 1.4;
    margin: 0 0 12px 0;
    transition: color 0.3s ease;
}

.sfm-news-page .news-item:hover .news-name {
    color: #79973E; 
}

.sfm-news-page .news-desc {
    color: #888;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1; 
}

.sfm-news-page .text-split {
    --line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--line-clamp);
}

.sfm-news-page .news-desc.text-split {
    --line-clamp: 3;
}

.sfm-news-page .news-meta {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #EBEBEB; /* Vạch xám ngăn cách */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sfm-news-page .news-date {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.sfm-news-page .title-ct {
    font-size: 14px;
    font-weight: 500;
    color: #888;
    border: 1px solid #ccc;
    padding: 6px 18px;
    border-radius: 20px; /* Bo bóng góc nut */
    transition: all 0.3s ease;
}

.sfm-news-page .news-item:hover .title-ct {
    background: #79973E;
    color: #fff;
    border-color: #79973E;
}

/* =======================================================
   Responsive cho Trang Tin Tức (Đưa xuống dưới để override)
   ========================================================= */
@media (max-width: 991px) {
    .sfm-news-grid {
        grid-template-columns: 1fr;
         padding: 0 15px; 
        gap: 25px;
    }
}

/* Mobile: Phân tin tức nằm dọc (Hình trên, chữ dưới) */
@media (max-width: 767px) {
    .sfm-news-page .news-item-inner {
        flex-direction: column;
    }
    
    .sfm-news-page .news-img {
        width: 100%;
        min-height: 200px;
        margin-bottom: 15px;
    }
    
    .sfm-news-page .news-info {
        width: 100%;
        padding: 0;
    }
    
    .sfm-news-page .news-name {
        font-size: 18px;
    }
}

/* Căn chỉnh phân trang (Pagination) */
.sfm-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sfm-pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #EBEBEB;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}

.sfm-pagination .page-numbers.current,
.sfm-pagination .page-numbers:hover {
    background-color: #117552; /* Màu thương hiệu mới */
    color: #fff;
    border-color: #117552;
}

.sfm-pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* =======================================================
   Khối Breadcrumbs (Áp dụng các thuộc tính CSS theo mẫu yêu cầu)
========================================================= */
.sfm-breadcrumb-wrapper {
    height: 45.5px;
    background-color: #EEEEEE;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 0px;
}

.sfm-breadcrumb-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; 
}

@media(min-width: 768px) {
    .sfm-breadcrumb-inner {
        padding: 0;
    }
}

/* Tablet (768px - 1024px): Margin left cho breadcrumbs */
@media (min-width: 768px) and (max-width: 1024px) {
    .sfm-breadcrumb-inner {
        margin-left: 10px;
        padding-left: 10px;
    }
}

.sfm-breadcrumbs {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sfm-breadcrumbs .sfm-breadcrumbs-item,
.sfm-breadcrumbs .sfm-breadcrumbs-separator {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.sfm-breadcrumbs .sfm-breadcrumbs-item {
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #333333;
}

.sfm-breadcrumbs .sfm-breadcrumbs-item a {
    color: #333333;
    font-weight:600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sfm-breadcrumbs .sfm-breadcrumbs-item:hover a {
    color: #117552;
}

.sfm-breadcrumbs .sfm-breadcrumbs-separator {
    font-family: "Montserrat", sans-serif;
    font-weight:600;
    font-size: 16px;
    color: #333333;
}

.sfm-breadcrumbs .sfm-breadcrumbs-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
}

.sfm-breadcrumbs .sfm-breadcrumbs-icon svg {
    width: 16px;
    height: 16px;
    fill: #333333;
    transition: fill 0.3s ease;
}

.sfm-breadcrumbs .sfm-breadcrumbs-item:hover .sfm-breadcrumbs-icon svg {
    fill: #117552;
}