/* style/tin-tuc.css */
.page-tin-tuc {
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #f4f7f6;
}

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

.page-tin-tuc__hero {
    background-color: #0A1930;
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-tin-tuc__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-tin-tuc__title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #E8A900;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.page-tin-tuc__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #E8A900;
    color: #0A1930;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__cta-button:hover {
    background-color: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__latest-news {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-tin-tuc__section-title {
    font-size: 2.5em;
    color: #0A1930;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-tin-tuc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #E8A900;
    border-radius: 2px;
}

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

.page-tin-tuc__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc__article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.page-tin-tuc__article-content {
    padding: 25px;
}

.page-tin-tuc__article-title {
    font-size: 1.5em;
    color: #0A1930;
    margin-bottom: 15px;
    height: 3em; /* Limit title to 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-tin-tuc__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
    height: 4.5em; /* Limit excerpt to 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-tin-tuc__article-meta {
    font-size: 0.85em;
    color: #888888;
    display: block;
}

.page-tin-tuc__pagination {
    text-align: center;
    margin-top: 50px;
}

.page-tin-tuc__pagination-link {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid #E8A900;
    color: #E8A900;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.page-tin-tuc__pagination-link:hover,
.page-tin-tuc__pagination-link--active {
    background-color: #E8A900;
    color: #0A1930;
}

.page-tin-tuc__categories {
    padding: 60px 0;
    background-color: #f4f7f6;
}

.page-tin-tuc__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-tin-tuc__category-item {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0A1930;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.page-tin-tuc__category-item:hover {
    background-color: #E8A900;
    color: #0A1930;
    transform: translateY(-3px);
}

.page-tin-tuc__cta-section {
    background-color: #0A1930;
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-tin-tuc__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-tin-tuc__section-title--light {
    color: #E8A900;
}

.page-tin-tuc__section-title--light::after {
    background-color: #ffffff;
}

.page-tin-tuc__cta-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.page-tin-tuc__cta-button--secondary {
    background-color: #ffffff;
    color: #0A1930;
}

.page-tin-tuc__cta-button--secondary:hover {
    background-color: #f0f0f0;
    color: #E8A900;
}

.page-tin-tuc__faq {
    padding: 60px 0;
    background-color: #ffffff;
}

.faq-list {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1.1em;
    color: #0A1930;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #0A1930;
}

.faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #E8A900;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background-color: #ffffff;
    color: #555555;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed to fit content */
    padding: 15px 25px 25px;
    border-top: 1px solid #e0e0e0;
}

.faq-answer p {
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-tin-tuc__title {
        font-size: 2.8em;
    }
    .page-tin-tuc__section-title {
        font-size: 2em;
    }
    .page-tin-tuc__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-tin-tuc__article-image {
        height: 180px;
    }
    .page-tin-tuc__article-title {
        font-size: 1.3em;
    }
    .page-tin-tuc__article-excerpt {
        height: 4em;
    }
}

@media (max-width: 768px) {
    .page-tin-tuc__hero {
        padding: 60px 15px;
    }
    .page-tin-tuc__title {
        font-size: 2.2em;
    }
    .page-tin-tuc__description {
        font-size: 1em;
    }
    .page-tin-tuc__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-tin-tuc__latest-news, .page-tin-tuc__categories, .page-tin-tuc__cta-section, .page-tin-tuc__faq {
        padding: 40px 0;
    }
    .page-tin-tuc__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-tin-tuc__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-tin-tuc__article-image {
        height: 200px;
    }
    .page-tin-tuc__article-title {
        font-size: 1.4em;
        height: auto;
    }
    .page-tin-tuc__article-excerpt {
        height: auto;
    }
    .page-tin-tuc__category-item {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 12px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-tin-tuc__title {
        font-size: 1.8em;
    }
    .page-tin-tuc__section-title {
        font-size: 1.5em;
    }
    .page-tin-tuc__category-list {
        flex-direction: column;
        align-items: center;
    }
    .page-tin-tuc__category-item {
        width: 90%;
        text-align: center;
    }
    .page-tin-tuc__pagination-link {
        padding: 8px 15px;
        margin: 0 3px;
    }
}