/* style/news-industry-trends.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --background-color: #FFFFFF;
    --dark-bg-color: var(--dark-bg, #000000); /* Assuming shared.css defines --dark-bg */
}

.page-news-industry-trends {
    font-family: 'Arial', sans-serif;
    color: var(--light-text-color); /* Body is dark-bg, so text is light */
    background-color: var(--dark-bg-color);
}

.page-news-industry-trends__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

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

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

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

.page-news-industry-trends__hero-title {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news-industry-trends__hero-description {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-news-industry-trends__hero-button,
.page-news-industry-trends__button-primary,
.page-news-industry-trends__button-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.page-news-industry-trends__hero-button,
.page-news-industry-trends__button-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

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

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

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

.page-news-industry-trends__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-news-industry-trends__container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-news-industry-trends__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-news-industry-trends__section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-news-industry-trends__sub-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-news-industry-trends__paragraph {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.page-news-industry-trends__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-news-industry-trends__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-news-industry-trends__image-left,
.page-news-industry-trends__image-right {
    flex: 1;
    min-width: 300px; /* Ensure images don't get too small on desktop */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

.page-news-industry-trends__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--light-text-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news-industry-trends__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-news-industry-trends__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    max-width: 100%;
}

.page-news-industry-trends__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-news-industry-trends__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--light-text-color);
    flex-grow: 1;
}

.page-news-industry-trends__cta-buttons {
    text-align: center;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-news-industry-trends__faq-container {
    margin-top: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
}

.page-news-industry-trends__faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.page-news-industry-trends__faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-news-industry-trends__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    padding: 10px 0;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-news-industry-trends__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-news-industry-trends__faq-toggle {
    font-size: 1.5em;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-news-industry-trends__faq-item[open] .page-news-industry-trends__faq-toggle {
    transform: rotate(45deg);
}

.page-news-industry-trends__faq-answer {
    font-size: 1em;
    line-height: 1.7;
    color: var(--light-text-color);
    padding: 10px 0 5px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.page-news-industry-trends__faq-item[open] .page-news-industry-trends__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry-trends__hero-title {
        font-size: 3em;
    }

    .page-news-industry-trends__hero-description {
        font-size: 1.2em;
    }

    .page-news-industry-trends__image-text-block {
        flex-direction: column;
        text-align: center;
    }

    .page-news-industry-trends__image-text-block--reverse {
        flex-direction: column;
    }

    .page-news-industry-trends__image-left,
    .page-news-industry-trends__image-right {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-news-industry-trends__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news-industry-trends__hero-title {
        font-size: 2.2em;
    }

    .page-news-industry-trends__hero-description {
        font-size: 1em;
    }

    .page-news-industry-trends__hero-button,
    .page-news-industry-trends__button-primary,
    .page-news-industry-trends__button-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin: 5px 0;
    }
    
    .page-news-industry-trends__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px;
    }

    .page-news-industry-trends__section-title {
        font-size: 2em;
    }

    .page-news-industry-trends__sub-title {
        font-size: 1.5em;
    }

    .page-news-industry-trends__paragraph {
        font-size: 0.95em;
    }

    .page-news-industry-trends__grid-layout {
        grid-template-columns: 1fr;
    }

    .page-news-industry-trends__card-image {
        height: auto; /* Allow height to adjust naturally */
    }

    .page-news-industry-trends__card {
        padding: 20px;
    }

    .page-news-industry-trends img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news-industry-trends__section,
    .page-news-industry-trends__card,
    .page-news-industry-trends__container,
    .page-news-industry-trends__image-text-block,
    .page-news-industry-trends__grid-layout,
    .page-news-industry-trends__faq-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-news-industry-trends__content-area {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-news-industry-trends__hero-title {
        font-size: 1.8em;
    }

    .page-news-industry-trends__hero-description {
        font-size: 0.9em;
    }

    .page-news-industry-trends__section-title {
        font-size: 1.8em;
    }

    .page-news-industry-trends__faq-question {
        font-size: 1em;
    }
}