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

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: #26A9E0;
    --login-button-color: #EA7C07;
}

.page-news-industry-updates {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

/* Hero Section */
.page-news-industry-updates__hero-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px; /* Ensure sufficient height for hero */
}

.page-news-industry-updates__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-news-industry-updates__hero-description {
    font-size: 1.2em;
    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;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

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

.page-news-industry-updates__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 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(--background-dark);
}

/* Section Titles */
.page-news-industry-updates__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

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

.page-news-industry-updates__sub-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Overview Section */
.page-news-industry-updates__overview-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.page-news-industry-updates__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.page-news-industry-updates__grid-item {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.page-news-industry-updates__item-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-news-industry-updates__text-block {
    font-size: 1em;
    line-height: 1.7;
}

/* Featured News Section */
.page-news-industry-updates__featured-news-section {
    background-color: var(--background-dark);
    padding: 60px 0;
}

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

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

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

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

.page-news-industry-updates__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
}

.page-news-industry-updates__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news-industry-updates__card-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Analysis Section */
.page-news-industry-updates__analysis-section {
    background-color: var(--background-light);
    padding: 60px 0;
}

.page-news-industry-updates__content-wrapper {
    display: flex;
    gap: 40px;
}

.page-news-industry-updates__text-column {
    flex: 2;
}

.page-news-industry-updates__image-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news-industry-updates__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below image */
}

.page-news-industry-updates__image--float-right {
    margin-bottom: 30px;
}

/* FAQ Section */
.page-news-industry-updates__faq-section {
    background-color: var(--background-dark);
    padding: 60px 0;
    color: var(--text-light);
}

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

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

.page-news-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-news-industry-updates__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

.page-news-industry-updates__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.95em;
}

.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-bottom: 10px;
    color: var(--text-light);
}

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

/* CTA Section */
.page-news-industry-updates__cta-section {
    background-color: var(--background-dark);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

.page-news-industry-updates__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-news-industry-updates__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Image specific styles */
.page-news-industry-updates img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Ensure content area images are not too small */
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry-updates__hero-title {
        font-size: 2.2em;
    }
    .page-news-industry-updates__section-title {
        font-size: 1.8em;
    }
    .page-news-industry-updates__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-news-industry-updates__content-wrapper {
        flex-direction: column;
    }
    .page-news-industry-updates__image-column {
        order: -1; /* Image appears above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-news-industry-updates {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news-industry-updates__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news-industry-updates__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-news-industry-updates__hero-title {
        font-size: 1.8em;
    }
    .page-news-industry-updates__hero-description {
        font-size: 1em;
    }
    .page-news-industry-updates__btn-primary,
    .page-news-industry-updates__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        margin-right: 0 !important;
    }
    .page-news-industry-updates__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news-industry-updates__section-title {
        font-size: 1.6em;
    }
    .page-news-industry-updates__sub-title {
        font-size: 1.4em;
    }
    .page-news-industry-updates__grid-item {
        padding: 20px;
    }
    .page-news-industry-updates__news-grid {
        grid-template-columns: 1fr;
    }
    .page-news-industry-updates__card-image {
        height: 200px;
    }
    .page-news-industry-updates__cta-title {
        font-size: 2em;
    }
    .page-news-industry-updates__cta-description {
        font-size: 1em;
    }

    /* Enforce image responsiveness */
    .page-news-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important;
        min-height: unset !important;
    }
    .page-news-industry-updates__section,
    .page-news-industry-updates__card,
    .page-news-industry-updates__container,
    .page-news-industry-updates__grid-item,
    .page-news-industry-updates__news-card,
    .page-news-industry-updates__faq-item,
    .page-news-industry-updates__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-news-industry-updates__faq-question,
    .page-news-industry-updates__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}