/* ========================================
   News List Page - Trang Danh Sách Tin Tức
   Aura Realty Design System
   Primary: #523829, Gold Gradient
======================================== */

/* Custom Aspect Ratio - Bootstrap 5 không có sẵn */
.ratio-3x2 {
    --bs-aspect-ratio: 66.67%;
}

/* Page Banner */
.news-page-banner {
    position: relative;
    background: var(--primary-brown-dark, #523829);
    padding: 140px 0 80px;
    overflow: hidden;
}

.news-page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    background-attachment: fixed;
    opacity: 1;
}
.news-page-banner-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, 0.5);
    z-index: 1;
}

.news-page-banner-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.news-page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.news-page-breadcrumb a {
    font-family: var(--normal-font);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-page-breadcrumb a:hover {
    color: #ecd69f;
}

.news-page-breadcrumb span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.news-page-breadcrumb .current {
    font-family: var(--normal-font);
    font-size: 14px;
    color: #ecd69f;
}

.news-page-title {
    font-family: var(--title-font);
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    background: linear-gradient(82deg, #ecd69f 0%, #c6803b 50%, #653e2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* News Page Content */
.news-page-content {
    padding: 80px 0 100px;
    background: #f8f6f3;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* News List Card */
.news-list-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8e0d8;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-list-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(196, 149, 106, 0.15);
    border-color: #c4956a;
}

.news-list-card-image {
    position: relative;
    overflow: hidden;
}

.news-list-card-image .ratio {
    --bs-aspect-ratio: 66.67%; /* 3:2 ratio */
}

.news-list-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-list-card:hover .news-list-card-image img {
    transform: scale(1.08);
}

/* Category Badge */
.news-list-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    background: linear-gradient(82deg, #653e2c 0%, #c6803b 63.6%, #ecd69f 100%);
    border-radius: 20px;
    font-family: var(--normal-font);
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}

/* Card Content */
.news-list-card-content {
    padding: 25px;
}

.news-list-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-list-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--normal-font);
    font-size: 13px;
    color: #888888;
}

.news-list-card-date svg {
    width: 14px;
    height: 14px;
    fill: #c6803b;
}

.news-list-card-title {
    font-family: var(--normal-font);
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    line-height: 1.5;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-list-card:hover .news-list-card-title {
    color: #523829;
}

.news-list-card-excerpt {
    font-family: var(--normal-font);
    font-size: 14px;
    color: #666666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-family: var(--normal-font);
    font-size: 14px;
    font-weight: 500;
    color: #a8743a;
    transition: all 0.3s ease;
}

.news-list-card-readmore svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.news-list-card:hover .news-list-card-readmore {
    color: #523829;
}

.news-list-card:hover .news-list-card-readmore svg {
    transform: translateX(5px);
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.news-sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8e0d8;
    padding: 25px;
    margin-bottom: 30px;
}

.news-sidebar-widget:last-child {
    margin-bottom: 0;
}

.news-sidebar-title {
    font-family: var(--title-font);
    font-size: 18px;
    font-weight: 600;
    color: #523829;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecd69f;
}

/* Recent Posts Widget */
.news-recent-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0ebe4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-recent-item:first-child {
    padding-top: 0;
}

.news-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-recent-item:hover {
    transform: translateX(5px);
}

.news-recent-item-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.news-recent-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-recent-item:hover .news-recent-item-image img {
    transform: scale(1.1);
}

.news-recent-item-content {
    flex: 1;
    min-width: 0;
}

.news-recent-item-title {
    font-family: var(--normal-font);
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    line-height: 1.4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-recent-item:hover .news-recent-item-title {
    color: #a8743a;
}

.news-recent-item-date {
    font-family: var(--normal-font);
    font-size: 12px;
    color: #888888;
}

/* Categories Widget */
.news-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-categories-list li {
    margin-bottom: 0;
}

.news-categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0ebe4;
    text-decoration: none;
    font-family: var(--normal-font);
    font-size: 14px;
    color: #333333;
    transition: all 0.3s ease;
}

.news-categories-list li:last-child a {
    border-bottom: none;
}

.news-categories-list a:hover {
    color: #a8743a;
    padding-left: 10px;
}

.news-categories-list .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #f8f6f3;
    border-radius: 14px;
    font-size: 12px;
    color: #666666;
    transition: all 0.3s ease;
}

.news-categories-list a:hover .count {
    background: #523829;
    color: #ffffff;
}

/* Tags Widget */
.news-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f6f3;
    border: 1px solid #e8e0d8;
    border-radius: 20px;
    font-family: var(--normal-font);
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-tag:hover {
    background: #523829;
    border-color: #523829;
    color: #ffffff;
}

/* Pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #d8b27a;
    border-radius: 8px;
    font-family: var(--normal-font);
    font-size: 15px;
    font-weight: 500;
    color: #523829;
    text-decoration: none;
    background: #ffffff;
    transition: all 0.3s ease;
}

.news-pagination a:hover,
.news-pagination span.active {
    background: #523829;
    border-color: #523829;
    color: #ffffff;
}

.news-pagination .nav-arrow {
    min-width: 45px;
}

.news-pagination .nav-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.news-pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Load More Button */
.news-load-more {
    text-align: center;
    margin-top: 50px;
}

.news-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: transparent;
    border: 2px solid #523829;
    border-radius: 50px;
    font-family: var(--normal-font);
    font-size: 15px;
    font-weight: 500;
    color: #523829;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-load-more-btn:hover {
    background: #523829;
    color: #ffffff;
}

