/* Base styles for the Tin Tức page */
.page-tin-tuc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF;
}

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

.page-tin-tuc__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding as shared.css handles body padding-top */
    padding-bottom: 60px;
    background-color: #f8f8f8;
}

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

.page-tin-tuc__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #333333;
}

.page-tin-tuc__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: #017439;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-tin-tuc__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

.page-tin-tuc__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-tin-tuc__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-tin-tuc__btn-secondary {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-tin-tuc__btn-secondary:hover {
    background-color: #e0f2e8;
    color: #005a2e;
    border-color: #005a2e;
}

.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: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

/* News List Section */
.page-tin-tuc__news-list-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-tin-tuc__news-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    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.12);
}

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

.page-tin-tuc__card-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for consistent card images */
    overflow: hidden;
}

.page-tin-tuc__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-tin-tuc__news-card:hover .page-tin-tuc__card-image {
    transform: scale(1.05);
}

.page-tin-tuc__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-tin-tuc__card-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

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

.page-tin-tuc__card-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tin-tuc__read-more {
    color: #017439;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

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

.page-tin-tuc__view-all-button-wrapper {
    text-align: center;
}

/* Bottom CTA Section */
.page-tin-tuc__cta-bottom-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text */
    text-align: center;
}

.page-tin-tuc__cta-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.page-tin-tuc__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tin-tuc__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-tin-tuc__hero-content {
        flex: 1 1 100%;
    }

    .page-tin-tuc__hero-image {
        flex: 1 1 100%;
    }

    .page-tin-tuc__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* General mobile adaptations */
    .page-tin-tuc {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-tin-tuc__container {
        padding: 15px;
    }

    .page-tin-tuc__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    /* HERO Section */
    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Retain small top padding */
        padding-bottom: 40px;
    }

    .page-tin-tuc__hero-container {
        padding: 20px 15px;
        gap: 20px;
    }

    .page-tin-tuc__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-tin-tuc__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-tin-tuc__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* News List Section */
    .page-tin-tuc__news-list-section {
        padding: 50px 0;
    }

    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .page-tin-tuc__card-image-wrapper {
        height: 180px;
    }

    .page-tin-tuc__card-title {
        font-size: 1.2em;
    }

    .page-tin-tuc__card-content {
        padding: 15px;
    }

    /* Bottom CTA Section */
    .page-tin-tuc__cta-bottom-section {
        padding: 50px 15px;
    }

    .page-tin-tuc__cta-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-tin-tuc__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Universal image and container mobile styles */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-tin-tuc__hero-section,
    .page-tin-tuc__news-list-section,
    .page-tin-tuc__cta-bottom-section,
    .page-tin-tuc__container,
    .page-tin-tuc__news-card,
    .page-tin-tuc__card-image-wrapper,
    .page-tin-tuc__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tin-tuc__cta-buttons {
        overflow: hidden;
    }
}