/* style/news.css */
:root {
    --primary-color: #FFD700; /* Bright Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #000066;
    --border-color: #e0e0e0;
}

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

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

.page-news .hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
    border-bottom: 5px solid var(--primary-color);
}

.page-news .hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news .hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-news .cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
}

.page-news .cta-button:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news .section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
}

.page-news .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-news .section-subtitle {
    font-size: 1.1em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-news .news-card {
    background-color: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px 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 .news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

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

.page-news .card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

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

.page-news .card-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news .card-excerpt {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Giới hạn 4 dòng */
    -webkit-box-orient: vertical;
}

.page-news .read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto; /* Đẩy xuống dưới cùng */
}

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

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

.page-news .page-link {
    display: inline-block;
    padding: 12px 20px;
    margin: 0 8px;
    background-color: var(--text-light);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-weight: bold;
}

.page-news .page-link:hover,
.page-news .page-link.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-news .latest-updates-section {
    background-color: var(--bg-dark);
    padding: 60px 0;
    color: var(--text-light);
}

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

.page-news .latest-updates-section .section-subtitle {
    color: var(--text-light);
}

.page-news .latest-updates-section .section-title::after {
    background-color: var(--text-light);
}

.page-news .update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-news .update-list li {
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .update-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news .update-list li a {
    text-decoration: none;
    color: var(--text-light);
    display: block;
}

.page-news .update-list .update-date {
    font-size: 0.9em;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.page-news .update-list .update-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news .update-list .update-excerpt {
    font-size: 1em;
    color: var(--text-light);
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Giới hạn 3 dòng */
    -webkit-box-orient: vertical;
}

.page-news .view-all-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
}

.page-news .view-all-button:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-news .faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-news .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-news .faq-question:hover {
    background: #f5f5f5;
    border-color: var(--primary-color);
}

.page-news .faq-question h3 {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin: 0;
    flex-grow: 1;
}

.page-news .faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
    margin-left: 15px;
}

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

.page-news .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.page-news .faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 20px 25px;
    border-color: var(--primary-color);
}

.page-news .faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news .hero-title {
        font-size: 2.8em;
    }
    .page-news .hero-description {
        font-size: 1.1em;
    }
    .page-news .section-title {
        font-size: 2.2em;
    }
    .page-news .card-title {
        font-size: 1.4em;
    }
    .page-news .update-list .update-title {
        font-size: 1.6em;
    }
    .page-news .faq-question h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-news .hero-banner {
        padding: 60px 0;
    }
    .page-news .hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-news .hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-news .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-news .section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 15px;
    }
    .page-news .section-subtitle {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-news .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-news .card-image {
        height: 180px;
    }
    .page-news .card-content {
        padding: 20px;
    }
    .page-news .card-title {
        font-size: 1.3em;
    }
    .page-news .card-excerpt {
        font-size: 0.9em;
    }
    .page-news .pagination {
        margin-top: 40px;
    }
    .page-news .page-link {
        padding: 10px 15px;
        margin: 0 5px;
    }
    .page-news .latest-updates-section {
        padding: 40px 0;
    }
    .page-news .update-list li {
        padding: 20px;
        margin-bottom: 15px;
    }
    .page-news .update-list .update-title {
        font-size: 1.4em;
    }
    .page-news .update-list .update-excerpt {
        font-size: 0.9em;
    }
    .page-news .view-all-button {
        padding: 12px 25px;
        font-size: 1em;
        margin-top: 30px;
    }
    .page-news .faq-section {
        padding: 40px 0 60px 0;
    }
    .page-news .faq-question {
        padding: 15px 20px;
    }
    .page-news .faq-question h3 {
        font-size: 1.1em;
    }
    .page-news .faq-toggle {
        font-size: 1.8em;
    }
    .page-news .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-news .hero-title {
        font-size: 1.8em;
    }
    .page-news .section-title {
        font-size: 1.6em;
    }
    .page-news .section-subtitle {
        font-size: 0.85em;
    }
    .page-news .card-title {
        font-size: 1.1em;
    }
    .page-news .update-list .update-title {
        font-size: 1.2em;
    }
    .page-news .faq-question h3 {
        font-size: 1em;
    }
    .page-news .faq-toggle {
        font-size: 1.5em;
    }
}