.news-load-more-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.news-load-more-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.news-load-more-btn .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.news-load-more-btn.loading .spinner {
    display: block;
}

.news-load-more-btn.loading .arrow-icon {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Featured News (Optional) */
.news-featured {
    margin-bottom: 50px;
}

.news-featured-card {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e8e0d8;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s ease;
}

.news-featured-card:hover {
    box-shadow: 0 25px 60px rgba(196, 149, 106, 0.2);
    border-color: #c4956a;
}

.news-featured-image {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-featured-card:hover .news-featured-image img {
    transform: scale(1.05);
}

.news-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 18px;
    background: linear-gradient(82deg, #653e2c 0%, #c6803b 63.6%, #ecd69f 100%);
    border-radius: 25px;
    font-family: var(--normal-font);
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-featured-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.news-featured-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--normal-font);
    font-size: 14px;
    color: #888888;
}

.news-featured-date svg {
    width: 16px;
    height: 16px;
    fill: #c6803b;
}

.news-featured-title {
    font-family: var(--title-font);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.2rem);
    font-weight: 600;
    color: #333333;
    line-height: 1.3;
    margin: 0 0 20px;
    transition: color 0.3s ease;
}

.news-featured-card:hover .news-featured-title {
    color: #523829;
}

.news-featured-excerpt {
    font-family: var(--normal-font);
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
    margin: 0 0 25px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #a8743a;
    border-radius: 50px;
    font-family: var(--normal-font);
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.news-featured-readmore:hover {
    background: #523829;
}

.news-featured-readmore svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.news-featured-card:hover .news-featured-readmore svg {
    transform: translateX(5px);
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 80px 40px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8e0d8;
}

.news-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    fill: #d8b27a;
    opacity: 0.6;
}

.news-empty-title {
    font-family: var(--title-font);
    font-size: 22px;
    font-weight: 600;
    color: #523829;
    margin: 0 0 10px;
}

.news-empty-text {
    font-family: var(--normal-font);
    font-size: 15px;
    color: #888888;
    margin: 0;
}

/* ========================================
   Responsive Styles
======================================== */

/* Tablet Landscape */
@media (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .news-featured-content {
        padding: 30px;
    }
    
    .news-featured-image img {
        min-height: 350px;
    }
}

/* Tablet Portrait */
@media (max-width: 991px) {
    .news-page-banner {
        padding: 120px 0 60px;
    }
    
    .news-page-content {
        padding: 60px 0 80px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .news-sidebar {
        position: static;
        margin-top: 50px;
    }
    
    .news-featured-card {
        flex-direction: column;
    }
    
    .news-featured-image {
        flex: none;
    }
    
    .news-featured-image img {
        min-height: 280px;
        max-height: 350px;
    }
    
    .news-featured-content {
        padding: 30px;
    }
    
    .news-list-card-content {
        padding: 20px;
    }
    
    .news-list-card-title {
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .news-page-banner {
        padding: 100px 0 50px;
    }
    
    .news-page-content {
        padding: 50px 0 60px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-list-card {
        border-radius: 12px;
    }
    
    .news-list-card-content {
        padding: 18px;
    }
    
    .news-list-card-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .news-list-card-excerpt {
        -webkit-line-clamp: 2;
    }
    
    .news-featured-content {
        padding: 25px;
    }
    
    .news-featured-title {
        margin-bottom: 15px;
    }
    
    .news-featured-excerpt {
        -webkit-line-clamp: 3;
        margin-bottom: 20px;
    }
    
    .news-sidebar-widget {
        padding: 20px;
        border-radius: 12px;
    }
    
    .news-pagination {
        gap: 6px;
        margin-top: 40px;
    }
    
    .news-pagination a,
    .news-pagination span {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .news-load-more {
        margin-top: 40px;
    }
    
    .news-load-more-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .news-page-banner {
        padding: 90px 0 40px;
    }
    
    .news-page-breadcrumb {
        gap: 8px;
    }
    
    .news-page-breadcrumb a,
    .news-page-breadcrumb .current {
        font-size: 12px;
    }
    
    .news-page-content {
        padding: 40px 0 50px;
    }
    
    .news-list-card-category {
        padding: 5px 12px;
        font-size: 10px;
    }
    
    .news-list-card-content {
        padding: 15px;
    }
    
    .news-list-card-meta {
        margin-bottom: 12px;
    }
    
    .news-list-card-title {
        font-size: 15px;
    }
    
    .news-list-card-excerpt {
        font-size: 13px;
    }
    
    .news-featured-image img {
        min-height: 220px;
        max-height: 280px;
    }
    
    .news-featured-content {
        padding: 20px;
    }
    
    .news-featured-excerpt {
        font-size: 14px;
    }
    
    .news-sidebar {
        margin-top: 40px;
    }
    
    .news-recent-item-image {
        width: 70px;
        height: 52px;
    }
    
    .news-recent-item-title {
        font-size: 13px;
    }
    
    .news-tag {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .news-pagination a,
    .news-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }
    
    .news-pagination .nav-arrow svg {
        width: 16px;
        height: 16px;
    }
}
