/* Base styles for .page-tin-tuc */
.page-tin-tuc {
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color, #FFFFFF); /* Ensure consistency with body */
}

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px;
    background-color: #f5f5f5; /* Light background for hero */
    text-align: center;
}

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

.page-tin-tuc__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.page-tin-tuc__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-tin-tuc__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

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

.page-tin-tuc__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

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

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

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

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

.page-tin-tuc__btn-read-more {
    background-color: #EA7C07; /* Login color for read more */
    color: #ffffff;
    border: 2px solid #EA7C07;
    font-size: 0.9em;
    padding: 8px 15px;
    align-self: flex-start; /* Align to the start of the flex item */
}

.page-tin-tuc__btn-read-more:hover {
    background-color: #c76505;
    border-color: #c76505;
}


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

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

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

.page-tin-tuc__section-description {
    font-size: 1.1rem;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    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;
    align-items: stretch; /* Ensure cards align in height */
}

.page-tin-tuc__news-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

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

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

.page-tin-tuc__news-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-tin-tuc__news-card-title {
    font-size: 1.3rem;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
    flex-grow: 1; /* Allow title to take up space */
}

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

.page-tin-tuc__news-card-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
}

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

/* CTA Section */
.page-tin-tuc__cta-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-tin-tuc__cta-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-tin-tuc__cta-description {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

.page-tin-tuc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

/* Responsive styles for mobile */
@media (max-width: 768px) {
    /* HERO Section */
    .page-tin-tuc__hero-section {
        padding-top: 10px; /* Small top padding, assuming body has header offset */
        padding-bottom: 30px;
    }

    .page-tin-tuc__hero-title {
        font-size: 2rem;
    }

    .page-tin-tuc__hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

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

    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary,
    .page-tin-tuc__btn-read-more,
    .page-tin-tuc a[class*="button"],
    .page-tin-tuc a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding for smaller screens */
        padding-right: 15px;
    }

    .page-tin-tuc__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .page-tin-tuc__section-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    .page-tin-tuc__section-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr; /* Single column for news cards */
        gap: 20px;
    }

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

    .page-tin-tuc__news-card-title {
        font-size: 1.1rem;
    }

    .page-tin-tuc__cta-section {
        padding: 50px 0;
    }

    .page-tin-tuc__cta-title {
        font-size: 2rem;
        padding: 0 10px;
    }

    .page-tin-tuc__cta-description {
        font-size: 1rem;
        padding: 0 15px;
    }

    /* General image responsive styles for mobile */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Containers for images and buttons */
    .page-tin-tuc__section,
    .page-tin-tuc__card,
    .page-tin-tuc__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tin-tuc__hero-container {
        padding-left: 0;
        padding-right: 0;
    }
}