/*
 * News/Blog Pages Styles
 * page-tin-tuc.php and blog listing
 */

/* News Listing Page */
.news-page {
    padding-top: 100px;
    background: var(--bg-light);
}

/* News Title Section - Simple title on top */
.news-title-section {
    padding: 2rem 0;
}

.news-title-section .container {
    max-width: 1400px;
    padding: 0 40px;
}

.news-page-title {
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;
}

/* Hero Section - Image at bottom */
.news-hero-section {
    position: relative;
    padding: 150px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.85) 0%, rgba(20, 20, 20, 0.75) 100%);
    z-index: 1;
}

.news-hero-section .container {
    max-width: 1400px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.news-hero-section .news-page-title {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.news-content-section {
    padding: 1rem 0 3rem 0;
}

.news-content-section .container {
    max-width: 1400px;
    padding: 0 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.news-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: none;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: none;
}

.news-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    outline: none;
}

.news-card-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: transparent;
}

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

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

.news-card-content {
    padding: 1.5rem 0;
}

.news-card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.news-card-excerpt {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
}

.news-card-read-more {
    color: var(--primary-red);
    font-weight: 400;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.news-card:hover .news-card-read-more {
    text-decoration: underline;
}

.no-news {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
}

.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    gap: 0.5rem;
}

.news-pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

/* Responsive */
@media (max-width: 1400px) {
    .news-title-section .container,
    .news-hero-section .container,
    .news-content-section .container {
        max-width: 95%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .news-title-section {
        padding: 1.5rem 0;
    }

    .news-title-section .container,
    .news-hero-section .container,
    .news-content-section .container {
        padding: 0 15px;
    }

    .news-page-title {
        font-size: 1.75rem;
    }

    .news-hero-section {
        padding: 80px 0;
        min-height: 300px;
    }

    .news-hero-section .news-page-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Fade In Animation for News Page */
.news-title-section.fade-in-up,
.news-content-section.fade-in-up,
.news-hero-section.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-title-section.fade-in-up.animated,
.news-content-section.fade-in-up.animated,
.news-hero-section.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Animation for News Cards */
.news-content-section .news-card.fade-in-up-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When parent section is animated, children cards also animate with stagger */
.news-content-section.animated .news-card.fade-in-up-item:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.news-content-section.animated .news-card.fade-in-up-item:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.news-content-section.animated .news-card.fade-in-up-item:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.news-content-section.animated .news-card.fade-in-up-item:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.news-content-section.animated .news-card.fade-in-up-item:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.news-content-section.animated .news-card.fade-in-up-item:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

.news-content-section.animated .news-card.fade-in-up-item:nth-child(n+7) {
    transition-delay: 0.7s;
    opacity: 1;
    transform: translateY(0);
}

