/* General styles for the Tin Tức page */
.page-tin-tuc {
    font-family: Arial, sans-serif;
    color: #FFF3E6; /* Text Main */
    background-color: #0D0E12; /* Background */
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    background-color: #0D0E12;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-tin-tuc__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
}

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

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

.page-tin-tuc__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Using clamp for H1 as per instructions */
    color: #FFB04D; /* Glow color for emphasis */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

.page-tin-tuc__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

.page-tin-tuc__section-description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF3E6;
}

/* Latest News Section */
.page-tin-tuc__latest-news-section {
    padding: 60px 0;
    background-color: #0D0E12;
}

.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: #17191F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    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 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.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.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFB04D;
    line-height: 1.4;
}

.page-tin-tuc__news-card-meta {
    font-size: 0.85rem;
    color: #A84F0C; /* Border color for meta */
    margin-bottom: 15px;
}

.page-tin-tuc__news-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tin-tuc__read-more-btn {
    display: inline-block;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    text-align: center;
    margin-top: auto; /* Push to bottom */
}

.page-tin-tuc__read-more-btn:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

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

/* Categories Section */
.page-tin-tuc__categories-section {
    padding: 60px 0;
    background-color: #0D0E12;
}

.page-tin-tuc__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-tin-tuc__category-card {
    background-color: #17191F; /* Card BG */
    border: 1px solid #A84F0C; /* Border color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #FFF3E6;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-tin-tuc__category-card:hover {
    background-color: rgba(255, 165, 58, 0.1); /* Slightly lighter hover */
    transform: translateY(-5px);
}

.page-tin-tuc__category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFB04D;
}

.page-tin-tuc__category-count {
    font-size: 0.9rem;
    color: #A84F0C;
}

/* CTA Section Bottom */
.page-tin-tuc__cta-section-bottom {
    padding: 80px 0;
    background-color: #17191F; /* Card BG */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: left;
    max-width: 1200px;
    margin: 60px auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__cta-content-wrapper {
    max-width: 50%;
    padding-left: 50px;
}

.page-tin-tuc__cta-title {
    font-size: 2.2rem;
    color: #FFB04D;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-tin-tuc__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFF3E6;
}

.page-tin-tuc__cta-buttons-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-tin-tuc__cta-image-wrapper {
    max-width: 40%;
    overflow: hidden;
    border-radius: 15px;
}

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

/* Buttons (General) */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-tin-tuc__btn-primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
    color: #FFF3E6;
    border: 2px solid transparent;
}

.page-tin-tuc__btn-primary:hover {
    background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
    box-shadow: 0 0 15px #FFB04D;
}

.page-tin-tuc__btn-secondary {
    background-color: transparent;
    color: #FFB04D; /* Glow color */
    border: 2px solid #FFB04D; /* Glow color border */
}

.page-tin-tuc__btn-secondary:hover {
    background-color: #FFB04D;
    color: #0D0E12; /* Dark text on hover */
    box-shadow: 0 0 15px #FFB04D;
}

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

    /* HERO 主图区域 */
    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-tin-tuc__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-tin-tuc__hero-description {
        font-size: 1rem;
    }

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

    /* 博客卡片区 (Latest News Grid acts as this) */
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

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

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

    .page-tin-tuc__news-card-excerpt {
        font-size: 0.85rem;
    }

    .page-tin-tuc__view-all-wrapper {
        padding: 0 15px;
    }

    /* Categories Section (similar to a card grid) */
    .page-tin-tuc__category-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-tin-tuc__category-title {
        font-size: 1.3rem;
    }

    /* CTA Section Bottom */
    .page-tin-tuc__cta-section-bottom {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        margin: 40px 15px;
        gap: 30px;
    }

    .page-tin-tuc__cta-content-wrapper {
        max-width: 100%;
        padding: 0;
    }

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

    .page-tin-tuc__cta-description {
        font-size: 1rem;
    }

    .page-tin-tuc__cta-buttons-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-tin-tuc__cta-image-wrapper {
        max-width: 100%;
    }

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

    .page-tin-tuc__container,
    .page-tin-tuc__section,
    .page-tin-tuc__card,
    .page-tin-tuc__cta-content-wrapper,
    .page-tin-tuc__cta-buttons-group,
    .page-tin-tuc__news-grid,
    .page-tin-tuc__category-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 按钮与按钮容器 */
    .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__hero-actions,
    .page-tin-tuc__cta-buttons-group {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }
}