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

/* Variables from custom color scheme */
:root {
    --page-news-industry-updates-primary-color: #11A84E;
    --page-news-industry-updates-secondary-color: #22C768;
    --page-news-industry-updates-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-industry-updates-card-bg: #11271B;
    --page-news-industry-updates-background: #08160F;
    --page-news-industry-updates-text-main: #F2FFF6;
    --page-news-industry-updates-text-secondary: #A7D9B8;
    --page-news-industry-updates-border: #2E7A4E;
    --page-news-industry-updates-glow: #57E38D;
    --page-news-industry-updates-gold: #F2C14E;
    --page-news-industry-updates-divider: #1E3A2A;
    --page-news-industry-updates-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-news-industry-updates {
    background-color: var(--page-news-industry-updates-background); /* #08160F - Dark */
    color: var(--page-news-industry-updates-text-main); /* #F2FFF6 - Light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Section styling */
.page-news-industry-updates__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--page-news-industry-updates-divider);
}

.page-news-industry-updates__section-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-news-industry-updates__light-bg {
    background-color: #11271B; /* Using Card BG for lighter sections to differentiate from main background, but still dark */
    color: var(--page-news-industry-updates-text-main);
}

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

.page-news-industry-updates__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.4); /* Darken image for text readability, not color change */
}

.page-news-industry-updates__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: 50px; /* Push content down slightly over image */
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
    border-radius: 8px;
}

.page-news-industry-updates__main-title {
    font-weight: bold;
    color: var(--page-news-industry-updates-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-updates__intro-text {
    color: var(--page-news-industry-updates-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Headings */
.page-news-industry-updates__section-title {
    font-size: 2.5em;
    color: var(--page-news-industry-updates-text-main);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-news-industry-updates__sub-title {
    font-size: 1.8em;
    color: var(--page-news-industry-updates-text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Paragraphs */
.page-news-industry-updates p {
    font-size: 1em;
    color: var(--page-news-industry-updates-text-secondary);
    margin-bottom: 15px;
}

.page-news-industry-updates__text-main {
    color: var(--page-news-industry-updates-text-main);
}

/* Images */
.page-news-industry-updates img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__image-full-width {
    width: 100%;
    object-fit: cover;
}

.page-news-industry-updates__image-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news-industry-updates__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-news-industry-updates__btn-primary,
.page-news-industry-updates__btn-secondary {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-news-industry-updates__btn-primary {
    background: var(--page-news-industry-updates-button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
}

.page-news-industry-updates__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--page-news-industry-updates-glow);
}

.page-news-industry-updates__btn-secondary {
    background: transparent;
    color: var(--page-news-industry-updates-primary-color);
    border: 2px solid var(--page-news-industry-updates-primary-color);
}

.page-news-industry-updates__btn-secondary:hover {
    background: var(--page-news-industry-updates-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--page-news-industry-updates-primary-color), 0.4);
}

/* FAQ Section */
.page-news-industry-updates__faq-section {
    padding: 60px 20px;
}

.page-news-industry-updates__faq-list {
    max-width: 900px;
    margin: 30px auto;
}

.page-news-industry-updates__faq-item {
    background-color: var(--page-news-industry-updates-card-bg);
    border: 1px solid var(--page-news-industry-updates-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-news-industry-updates-text-main);
}

.page-news-industry-updates__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-news-industry-updates-text-main);
    background-color: var(--page-news-industry-updates-deep-green);
}

.page-news-industry-updates__faq-item summary::-webkit-details-marker {
    display: none;
}

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

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

.page-news-industry-updates__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    color: var(--page-news-industry-updates-text-secondary);
    border-top: 1px solid var(--page-news-industry-updates-divider);
}

/* CTA Section */
.page-news-industry-updates__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--page-news-industry-updates-deep-green);
    color: var(--page-news-industry-updates-text-main);
}

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

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

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

@media (max-width: 768px) {
    .page-news-industry-updates {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news-industry-updates__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 40px;
    }

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

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

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

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

    .page-news-industry-updates__sub-title {
        font-size: 1.3em;
    }

    .page-news-industry-updates__section {
        padding: 40px 15px;
    }

    .page-news-industry-updates__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-news-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

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

    .page-news-industry-updates__faq-list {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-news-industry-updates__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

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

/* Ensure no CSS filters are used on images */
.page-news-industry-updates img {
    filter: none; /* Reset any potential filters */
}

.page-news-industry-updates__hero-image {
    filter: brightness(0.4); /* Allowed for darkening, not color change */
}