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

/* Base styles for the page content, ensuring text color contrasts with body background #0a0a0a */
.page-news-industry-updates {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Add some padding at the bottom before the footer */
}

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

/* Hero Section */
.page-news-industry-updates__hero-section {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
}

.page-news-industry-updates__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-news-industry-updates__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-news-industry-updates__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-news-industry-updates__main-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-news-industry-updates__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Call to Action Button */
.page-news-industry-updates__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-news-industry-updates__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-news-industry-updates__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* Content Area */
.page-news-industry-updates__content-area {
    padding: 60px 0;
    background-color: transparent; /* Content area uses transparent background to show body background */
}

.page-news-industry-updates__dark-bg {
    color: #ffffff; /* Ensure text is light on this section */
}

.page-news-industry-updates__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-news-industry-updates__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: justify;
}

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

.page-news-industry-updates__article-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff; /* Light text for card content */
    display: flex;
    flex-direction: column;
}

.page-news-industry-updates__article-card:hover {
    transform: translateY(-5px);
}

.page-news-industry-updates__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news-industry-updates__card-title {
    font-size: 1.4em;
    margin: 15px 15px 10px 15px;
    color: #26A9E0; /* Brand primary color for card titles */
    flex-grow: 1; /* Allow title to take available space */
}

.page-news-industry-updates__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-news-industry-updates__card-title a:hover {
    text-decoration: underline;
}

.page-news-industry-updates__card-text {
    font-size: 0.95em;
    margin: 0 15px 15px 15px;
    color: #cccccc;
}

.page-news-industry-updates__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-news-industry-updates__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-news-industry-updates__game-card:hover {
    transform: translateY(-5px);
}

.page-news-industry-updates__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.page-news-industry-updates__game-title {
    font-size: 1.3em;
    margin: 15px 15px 10px 15px;
    color: #26A9E0;
    flex-grow: 1;
}

.page-news-industry-updates__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-news-industry-updates__game-title a:hover {
    text-decoration: underline;
}

.page-news-industry-updates__game-description {
    font-size: 0.9em;
    margin: 0 15px 15px 15px;
    color: #cccccc;
}

.page-news-industry-updates__button-center {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-news-industry-updates__promotion-banner {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 40px;
    margin-bottom: 40px;
    background-color: #26A9E0; /* Fallback background if image fails */
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
}

.page-news-industry-updates__banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-news-industry-updates__promotion-banner .page-news-industry-updates__banner-image {
    opacity: 0.7; /* Make image slightly transparent for text readability */
}

.page-news-industry-updates__banner-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    max-width: 700px;
}

.page-news-industry-updates__banner-title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-news-industry-updates__banner-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-news-industry-updates__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #ffffff;
}

.page-news-industry-updates__light-bg {
    background-color: #1a1a1a; /* For sections requiring a slightly different dark background */
    color: #ffffff;
}

.page-news-industry-updates__section-title--dark-text {
    color: #26A9E0; /* Brand primary color for titles on slightly lighter dark background */
}

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

.page-news-industry-updates__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle background for each FAQ item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-news-industry-updates__faq-heading {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font size */
    color: #ffffff;
}

.page-news-industry-updates__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-toggle {
    transform: rotate(45deg);
}

.page-news-industry-updates__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #cccccc;
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-news-industry-updates__faq-answer p {
    margin-bottom: 15px;
    color: #cccccc;
}

.page-news-industry-updates__link {
    color: #26A9E0;
    text-decoration: none;
}

.page-news-industry-updates__link:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-news-industry-updates__hero-section {
        height: 400px;
    }

    .page-news-industry-updates__hero-content {
        padding: 15px;
    }

    .page-news-industry-updates__main-title {
        font-size: 1.8em;
    }

    .page-news-industry-updates__intro-text {
        font-size: 1em;
    }

    .page-news-industry-updates__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Space out stacked buttons */
    }
    
    .page-news-industry-updates__button-group {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-news-industry-updates__section-title {
        font-size: 1.8em;
        padding-top: 15px;
    }

    .page-news-industry-updates__paragraph {
        font-size: 1em;
    }

    .page-news-industry-updates__article-grid,
    .page-news-industry-updates__game-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news-industry-updates__article-card,
    .page-news-industry-updates__game-card {
        margin: 0 15px; /* Add side margin for cards */
    }

    .page-news-industry-updates__card-image,
    .page-news-industry-updates__game-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all images are responsive */
    .page-news-industry-updates img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-news-industry-updates__section,
    .page-news-industry-updates__card,
    .page-news-industry-updates__container,
    .page-news-industry-updates__article-card,
    .page-news-industry-updates__game-card,
    .page-news-industry-updates__promotion-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content inside sections/containers */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Override padding for specific elements that are already handled by container */
    .page-news-industry-updates__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }
    
    .page-news-industry-updates__content-area,
    .page-news-industry-updates__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-news-industry-updates__promotion-banner {
        padding: 0 !important; /* Reset padding to let banner content handle it */
    }

    .page-news-industry-updates__banner-content {
        padding: 20px;
    }

    .page-news-industry-updates__banner-title {
        font-size: 1.5em;
    }

    .page-news-industry-updates__banner-text {
        font-size: 0.9em;
    }
    
    .page-news-industry-updates__faq-item {
        margin: 0 15px 15px 15px; /* Add side margin for FAQ items */
    }
    .page-news-industry-updates__faq-question {
        padding: 15px 20px;
    }
    .page-news-industry-updates__faq-answer {
        padding: 0 20px;
    }
    .page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
        padding: 10px 20px 20px 20px;
    }
}

/* Ensure no image filters are used */
.page-news-industry-updates img {
    filter: none !important;
}