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

/* Base styles for the page content, considering body background is #000000 (dark) */
.page-news-industry-updates {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark backgrounds */
    background-color: #0d0d0d; /* A dark grey for sections to contrast slightly with pure black body */
}

/* Fixed header offset for main content or hero section */
.page-news-industry-updates__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-news-industry-updates__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Darken image for better text readability */
}

.page-news-industry-updates__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 2;
}

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

.page-news-industry-updates__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* General section styling */
.page-news-industry-updates__section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Dark background for content sections */
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news-industry-updates__section:last-of-type {
    border-bottom: none;
}

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

.page-news-industry-updates__heading {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for headings */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-news-industry-updates__heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #C30808; /* Accent color for underline */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-news-industry-updates__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: justify;
}

/* 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: all 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%;
}

.page-news-industry-updates__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-news-industry-updates__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: #ffffff;
}

.page-news-industry-updates__btn-secondary {
    background-color: #017439; /* Primary brand color for secondary button */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-news-industry-updates__btn-secondary:hover {
    background-color: transparent;
    color: #017439;
    border-color: #017439;
}

.page-news-industry-updates__btn-large {
    padding: 18px 40px;
    font-size: 1.1em;
}

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

.page-news-industry-updates__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff; /* Light text for card content */
}

.page-news-industry-updates__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news-industry-updates__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.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.4em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color for card titles */
    min-height: 60px; /* Ensure consistent title height */
}

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

.page-news-industry-updates__card-title a:hover {
    color: #C30808; /* Accent color on hover */
}

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

.page-news-industry-updates__read-more-link {
    color: #C30808;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom of card content */
}

.page-news-industry-updates__read-more-link:hover {
    color: #FFFF00;
}

.page-news-industry-updates__arrow {
    transition: transform 0.3s ease;
}

.page-news-industry-updates__read-more-link:hover .page-news-industry-updates__arrow {
    transform: translateX(5px);
}

/* Content wrappers for text and image side-by-side */
.page-news-industry-updates__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-news-industry-updates__content-wrapper--reversed {
    flex-direction: row-reverse;
}

.page-news-industry-updates__text-block {
    flex: 1;
}

.page-news-industry-updates__image-right,
.page-news-industry-updates__image-left {
    flex: 1;
    border-radius: 10px;
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-news-industry-updates__video-highlight {
    background-color: #1a1a1a; /* Even darker background for video section */
}

.page-news-industry-updates__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-news-industry-updates__video-wrapper .page-news-industry-updates__video-link-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none; /* Remove underline for the link wrapper */
}

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

/* FAQ Section */
.page-news-industry-updates__faq-section {
    background-color: #0d0d0d;
}

.page-news-industry-updates__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-updates__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 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; /* White text for question */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.page-news-industry-updates__faq-text {
    flex-grow: 1;
    color: #ffffff; /* White text for question */
}

.page-news-industry-updates__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: #C30808; /* Accent color for toggle icon */
    transition: transform 0.3s ease;
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-news-industry-updates__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #cccccc;
}

.page-news-industry-updates__faq-item.active .page-news-industry-updates__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-news-industry-updates__faq-answer .page-news-industry-updates__paragraph {
    margin-bottom: 0; /* Remove bottom margin for paragraphs within FAQ answer */
}

/* Final CTA Section */
.page-news-industry-updates__cta-final {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, #017439, #0a3a1f); /* Gradient using brand color */
    color: #ffffff;
}

.page-news-industry-updates__cta-final .page-news-industry-updates__heading {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-news-industry-updates__cta-final .page-news-industry-updates__heading::after {
    background-color: #FFFF00; /* Yellow accent */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news-industry-updates__hero-title {
        font-size: 3em;
    }
    .page-news-industry-updates__heading {
        font-size: 2em;
    }
    .page-news-industry-updates__card-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-news-industry-updates__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-news-industry-updates__hero-title {
        font-size: 2.5em;
    }
    .page-news-industry-updates__hero-description {
        font-size: 1em;
    }
    .page-news-industry-updates__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news-industry-updates__btn-primary,
    .page-news-industry-updates__btn-secondary {
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news-industry-updates__section {
        padding: 60px 0;
    }
    .page-news-industry-updates__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news-industry-updates__paragraph {
        font-size: 1em;
    }

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

    .page-news-industry-updates__content-wrapper,
    .page-news-industry-updates__content-wrapper--reversed {
        flex-direction: column;
        gap: 30px;
    }

    /* Images and Videos responsiveness for mobile */
    .page-news-industry-updates img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important; /* Ensure padding/border are included */
    }
    .page-news-industry-updates video,
    .page-news-industry-updates__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    /* Containers for images/videos */
    .page-news-industry-updates__section,
    .page-news-industry-updates__card,
    .page-news-industry-updates__container,
    .page-news-industry-updates__video-section,
    .page-news-industry-updates__video-container,
    .page-news-industry-updates__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news-industry-updates__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

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

@media (max-width: 480px) {
    .page-news-industry-updates__hero-title {
        font-size: 2em;
    }
    .page-news-industry-updates__hero-description {
        font-size: 0.9em;
    }
    .page-news-industry-updates__heading {
        font-size: 1.5em;
    }
    .page-news-industry-updates__card-title {
        font-size: 1.1em;
    }
    .page-news-industry-updates__faq-question {
        font-size: 1em;
    }
}