:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --btn-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-tin-tuc {
    color: var(--text-main); /* Default text color for the page */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--deep-navy); /* Ensure consistency if body background is not set by shared.css */
}

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

.page-tin-tuc__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tin-tuc__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Adhering to the 10px rule for top padding */
    padding-bottom: 60px;
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
}

.page-tin-tuc__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 15px;
}

.page-tin-tuc__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
}

.page-tin-tuc__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp as per H1 rule */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tin-tuc__hero-description {
    font-size: 1.15em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-tin-tuc__hero-image-wrapper {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-tin-tuc__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block;
}

/* News List Section */
.page-tin-tuc__news-list-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

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

.page-tin-tuc__news-card {
    background-color: var(--card-bg); /* Dark card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-tin-tuc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-tin-tuc__news-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-tin-tuc__news-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-tin-tuc__news-card-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-tin-tuc__news-card-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tin-tuc__news-card-link {
    color: var(--gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tuc__news-card-link:hover {
    color: var(--glow-color);
}

.page-tin-tuc__news-card-description {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-tin-tuc__read-more-btn {
    display: inline-block;
    background: var(--btn-gradient);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: auto; /* Push to bottom of card */
}

.page-tin-tuc__read-more-btn:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
}

.page-tin-tuc__view-all-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-tin-tuc__view-all-btn {
    display: inline-block;
    background: var(--btn-gradient);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__view-all-btn:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-3px);
}

/* CTA Section */
.page-tin-tuc__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Using primary color for dark section */
    color: var(--text-main);
    border-top: 2px solid var(--border-color);
}

.page-tin-tuc__cta-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.page-tin-tuc__cta-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left; /* Align text left on desktop */
}

.page-tin-tuc__cta-content .page-tin-tuc__section-title {
    color: var(--gold-color);
    text-align: left;
}

.page-tin-tuc__cta-content .page-tin-tuc__section-description {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

.page-tin-tuc__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-flex; /* Use flex for button content alignment */
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center; /* Center text within button */
}

.page-tin-tuc__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

.page-tin-tuc__btn-secondary {
    background: var(--card-bg); /* Use card bg for secondary button */
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--primary-color);
}

.page-tin-tuc__cta-image-wrapper {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-tin-tuc__cta-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
    padding: 60px 0;
    background-color: var(--deep-navy);
}

.page-tin-tuc__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-tin-tuc__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tin-tuc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-tin-tuc__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-tin-tuc__faq-question::-webkit-details-marker {
    display: none;
}

.page-tin-tuc__faq-qtext {
    flex-grow: 1;
}

.page-tin-tuc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-tin-tuc__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
}

.page-tin-tuc__faq-answer p {
    margin: 0;
}

/* General image responsive styles */
.page-tin-tuc img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles for 1024px and below */
@media (max-width: 1024px) {
    .page-tin-tuc__hero-container,
    .page-tin-tuc__cta-container {
        flex-direction: column;
        text-align: center;
    }

    .page-tin-tuc__hero-content,
    .page-tin-tuc__cta-content {
        text-align: center;
    }

    .page-tin-tuc__cta-content .page-tin-tuc__section-title {
        text-align: center;
    }

    .page-tin-tuc__cta-content .page-tin-tuc__section-description {
        text-align: center;
    }

    .page-tin-tuc__cta-buttons {
        justify-content: center;
    }
    .page-tin-tuc__news-card-image {
        height: 220px; /* Adjust height for tablet */
    }
}

/* Responsive styles for 768px and below */
@media (max-width: 768px) {
    .page-tin-tuc {
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO Section */
    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Adhering to the 10px rule for top padding */
        padding-bottom: 40px;
    }
    .page-tin-tuc__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }
    .page-tin-tuc__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-tin-tuc__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-tin-tuc__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* News List Section */
    .page-tin-tuc__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr; /* Single column for news cards */
        gap: 20px;
    }
    .page-tin-tuc__news-card-image {
        height: 200px; /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure responsiveness */
    }
    .page-tin-tuc__news-card-content {
        padding: 15px;
    }
    .page-tin-tuc__news-card-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    .page-tin-tuc__news-card-description {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
    .page-tin-tuc__read-more-btn,
    .page-tin-tuc__view-all-btn {
        padding: 10px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-tin-tuc__view-all-wrapper {
        padding: 0 15px;
    }

    /* CTA Section */
    .page-tin-tuc__cta-section {
        padding: 40px 0;
    }
    .page-tin-tuc__cta-container {
        padding: 30px 15px;
        gap: 30px;
    }
    .page-tin-tuc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tin-tuc__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section */
    .page-tin-tuc__faq-section {
        padding: 40px 0;
    }
    .page-tin-tuc__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-tin-tuc__faq-answer {
        padding: 0 20px 15px;
    }

    /* General responsive image and container rules */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tin-tuc__container,
    .page-tin-tuc__hero-content,
    .page-tin-tuc__hero-image-wrapper,
    .page-tin-tuc__news-card,
    .page-tin-tuc__cta-content,
    .page-tin-tuc__cta-image-wrapper,
    .page-tin-tuc__faq-list,
    .page-tin-tuc__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tin-tuc__hero-content,
    .page-tin-tuc__cta-content {
        padding-left: 0;
        padding-right: 0;
    }
}