/* style/news-latest-industry-updates.css */

/* Biến CSS cho màu sắc và khoảng cách */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --button-register: #C30808;
    --button-login: #C30808;
    --font-login-register: #FFFF00;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-bg-light-mode: #ffffff;
}

.page-news-latest-industry-updates {
    color: var(--text-on-dark); /* Body background is #000000, so use light text */
    background-color: #000000;
}

.page-news-latest-industry-updates__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news-latest-industry-updates__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-on-dark);
    background-color: var(--primary-color);
}

.page-news-latest-industry-updates__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2; /* Slightly visible background image */
}

.page-news-latest-industry-updates__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news-latest-industry-updates__hero-section .page-news-latest-industry-updates__container {
    position: relative;
    z-index: 1;
}

.page-news-latest-industry-updates__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    line-height: 1.2;
}

.page-news-latest-industry-updates__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
}

.page-news-latest-industry-updates__btn-primary {
    display: inline-block;
    background-color: var(--button-register);
    color: var(--font-login-register);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--font-login-register);
}

.page-news-latest-industry-updates__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-news-latest-industry-updates__btn-primary--center {
    display: block;
    margin: 40px auto 20px auto;
    max-width: 300px;
}

.page-news-latest-industry-updates__content-area {
    padding: 60px 0;
}

.page-news-latest-industry-updates__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-news-latest-industry-updates__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-news-latest-industry-updates__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: inherit;
}

.page-news-latest-industry-updates__paragraph {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
    color: inherit;
}

.page-news-latest-industry-updates__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 25px;
    color: inherit;
}

.page-news-latest-industry-updates__list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-news-latest-industry-updates__list-item {
    background-color: var(--card-bg-dark-mode); /* Use for dark-bg sections */
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark);
}

.page-news-latest-industry-updates__light-bg .page-news-latest-industry-updates__list-item {
    background-color: var(--card-bg-light-mode); /* Use for light-bg sections */
    color: var(--text-on-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-news-latest-industry-updates__list-heading {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: inherit;
}

.page-news-latest-industry-updates__list-item p {
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
}

.page-news-latest-industry-updates__keyword {
    font-weight: bold;
    color: var(--primary-color);
}

.page-news-latest-industry-updates__light-bg .page-news-latest-industry-updates__keyword {
    color: var(--primary-color);
}

.page-news-latest-industry-updates__dark-bg .page-news-latest-industry-updates__keyword {
    color: var(--font-login-register);
}

.page-news-latest-industry-updates__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.page-news-latest-industry-updates__image--center {
    margin: 40px auto;
}

/* FAQ Section */
.page-news-latest-industry-updates__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly darker background for FAQ */
    color: var(--text-on-dark);
}

.page-news-latest-industry-updates__faq-list {
    margin-top: 30px;
}

.page-news-latest-industry-updates__faq-item {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-news-latest-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-on-dark);
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-news-latest-industry-updates__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news-latest-industry-updates__faq-title {
    margin: 0;
    color: inherit;
}

.page-news-latest-industry-updates__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--font-login-register);
}

.page-news-latest-industry-updates__faq-item.active .page-news-latest-industry-updates__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-news-latest-industry-updates__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-on-dark);
    background-color: rgba(255, 255, 255, 0.02);
}

.page-news-latest-industry-updates__faq-item.active .page-news-latest-industry-updates__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px 25px;
}

.page-news-latest-industry-updates__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news-latest-industry-updates__main-title {
        font-size: 2.8em;
    }
    .page-news-latest-industry-updates__intro-text {
        font-size: 1.2em;
    }
    .page-news-latest-industry-updates__section-title {
        font-size: 2.2em;
    }
    .page-news-latest-industry-updates__sub-title {
        font-size: 1.6em;
    }
    .page-news-latest-industry-updates__list-heading {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-news-latest-industry-updates__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-news-latest-industry-updates__main-title {
        font-size: 2.2em;
    }
    .page-news-latest-industry-updates__intro-text {
        font-size: 1em;
    }
    .page-news-latest-industry-updates__section-title {
        font-size: 1.8em;
    }
    .page-news-latest-industry-updates__sub-title {
        font-size: 1.4em;
    }
    .page-news-latest-industry-updates__paragraph,
    .page-news-latest-industry-updates__list-item p,
    .page-news-latest-industry-updates__faq-answer p {
        font-size: 1em;
        line-height: 1.6;
    }
    .page-news-latest-industry-updates__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Mobile image responsive */
    .page-news-latest-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile container padding */
    .page-news-latest-industry-updates__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news-latest-industry-updates__content-area,
    .page-news-latest-industry-updates__faq-section {
        padding: 40px 0;
    }

    /* Button responsive */
    .page-news-latest-industry-updates__btn-primary,
    .page-news-latest-industry-updates a[class*="button"],
    .page-news-latest-industry-updates 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-news-latest-industry-updates__cta-buttons,
    .page-news-latest-industry-updates__button-group,
    .page-news-latest-industry-updates__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;
    }
}