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

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: #f5f8fa; /* Light background for the hero section */
}

.page-tin-tuc__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-tin-tuc__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    color: #1a1a1a; /* Darker text for readability */
}

.page-tin-tuc__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main title */
    max-width: 600px;
}

.page-tin-tuc__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555555;
}

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

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-tin-tuc__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

.page-tin-tuc__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-tin-tuc__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1e87b7;
}

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

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

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

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

.page-tin-tuc__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

.page-tin-tuc__section-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #666666;
    text-align: center;
    margin-bottom: 50px;
    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;
    margin-bottom: 40px;
}

.page-tin-tuc__news-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    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 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-tin-tuc__news-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__news-card-image {
    transform: scale(1.05);
}

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

.page-tin-tuc__news-card-date {
    font-size: 0.9em;
    color: #888888;
    margin-bottom: 10px;
}

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

.page-tin-tuc__news-card-excerpt {
    font-size: 1em;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-tin-tuc__news-card-readmore {
    font-weight: 600;
    color: #26A9E0;
    display: inline-block;
}

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

/* Call to Action Section */
.page-tin-tuc__cta-section {
    background-color: #26A9E0; /* Brand color background */
    padding: 80px 0;
    text-align: center;
    color: #FFFFFF;
}

.page-tin-tuc__cta-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-tin-tuc__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-tin-tuc__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #e0f2f7;
}

/* General image and container responsive rules for desktop */
.page-tin-tuc img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-tin-tuc__container,
.page-tin-tuc__section,
.page-tin-tuc__card,
.page-tin-tuc__content-area {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    /* Hero Section */
    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Small top padding, relying on body for header offset */
        padding-bottom: 40px;
    }

    .page-tin-tuc__hero-container {
        flex-direction: column;
        gap: 30px;
        padding: 15px;
    }

    .page-tin-tuc__hero-content,
    .page-tin-tuc__hero-image {
        flex: 1 1 100%;
        min-width: unset;
        width: 100%;
    }

    .page-tin-tuc__main-title {
        font-size: 2em; /* Adjusted for mobile */
        text-align: center;
        max-width: 100%;
    }

    .page-tin-tuc__description {
        font-size: 1em;
        text-align: center;
    }

    .page-tin-tuc__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%; /* Ensure container fills width */
    }

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

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

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

    .page-tin-tuc__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        padding: 0 15px; /* Add padding to grid itself */
    }

    .page-tin-tuc__news-card-media {
        height: 180px; /* Adjust height for mobile card images */
    }

    .page-tin-tuc__news-card-title {
        font-size: 1.15em;
    }

    .page-tin-tuc__news-card-excerpt {
        font-size: 0.95em;
    }

    .page-tin-tuc__view-all-button-container {
        padding: 0 15px; /* Add padding to button container */
    }

    /* Call to Action Section */
    .page-tin-tuc__cta-section {
        padding: 50px 15px;
    }

    .page-tin-tuc__cta-title {
        font-size: 1.8em;
    }

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

    /* General image and container responsive rules for mobile */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-tin-tuc__container,
    .page-tin-tuc__section,
    .page-tin-tuc__card,
    .page-tin-tuc__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}