/* style/news-industry-updates.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #1a1a1a;
    --button-login: #EA7C07;
}

/* Base styles for the page content */
.page-news-industry-updates {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

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

.page-news-industry-updates__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-news-industry-updates__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-news-industry-updates__section-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: inherit; /* Inherit color from parent section */
}

.page-news-industry-updates__dark-section .page-news-industry-updates__section-title {
    color: var(--text-light);
}

.page-news-industry-updates__paragraph {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: inherit;
}

.page-news-industry-updates__dark-section .page-news-industry-updates__paragraph {
    color: rgba(255, 255, 255, 0.9);
}

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

.page-news-industry-updates__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.page-news-industry-updates__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.page-news-industry-updates__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news-industry-updates__main-title {
    font-size: 3em;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-news-industry-updates__intro-text {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news-industry-updates__btn-primary,
.page-news-industry-updates__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-news-industry-updates__btn-primary {
    background-color: var(--button-login);
    color: var(--text-light);
    border: 2px solid var(--button-login);
    margin-right: 15px;
}

.page-news-industry-updates__btn-primary:hover {
    background-color: darken(var(--button-login), 10%);
    border-color: darken(var(--button-login), 10%);
}

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

.page-news-industry-updates__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-news-industry-updates__light-bg .page-news-industry-updates__btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-news-industry-updates__light-bg .page-news-industry-updates__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-news-industry-updates__news-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

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

.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.3em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news-industry-updates__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-news-industry-updates__card-title a:hover {
    text-decoration: underline;
}

.page-news-industry-updates__card-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-news-industry-updates__card-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news-industry-updates__read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

.page-news-industry-updates__read-more:hover {
    text-decoration: underline;
}

.page-news-industry-updates__view-all-wrapper {
    margin-top: 50px;
}

.page-news-industry-updates__view-all-wrapper .page-news-industry-updates__btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.page-news-industry-updates__view-all-wrapper .page-news-industry-updates__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Content Columns */
.page-news-industry-updates__content-columns {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    padding: 0 20px;
}

.page-news-industry-updates__column-text {
    flex: 1;
}

.page-news-industry-updates__column-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-news-industry-updates__dark-section .page-news-industry-updates__column-text a {
    color: var(--text-light);
    text-decoration: underline;
}

.page-news-industry-updates__dark-section .page-news-industry-updates__column-text a:hover {
    color: var(--button-login);
}

/* FAQ Section */
.page-news-industry-updates__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
    padding: 0 20px;
}

.page-news-industry-updates__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
}

.page-news-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
}

.page-news-industry-updates__faq-item[open] > .page-news-industry-updates__faq-question {
    border-bottom: 1px solid #ddd;
}

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

.page-news-industry-updates__faq-qtext {
    flex-grow: 1;
    pointer-events: none; /* Prevent text from intercepting click for details */
}

.page-news-industry-updates__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
    pointer-events: none; /* Prevent toggle from intercepting click for details */
}

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

.page-news-industry-updates__faq-answer .page-news-industry-updates__paragraph {
    margin-bottom: 0;
    color: #555;
}

.page-news-industry-updates__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-news-industry-updates__faq-answer a:hover {
    text-decoration: none;
}

/* CTA Section */
.page-news-industry-updates__cta-section {
    padding: 80px 0;
}

.page-news-industry-updates__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-news-industry-updates__cta-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-news-industry-updates__cta-description {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-updates__cta-description a {
    color: var(--text-light);
    text-decoration: underline;
}

.page-news-industry-updates__cta-description a:hover {
    color: var(--button-login);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news-industry-updates__main-title {
        font-size: 2.5em;
    }
    .page-news-industry-updates__section-title {
        font-size: 2em;
    }
    .page-news-industry-updates__cta-title {
        font-size: 2.2em;
    }
    .page-news-industry-updates__content-columns {
        flex-direction: column;
    }
    .page-news-industry-updates__image-right {
        max-width: 80%;
        margin-top: 30px;
    }
    .page-news-industry-updates__hero-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-news-industry-updates {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news-industry-updates__section {
        padding: 40px 0;
    }
    .page-news-industry-updates__hero-section {
        padding: 40px 0;
        padding-top: 10px !important;
    }
    .page-news-industry-updates__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-news-industry-updates__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news-industry-updates__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news-industry-updates__cta-title {
        font-size: 1.8em;
    }
    .page-news-industry-updates__cta-description {
        font-size: 1em;
    }
    .page-news-industry-updates__news-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-news-industry-updates__container,
    .page-news-industry-updates__news-grid,
    .page-news-industry-updates__content-columns,
    .page-news-industry-updates__faq-list,
    .page-news-industry-updates__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure containers don't overflow */
    }

    /* Images responsive */
    .page-news-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news-industry-updates__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .page-news-industry-updates__card-image {
        height: 180px;
    }

    /* Buttons responsive */
    .page-news-industry-updates__btn-primary,
    .page-news-industry-updates__btn-secondary,
    .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;
        margin-right: 0 !important;
    }
    .page-news-industry-updates__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news-industry-updates__btn-primary {
        margin-bottom: 15px; /* Add space between stacked buttons */
    }

    .page-news-industry-updates__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news-industry-updates__faq-answer {
        padding: 0 20px 15px;
    }
    .page-news-industry-updates__faq-qtext {
        pointer-events: auto; /* Allow click on text for mobile */
    }
    .page-news-industry-updates__faq-toggle {
        pointer-events: auto; /* Allow click on toggle for mobile */
    }
}

@media (max-width: 480px) {
    .page-news-industry-updates__main-title {
        font-size: 1.5em;
    }
    .page-news-industry-updates__section-title {
        font-size: 1.5em;
    }
    .page-news-industry-updates__cta-title {
        font-size: 1.6em;
    }
    .page-news-industry-updates__hero-image {
        max-height: 300px;
    }
}