/* style/tin-tuc.css */

/* Base styles for the page */
.page-tin-tuc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main */
    background-color: #F4F7FB; /* Background */
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top margin, body handles header offset */
    background: #F4F7FB; /* Match body background */
    text-align: center;
    padding-bottom: 40px;
}

.page-tin-tuc__hero-image {
    width: 100%;
    overflow: hidden;
}

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

.page-tin-tuc__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 15px 0;
}

.page-tin-tuc__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: #2F6BFF; /* Primary color */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-tin-tuc__hero-description {
    font-size: 1.15em;
    color: #1F2D3D;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tin-tuc__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-tin-tuc__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-tin-tuc__btn-secondary {
    background: #ffffff;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__btn-secondary:hover {
    background: #2F6BFF;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
}

/* Section Titles and Descriptions */
.page-tin-tuc__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.page-tin-tuc__section-description {
    font-size: 1.1em;
    color: #1F2D3D;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* News Grid */
.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: #FFFFFF; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px 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(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-tin-tuc__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

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

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

.page-tin-tuc__card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2F6BFF; /* Primary color */
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-tin-tuc__card-meta {
    font-size: 0.9em;
    color: #6FA3FF; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-tin-tuc__card-excerpt {
    font-size: 1em;
    color: #1F2D3D;
    margin-bottom: 0;
}

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

/* In-depth Article Section */
.page-tin-tuc__in-depth-article-section {
    background-color: #FFFFFF; /* Card BG */
    padding: 60px 0;
    margin-top: 40px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.page-tin-tuc__article-meta {
    font-size: 0.95em;
    color: #6FA3FF; /* Auxiliary color */
    text-align: center;
    margin-bottom: 30px;
}

.page-tin-tuc__article-content {
    font-size: 1.1em;
    color: #1F2D3D;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.page-tin-tuc__article-content h3 {
    font-size: 1.8em;
    color: #2F6BFF; /* Primary color */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-tin-tuc__article-content p {
    margin-bottom: 20px;
}

.page-tin-tuc__article-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__cta-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #6FA3FF 0%, #2F6BFF 100%); /* Mix of primary/auxiliary */
    border-radius: 12px;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 30px rgba(47, 107, 255, 0.3);
}

.page-tin-tuc__cta-bottom .page-tin-tuc__cta-title {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-tin-tuc__cta-bottom .page-tin-tuc__btn-primary {
    background: #ffffff;
    color: #2F6BFF;
    border: none;
    box-shadow: none;
}

.page-tin-tuc__cta-bottom .page-tin-tuc__btn-primary:hover {
    background: #f0f0f0;
    color: #2F6BFF;
}

/* Related News Section */
.page-tin-tuc__related-news-section {
    padding: 60px 0;
    background-color: #F4F7FB; /* Background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tin-tuc__main-title {
        font-size: 2.8em;
    }
    .page-tin-tuc__section-title {
        font-size: 2.2em;
    }
    .page-tin-tuc__cta-bottom .page-tin-tuc__cta-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-tin-tuc__hero-section {
        padding-bottom: 30px;
    }
    .page-tin-tuc__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Clamp for H1 font-size */
        margin-bottom: 15px;
    }
    .page-tin-tuc__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-tin-tuc__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-tin-tuc__hero-cta-buttons .page-tin-tuc__btn-primary,
    .page-tin-tuc__hero-cta-buttons .page-tin-tuc__btn-secondary {
        margin-left: auto;
        margin-right: auto;
    }

    /* Section Titles and Descriptions */
    .page-tin-tuc__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-tin-tuc__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* News Grid */
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 25px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }
    .page-tin-tuc__card-title {
        font-size: 1.2em;
    }
    .page-tin-tuc__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }

    /* In-depth Article Section */
    .page-tin-tuc__in-depth-article-section {
        padding: 40px 0;
    }
    .page-tin-tuc__article-content {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-tin-tuc__article-content h3 {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-tin-tuc__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px 0;
        box-sizing: border-box !important;
    }

    /* CTA Bottom */
    .page-tin-tuc__cta-bottom {
        padding: 30px 15px;
        margin-top: 40px;
    }
    .page-tin-tuc__cta-bottom .page-tin-tuc__cta-title {
        font-size: 1.6em;
    }
    .page-tin-tuc__cta-bottom .page-tin-tuc__cta-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* General image and container responsiveness */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-tin-tuc__container,
    .page-tin-tuc__section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific card padding */
    .page-tin-tuc__news-card {
        box-sizing: border-box !important;
    }
}

/* Ensure images don't get filters */
.page-tin-tuc img {
    filter: none;
}