/* style/tin-tuc.css */

/* Variables - using custom colors from palette */
:root {
    --page-tin-tuc-primary-color: #2F6BFF;
    --page-tin-tuc-secondary-color: #6FA3FF;
    --page-tin-tuc-gradient-button: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-tin-tuc-card-bg: #FFFFFF;
    --page-tin-tuc-background: #F4F7FB;
    --page-tin-tuc-text-main: #1F2D3D;
    --page-tin-tuc-text-black: #000000;
    --page-tin-tuc-border-color: #D6E2FF;
    --page-tin-tuc-glow-color: #A5C4FF;
}

.page-tin-tuc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-tin-tuc-text-main); /* Default text color for the page */
    background-color: var(--page-tin-tuc-background); /* Page background color */
}

.page-tin-tuc__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 16px;
    box-sizing: border-box;
}

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding, relying on shared.css for body padding-top */
    padding-bottom: 60px;
    background-color: var(--page-tin-tuc-card-bg); /* Use a light background for hero */
}

.page-tin-tuc__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 16px;
    max-width: 1170px;
    margin: 0 auto;
}

.page-tin-tuc__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: var(--page-tin-tuc-text-main);
}

.page-tin-tuc__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Using clamp for H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-tin-tuc-text-black);
}

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

.page-tin-tuc__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-tin-tuc__btn-primary {
    background: var(--page-tin-tuc-gradient-button);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-tin-tuc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-tin-tuc__btn-secondary:hover {
    background-color: var(--page-tin-tuc-primary-color);
    color: #ffffff;
}

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

.page-tin-tuc__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure image behaves as a block element */
}

/* Intro Section */
.page-tin-tuc__intro-section {
    padding: 60px 0;
    background-color: var(--page-tin-tuc-background);
}

.page-tin-tuc__section-subtitle {
    font-size: 2em;
    font-weight: 600;
    color: var(--page-tin-tuc-text-black);
    margin-bottom: 20px;
    text-align: center;
}

.page-tin-tuc__intro-section p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
    color: var(--page-tin-tuc-text-main);
}

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

.page-tin-tuc__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--page-tin-tuc-text-black);
    margin-bottom: 20px;
    text-align: center;
}

.page-tin-tuc__section-description {
    font-size: 1.1em;
    color: var(--page-tin-tuc-text-main);
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tin-tuc__news-card {
    background-color: var(--page-tin-tuc-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--page-tin-tuc-border-color);
}

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

.page-tin-tuc__news-media {
    width: 100%;
    height: 200px; /* Fixed height for consistent card image display */
    overflow: hidden;
}

.page-tin-tuc__news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-tin-tuc__news-content {
    padding: 20px;
}

.page-tin-tuc__news-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.page-tin-tuc__news-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-tin-tuc__news-excerpt {
    font-size: 1em;
    color: var(--page-tin-tuc-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-tin-tuc__read-more-btn {
    display: inline-block;
    color: var(--page-tin-tuc-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-tin-tuc__read-more-btn:hover {
    text-decoration: underline;
}

.page-tin-tuc__view-all-btn-container {
    text-align: center;
    margin-top: 50px;
}

.page-tin-tuc__view-all-btn {
    display: inline-block;
    background: var(--page-tin-tuc-gradient-button);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-tin-tuc__view-all-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Benefits Section */
.page-tin-tuc__benefits-section {
    padding: 60px 0;
    background-color: var(--page-tin-tuc-background);
}

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

.page-tin-tuc__benefit-item {
    background-color: var(--page-tin-tuc-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--page-tin-tuc-border-color);
}

.page-tin-tuc__benefit-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--page-tin-tuc-primary-color);
    margin-bottom: 15px;
}

.page-tin-tuc__benefit-item p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-tin-tuc-text-main);
}

/* CTA Section */
.page-tin-tuc__cta-section {
    padding: 80px 0;
    background: var(--page-tin-tuc-primary-color);
    text-align: center;
    color: #ffffff;
}

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

.page-tin-tuc__cta-section .page-tin-tuc__section-title {
    color: #ffffff;
    margin-bottom: 25px;
}

.page-tin-tuc__cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #ffffff;
}

.page-tin-tuc__cta-section p a {
    color: var(--page-tin-tuc-glow-color); /* Lighter blue for links */
    text-decoration: underline;
    font-weight: 600;
}

.page-tin-tuc__cta-section p a:hover {
    color: #ffffff;
}

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

.page-tin-tuc__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tin-tuc__faq-item {
    background-color: var(--page-tin-tuc-card-bg);
    border: 1px solid var(--page-tin-tuc-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;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--page-tin-tuc-text-black);
    cursor: pointer;
    background-color: #fcfdff;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details */
}

.page-tin-tuc__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-tin-tuc__faq-question:hover {
    background-color: #eef3ff;
}

.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(--page-tin-tuc-primary-color);
}