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

/* Base styles for the page content area */
.page-news-industry-updates {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: var(--background-color, #FFFFFF); /* Inherit or default to white */
}

/* Fixed header offset for the main content or first section */
/* Assuming shared.css does NOT set body padding-top, so we set it on the first section */
.page-news-industry-updates__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    background-color: #26A9E0;
    color: #FFFFFF; /* White text for brand color background */
    overflow: hidden;
}

.page-news-industry-updates__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 0;
}

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

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

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

/* General container for content sections */
.page-news-industry-updates__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section titles and descriptions */
.page-news-industry-updates__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
}

.page-news-industry-updates__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast helper classes */
.page-news-industry-updates__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-news-industry-updates__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-news-industry-updates__dark-text {
    color: #333333;
}

/* Latest News Section */
.page-news-industry-updates__latest-news {
    padding: 60px 0;
}

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

.page-news-industry-updates__news-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-news-industry-updates__news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block; /* Ensure it behaves as a block element */
}

.page-news-industry-updates__news-card-title {
    font-size: 1.4em;
    padding: 15px 20px 0;
    margin-bottom: 10px;
}

.page-news-industry-updates__news-card-title a {
    color: #26A9E0; /* Brand color for link titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-industry-updates__news-card-title a:hover {
    color: #1a7bb0; /* Darker shade on hover */
}

.page-news-industry-updates__news-card-excerpt {
    font-size: 0.95em;
    color: #666666;
    padding: 0 20px 15px;
    flex-grow: 1; /* Allows excerpt to take available space */
}

.page-news-industry-updates__read-more {
    display: inline-block;
    color: #EA7C07; /* Login color for read more for accent */
    text-decoration: none;
    font-weight: bold;
    padding: 0 20px 20px;
    transition: color 0.3s ease;
}

.page-news-industry-updates__read-more:hover {
    color: #c76706;
}

/* Market Analysis Section */
.page-news-industry-updates__market-analysis {
    padding: 60px 0;
    color: #FFFFFF; /* White text for dark background */
}

.page-news-industry-updates__market-analysis .page-news-industry-updates__section-title,
.page-news-industry-updates__market-analysis .page-news-industry-updates__section-description {
    color: #FFFFFF; /* White text for dark background */
}

.page-news-industry-updates__analysis-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-news-industry-updates__analysis-text {
    flex: 2;
    font-size: 1.05em;
}

.page-news-industry-updates__analysis-text h3 {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-news-industry-updates__analysis-text p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-news-industry-updates__analysis-image {
    flex: 1;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 300px; /* Ensure image doesn't get too small on larger screens before wrapping */
}

/* Video Section */
.page-news-industry-updates__video-section {
    padding: 60px 0;
    background-color: #F8F8F8; /* Light background for video section */
    color: #333333;
}

.page-news-industry-updates__video-section .page-news-industry-updates__section-title,
.page-news-industry-updates__video-section .page-news-industry-updates__section-description {
    color: #333333; /* Dark text for light background */
}

.page-news-industry-updates__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-news-industry-updates__video-link {
    display: block; /* Make the entire wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-news-industry-updates__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

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

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

.page-news-industry-updates__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-news-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

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

.page-news-industry-updates__faq-title {
    font-size: 1.15em;
    color: #26A9E0; /* Brand color for FAQ questions */
    margin: 0;
}

.page-news-industry-updates__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #EA7C07; /* Login color for toggle icon */
    transition: transform 0.3s ease;
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-toggle {
    transform: rotate(45deg); /* Plus to X for active state, or just '-' */
    content: '−'; /* Change to minus sign */
}

.page-news-industry-updates__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #FFFFFF;
}

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

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

/* Call to Action Section */
.page-news-industry-updates__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-news-industry-updates__cta-section .page-news-industry-updates__section-title,
.page-news-industry-updates__cta-section .page-news-industry-updates__section-description {
    color: #FFFFFF;
}

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

.page-news-industry-updates__btn-primary,
.page-news-industry-updates__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-news-industry-updates__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

.page-news-industry-updates__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand color for secondary action */
    border: 2px solid #26A9E0;
}

.page-news-industry-updates__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7bb0;
    border-color: #1a7bb0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry-updates__hero-title {
        font-size: 2.5em;
    }
    .page-news-industry-updates__section-title {
        font-size: 2em;
    }
    .page-news-industry-updates__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-news-industry-updates__analysis-content {
        flex-direction: column;
        align-items: center;
    }
    .page-news-industry-updates__analysis-image {
        margin-top: 30px;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-news-industry-updates__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-news-industry-updates__hero-title {
        font-size: 2em;
    }
    .page-news-industry-updates__hero-description {
        font-size: 1em;
    }
    .page-news-industry-updates__container {
        padding: 30px 15px;
    }
    .page-news-industry-updates__section-title {
        font-size: 1.8em;
    }
    .page-news-industry-updates__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Mobile image and video responsiveness */
    .page-news-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
    }
    /* Specific override for video section padding-top on mobile if it's the first element after header */
    .page-news-industry-updates__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }


    /* Mobile button responsiveness */
    .page-news-industry-updates__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-news-industry-updates__btn-primary,
    .page-news-industry-updates__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Ensure all content containers are responsive */
    .page-news-industry-updates__section,
    .page-news-industry-updates__card,
    .page-news-industry-updates__container,
    .page-news-industry-updates__latest-news,
    .page-news-industry-updates__market-analysis,
    .page-news-industry-updates__faq-section,
    .page-news-industry-updates__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news-industry-updates__faq-question {
        padding: 15px 20px;
    }
    .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;
    }
}