/* style/tin-tuc.css */

/* Base styles for the page content container */
.page-tin-tuc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #1F2D3D; /* Text Main color */
    background-color: #F4F7FB; /* Background color */
}

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

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

.page-tin-tuc__section-title--light {
    color: #FFFFFF;
}

.page-tin-tuc__section-description {
    font-size: 18px;
    color: #1F2D3D;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-tin-tuc__section-description--light {
    color: #F4F7FB; /* Lighter text for dark backgrounds */
}

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Adhering to the 10px rule, relying on body padding for header offset */
    padding-bottom: 40px;
    background-color: #F4F7FB; /* Ensure a light background for dark text */
}

.page-tin-tuc__hero-container {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 40px 16px;
    gap: 40px; /* Increased gap for better spacing */
    box-sizing: border-box;
}

.page-tin-tuc__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
    color: #1F2D3D;
}

.page-tin-tuc__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 font-size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000000; /* Custom Color_1776249996415 for main title */
    max-width: 600px;
}

.page-tin-tuc__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 550px;
    color: #1F2D3D;
}

.page-tin-tuc__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px; /* Limit width for button group */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    box-sizing: border-box;
    flex-grow: 1; /* Allow buttons to grow */
    min-width: 180px; /* Minimum width for buttons */
}

.page-tin-tuc__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-tin-tuc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-tin-tuc__btn-secondary {
    background-color: #FFFFFF; /* Card BG */
    color: #2F6BFF; /* Primary color */
    border: 2px solid #2F6BFF;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__btn-secondary:hover {
    background-color: #2F6BFF;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-tin-tuc__hero-image {
    flex: 1 1 50%; /* Adjusted flex basis for image */
    text-align: center;
    min-width: 320px;
}

.page-tin-tuc__hero-side-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-tin-tuc__news-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    overflow: hidden;
}

.page-tin-tuc__news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-tin-tuc__news-card:hover .page-tin-tuc__news-img {
    transform: scale(1.05);
}

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

.page-tin-tuc__news-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tin-tuc__news-title a {
    color: #000000; /* Custom Color_1776249996415 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tuc__news-title a:hover {
    color: #2F6BFF; /* Primary color */
}

.page-tin-tuc__news-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.page-tin-tuc__news-excerpt {
    font-size: 16px;
    color: #1F2D3D;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-tin-tuc__read-more-btn:hover {
    color: #4A8BFF; /* Lighter primary for hover */
}

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

/* FAQ Section */
.page-tin-tuc__faq-section {
    background-color: #2F6BFF; /* Primary color as dark background */
    padding: 60px 0;
}

.page-tin-tuc__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-tin-tuc__faq-item {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-tin-tuc__faq-item summary {
    display: block;
    padding: 20px 25px;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
    position: relative;
    color: #000000; /* Custom Color_1776249996415 */
    font-weight: bold;
    font-size: 18px;
}

.page-tin-tuc__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-tin-tuc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-tin-tuc__faq-qtext {
    flex-grow: 1;
}

.page-tin-tuc__faq-toggle {
    font-size: 24px;
    font-weight: normal;
    margin-left: 15px;
    color: #2F6BFF; /* Primary color */
}

.page-tin-tuc__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: #1F2D3D; /* Text Main color */
}

.page-tin-tuc__faq-answer p {
    margin: 0;
}

/* CTA Bottom Section */
.page-tin-tuc__cta-bottom-section {
    background-color: #F4F7FB; /* Background color */
    padding: 60px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-tin-tuc__cta-bottom-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: center;
    padding: 40px 16px;
    background-color: #2F6BFF; /* Primary color as dark background */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(47, 107, 255, 0.3);
    color: #FFFFFF;
}

.page-tin-tuc__cta-bottom-content .page-tin-tuc__section-title {
    color: #FFFFFF;
}

.page-tin-tuc__cta-bottom-content .page-tin-tuc__section-description {
    color: #F4F7FB;
}

.page-tin-tuc__cta-bottom-content .page-tin-tuc__cta-buttons {
    justify-content: center;
    margin: 0 auto;
}

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

.page-tin-tuc__cta-bottom-img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-tin-tuc__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-tin-tuc__hero-content,
    .page-tin-tuc__hero-image {
        flex: 1 1 100%;
    }

    .page-tin-tuc__main-title,
    .page-tin-tuc__hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .page-tin-tuc__cta-buttons {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .page-tin-tuc__cta-bottom-section {
        flex-direction: column-reverse; /* Image above content on tablets */
        gap: 20px;
    }

    .page-tin-tuc__cta-bottom-content,
    .page-tin-tuc__cta-bottom-image {
        flex: 1 1 100%;
    }
}


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

    .page-tin-tuc__container {
        padding: 20px 15px;
    }

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

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

    /* HERO Section */
    .page-tin-tuc__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-tin-tuc__hero-container {
        padding: 20px 15px;
        gap: 20px;
    }

    .page-tin-tuc__main-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 15px;
    }

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

    /* Buttons and Button Containers */
    .page-tin-tuc__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    .page-tin-tuc__cta-buttons > * {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary {
        padding: 12px 20px !important;
        font-size: 16px !important;
    }

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

    .page-tin-tuc__news-thumbnail {
        height: 180px; /* Adjust height for news thumbnails on mobile */
    }

    /* News Grid */
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tin-tuc__news-card {
        padding-bottom: 0;
    }

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

    .page-tin-tuc__news-title {
        font-size: 20px;
    }

    .page-tin-tuc__news-excerpt {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-tin-tuc__faq-item summary {
        padding: 15px 20px;
        font-size: 16px;
    }

    .page-tin-tuc__faq-answer {
        padding: 0 20px 15px;
        font-size: 15px;
    }

    /* CTA Bottom Section */
    .page-tin-tuc__cta-bottom-section {
        padding: 30px 0;
    }

    .page-tin-tuc__cta-bottom-content {
        padding: 30px 15px;
    }
}