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

/* Biến màu từ tùy chỉnh */
:root {
    --go9-primary-color: #11A84E;
    --go9-secondary-color: #22C768;
    --go9-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --go9-card-bg: #11271B;
    --go9-background: #08160F;
    --go9-text-main: #F2FFF6;
    --go9-text-secondary: #A7D9B8;
    --go9-border-color: #2E7A4E;
    --go9-glow-color: #57E38D;
    --go9-gold-color: #F2C14E;
    --go9-divider-color: #1E3A2A;
    --go9-deep-green: #0A4B2C;
}

/* -------------------------------------------------------------------------- */
/*                       Base Styles for Page Content                         */
/* -------------------------------------------------------------------------- */
.page-news-industry-updates {
    background-color: var(--go9-background); /* Body background handled by shared.css */
    color: var(--go9-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-news-industry-updates__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
}

.page-news-industry-updates__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-news-industry-updates__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: 40px; /* Space between image and content */
    padding: 20px;
}

.page-news-industry-updates__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--go9-gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-news-industry-updates__description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--go9-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-updates__btn-primary {
    display: inline-block;
    background: var(--go9-button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news-industry-updates__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* -------------------------------------------------------------------------- */
/*                            Content Area Styles                             */
/* -------------------------------------------------------------------------- */
.page-news-industry-updates__content-area {
    padding: 60px 0;
}

.page-news-industry-updates__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--go9-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-news-industry-updates__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--go9-text-main);
    text-align: justify;
}

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

.page-news-industry-updates__card {
    background-color: var(--go9-card-bg);
    border: 1px solid var(--go9-border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--go9-text-main);
}

.page-news-industry-updates__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-news-industry-updates__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-news-industry-updates__card-title {
    font-size: 1.5rem;
    color: var(--go9-gold-color);
    margin: 20px 20px 10px;
    font-weight: bold;
}

.page-news-industry-updates__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-industry-updates__card-title a:hover {
    color: var(--go9-glow-color);
}

.page-news-industry-updates__card-text {
    font-size: 1rem;
    color: var(--go9-text-secondary);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news-industry-updates__btn-secondary {
    display: inline-block;
    background: var(--go9-deep-green);
    color: var(--go9-text-main);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid var(--go9-border-color);
    margin: 0 20px 20px;
    align-self: flex-start;
}

.page-news-industry-updates__btn-secondary:hover {
    background: var(--go9-primary-color);
    color: #ffffff;
    border-color: var(--go9-primary-color);
}

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

.page-news-industry-updates__list-item {
    background-color: var(--go9-card-bg);
    border: 1px solid var(--go9-divider-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--go9-text-main);
    display: flex;
    align-items: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news-industry-updates__list-item::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 1;
}

.page-news-industry-updates__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* -------------------------------------------------------------------------- */
/*                                FAQ Section                                 */
/* -------------------------------------------------------------------------- */
.page-news-industry-updates__faq-list {
    margin-top: 40px;
}

.page-news-industry-updates__faq-item {
    background-color: var(--go9-card-bg);
    border: 1px solid var(--go9-border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-news-industry-updates__faq-item.active {
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.3);
}

.page-news-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--go9-text-main);
    cursor: pointer;
    background-color: var(--go9-card-bg);
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent; /* default */
}

.page-news-industry-updates__faq-item[open] .page-news-industry-updates__faq-question {
    border-bottom: 1px solid var(--go9-divider-color);
}

.page-news-industry-updates__faq-question:hover {
    background-color: var(--go9-deep-green);
}

.page-news-industry-updates__faq-qtext {
    flex-grow: 1;
    color: var(--go9-gold-color);
}

.page-news-industry-updates__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--go9-glow-color);
    transition: transform 0.3s ease;
}

.page-news-industry-updates__faq-item[open] .page-news-industry-updates__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate for minus */
}

.page-news-industry-updates__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--go9-text-secondary);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
    max-height: 1000px; /* Large enough to show content */
}

.page-news-industry-updates__faq-item[open] .page-news-industry-updates__faq-answer {
    max-height: 1000px; /* For details tag native open state */
}

/* -------------------------------------------------------------------------- */
/*                                Color Themes                                */
/* -------------------------------------------------------------------------- */
.page-news-industry-updates__dark-section {
    background-color: var(--go9-deep-green);
    color: var(--go9-text-main);
}

.page-news-industry-updates__light-bg {
    background-color: var(--go9-background);
    color: var(--go9-text-main);
}

/* -------------------------------------------------------------------------- */
/*                                 Responsive Design                          */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .page-news-industry-updates__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-news-industry-updates__description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }

    .page-news-industry-updates__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-news-industry-updates__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-news-industry-updates__card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .page-news-industry-updates__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-news-industry-updates__hero-content {
        margin-top: 20px;
        padding: 10px;
    }

    .page-news-industry-updates__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-news-industry-updates__description {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }

    .page-news-industry-updates__btn-primary {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

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

    .page-news-industry-updates__section-container {
        padding: 0 15px; /* Add padding for mobile content */
    }

    .page-news-industry-updates__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-news-industry-updates__text-block,
    .page-news-industry-updates__list-item,
    .page-news-industry-updates__card-text,
    .page-news-industry-updates__faq-answer p {
        font-size: 1rem;
    }

    .page-news-industry-updates__feature-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news-industry-updates__card-image {
        height: 200px;
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news-industry-updates__card-title {
        font-size: 1.3rem;
        margin: 15px 15px 8px;
    }

    .page-news-industry-updates__card-text {
        padding: 0 15px;
        margin-bottom: 15px;
    }

    .page-news-industry-updates__btn-secondary {
        margin: 0 15px 15px;
        width: calc(100% - 30px); /* Adjust for padding */
        max-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-industry-updates__image-full-width {
        margin: 30px 0;
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news-industry-updates__faq-question {
        padding: 15px;
        font-size: 1.1rem;
    }

    .page-news-industry-updates__faq-toggle {
        font-size: 1.5rem;
    }

    .page-news-industry-updates__faq-answer {
        padding: 0 15px 15px;
    }

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

    .page-news-industry-updates video,
    .page-news-industry-updates__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news-industry-updates__section,
    .page-news-industry-updates__card,
    .page-news-industry-updates__container,
    .page-news-industry-updates__video-section,
    .page-news-industry-updates__video-container,
    .page-news-industry-updates__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-news-industry-updates__cta-buttons {
        display: flex;
        flex-direction: column; 
    }
}

@media (max-width: 480px) {
    .page-news-industry-updates__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }

    .page-news-industry-updates__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .page-news-industry-updates__description {
        font-size: clamp(0.85rem, 4vw, 0.95rem);
    }

    .page-news-industry-updates__btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .page-news-industry-updates__section-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    .page-news-industry-updates__text-block,
    .page-news-industry-updates__list-item,
    .page-news-industry-updates__card-text,
    .page-news-industry-updates__faq-answer p {
        font-size: 0.95rem;
    }

    .page-news-industry-updates__card-image {
        height: 180px;
    }

    .page-news-industry-updates__card-title {
        font-size: 1.2rem;
    }

    .page-news-industry-updates__faq-question {
        font-size: 1rem;
    }

    .page-news-industry-updates__faq-toggle {
        font-size: 1.3rem;
    }
}