/* style/news.css */
:root {
    --primary-color: #FFD700; /* Vàng */
    --secondary-color: #1A1A1A; /* Đen đậm */
    --text-dark: #333333; /* Văn bản tối */
    --text-light: #FFFFFF; /* Văn bản sáng */
    --bg-light: #F8F8F8; /* Nền sáng */
    --bg-dark: #2C2C2C; /* Nền tối */
    --accent-color: #FF4500; /* Màu nhấn */
}

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-news a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.page-news .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news .hero-banner {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.page-news .hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-news .hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #E0E0E0;
}

.page-news .hero-description a {
    color: var(--primary-color);
}

.page-news .hero-description a:hover {
    color: var(--accent-color);
}

.page-news .cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news .cta-button:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

.page-news .featured-articles, .page-news .latest-news {
    padding: 60px 0;
    background: var(--bg-light);
}

.page-news .featured-articles {
    border-bottom: 1px solid #e0e0e0;
}

.page-news .section-title {
    font-size: 2.2em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-news .section-description {
    font-size: 1.1em;
    color: var(--text-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-news .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news .article-card {
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news .article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-news .article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news .article-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-news .article-title a {
    color: var(--secondary-color);
    display: block;
}

.page-news .article-title a:hover {
    color: var(--primary-color);
}

.page-news .article-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.page-news .article-excerpt {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news .read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
}

.page-news .read-more:hover {
    color: var(--accent-color);
}

.page-news .news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-news .news-item {
    background: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-news .news-item-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-news .news-item-content {
    padding: 20px 25px;
    flex-grow: 1;
}

.page-news .news-item-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.page-news .news-item-title a {
    color: var(--secondary-color);
    display: block;
}

.page-news .news-item-title a:hover {
    color: var(--primary-color);
}

.page-news .news-item-meta {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 10px;
}

.page-news .news-item-excerpt {
    font-size: 0.95em;
    color: var(--text-dark);
}

.page-news .pagination {
    text-align: center;
    margin-top: 50px;
}

.page-news .page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news .page-link.active,
.page-news .page-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.page-news .cta-section {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.page-news .cta-section .section-title {
    color: var(--primary-color);
}

.page-news .cta-section .section-description {
    color: #E0E0E0;
    margin-bottom: 40px;
}

.page-news .cta-section .cta-button {
    margin: 0 10px;
}

.page-news .cta-section .cta-button.secondary {
    background: #555;
    color: var(--text-light);
}

.page-news .cta-section .cta-button.secondary:hover {
    background: var(--accent-color);
}

.page-news .faq-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.page-news .faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fff;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: var(--secondary-color);
}

.faq-toggle {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 15px;
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Đủ lớn để chứa nội dung */
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 5px 5px;
}

.faq-item.active .faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news .hero-title {
        font-size: 2.2em;
    }
    .page-news .section-title {
        font-size: 1.8em;
    }
    .page-news .articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-news .news-item-image {
        width: 100%;
        height: 200px;
    }
    .page-news .news-item-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .page-news .hero-banner {
        padding: 60px 0;
    }
    .page-news .hero-title {
        font-size: 1.8em;
    }
    .page-news .hero-description {
        font-size: 1em;
    }
    .page-news .section-title {
        font-size: 1.5em;
    }
    .page-news .section-description {
        font-size: 0.95em;
    }
    .page-news .cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .page-news .articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news .article-image {
        height: 180px;
    }
    .page-news .article-title {
        font-size: 1.2em;
    }
    .page-news .news-item-title {
        font-size: 1.1em;
    }
    .page-news .faq-question {
        padding: 12px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 18px;
    }
    .faq-item.active .faq-answer {
        padding: 12px;
    }
    .page-news .cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .page-news .container {
        padding: 0 15px;
    }
    .page-news .hero-banner {
        padding: 40px 0;
    }
    .page-news .hero-title {
        font-size: 1.5em;
    }
    .page-news .cta-button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    .page-news .featured-articles, .page-news .latest-news, .page-news .faq-section {
        padding: 40px 0;
    }
    .page-news .section-title {
        font-size: 1.3em;
    }
    .page-news .article-card {
        margin-bottom: 20px;
    }
    .page-news .news-item-image {
        height: 150px;
    }
    .page-news .news-item-content {
        padding: 15px;
    }
    .page-news .pagination a {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .page-news .cta-section {
        padding: 40px 0;
    }
    .faq-question h3 {
        font-size: 0.95em;
    }
    .faq-toggle {
        font-size: 16px;
    }
}