/* Base styles for the page content */
.page-tin-tuc {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* HERO Section */
.page-tin-tuc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    color: #ffffff; /* White text on dark background */
    background-color: #26A9E0; /* Brand primary color for dark section */
    overflow: hidden;
}

.page-tin-tuc__hero-image {
    width: 100%;
    height: 400px; /* Fixed height for desktop */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-tin-tuc__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.page-tin-tuc__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-tin-tuc__intro-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #f0f0f0;
}

.page-tin-tuc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* General Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary,
.page-tin-tuc__read-more-btn,
.page-tin-tuc__view-all-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-tin-tuc__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-tin-tuc__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Section Common Styles */
.page-tin-tuc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.page-tin-tuc__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color for titles */
}

.page-tin-tuc__section-description {
    font-size: 1.05rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #555555;
}

/* Dark background sections */
.page-tin-tuc__dark-bg .page-tin-tuc__section-title {
    color: #ffffff;
}

.page-tin-tuc__dark-bg .page-tin-tuc__section-description {
    color: #f0f0f0;
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
    background-color: #f8f9fa; /* Light background */
}

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    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__news-card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    overflow: hidden;
}

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

.page-tin-tuc__news-card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
}

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

.page-tin-tuc__news-card-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tuc__news-card-title a:hover {
    color: #26A9E0;
}

.page-tin-tuc__news-card-meta {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 15px;
}

.page-tin-tuc__news-card-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to grow */
}

.page-tin-tuc__read-more-btn {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    padding: 8px 15px;
    font-size: 0.95rem;
    align-self: flex-start; /* Align button to start */
}

.page-tin-tuc__read-more-btn:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
}

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

.page-tin-tuc__view-all-btn {
    font-size: 1.1rem;
}

/* Featured Articles Section */
.page-tin-tuc__featured-articles-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

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

.page-tin-tuc__featured-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-tin-tuc__featured-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-tin-tuc__featured-card-image {
    width: 100%;
    height: 250px; /* Larger fixed height for featured images */
    overflow: hidden;
}

.page-tin-tuc__featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-tin-tuc__featured-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-tin-tuc__featured-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tuc__featured-card-title a:hover {
    color: #f0f0f0;
}

.page-tin-tuc__featured-card-meta {
    font-size: 0.95rem;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-tin-tuc__featured-card-excerpt {
    font-size: 1.05rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Categories Section */
.page-tin-tuc__categories-section {
    background-color: #f0f0f0; /* Slightly darker light background */
}

.page-tin-tuc__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-tin-tuc__category-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-tin-tuc__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: #e6f7ff; /* Light blue hover */
}

.page-tin-tuc__category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-tin-tuc__category-description {
    font-size: 0.95rem;
    color: #666666;
}

/* CTA Section */
.page-tin-tuc__cta-section {
    background-color: #333333; /* Darker background for strong contrast */
    padding: 60px 15px;
    text-align: center;
    color: #ffffff;
}

.page-tin-tuc__cta-section .page-tin-tuc__section-title {
    color: #ffffff;
}

.page-tin-tuc__cta-section .page-tin-tuc__section-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

/* Universal Image Responsive */
.page-tin-tuc img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-tin-tuc {
        font-size: 16px;
        line-height: 1.65;
    }

    /* HERO Section */
    .page-tin-tuc__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .page-tin-tuc__hero-image {
        height: 250px;
        margin-bottom: 20px;
    }

    .page-tin-tuc__main-title {
        font-size: 2.2rem; 
        margin-bottom: 15px;
    }

    .page-tin-tuc__intro-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
}