/* General styles for the Tin Tức page */
.page-tin-tuc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF3E6; /* Text Main */
    background: #0D0E12; /* Background */
    padding-top: 10px; /* Small top padding for main content, relying on body padding-top from shared.css */
}

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

.page-tin-tuc__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FF8C1A; /* Main Color */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

.page-tin-tuc__section-title--left {
    text-align: left;
}

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

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
}

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

.page-tin-tuc__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

.page-tin-tuc__btn-secondary:hover {
    background: #FFA53A;
    color: #0D0E12; /* Background color for contrast */
    transform: translateY(-2px);
}

/* Hero Section */
.page-tin-tuc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding-bottom: 50px;
    overflow: hidden; /* Prevent image overflow */
}

.page-tin-tuc__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for desktop */
    overflow: hidden;
}

.page-tin-tuc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the area, but mobile will override to contain */
}

.page-tin-tuc__hero-content {
    max-width: 900px;
    margin-top: 30px; /* Space between image and content */
    padding: 0 15px;
}

.page-tin-tuc__main-title {
    font-size: 48px;
    color: #FF8C1A; /* Main Color */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255,165,58,0.5);
    max-width: 100%;
    box-sizing: border-box;
}

.page-tin-tuc__description {
    font-size: 18px;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tin-tuc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

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

.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: #17191F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-tin-tuc__news-card-image {
    width: 100%;
    height: 220px;
    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: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tin-tuc__news-card-title a {
    color: #FFA53A; /* Auxiliary Color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tuc__news-card-title a:hover {
    color: #FFB04D; /* Glow */
}

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

.page-tin-tuc__news-card-excerpt {
    font-size: 16px;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tin-tuc__read-more-btn {
    display: inline-block;
    color: #FF8C1A; /* Main Color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-tin-tuc__read-more-btn:hover {
    color: #FFB04D; /* Glow */
}

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

/* In-depth Article Section */
.page-tin-tuc__in-depth-article-section {
    background: #17191F; /* Card BG, but used for section background */
    padding: 80px 0;
}

.page-tin-tuc__in-depth-article-section .page-tin-tuc__section-title {
    color: #FF8C1A; /* Main Color */
    margin-bottom: 40px;
}

.page-tin-tuc__article-body {
    max-width: 900px;
    margin: 0 auto;
    color: #FFF3E6; /* Text Main */
    font-size: 17px;
    line-height: 1.8;
}

.page-tin-tuc__article-body h3 {
    font-size: 28px;
    color: #FFA53A; /* Auxiliary Color */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-tin-tuc__article-body strong {
    color: #FF8C1A; /* Main Color */
}

.page-tin-tuc__article-body a {
    color: #FFA53A;
    text-decoration: underline;
}

.page-tin-tuc__article-body a:hover {
    color: #FFB04D;
}

.page-tin-tuc__article-figure {
    margin: 30px 0;
    text-align: center;
}

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

.page-tin-tuc__article-figure figcaption {
    font-size: 15px;
    color: #A84F0C; /* Border color for subtle text */
    margin-top: 10px;
}

/* CTA Section */
.page-tin-tuc__cta-section {
    padding: 80px 0;
    background: #0D0E12; /* Background */
}

.page-tin-tuc__cta-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #17191F; /* Card BG */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-tin-tuc__cta-content {
    flex-grow: 1;
    text-align: left;
}

.page-tin-tuc__cta-content .page-tin-tuc__section-title {
    text-align: left;
    color: #FF8C1A; /* Main Color */
    margin-bottom: 20px;
    font-size: 32px;
}

.page-tin-tuc__cta-content p {
    font-size: 18px;
    color: #FFF3E6; /* Text Main */
    margin-bottom: 30px;
}

.page-tin-tuc__cta-content .page-tin-tuc__cta-buttons {
    justify-content: flex-start;
}

/* FAQ Section */
.page-tin-tuc__faq-section {
    background: #0D0E12; /* Background */
    padding: 80px 0;
}

details.page-tin-tuc__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #A84F0C; /* Border */
    overflow: hidden;
    background: #17191F; /* Card BG */
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question::-webkit-details-marker {
    display: none;
}
details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question:hover {
    background: rgba(255, 139, 26, 0.1); /* Slight hover effect with main color */
}
.page-tin-tuc__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #FFF3E6; /* Text Main */
}
.page-tin-tuc__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFA53A; /* Auxiliary Color */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
    padding: 0 20px 20px;
    background: rgba(23, 25, 31, 0.8); /* Slightly lighter version of Card BG */
    border-radius: 0 0 5px 5px;
    color: #FFF3E6; /* Text Main */
}

