/* =============================================
   news.css - Styles for Tin tức page
   ============================================= */

.news-main {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-header {
    text-align: center;
    margin-bottom: 48px;
}

.news-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.news-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

/* Featured News */
.featured-news {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 48px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #005BAA;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-category {
    color: #005BAA;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-excerpt {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: #9ca3af;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 91, 170, 0.15);
}

.news-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #005BAA;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-card-content {
    padding: 24px;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #9ca3af;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-card-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #005BAA 0%, #004a8f 100%);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    color: white;
}

.newsletter-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter-section p {
    opacity: 0.9;
    margin-bottom: 24px;
}

.newsletter-section-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-section-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
}

.newsletter-section-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.newsletter-section-form button {
    padding: 14px 32px;
    background: #f5a623;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.newsletter-section-form button:hover {
    background: #e69512;
    transform: translateY(-2px);
}

.newsletter-section-message {
    margin-top: 12px;
    font-size: 0.9rem;
    min-height: 20px;
}

.newsletter-section-message.success {
    color: #a7f3d0;
}

.newsletter-section-message.error {
    color: #fca5a5;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-news {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-main {
        padding: 80px 0 48px;
    }

    .news-container {
        padding: 0 16px;
    }

    .news-header {
        margin-bottom: 32px;
    }

    .news-header h1 {
        font-size: 1.75rem;
    }

    .news-header p {
        font-size: 1rem;
    }

    .featured-image {
        height: 220px;
    }

    .featured-content {
        padding: 20px;
    }

    .featured-title {
        font-size: 1.25rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .newsletter-section {
        padding: 32px 20px;
    }

    .newsletter-section-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .news-main {
        padding: 72px 0 40px;
    }

    .news-container {
        padding: 0 14px;
    }

    .news-header h1 {
        font-size: 1.5rem;
    }

    .featured-image {
        height: 180px;
    }

    .featured-content {
        padding: 16px;
    }

    .featured-title {
        font-size: 1.125rem;
    }
}