/* style/tin-tuc.css */
.page-tin-tuc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #FFF5E1); /* Default text color for the page, assuming dark body bg */
    background: var(--site-bg); /* Inherit from shared, expected to be dark */
}

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

.page-tin-tuc__section-title {
    font-size: 2.5em;
    color: var(--text-main, #FFF5E1);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(255, 204, 102, 0.4); /* Glow effect */
}

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

.page-tin-tuc__sub-title {
    font-size: 1.8em;
    color: #F4D34D; /* Gold color for sub-titles */
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-tin-tuc__text-block {
    font-size: 1em;
    color: var(--text-main, #FFF5E1);
    margin-bottom: 20px;
}

.page-tin-tuc__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button adapts to container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-tin-tuc__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Gold gradient */
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: 2px solid #F2B544; /* Gold border */
    box-shadow: 0 4px 15px rgba(255, 204, 102, 0.5); /* Gold glow */
}

.page-tin-tuc__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 204, 102, 0.7);
    transform: translateY(-2px);
}

.page-tin-tuc__btn-secondary {
    background: #7A0E0E; /* Deep Red */
    color: #FFD86A; /* Gold text */
    border: 2px solid #F2B544; /* Gold border */
}

.page-tin-tuc__btn-secondary:hover {
    background: #B71C1C; /* Slightly lighter red */
    color: #FFD86A;
    transform: translateY(-2px);
}

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

.page-tin-tuc__figure {
    margin: 20px 0;
    text-align: center;
}

.page-tin-tuc__figcaption {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 10px;
}

/* --- Hero Section --- */
.page-tin-tuc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-tin-tuc__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-tin-tuc__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* No border-radius for full-width hero */
}

.page-tin-tuc__hero-content {
    text-align: center;
    padding: 20px 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-tin-tuc__main-title {
    font-size: 3.2em;
    color: #FFD86A; /* Gold for main title */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-shadow: 0 0 15px rgba(255, 204, 102, 0.7); /* Stronger glow */
    max-width: 100%;
}

.page-tin-tuc__description {
    font-size: 1.2em;
    color: var(--text-main, #FFF5E1);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Articles Section --- */
.page-tin-tuc__articles-section {
    padding: 60px 0;
    background: var(--background, #B71C1C); /* Darker Red background */
}

.page-tin-tuc__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tin-tuc__article-card {
    background: var(--card-bg, #D32F2F); /* Card BG color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main, #FFF5E1);
}

.page-tin-tuc__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tin-tuc__article-figure {
    margin: 0;
    width: 100%;
    height: 200px; /* Fixed height for article image */
    overflow: hidden;
}

.page-tin-tuc__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0; /* Card has border-radius, image itself doesn't need it */
}

.page-tin-tuc__article-card:hover .page-tin-tuc__article-image {
    transform: scale(1.05);
}

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

.page-tin-tuc__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-tin-tuc__article-title a {
    color: #FFD86A; /* Gold for article titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tuc__article-title a:hover {
    color: #F4D34D; /* Slightly darker gold on hover */
}

.page-tin-tuc__article-meta {
    font-size: 0.9em;
    color: #ccc;
    margin-bottom: 15px;
}

.page-tin-tuc__article-summary {
    font-size: 1em;
    color: var(--text-main, #FFF5E1);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tin-tuc__read-more {
    display: inline-block;
    color: #FFD86A; /* Gold */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-tin-tuc__read-more:hover {
    color: #F4D34D; /* Gold hover */
    text-decoration: underline;
}

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

/* --- Deep Dive Section --- */
.page-tin-tuc__deep-dive-section {
    padding: 60px 0;
    background: var(--site-bg); /* Inherit from shared, expected to be dark */
}

.page-tin-tuc__cta-buttons--bottom {
    margin-top: 50px;
    justify-content: center;
}

/* --- Promo Banner Section --- */
.page-tin-tuc__promo-banner {
    padding: 50px 0;
    background: linear-gradient(90deg, #C91F17 0%, #E53935 100%); /* Red gradient */
    text-align: center;
    margin-top: 60px;
}

.page-tin-tuc__promo-banner .page-tin-tuc__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-tin-tuc__promo-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-tin-tuc__promo-title {
    font-size: 2.8em;
    color: #FFD86A; /* Gold */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 204, 102, 0.5);
}

.page-tin-tuc__promo-text {
    font-size: 1.1em;
    color: var(--text-main, #FFF5E1);
    margin-bottom: 30px;
}

.page-tin-tuc__promo-figure {
    flex: 1;
    min-width: 300px;
    margin: 0;
    text-align: center;
}

.page-tin-tuc__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Styles --- */

/* Mobile @media (max-width: 768px) MUST be present for all relevant sections */
@media (max-width: 768px) {
    .page-tin-tuc {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. Top Section (hero) */
    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        margin-bottom: 30px;
    }

    .page-tin-tuc__hero-image-wrapper {
        height: 250px; /* Adjust height for mobile */
        margin-bottom: 20px;
    }

    .page-tin-tuc__main-title {
        font-size: 2em; /* Smaller title for mobile */
        letter-spacing: 0.05em;
        padding: 0 15px;
    }

    .page-tin-tuc__description {
        font-size: 1em;
        padding: 0 15px;
        margin-bottom: 20px;
    }

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

    /* 2. Single Column Long Content (articles section, deep dive) */
    .page-tin-tuc__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tin-tuc__articles-section,
    .page-tin-tuc__deep-dive-section,
    .page-tin-tuc__promo-banner {
        padding: 40px 0;
    }

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

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

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

    .page-tin-tuc__article-figure {
        height: 180px; /* Adjust article image height */
    }

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

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

    .page-tin-tuc__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
    }

    .page-tin-tuc__text-block {
        font-size: 0.95em;
    }

    /* 3. General Images and Figures */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-tin-tuc__figure {
        margin: 15px 0;
    }

    .page-tin-tuc__promo-banner .page-tin-tuc__container {
        flex-direction: column; /* Stack promo content and image */
        gap: 30px;
    }

    .page-tin-tuc__promo-content {
        text-align: center;
        width: 100%;
    }

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

    .page-tin-tuc__promo-text {
        font-size: 1em;
    }

    .page-tin-tuc__promo-figure {
        width: 100%;
    }

    /* 4. Buttons and Button Containers */
    .page-tin-tuc__cta-buttons,
    .page-tin-tuc__button-group,
    .page-tin-tuc__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-tin-tuc__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* 5. Registration Tutorial and FAQ - N/A for this page, but structure required */
}

/* Tablet @media (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-tin-tuc__container {
        padding: 0 30px;
    }
    .page-tin-tuc__hero-image-wrapper {
        height: 450px;
    }
    .page-tin-tuc__main-title {
        font-size: 2.8em;
    }
    .page-tin-tuc__articles-section,
    .page-tin-tuc__deep-dive-section,
    .page-tin-tuc__promo-banner {
        padding: 50px 0;
    }
    .page-tin-tuc__article-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 25px;
    }
    .page-tin-tuc__promo-banner .page-tin-tuc__container {
        gap: 30px;
    }
    .page-tin-tuc__promo-title {
        font-size: 2.4em;
    }
}