.page-tin-tuc {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
}

.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #f0f0f0;
    text-align: center;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-tin-tuc__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain hero image width */
    margin-bottom: 20px;
}

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

.page-tin-tuc__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-tin-tuc__main-title {
    font-size: clamp(2.2em, 4vw, 3em); /* H1 font size with clamp */
    font-weight: 700;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

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

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    max-width: 100%;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-tin-tuc__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

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

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

.page-tin-tuc__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}

.page-tin-tuc__btn-login { /* Specific style for login button */
    background-color: #C30808; /* Custom login color */
    color: #FFFF00; /* Custom login text color */
    border: 2px solid #C30808;
}

.page-tin-tuc__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-tin-tuc__intro-section {
    padding: 60px 0;
    background-color: #f9f9f9; /* Slightly different light background */
}

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

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

.page-tin-tuc__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tin-tuc__feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-tin-tuc__feature-item {
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
}

.page-tin-tuc__feature-image {
    width: 100%;
    height: 180px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
}

.page-tin-tuc__feature-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-tin-tuc__feature-text {
    font-size: 0.95em;
    color: #555555;
    flex-grow: 1;
}

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

.page-tin-tuc__news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch; /* Ensure cards have equal height */
}

.page-tin-tuc__news-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure card takes full height of grid cell */
}

.page-tin-tuc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px 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 consistent card images */
    object-fit: cover;
    display: block;
}

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

.page-tin-tuc__news-card-title {
    font-size: 1.3em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

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

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

.page-tin-tuc__news-card-readmore {
    display: inline-block;
    color: #017439;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto; /* Push to the bottom */
}

.page-tin-tuc__news-card-readmore:hover {
    text-decoration: underline;
}

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

.page-tin-tuc__cta-bottom-section {
    padding: 80px 0;
    background-color: #017439; /* Dark brand color background */
    color: #ffffff; /* White text for dark background */
    text-align: center;
}

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

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

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

/* Ensure no `filter` is used for images as per requirements */
.page-tin-tuc img {
    filter: none;
}

/* Placeholder for shared.css body padding-top */
.page-tin-tuc__home-content { /* Placeholder for long text/gold frame if it were on this page */
    border: 1px solid #FBB00D; /* Example style for gold frame */
    border-radius: 10px;
    height: 650px; /* Example fixed height */
    overflow-y: auto;
    padding: 30px;
    max-width: 900px;
    margin: 40px auto;
}
.page-tin-tuc__home-content h2 {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
}

/* Placeholder for game/blog sliders */
.page-tin-tuc__slider-wrapper, .page-tin-tuc__blog-slider {
    overflow: hidden;
    margin: 40px 0;
}
.page-tin-tuc__slider-track, .page-tin-tuc__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    transform: translateX(0);
    transition: transform 0.5s ease-in-out;
}
.page-tin-tuc__game-slide, .page-tin-tuc__blog-slide {
    flex: 0 0 250px; /* Example fixed width */
    max-width: 250px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
}

/* Placeholder for banners-top-wrapper (gameshow grid) */
.page-tin-tuc__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for desktop */
    gap: 15px;
    max-width: 1200px;
    margin: 40px auto;
}
.page-tin-tuc__banner-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


/* Media Queries */
@media (max-width: 1024px) {
    .page-tin-tuc__news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-tin-tuc__feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-tin-tuc__feature-image {
        height: 160px;
    }

    .page-tin-tuc__main-title {
        font-size: clamp(2em, 5vw, 2.5em);
    }

    .page-tin-tuc__section-title {
        font-size: 2em;
    }

    .page-tin-tuc__banners-top-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-tin-tuc__hero-section {
        padding-top: 10px;
        padding-bottom: 30px;
    }

    .page-tin-tuc__hero-content {
        padding: 0 15px;
    }

    .page-tin-tuc__main-title {
        font-size: clamp(1.8em, 6vw, 2.2em) !important;
        margin-bottom: 10px;
    }

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

    /* Buttons and Button Containers */
    .page-tin-tuc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }

    .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: 12px 15px;
    }

    /* Intro Section */
    .page-tin-tuc__intro-section {
        padding: 40px 0;
    }

    .page-tin-tuc__container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

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

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

    .page-tin-tuc__feature-grid {
        grid-template-columns: 1fr !important; /* Single column for features */
        gap: 20px !important;
        margin-top: 30px;
    }

    .page-tin-tuc__feature-item {
        padding: 20px 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-tin-tuc__feature-image {
        height: 150px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-tin-tuc__feature-title {
        font-size: 1.2em;
    }

    .page-tin-tuc__feature-text {
        font-size: 0.9em;
    }

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

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

    .page-tin-tuc__news-card-image {
        height: 180px;
    }

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

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

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

    /* General Images and Containers */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

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

    /* Long text/gold frame placeholder */
    .page-tin-tuc__home-content { 
        height: auto !important; 
        overflow-y: visible !important; 
        padding: 20px 15px !important;
        font-size: 1em !important;
    }
    .page-tin-tuc__home-content h2 {
        font-size: 1.5em !important;
    }

    /* Game carousel placeholder */
    .page-tin-tuc__slider-track {
        display: flex !important;
        flex-wrap: nowrap !important; 
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 10px !important;
    }
    .page-tin-tuc__game-slide {
        flex: 0 0 calc(50% - 10px) !important; 
        max-width: calc(50% - 10px) !important;
        scroll-snap-align: start;
    }

    /* Partner grid placeholder */
    .page-tin-tuc__banners-top-wrapper {
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 10px !important;
    }
    .page-tin-tuc__banner-item img {
        
        height: auto !important;
    }

    /* Blog card section placeholder (for slider if present) */
    .page-tin-tuc__blog-masonry { 
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-tin-tuc__blog-slider-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 15px !important;
    }
    .page-tin-tuc__blog-slide {
        flex: 0 0 calc(80% - 15px) !important;
        max-width: calc(80% - 15px) !important;
        scroll-snap-align: start;
    }
}