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

/* Base styles for the page content */
.page-resources-industry-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for content area if not inherited from body */
}

/* Header offset for fixed header */
.page-resources-industry-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-resources-industry-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand primary color for dark background */
    color: #ffffff; /* White text for dark background */
}

.page-resources-industry-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-resources-industry-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources-industry-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-resources-industry-news__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources-industry-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-resources-industry-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.page-resources-industry-news__btn-primary,
.page-resources-industry-news__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; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-resources-industry-news__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-resources-industry-news__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-resources-industry-news__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-resources-industry-news__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Content Area */
.page-resources-industry-news__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content */
    color: #333333; /* Dark text for light background */
}

.page-resources-industry-news__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-resources-industry-news__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-resources-industry-news__section-title--white {
    color: #ffffff;
}

.page-resources-industry-news__paragraph {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-resources-industry-news__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources-industry-news__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Images */
.page-resources-industry-news__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce min height for content images */
}

.page-resources-industry-news__image-content {
    width: 100%;
    max-width: 800px; /* Example max-width for content images */
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce min height for content images */
}

/* CTA Section */
.page-resources-industry-news__cta-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    margin-top: 60px;
}

.page-resources-industry-news__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-resources-industry-news__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-resources-industry-news__faq-section {
    background-color: #017439; /* Brand primary color for dark background */
    padding: 60px 20px;
    color: #ffffff;
}

.page-resources-industry-news__faq-list {
    margin-top: 40px;
}

.page-resources-industry-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources-industry-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources-industry-news__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-resources-industry-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Register/Login font color for toggle icon */
}

.page-resources-industry-news__faq-item.active .page-resources-industry-news__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-industry-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-resources-industry-news__faq-item.active .page-resources-industry-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px; /* Expanded padding */
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-industry-news__hero-title {
        font-size: 2.5em;
    }
    .page-resources-industry-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile specific styles */
    .page-resources-industry-news__hero-section {
        height: 450px;
    }
    .page-resources-industry-news__hero-title {
        font-size: 2em;
    }
    .page-resources-industry-news__hero-description {
        font-size: 1em;
    }
    .page-resources-industry-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-industry-news__btn-primary,
    .page-resources-industry-news__btn-secondary {
        width: 100% !important; /* Enforce full width */
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-resources-industry-news__content-area,
    .page-resources-industry-news__faq-section {
        padding: 30px 15px;
    }

    .page-resources-industry-news__container {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-resources-industry-news__section-title {
        font-size: 1.8em;
    }

    .page-resources-industry-news__paragraph,
    .page-resources-industry-news__list-item {
        font-size: 1em;
    }

    /* Images responsive */
    .page-resources-industry-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers for images/videos are also constrained */
    .page-resources-industry-news__section,
    .page-resources-industry-news__card,
    .page-resources-industry-news__container,
    .page-resources-industry-news__hero-section,
    .page-resources-industry-news__cta-section,
    .page-resources-industry-news__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }

    .page-resources-industry-news__faq-question h3 {
        font-size: 1.1em;
    }
    
    /* Ensure hero section padding-top is applied correctly on mobile if needed */
    .page-resources-industry-news__hero-section {
      padding-top: var(--header-offset, 120px) !important; 
    }
}

/* Ensure content images meet minimum size requirements */
.page-resources-industry-news img:not(.page-resources-industry-news__hero-image) {
    min-width: 200px;
    min-height: 200px;
}