/* Images global styles */
.page-tin-tuc img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-tin-tuc__hero-content {
        max-width: 768px;
    }
    .page-tin-tuc__main-title {
        font-size: 42px;
    }
    .page-tin-tuc__description {
        font-size: 17px;
    }
    .page-tin-tuc__section-title {
        font-size: 32px;
    }
    .page-tin-tuc__news-card-title {
        font-size: 20px;
    }
    .page-tin-tuc__article-body h3 {
        font-size: 26px;
    }
    .page-tin-tuc__article-body {
        font-size: 16px;
    }
    .page-tin-tuc__cta-container {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .page-tin-tuc__cta-image {
        max-width: 60%;
        margin-bottom: 20px;
    }
    .page-tin-tuc__cta-content {
        text-align: center;
    }
    .page-tin-tuc__cta-content .page-tin-tuc__section-title {
        text-align: center;
        font-size: 28px;
    }
    .page-tin-tuc__cta-content .page-tin-tuc__cta-buttons {
        justify-content: center;
    }
}


@media (max-width: 768px) {
    /* General mobile typography */
    .page-tin-tuc {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-tin-tuc__container {
        padding: 15px;
    }

    /* HERO Section */
    .page-tin-tuc__hero-section {
        padding-bottom: 30px;
        padding-top: 10px; /* Specific 10px top padding for mobile */
    }
    .page-tin-tuc__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        width: 100% !important;
        height: auto !important;
    }
    .page-tin-tuc__hero-content {
        margin-top: 20px;
        padding: 0 10px;
    }
    .page-tin-tuc__main-title {
        font-size: clamp(28px, 8vw, 38px); /* Clamp for responsive H1 */
        margin-bottom: 15px;
    }
    .page-tin-tuc__description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-tin-tuc__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
    }
    .page-tin-tuc__cta-buttons .page-tin-tuc__btn-primary,
    .page-tin-tuc__cta-buttons .page-tin-tuc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Latest News Section */
    .page-tin-tuc__latest-news-section {
        padding: 40px 0;
    }
    .page-tin-tuc__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-tin-tuc__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-tin-tuc__news-card-image {
        height: 180px;
    }
    .page-tin-tuc__news-card-title {
        font-size: 18px;
    }
    .page-tin-tuc__news-card-excerpt {
        font-size: 15px;
    }

    /* In-depth Article Section */
    .page-tin-tuc__in-depth-article-section {
        padding: 40px 0;
    }
    .page-tin-tuc__in-depth-article-section .page-tin-tuc__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-tin-tuc__article-body {
        font-size: 15px;
        line-height: 1.7;
    }
    .page-tin-tuc__article-body h3 {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-tin-tuc__article-figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* CTA Section */
    .page-tin-tuc__cta-section {
        padding: 40px 0;
    }
    .page-tin-tuc__cta-container {
        padding: 25px;
        gap: 20px;
    }
    .page-tin-tuc__cta-image {
        max-width: 80%; /* Larger on mobile when stacked */
        margin: 0 auto 20px auto;
    }
    .page-tin-tuc__cta-content .page-tin-tuc__section-title {
        font-size: 26px;
    }
    .page-tin-tuc__cta-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* FAQ Section */
    .page-tin-tuc__faq-section {
        padding: 40px 0;
    }
    details.page-tin-tuc__faq-item summary.page-tin-tuc__faq-question {
        padding: 15px;
    }
    .page-tin-tuc__faq-qtext {
        font-size: 16px;
    }
    .page-tin-tuc__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-tin-tuc__faq-item .page-tin-tuc__faq-answer {
        padding: 0 15px 15px;
    }

    /* Global image and container responsive rules */
    .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__hero-section,
    .page-tin-tuc__latest-news-section,
    .page-tin-tuc__in-depth-article-section,
    .page-tin-tuc__cta-section,
    .page-tin-tuc__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}