/* style/tin-tuc.css */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #F0F0F0;
    --text-dark: #333333;
    --background-light: #FFFFFF;
    --background-dark: #2C3E50;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --button-hover-dark: #C4A100;
}

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

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

.page-tin-tuc-intro,
.page-tin-tuc-featured-article,
.page-tin-tuc-latest-articles,
.page-tin-tuc-categories,
.page-tin-tuc-faq,
.page-tin-tuc-cta-final {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-tin-tuc-intro {
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-tin-tuc-intro .page-tin-tuc-heading {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: bold;
}

.page-tin-tuc-intro .page-tin-tuc-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

.page-tin-tuc-intro .page-tin-tuc-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-tin-tuc-intro .page-tin-tuc-text a:hover {
    color: var(--button-hover-dark);
}

.page-tin-tuc-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tin-tuc-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.page-tin-tuc-btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-tin-tuc-btn-primary:hover {
    background-color: var(--button-hover-dark);
    border-color: var(--button-hover-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc-btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-tin-tuc-btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc-subheading {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

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

.page-tin-tuc-article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

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

.page-tin-tuc-article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

.page-tin-tuc-article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-tin-tuc-article-title a:hover {
    color: var(--secondary-color);
}

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

.page-tin-tuc-article-summary {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-tin-tuc-article-summary a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-tin-tuc-article-summary a:hover {
    color: var(--secondary-color);
}

.page-tin-tuc-read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding-right: 15px;
}

.page-tin-tuc-read-more::after {
    content: '»';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.3s ease;
}

.page-tin-tuc-read-more:hover::after {
    right: -5px;
}

.page-tin-tuc-featured {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    padding: 20px;
}

.page-tin-tuc-featured .page-tin-tuc-article-image {
    width: 50%;
    height: 350px;
    border-radius: 8px;
}

.page-tin-tuc-featured .page-tin-tuc-article-content {
    width: 50%;
    padding: 0;
}

.page-tin-tuc-featured .page-tin-tuc-article-title {
    font-size: 2em;
}

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

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

.page-tin-tuc-page-link {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.page-tin-tuc-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    text-align: center;
}

.page-tin-tuc-category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px 15px;
    text-decoration: none;
    color: var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-tin-tuc-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--secondary-color);
}

.page-tin-tuc-category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px; /* Ensure images are not tiny icons */
}

.page-tin-tuc-category-title {
    font-size: 1.2em;
    font-weight: bold;
    color: inherit;
}

/* FAQ Styles */
.page-tin-tuc-faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

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

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

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

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
}

.faq-answer p a {
    color: var(--primary-color);
    text-decoration: underline;
}

.faq-answer p a:hover {
    color: var(--secondary-color);
}

.page-tin-tuc-cta-final {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-tin-tuc-cta-final .page-tin-tuc-subheading {
    color: var(--secondary-color);
}

.page-tin-tuc-cta-final .page-tin-tuc-subheading::after {
    background-color: var(--text-light);
}

.page-tin-tuc-cta-final .page-tin-tuc-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

.page-tin-tuc-cta-final .page-tin-tuc-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-tin-tuc-cta-final .page-tin-tuc-text a:hover {
    color: var(--button-hover-dark);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-tin-tuc-intro .page-tin-tuc-heading {
        font-size: 2.2em;
    }

    .page-tin-tuc-subheading {
        font-size: 1.8em;
    }

    .page-tin-tuc-featured {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }

    .page-tin-tuc-featured .page-tin-tuc-article-image,
    .page-tin-tuc-featured .page-tin-tuc-article-content {
        width: 100%;
    }

    .page-tin-tuc-featured .page-tin-tuc-article-image {
        height: 280px;
    }

    .page-tin-tuc-featured .page-tin-tuc-article-title {
        font-size: 1.8em;
    }

    .page-tin-tuc-articles-grid {
        grid-template-columns: 1fr;
    }

    .page-tin-tuc-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-tin-tuc-intro,
    .page-tin-tuc-featured-article,
    .page-tin-tuc-latest-articles,
    .page-tin-tuc-categories,
    .page-tin-tuc-faq,
    .page-tin-tuc-cta-final {
        padding: 40px 0;
    }

    .page-tin-tuc-intro .page-tin-tuc-heading {
        font-size: 1.8em;
    }

    .page-tin-tuc-intro .page-tin-tuc-text {
        font-size: 1em;
    }

    .page-tin-tuc-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-tin-tuc-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-tin-tuc-subheading {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .page-tin-tuc-article-image {
        height: 200px;
    }

    .page-tin-tuc-article-title {
        font-size: 1.3em;
    }

    .page-tin-tuc-category-icon {
        width: 60px;
        height: 60px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h3 {
        font-size: 1em;
    }

    .faq-toggle {
        font-size: 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-tin-tuc-intro .page-tin-tuc-heading {
        font-size: 1.5em;
    }

    .page-tin-tuc-subheading {
        font-size: 1.4em;
    }

    .page-tin-tuc-article-title {
        font-size: 1.1em;
    }

    .page-tin-tuc-featured .page-tin-tuc-article-image {
        height: 200px;
    }

    .page-tin-tuc-pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-tin-tuc-page-link {
        padding: 8px 12px;
        margin: 5px;
    }

    .page-tin-tuc-category-grid {
        grid-template-columns: 1fr;
    }

    .page-tin-tuc-category-card {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .page-tin-tuc-category-icon {
        margin-bottom: 0;
    }
}