/* General styles for the Tin Tức page */
.page-tin-tuc {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #ffffff;
}

.page-tin-tuc__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: linear-gradient(to right, #017439, #028a4a); /* Brand color gradient */
    color: #ffffff; /* White text for dark background */
}

.page-tin-tuc__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 40px 15px;
    box-sizing: border-box;
}

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

.page-tin-tuc__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

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

.page-tin-tuc__hero-cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-tin-tuc__hero-image {
    flex: 1 1 40%;
    min-width: 300px;
    text-align: center;
}

.page-tin-tuc__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it behaves as a block element for max-width */
}

/* Section Titles */
.page-tin-tuc__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-tin-tuc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-tin-tuc__section-description {
    font-size: 1.1rem;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* News List Section */
.page-tin-tuc__news-list-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.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;
}

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

.page-tin-tuc__news-card-media {
    height: 200px; /* Fixed height for consistent card image display */
    overflow: hidden;
}

.page-tin-tuc__news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-tin-tuc__news-card-content {
    padding: 25px;
}

.page-tin-tuc__news-date {
    display: block;
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 10px;
}

.page-tin-tuc__news-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.page-tin-tuc__news-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tuc__news-title a:hover {
    color: #028a4a;
}

.page-tin-tuc__news-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
}

.page-tin-tuc__read-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
}

.page-tin-tuc__read-more-btn:hover {
    background-color: #028a4a;
}

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

/* Promo Section */
.page-tin-tuc__promo-section {
    padding: 60px 0;
    background-color: #f0f8f0; /* Light green background */
}

.page-tin-tuc__promo-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-tin-tuc__promo-image {
    flex: 1 1 45%;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-tin-tuc__promo-text {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-tin-tuc__promo-text h3 {
    font-size: 2rem;
    color: #017439;
    margin-bottom: 20px;
}

.page-tin-tuc__promo-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-tin-tuc__promo-text li {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-tin-tuc__promo-text li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #017439;
}

/* Contact Section */
.page-tin-tuc__contact-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-tin-tuc__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login type actions */
    color: #FFFF00; /* Custom font color for Register/Login type actions */
    border: 2px solid #C30808;
    box-shadow: 0 4px 10px rgba(195, 8, 8, 0.2);
}

.page-tin-tuc__btn-primary:hover {
    background-color: #e00a0a;
    border-color: #e00a0a;
    box-shadow: 0 6px 15px rgba(195, 8, 8, 0.3);
}

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

.page-tin-tuc__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #028a4a;
    border-color: #028a4a;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
    .page-tin-tuc__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tin-tuc__hero-content {
        text-align: center;
    }
    .page-tin-tuc__hero-cta-buttons {
        justify-content: center;
    }
    .page-tin-tuc__promo-content {
        flex-direction: column;
    }
    .page-tin-tuc__promo-image {
        order: -1; /* Image above text on smaller screens */
    }
    .page-tin-tuc__promo-text h3 {
        text-align: center;
    }
    .page-tin-tuc__promo-text ul {
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .page-tin-tuc {
        font-size: 16px;
        line-height: 1.6;
    }
    /* HERO Section Mobile Styles */
    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }
    .page-tin-tuc__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }
    .page-tin-tuc__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-tin-tuc__hero-description {
        font-size: 1rem;
    }
    .page-tin-tuc__hero-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    /* Buttons Mobile Styles */
    .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-cta-buttons,
    .page-tin-tuc__contact-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__contact-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Images Mobile Styles */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tin-tuc__section,
    .page-tin-tuc__card,
    .page-tin-tuc__container,
    .page-tin-tuc__news-list-section,
    .page-tin-tuc__promo-section,
    .page-tin-tuc__contact-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* News Grid Mobile Styles */
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-tin-tuc__news-card-media {
        height: 180px; /* Adjust for mobile */
    }

    /* Promo Section Mobile Styles */
    .page-tin-tuc__promo-content {
        gap: 30px;
    }
    .page-tin-tuc__promo-text h3 {
        font-size: 1.5rem;
    }
    .page-tin-tuc__promo-text li {
        font-size: 1rem;
    }
    /* Generic content section mobile styles (for news list, promo, contact) */
    .page-tin-tuc__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-tin-tuc__section-description {
        margin-bottom: 30px;
    }
}