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

/* Base styles for the page content */
.page-news-industry-updates {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

/* Fixed header offset for the first content section */
.page-news-industry-updates__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background-color: #017439; /* Brand main color for hero */
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

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

.page-news-industry-updates__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-news-industry-updates__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-news-industry-updates__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-news-industry-updates__cta-buttons--center {
    justify-content: center;
}

.page-news-industry-updates__btn-primary,
.page-news-industry-updates__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
}

/* Overriding button colors for login/register as per custom colors, with contrast fix */
.page-news-industry-updates__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #000000; /* Adjusted for WCAG AA contrast with #C30808 */
    border: 2px solid #C30808;
}

.page-news-industry-updates__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #ffffff; /* Hover to white text for better contrast */
}

.page-news-industry-updates__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand main color */
    border: 2px solid #017439;
}

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

/* Section general styles */
.page-news-industry-updates__latest-news-section,
.page-news-industry-updates__analysis-section,
.page-news-industry-updates__features-section,
.page-news-industry-updates__responsible-gaming-section,
.page-news-industry-updates__video-section,
.page-news-industry-updates__faq-section,
.page-news-industry-updates__final-cta-section {
    padding: 60px 0;
}

.page-news-industry-updates__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-news-industry-updates__dark-bg {
    background-color: #017439; /* Brand main color */
    color: #ffffff;
}

.page-news-industry-updates__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-news-industry-updates__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* News Grid */
.page-news-industry-updates__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news-industry-updates__news-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Ensure text is dark on light card background */
}

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

.page-news-industry-updates__news-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-content {
    padding: 20px;
}

.page-news-industry-updates__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news-industry-updates__card-title a {
    color: #017439; /* Brand main color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-industry-updates__card-title a:hover {
    color: #005f2c;
}

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

.page-news-industry-updates__read-more-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news-industry-updates__read-more-link:hover {
    color: #005f2c;
    text-decoration: underline;
}

/* Article Content Styles */
.page-news-industry-updates__article-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-news-industry-updates__article-subtitle {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news-industry-updates__article-content p {
    margin-bottom: 20px;
    font-size: 1.05em;
}

.page-news-industry-updates__article-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Feature Grid */
.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__feature-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-news-industry-updates__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for features */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-news-industry-updates__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #017439;
}

/* Video Section */
.page-news-industry-updates__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 1000px; /* Max width for the video player */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

.page-news-industry-updates__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-news-industry-updates__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news-industry-updates__faq-item {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    color: #333333;
}

.page-news-industry-updates__faq-item:last-child {
    border-bottom: none;
}

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

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

.page-news-industry-updates__faq-title {
    margin: 0;
    color: #017439; /* Brand main color */
}

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1em;
    color: #555555;
}

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

.page-news-industry-updates__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-news-industry-updates__final-cta-section .page-news-industry-updates__section-title {
    color: #017439;
}
.page-news-industry-updates__final-cta-section .page-news-industry-updates__section-description {
    color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry-updates__main-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-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-news-industry-updates__main-title {
        font-size: 2em;
    }
    .page-news-industry-updates__intro-text {
        font-size: 1em;
    }
    .page-news-industry-updates__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news-industry-updates__btn-primary,
    .page-news-industry-updates__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news-industry-updates__section-title {
        font-size: 1.8em;
    }
    .page-news-industry-updates__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-news-industry-updates__news-grid,
    .page-news-industry-updates__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-news-industry-updates__news-image,
    .page-news-industry-updates__feature-image,
    .page-news-industry-updates__article-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-news-industry-updates__news-card,
    .page-news-industry-updates__feature-item,
    .page-news-industry-updates__video-wrapper,
    .page-news-industry-updates__faq-list {
        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 {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }
    .page-news-industry-updates__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news-industry-updates__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-news-industry-updates__faq-answer {
        padding: 0 15px;
    }
    .page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
        padding: 15px 15px !important;
    }
    .page-news-industry-updates__container {
        padding: 0 15px;
    }
}

/* Ensure no filter on images */
.page-news-industry-updates img {
    filter: none !important;
}

/* Content area image size enforcement */
.page-news-industry-updates__news-image,
.page-news-industry-updates__article-content img,
.page-news-industry-updates__feature-image,
.page-news-industry-updates__video {
    min-width: 200px;
    min-height: 200px;
}
@media (max-width: 768px) {
    .page-news-industry-updates__news-image,
    .page-news-industry-updates__article-content img,
    .page-news-industry-updates__feature-image,
    .page-news-industry-updates__video {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}