/* style/news-industry.css */

/* Base styles for the news-industry page */
.page-news-industry {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is #121212 from shared.css */
}

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

.page-news-industry__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff; /* Ensure titles are visible on dark backgrounds */
    font-weight: bold;
}

.page-news-industry__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-news-industry__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-news-industry__list li {
    margin-bottom: 10px;
}

/* Color Contrast Specifics */
.page-news-industry__dark-bg {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-news-industry__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light backgrounds */
    padding: 60px 0;
}

.page-news-industry__dark-section .page-news-industry__section-title,
.page-news-industry__dark-section .page-news-industry__text-block,
.page-news-industry__dark-section .page-news-industry__list li {
    color: #ffffff;
}

.page-news-industry__light-bg .page-news-industry__section-title,
.page-news-industry__light-bg .page-news-industry__text-block,
.page-news-industry__light-bg .page-news-industry__list li {
    color: #333333;
}


/* Hero Section */
.page-news-industry__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #017439; /* Use brand color for hero background */
    color: #ffffff;
}

.page-news-industry__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-news-industry__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Custom color for important titles */
}

.page-news-industry__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
    color: #f0f0f0;
}

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

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

/* Buttons */
.page-news-industry__btn-primary,
.page-news-industry__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-news-industry__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #ffffff; /* Adjusted to white for WCAG AA contrast, overriding #FFFF00 */
    border: 2px solid #C30808;
}

.page-news-industry__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-news-industry__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
    margin-left: 20px;
}

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

/* Content Grid for sections */
.page-news-industry__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-news-industry__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-news-industry__content-grid .page-news-industry__text-content {
    flex: 1;
}

.page-news-industry__content-grid .page-news-industry__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news-industry__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news-industry__image--full-width {
    width: 100%;
    height: auto;
    margin-top: 30px;
}

/* Call to Action Section */
.page-news-industry__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-news-industry__cta-content {
    max-width: 900px;
}

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

.page-news-industry__cta-buttons .page-news-industry__btn-secondary {
    margin-left: 0; /* Override default margin-left for flex gap */
}

/* FAQ Section */
.page-news-industry__faq-list {
    margin-top: 40px;
}

.page-news-industry__faq-item {
    background-color: #f8f8f8; /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text for light background */
}

.page-news-industry__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-news-industry__faq-question:hover {
    background-color: #e5e5e5;
}

.page-news-industry__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #333333;
}

.page-news-industry__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439; /* Brand primary color for toggle icon */
    transition: transform 0.3s ease;
}

.page-news-industry__faq-item.active .page-news-industry__faq-toggle {
    transform: rotate(45deg); /* For '-' icon, '+' rotates to 'x' */
}

.page-news-industry__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news-industry__faq-item.active .page-news-industry__faq-answer {
    max-height: 1000px !important; /* Sufficiently large height */
    padding: 15px 20px !important; /* Padding for expanded state */
}

.page-news-industry__faq-answer p {
    margin-bottom: 0;
    color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry__hero-title {
        font-size: 3em;
    }
    .page-news-industry__hero-description {
        font-size: 1.2em;
    }
    .page-news-industry__section-title {
        font-size: 2em;
    }
    .page-news-industry__content-grid {
        flex-direction: column;
    }
    .page-news-industry__content-grid--reverse {
        flex-direction: column; /* Consistent stacking on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-news-industry__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
    }
    .page-news-industry__hero-title {
        font-size: 2.2em;
    }
    .page-news-industry__hero-description {
        font-size: 1em;
    }
    .page-news-industry__btn-primary,
    .page-news-industry__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Enforce full width */
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 15px; /* Add spacing between stacked buttons */
    }
    .page-news-industry__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image responsiveness */
    .page-news-industry img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news-industry__image-wrapper,
    .page-news-industry__content-grid,
    .page-news-industry__container,
    .page-news-industry__hero-section,
    .page-news-industry__intro-section,
    .page-news-industry__trends-section,
    .page-news-industry__tech-section,
    .page-news-industry__responsible-section,
    .page-news-industry__events-section,
    .page-news-industry__future-section,
    .page-news-industry__faq-section,
    .page-news-industry__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-news-industry__section-title {
        font-size: 1.8em;
    }
    .page-news-industry__text-block,
    .page-news-industry__list li,
    .page-news-industry__faq-title,
    .page-news-industry__faq-answer p {
        font-size: 1em;
    }
    .page-news-industry__faq-question {
        padding: 15px;
    }
    .page-news-industry__faq-answer {
        padding: 0 15px;
    }
    .page-news-industry__faq-item.active .page-news-industry__faq-answer {
        padding: 15px 15px !important;
    }
}