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

/* Base styles for the page content */
.page-news-industry-updates {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is #000 from shared.css */
    padding-bottom: 60px; /* Space above footer */
}

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

/* Section styles */
.page-news-industry-updates__section {
    padding: 60px 0;
    text-align: center;
}

.page-news-industry-updates__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-news-industry-updates__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff; /* White text for titles */
    font-weight: bold;
    line-height: 1.2;
}

.page-news-industry-updates__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-news-industry-updates__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* desktop padding-top for header offset */
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-news-industry-updates__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-news-industry-updates__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Darken image to ensure text contrast */
}

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

.page-news-industry-updates__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.page-news-industry-updates__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-news-industry-updates__hero-button {
    display: inline-block;
    background-color: #C30808; /* Custom color for login/register type button */
    color: #FFFF00; /* Custom font color for login/register type button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news-industry-updates__hero-button:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

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

.page-news-industry-updates__news-card {
    background-color: rgba(255, 255, 255, 0.1); /* Card background for dark body */
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-news-industry-updates__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-news-industry-updates__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news-industry-updates__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

.page-news-industry-updates__card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-industry-updates__card-title a:hover {
    color: #017439; /* Brand green on hover */
}

.page-news-industry-updates__card-text {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news-industry-updates__read-more {
    display: inline-block;
    color: #017439; /* Brand green for read more */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-news-industry-updates__read-more:hover {
    text-decoration: underline;
    color: #00a000; /* Lighter green on hover */
}

/* Market Trends */
.page-news-industry-updates__market-trends {
    background-color: #017439; /* Brand color background for this section */
    color: #ffffff;
}

.page-news-industry-updates__market-trends .page-news-industry-updates__section-title,
.page-news-industry-updates__market-trends .page-news-industry-updates__text-block {
    color: #ffffff;
}

.page-news-industry-updates__trend-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news-industry-updates__trend-cards .page-news-industry-updates__card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly darker card for contrast on green background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease;
}

.page-news-industry-updates__trend-cards .page-news-industry-updates__card:hover {
    transform: translateY(-5px);
}

.page-news-industry-updates__card-subtitle {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

/* Company Announcements */
.page-news-industry-updates__company-announcements {
    background-color: #000; /* Ensure this section has a dark background consistent with body */
}

.page-news-industry-updates__announcement-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-news-industry-updates__announcement-item {
    background-color: rgba(255, 255, 255, 0.08); /* Card background for dark body */
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    display: flex;
    align-items: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news-industry-updates__announcement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-news-industry-updates__item-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 25px;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.page-news-industry-updates__item-content {
    flex-grow: 1;
}

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

.page-news-industry-updates__item-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news-industry-updates__item-title a:hover {
    color: #017439;
}

.page-news-industry-updates__item-text {
    font-size: 0.9em;
    color: #e0e0e0;
    margin-bottom: 15px;
}

/* Expert Insights */
.page-news-industry-updates__expert-insights {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-news-industry-updates__insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Reusing .page-news-industry-updates__news-card for insights, adjust if needed */
.page-news-industry-updates__insight-cards .page-news-industry-updates__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news-industry-updates__insight-cards .page-news-industry-updates__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-news-industry-updates__faq-section {
    background-color: #000; /* Ensure this section has a dark background consistent with body */
}

.page-news-industry-updates__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-news-industry-updates__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
    list-style: none; /* For details tag */
}

.page-news-industry-updates__faq-item[open] .page-news-industry-updates__faq-question {
    border-bottom-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-news-industry-updates__faq-item[open] .page-news-industry-updates__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-news-industry-updates__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #e0e0e0;
}

.page-news-industry-updates__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

.page-news-industry-updates__text-link {
    color: #017439; /* Brand green for text links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-news-industry-updates__text-link:hover {
    color: #00a000;
}

/* Call to Action Section */
.page-news-industry-updates__cta-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
    color: #ffffff;
}

.page-news-industry-updates__cta-section .page-news-industry-updates__section-title {
    margin-bottom: 20px;
}

.page-news-industry-updates__cta-section .page-news-industry-updates__text-block {
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-news-industry-updates__cta-button {
    display: inline-block;
    background-color: #C30808; /* Custom color for login/register type button */
    color: #FFFF00; /* Custom font color for login/register type button */
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news-industry-updates__cta-button:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry-updates__hero-title {
        font-size: 3em;
    }
    .page-news-industry-updates__section-title {
        font-size: 2em;
    }
    .page-news-industry-updates__announcement-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .page-news-industry-updates__item-image {
        margin: 0 auto 15px;
        width: 100%;
        height: auto;
        max-height: 250px;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile, applied to the first main section */
    .page-news-industry-updates__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-news-industry-updates__container {
        padding: 0 15px;
    }

    .page-news-industry-updates__hero-title {
        font-size: 2.2em;
    }
    .page-news-industry-updates__hero-description {
        font-size: 1em;
    }
    .page-news-industry-updates__hero-button {
        font-size: 1.1em;
        padding: 12px 25px;
        max-width: 100% !important;
        width: 100% !important;
        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__text-block {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-news-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all image containers are responsive */
    .page-news-industry-updates__news-card,
    .page-news-industry-updates__trend-cards .page-news-industry-updates__card,
    .page-news-industry-updates__announcement-item,
    .page-news-industry-updates__insight-cards .page-news-industry-updates__card,
    .page-news-industry-updates__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-news-industry-updates__news-grid,
    .page-news-industry-updates__trend-cards,
    .page-news-industry-updates__insight-cards {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

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

    .page-news-industry-updates__item-image {
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-news-industry-updates__item-title {
        font-size: 1.2em;
    }

    .page-news-industry-updates__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-news-industry-updates__faq-answer {
        padding: 0 20px 15px;
    }

    /* Buttons responsiveness */
    .page-news-industry-updates__cta-button,
    .page-news-industry-updates__btn-primary,
    .page-news-industry-updates a[class*="button"],
    .page-news-industry-updates a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding to prevent text touching edges */
        padding-right: 15px;
    }

    .page-news-industry-updates__cta-buttons,
    .page-news-industry-updates__button-group,
    .page-news-industry-updates__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}