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

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

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

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

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

.page-tin-tuc__hero-title {
    font-size: clamp(2em, 4vw, 2.8em); /* H1 font size clamp */
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-tin-tuc__hero-description {
    font-size: 1.1em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-tin-tuc__hero-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
    margin-bottom: 60px;
}

.page-tin-tuc__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.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.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
}

.page-tin-tuc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px 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-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
}

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

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

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

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

.page-tin-tuc__read-more-button {
    color: #EA7C07;
    font-weight: 600;
    display: inline-block;
    margin-top: auto; /* Push to bottom */
}

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

/* Featured Article Section */
.page-tin-tuc__featured-article-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    margin-bottom: 60px;
}

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

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

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

.page-tin-tuc__article-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin: 30px 0;
}

/* Call to Action Buttons */
.page-tin-tuc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Related Topics Section */
.page-tin-tuc__related-topics-section {
    margin-bottom: 60px;
}

.page-tin-tuc__topic-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-tin-tuc__topic-list li a {
    display: block;
    padding: 10px 20px;
    background-color: #f0f0f0;
    border-radius: 25px;
    text-decoration: none;
    color: #26A9E0;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-tin-tuc__topic-list li a:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-tin-tuc__btn-primary:hover {
    background: #cc6d06;
}

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

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

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

.page-tin-tuc__hero-button,
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tin-tuc__cta-buttons {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

    /* HERO 主图区域 */
    .page-tin-tuc__hero-section {
        padding-top: 10px; /* Small top padding */
        margin-bottom: 30px;
    }

    .page-tin-tuc__hero-title {
        font-size: 1.8em !important;
    }

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

    .page-tin-tuc__hero-button {
        width: 100%;
        padding: 10px 15px;
    }

    /* 长文金框区 (Adapting for a general article content area) */
    .page-tin-tuc__article-content {
        font-size: 1em;
        padding: 0 15px;
    }

    /* 游戏轮播 - Not applicable for non-homepage, so no specific rules generated */

    /* 合作品牌六宫格 - Not applicable for non-homepage, so no specific rules generated */

    /* 博客卡片区 (News grid) */
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        padding: 0 15px;
    }

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

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

    /* 通用图片与容器 */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tin-tuc__container,
    .page-tin-tuc__news-card,
    .page-tin-tuc__featured-article-section,
    .page-tin-tuc__related-topics-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 按钮与按钮容器 */
    .page-tin-tuc__hero-button,
    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary,
    .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;
        padding-right: 15px;
    }

    .page-tin-tuc__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-tin-tuc__topic-list {
        flex-direction: column; /* Stack topics vertically */
        align-items: center;
        padding: 0 15px;
    }
    
    .page-tin-tuc__topic-list li a {
        width: 100%;
        text-align: center;
    }
}