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

/* --- General Styles & Body Background (from shared.css, so main content needs light text) --- */
/* Body background is #121212 (dark), so default text color for page-news-industry-trends should be light */
.page-news-industry-trends {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Main content background will be set by sections */
}

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

.page-news-industry-trends__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Default light color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-news-industry-trends__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

.page-news-industry-trends__highlight-text {
    color: #FFFF00; /* Highlight color for keywords */
    font-weight: bold;
}

.page-news-industry-trends__inline-link {
    color: #017439; /* Brand primary for links */
    text-decoration: underline;
}

.page-news-industry-trends__inline-link:hover {
    color: #FFFF00; /* Yellow on hover */
    text-decoration: none;
}

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

.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: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news-industry-trends__hero-description {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.page-news-industry-trends__btn-primary,
.page-news-industry-trends__btn-secondary,
.page-news-industry-trends__hero-button,
.page-news-industry-trends__read-more-button,
.page-news-industry-trends__video-cta {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-news-industry-trends__btn-primary,
.page-news-industry-trends__hero-button,
.page-news-industry-trends__video-cta {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-news-industry-trends__btn-primary:hover,
.page-news-industry-trends__hero-button:hover,
.page-news-industry-trends__video-cta:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-news-industry-trends__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

.page-news-industry-trends__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

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

/* --- Section backgrounds for contrast --- */
.page-news-industry-trends__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter than body for differentiation */
    color: #ffffff;
    padding: 60px 0;
}

.page-news-industry-trends__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-news-industry-trends__light-bg .page-news-industry-trends__section-title {
    color: #333333;
}

.page-news-industry-trends__light-bg .page-news-industry-trends__text-block {
    color: #555555;
}

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

.page-news-industry-trends__article-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    display: flex;
    flex-direction: column;
    color: #333333; /* Dark text for light card background */
}

.page-news-industry-trends__article-card .page-news-industry-trends__highlight-text {
    color: #017439; /* Brand primary for highlight in light cards */
}

.page-news-industry-trends__article-card .page-news-industry-trends__inline-link {
    color: #C30808; /* Register/Login color for links in light cards */
}

.page-news-industry-trends__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-news-industry-trends__article-title {
    font-size: 1.5em;
    color: #333333;
    margin-bottom: 15px;
}

.page-news-industry-trends__article-text {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-news-industry-trends__read-more-button {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
}

/* --- Image specific styles --- */
.page-news-industry-trends__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-news-industry-trends__image-centered {
    width: 100%;
    max-width: 800px; /* Example max-width for content images */
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* --- Video Section --- */
.page-news-industry-trends__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 30px;
    border-radius: 10px;
}

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

.page-news-industry-trends__video-cta {
    display: block;
    text-align: center;
    margin-top: 20px;
    max-width: 300px; /* Smaller CTA button */
    margin-left: auto;
    margin-right: auto;
}

/* --- FAQ Section --- */
.page-news-industry-trends__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-trends__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
    overflow: hidden; /* For smooth transition if JS handles height */
}

.page-news-industry-trends__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e0e0e0;
    border-bottom: 1px solid #d0d0d0;
    transition: background-color 0.3s ease;
}

.page-news-industry-trends__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-news-industry-trends__faq-item summary:hover {
    background-color: #d0d0d0;
}

.page-news-industry-trends__faq-qtext {
    flex-grow: 1;
}

.page-news-industry-trends__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 20px; /* Fixed width for toggle */
    text-align: center;
}

.page-news-industry-trends__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.page-news-industry-trends__faq-answer p {
    margin-bottom: 10px;
}

/* --- CTA Section --- */
.page-news-industry-trends__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: #017439; /* Brand primary for CTA background */
    color: #ffffff;
}

.page-news-industry-trends__cta-section .page-news-industry-trends__section-title {
    color: #ffffff;
}

.page-news-industry-trends__cta-section .page-news-industry-trends__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 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__section-title {
        font-size: 2em;
    }
    .page-news-industry-trends__text-block {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-news-industry-trends__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-news-industry-trends__hero-title {
        font-size: 2.2em;
    }
    .page-news-industry-trends__hero-description {
        font-size: 1em;
    }
    .page-news-industry-trends__section-title {
        font-size: 1.8em;
    }
    .page-news-industry-trends__introduction,
    .page-news-industry-trends__content-section,
    .page-news-industry-trends__technology-innovation,
    .page-news-industry-trends__regulation,
    .page-news-industry-trends__future-outlook,
    .page-news-industry-trends__video-section,
    .page-news-industry-trends__faq-section,
    .page-news-industry-trends__cta-section {
        padding: 40px 0;
    }
    .page-news-industry-trends__container {
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .page-news-industry-trends img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news-industry-trends__image-full,
    .page-news-industry-trends__image-centered,
    .page-news-industry-trends__article-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
    }

    /* Mobile video responsiveness */
    .page-news-industry-trends video,
    .page-news-industry-trends__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news-industry-trends__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }
    .page-news-industry-trends__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Mobile button responsiveness */
    .page-news-industry-trends__btn-primary,
    .page-news-industry-trends__btn-secondary,
    .page-news-industry-trends__hero-button,
    .page-news-industry-trends__read-more-button,
    .page-news-industry-trends__video-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }
    .page-news-industry-trends__button-group {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .page-news-industry-trends__read-more-button {
        align-self: stretch; /* Make it full width */
    }
    .page-news-industry-trends__video-cta {
        max-width: 100% !important;
    }
}