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

/* Base styles for the page content */
.page-news-industry-trends {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

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

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

.page-news-industry-trends__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffffff; /* Consistent with dark background */
    font-weight: bold;
}

.page-news-industry-trends__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Hero Section */
.page-news-industry-trends__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust 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: 800px;
    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.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

/* Buttons */
.page-news-industry-trends__btn-primary,
.page-news-industry-trends__btn-secondary,
.page-news-industry-trends__video-cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-news-industry-trends__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

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

/* Image styles */
.page-news-industry-trends__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* No filter property to change image color */
}

.page-news-industry-trends__image--large {
    width: 100%;
}

.page-news-industry-trends__image--medium {
    max-width: 80%;
}

.page-news-industry-trends__image--small {
    max-width: 60%;
}

/* Dark background sections */
.page-news-industry-trends__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

/* Lists */
.page-news-industry-trends__list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 800px;
    text-align: left;
}

.page-news-industry-trends__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.page-news-industry-trends__list-item::before {
    content: "✓";
    color: #FFFF00; /* Highlight color */
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

/* Cards */
.page-news-industry-trends__cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.page-news-industry-trends__card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    text-align: left;
    box-sizing: border-box;
}

.page-news-industry-trends__card-title {
    font-size: 1.8em;
    color: #FFFF00; /* Highlight color */
    margin-bottom: 15px;
}

/* Video Section */
.page-news-industry-trends__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Constrain video width */
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.page-news-industry-trends__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-news-industry-trends__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.page-news-industry-trends__video-wrapper:hover .page-news-industry-trends__video-overlay {
    opacity: 1;
}

.page-news-industry-trends__video-cta-button {
    background-color: #C30808;
    color: #FFFF00;
    font-size: 1.2em;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #C30808;
}

.page-news-industry-trends__video-cta-button:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-news-industry-trends__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.page-news-industry-trends__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-news-industry-trends__feature-title {
    font-size: 1.6em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-news-industry-trends__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Call to Action Section */
.page-news-industry-trends__cta-section {
    background-color: #017439; /* Brand primary color */
    padding: 80px 0;
}

.page-news-industry-trends__cta-content {
    max-width: 900px;
}

.page-news-industry-trends__btn-large {
    font-size: 1.2em;
    padding: 18px 40px;
    margin: 15px;
}

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

.page-news-industry-trends__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news-industry-trends__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news-industry-trends__faq-title {
    font-size: 1.3em;
    color: #ffffff;
    margin: 0;
}

.page-news-industry-trends__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Highlight color */
    transition: transform 0.3s ease;
}

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

.page-news-industry-trends__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
}

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

.page-news-industry-trends__faq-text {
    font-size: 1em;
    color: #f0f0f0;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news-industry-trends__hero-title {
        font-size: 2.8em;
    }
    .page-news-industry-trends__section-title {
        font-size: 2em;
    }
    .page-news-industry-trends__cards-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-news-industry-trends__card {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-news-industry-trends {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news-industry-trends__hero-section {
        height: 60vh;
        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: 1.1em;
    }

    .page-news-industry-trends__section {
        padding: 40px 0;
    }

    .page-news-industry-trends__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-news-industry-trends__text-block {
        font-size: 1em;
    }

    .page-news-industry-trends__btn-primary,
    .page-news-industry-trends__btn-secondary,
    .page-news-industry-trends__video-cta-button,
    .page-news-industry-trends a[class*="button"],
    .page-news-industry-trends 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: 10px 0;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news-industry-trends__cta-buttons,
    .page-news-industry-trends__button-group,
    .page-news-industry-trends__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .page-news-industry-trends__image,
    .page-news-industry-trends__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news-industry-trends__container,
    .page-news-industry-trends__video-wrapper,
    .page-news-industry-trends__cards-wrapper,
    .page-news-industry-trends__features-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-news-industry-trends__card,
    .page-news-industry-trends__feature-item {
        max-width: 100%;
    }

    .page-news-industry-trends__list {
        max-width: 100%;
        padding: 0 15px;
    }

    .page-news-industry-trends__faq-list {
        max-width: 100%;
        padding: 0 15px;
    }

    .page-news-industry-trends__faq-question,
    .page-news-industry-trends__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@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.5em;
    }
    .page-news-industry-trends__btn-primary,
    .page-news-industry-trends__btn-secondary,
    .page-news-industry-trends__video-cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }
}