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

/* Base Styles */
.page-news-industry-trends {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background, #FFFFFF);
}

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

.page-news-industry-trends__section {
    padding: 60px 0;
    text-align: center;
}

.page-news-industry-trends__section-title {
    font-size: 2.5em;
    color: #017439;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-news-industry-trends__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-news-industry-trends__inline-link {
    color: #017439;
    text-decoration: underline;
}

.page-news-industry-trends__inline-link:hover {
    color: #005a2e;
}

.page-news-industry-trends__highlight-text {
    color: #017439;
    font-weight: bold;
}

/* Hero Section */
.page-news-industry-trends__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

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

.page-news-industry-trends__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

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

.page-news-industry-trends__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-news-industry-trends__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-news-industry-trends__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.page-news-industry-trends__btn-primary,
.page-news-industry-trends__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news-industry-trends__btn-primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-news-industry-trends__btn-primary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-news-industry-trends__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-news-industry-trends__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

/* Content Rows with Images */
.page-news-industry-trends__content-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-news-industry-trends__content-row--reverse {
    flex-direction: row-reverse;
}

.page-news-industry-trends__text-block {
    flex: 1;
}

.page-news-industry-trends__image-wrapper {
    flex: 1;
    min-width: 200px; /* Minimum size for content images */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news-industry-trends__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Game Grid */
.page-news-industry-trends__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news-industry-trends__game-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-news-industry-trends__game-title {
    font-size: 1.4em;
    color: #017439;
    margin: 15px 15px 5px;
}

.page-news-industry-trends__game-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-news-industry-trends__game-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 15px;
}

/* FAQ Section */
.page-news-industry-trends__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-trends__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    text-align: left;
}

.page-news-industry-trends__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-news-industry-trends__faq-question:hover {
    background-color: #f0f0f0;
}

.page-news-industry-trends__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-news-industry-trends__faq-item[open] .page-news-industry-trends__faq-toggle {
    content: '−'; /* Changed by JS, but good to have default */
}

.page-news-industry-trends__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news-industry-trends__faq-item[open] .page-news-industry-trends__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Details element specific styling */
.page-news-industry-trends__faq-item summary {
    list-style: none;
}
.page-news-industry-trends__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Color Contrast Specifics */
.page-news-industry-trends__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-news-industry-trends__dark-bg .page-news-industry-trends__section-title,
.page-news-industry-trends__dark-bg .page-news-industry-trends__inline-link,
.page-news-industry-trends__dark-bg .page-news-industry-trends__highlight-text {
    color: #FFFF00; /* Register/Login Font color for emphasis on dark background */
}

.page-news-industry-trends__dark-bg .page-news-industry-trends__btn-secondary {
    color: #FFFF00;
    border-color: #FFFF00;
}

.page-news-industry-trends__dark-bg .page-news-industry-trends__btn-secondary:hover {
    background-color: #FFFF00;
    color: #017439;
}

.page-news-industry-trends__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

/* Specific button color overrides */
.page-news-industry-trends__hero-buttons .page-news-industry-trends__btn-primary {
    background-color: #C30808; /* Register color */
    border-color: #C30808;
    color: #FFFF00; /* Register/Login Font color */
}

.page-news-industry-trends__hero-buttons .page-news-industry-trends__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-news-industry-trends__hero-buttons .page-news-industry-trends__btn-secondary {
    color: #FFFF00; /* Register/Login Font color */
    border-color: #FFFF00;
}

.page-news-industry-trends__hero-buttons .page-news-industry-trends__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-news-industry-trends__section--promotions .page-news-industry-trends__btn-primary {
    background-color: #C30808; /* Register color */
    border-color: #C30808;
    color: #FFFF00; /* Register/Login Font color */
}

.page-news-industry-trends__section--promotions .page-news-industry-trends__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-news-industry-trends__section--promotions .page-news-industry-trends__btn-secondary {
    color: #FFFF00; /* Register/Login Font color */
    border-color: #FFFF00;
}

.page-news-industry-trends__section--promotions .page-news-industry-trends__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

.page-news-industry-trends__section--future-outlook .page-news-industry-trends__btn-primary {
    background-color: #C30808; /* Register color */
    border-color: #C30808;
    color: #FFFF00; /* Register/Login Font color */
}

.page-news-industry-trends__section--future-outlook .page-news-industry-trends__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-news-industry-trends__section--future-outlook .page-news-industry-trends__btn-secondary {
    color: #FFFF00; /* Register/Login Font color */
    border-color: #FFFF00;
}

.page-news-industry-trends__section--future-outlook .page-news-industry-trends__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry-trends__hero-title {
        font-size: 2.8em;
    }

    .page-news-industry-trends__hero-description {
        font-size: 1.1em;
    }

    .page-news-industry-trends__section-title {
        font-size: 2em;
    }

    .page-news-industry-trends__content-row {
        flex-direction: column;
    }

    .page-news-industry-trends__content-row--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-news-industry-trends__hero-section {
        height: 60vh;
        min-height: 350px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
    }

    .page-news-industry-trends__hero-title {
        font-size: 2em;
    }

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

    .page-news-industry-trends__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-news-industry-trends__btn-primary,
    .page-news-industry-trends__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-news-industry-trends__section-text {
        font-size: 1em;
        padding: 0 15px;
        text-align: left;
    }

    .page-news-industry-trends__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news-industry-trends__image,
    .page-news-industry-trends__game-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news-industry-trends__image-wrapper,
    .page-news-industry-trends__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-news-industry-trends__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-news-industry-trends__faq-list {
        padding: 0 15px;
    }

    .page-news-industry-trends__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-news-industry-trends__faq-answer {
        padding: 10px 20px;
    }
}