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

/* Base styles for the page content */
.page-news-industry-updates {
    background-color: #121212; /* Dark background from body */
    color: #ffffff; /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Fixed header offset */
.page-news-industry-updates {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Section styling */
.page-news-industry-updates__section {
    padding: 60px 20px;
    text-align: center;
}

.page-news-industry-updates__dark-section {
    background-color: #0d0d0d; /* Slightly lighter dark for contrast with main body */
}

.page-news-industry-updates__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for smaller screens */
    box-sizing: border-box;
}

.page-news-industry-updates__container--reverse {
    display: flex;
    flex-direction: row-reverse; /* Image on left, text on right for desktop */
    align-items: center;
    gap: 40px;
    text-align: left;
}

/* Hero Section */
.page-news-industry-updates__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 500px;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
}

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

.page-news-industry-updates__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle */
}

.page-news-industry-updates__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.page-news-industry-updates__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

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

/* Titles */
.page-news-industry-updates__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-news-industry-updates__card-title,
.page-news-industry-updates__game-title {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #ffffff;
}

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

.page-news-industry-updates__game-title a:hover {
    color: #FFFF00; /* Highlight on hover */
    text-decoration: underline;
}

/* Text blocks */
.page-news-industry-updates__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-updates__text-block--center {
    text-align: center;
}

/* Buttons */
.page-news-industry-updates__btn-primary,
.page-news-industry-updates__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Responsive button */
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-news-industry-updates__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Specific button colors for Register/Login */
/* If these buttons were directly on this page, their styles would be: */
/*
.page-news-industry-updates__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}
.page-news-industry-updates__btn-register:hover {
    background-color: #a30707;
    border-color: #a30707;
}
.page-news-industry-updates__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}
.page-news-industry-updates__btn-login:hover {
    background-color: #a30707;
    border-color: #a30707;
}
*/

.page-news-industry-updates__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons on small screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Image styles */
.page-news-industry-updates img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure block-level for max-width to work */
    object-fit: cover; /* Ensure images fill their space */
}

/* Content blocks with images */
.page-news-industry-updates__content-block {
    flex: 1;
    padding: 20px;
}

.page-news-industry-updates__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page-news-industry-updates__content-image {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Grid for cards */
.page-news-industry-updates__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news-industry-updates__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
}

.page-news-industry-updates__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-news-industry-updates__card-text {
    color: #f0f0f0;
    font-size: 1em;
}

/* Feature List */
.page-news-industry-updates__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.page-news-industry-updates__list-item {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path fill="%23017439" d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
    background-size: 20px 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

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

.page-news-industry-updates__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-news-industry-updates__game-image {
    width: 100%;
    height: 180px; /* Consistent height for game images */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-news-industry-updates__game-description {
    color: #f0f0f0;
    font-size: 0.95em;
}

/* Video Section */
.page-news-industry-updates__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news-industry-updates__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-news-industry-updates__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
    background: transparent; /* Make it invisible */
}

/* FAQ Section */
.page-news-industry-updates__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-news-industry-updates__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px 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;
    background-color: #017439; /* Brand color for question background */
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news-industry-updates__faq-question:hover {
    background-color: #005f2e;
}

.page-news-industry-updates__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

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

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-news-industry-updates__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #f0f0f0;
}

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

.page-news-industry-updates__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #f0f0f0;
}

.page-news-industry-updates__faq-answer a {
    color: #FFFF00; /* Yellow for links in FAQ answer */
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-news-industry-updates__container--reverse {
        flex-direction: column; /* Stack vertically on smaller screens */
        text-align: center;
    }
    .page-news-industry-updates__content-block,
    .page-news-industry-updates__image-content {
        padding: 10px;
    }
    .page-news-industry-updates__hero-title {
        font-size: 2.5em;
    }
    .page-news-industry-updates__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news-industry-updates {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news-industry-updates__hero-section {
        padding: 80px 15px 40px;
    }
    .page-news-industry-updates__hero-title {
        font-size: 2em;
    }
    .page-news-industry-updates__hero-description {
        font-size: 1em;
    }
    .page-news-industry-updates__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news-industry-updates__btn-primary,
    .page-news-industry-updates__btn-secondary {
        width: 100% !important;
        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__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news-industry-updates__section {
        padding: 40px 0; /* Adjust padding for mobile */
    }
    .page-news-industry-updates__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news-industry-updates__section-title {
        font-size: 1.8em;
    }
    .page-news-industry-updates__card-title,
    .page-news-industry-updates__game-title {
        font-size: 1.3em;
    }

    /* Images responsive */
    .page-news-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is kept */
        min-height: 200px !important; /* Ensure min size is kept */
    }

    /* Video responsive */
    .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__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__video-wrapper {
        margin: 20px auto; /* Adjust margin for mobile */
    }

    /* FAQ responsive */
    .page-news-industry-updates__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .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;
    }
}