/* ========================================
   TIN TỨC - NEWS PAGE STYLES
   ======================================== */

.news-wrapper {
    max-width: 95%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ========================================
   HERO NEWS SECTION
   ======================================== */
.hero-news {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-light) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 80px 20px;
}

.hero-news-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    color: white;
    font-weight: 600;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-news h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-news h1 span {
    display: block;
    font-size: 0.5em;
    opacity: 0.9;
    margin-top: 15px;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: rgba(255,255,255,0.95);
    font-weight: 300;
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    padding-top: 16px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 30px;
    background: white;
    border: 2px solid var(--color-green-light);
    border-radius: 25px;
    color: var(--color-green);
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(2, 67, 47, 0.1);
}

.filter-tab:hover {
    background: rgba(73, 136, 81, 0.1);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
    color: white;
    border-color: var(--color-green);
    box-shadow: 0 4px 15px rgba(2, 67, 47, 0.3);
}

/* ========================================
   NEWS GRID SECTION
   ======================================== */
.news-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    /* padding: 40px 0; */
}

/* ========================================
   NEWS ITEM CARD
   ======================================== */
.news-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(2, 67, 47, 0.12);
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 67, 47, 0) 0%, rgba(73, 136, 81, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.news-item:hover::before {
    opacity: 1;
}

/* Featured News Item - Full Width */
.news-item.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: fr 1fr;
    gap: 0;
}

/* News Link Wrapper */
.news-link-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-item.featured .news-link-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

/* News Image */
.news-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 250px;
}

.news-item.featured .news-image {
    height: 100%;
    min-height: 400px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.08);
}

/* News Badge */
.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.news-badge.hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
}

.news-badge.new {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
}

.news-badge.event {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.news-badge.media {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

/* News Content */
.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.news-item.featured .news-content {
    padding: 40px;
    justify-content: center;
}

/* News Meta */
.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-category {
    padding: 5px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-category.project {
    background: linear-gradient(135deg, #e8f5f0, #d4ebe3);
    color: var(--color-green);
    border: 1px solid var(--color-green-light);
}

.news-category.product {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    border: 1px solid #ffb74d;
}

.news-category.event {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    color: #6a1b9a;
    border: 1px solid #ba68c8;
}

.news-category.media {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    color: #c2185b;
    border: 1px solid #f06292;
}

/* News Title */
.news-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--color-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item.featured .news-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.news-item:hover .news-title {
    color: var(--color-green-light);
}

/* News Excerpt */
.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    flex: 1;
}

.news-item.featured .news-excerpt {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* News Footer */
.news-footer {
    margin-top: auto;
    padding-top: 15px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-green);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 12px;
    color: var(--color-green-light);
}

.read-more svg {
    transition: transform 0.3s ease;
}

.read-more:hover svg {
    transform: translateX(4px);
}

/* ========================================
   CTA NEWS SECTION
   ======================================== */
.cta-news {
    margin: 80px 0;
    padding: 80px 60px;
    background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-light) 100%);
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-news::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.cta-news-content {
    position: relative;
    z-index: 1;
}

.cta-news-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-news-content p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-body);
}

.btn-cta.primary {
    background: white;
    color: var(--color-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-cta.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.btn-cta.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta.secondary:hover {
    background: white;
    color: var(--color-green);
    transform: translateY(-3px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE - TABLET (968px - 1199px)
   ======================================== */
@media (max-width: 1199px) {
    .news-wrapper {
        padding: 0 25px 10px;
    }
    
    .news-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .news-item.featured {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
    
    .news-item.featured .news-link-wrapper {
        grid-template-columns: 1fr;
    }
    
    .news-item.featured .news-image {
        height: 300px;
        min-height: auto;
    }
}

/* ========================================
   RESPONSIVE - TABLET (< 768px)
   ======================================== */
@media (max-width: 768px) {
    .news-wrapper {
        padding: 0 20px 10px;
    }
    
    .hero-news {
        min-height: 40vh;
        padding: 60px 20px;
    }
    
    .hero-news h1 {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    
    .filter-tabs {
        gap: 10px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .news-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        /* padding: 30px 0; */
    }
    
    .news-item.featured {
        grid-column: 1 / -1;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-item.featured .news-image {
        height: 250px;
    }
    
    .news-content {
        padding: 20px;
        gap: 12px;
    }
    
    .news-item.featured .news-content {
        padding: 25px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-item.featured .news-title {
        font-size: 1.5rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
    
    .cta-news {
        margin: 60px 0;
        padding: 50px 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 400px;
        justify-content: center;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (< 480px)
   ======================================== */
@media (max-width: 480px) {
    .news-wrapper {
        padding: 0 15px 10px;
    }
    
    .hero-news {
        padding: 50px 15px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 8px 20px;
    }
    
    .hero-news h1 {
        font-size: 2.2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .filter-section {
        padding-top: 12px;
    }
    
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Single column layout for mobile */
    .news-section {
        grid-template-columns: 1fr;
        gap: 25px;
        /* padding: 20px 0; */
    }
    
    .news-item.featured {
        grid-column: 1;
    }
    
    .news-image {
        height: 200px;
    }
    
    .news-item.featured .news-image {
        height: 220px;
    }
    
    .news-content {
        padding: 18px;
        gap: 10px;
    }
    
    .news-item.featured .news-content {
        padding: 20px;
    }
    
    .news-meta {
        font-size: 0.75rem;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .news-category {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    
    .news-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .news-item.featured .news-title {
        font-size: 1.3rem;
    }
    
    .news-excerpt {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .news-item.featured .news-excerpt {
        font-size: 0.95rem;
    }
    
    .read-more {
        font-size: 0.85rem;
    }
    
    .read-more svg {
        width: 14px;
        height: 14px;
    }
    
    .news-badge {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
        font-size: 0.7rem;
    }
    
    .cta-news {
        margin: 40px 0;
        padding: 40px 20px;
    }
    
    .cta-news-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .cta-news-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .btn-cta {
        font-size: 0.95rem;
        padding: 14px 30px;
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE - MINI MOBILE (< 360px)
   ======================================== */
@media (max-width: 360px) {
    .news-wrapper {
        padding: 0 12px 10px;
    }
    
    .hero-news {
        padding: 40px 12px;
    }
    
    .hero-badge {
        display: none;
    }
    
    .hero-news h1 {
        font-size: 1.8rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .filter-tab {
        padding: 7px 14px;
        font-size: 0.75rem;
    }
    
    .news-section {
        gap: 20px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-item.featured .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 15px;
        gap: 8px;
    }
    
    .news-item.featured .news-content {
        padding: 18px;
    }
    
    .news-title {
        font-size: 0.9rem;
    }
    
    .news-item.featured .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.8rem;
    }
    
    .news-item.featured .news-excerpt {
        font-size: 0.9rem;
    }
    
    .cta-news {
        padding: 30px 15px;
    }
    
    .cta-news-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-news-content p {
        font-size: 0.9rem;
    }
    
    .btn-cta {
        font-size: 0.85rem;
        padding: 12px 24px;
    }
}