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

/* Base styles for the page content */
.page-news-industry-insights {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content background is transparent to show body background */
    padding-bottom: 80px; /* Space for footer */
}

/* Header Offset for the first content section */
.page-news-industry-insights__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #0d0d0d; /* Dark background for hero */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    overflow: hidden; /* Prevent image overflow */
}

.page-news-industry-insights__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Ensure text is above background image */
    padding: 0 20px;
}

.page-news-industry-insights__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background */
    z-index: 1;
}

.page-news-industry-insights__hero-section h1 {
    font-size: 3.2em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news-industry-insights__hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-insights__cta-button {
    display: inline-block;
    background-color: #FFD700; /* Gold button */
    color: #000000; /* Black text for gold button for contrast */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news-industry-insights__cta-button:hover {
    background-color: #e6c200; /* Slightly darker gold on hover */
    color: #000000;
}

.page-news-industry-insights__btn-primary {
    background-color: #004A7F; /* Dark blue button */
    color: #ffffff; /* White text for dark blue button */
    border: 2px solid #004A7F;
}

.page-news-industry-insights__btn-primary:hover {
    background-color: #003a60;
    border-color: #003a60;
}

.page-news-industry-insights__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-news-industry-insights__btn-secondary:hover {
    background-color: #FFD700;
    color: #000000;
}

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

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

.page-news-industry-insights__section--dark {
    background-color: #004A7F; /* Dark blue section background */
    color: #ffffff;
}

.page-news-industry-insights__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for H2 titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-news-industry-insights__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    margin: 15px auto 0 auto;
}

.page-news-industry-insights__subsection-title {
    font-size: 1.8em;
    color: #ffffff; /* White for H3 titles */
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid #FFD700;
    padding-left: 15px;
}

.page-news-industry-insights__text-block {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #f0f0f0; /* Light grey text for better readability on dark background */
}

.page-news-industry-insights__image-container {
    margin: 40px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-news-industry-insights__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    margin: 0 auto;
}

/* FAQ Section Styles */
.page-news-industry-insights__faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-news-industry-insights__faq-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-news-industry-insights__faq-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #FFD700;
    margin: 15px auto 0 auto;
}

.page-news-industry-insights__faq-item {
    background-color: rgba(0, 74, 127, 0.8); /* Slightly transparent dark blue */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #005a9f;
}

.page-news-industry-insights__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #004A7F; /* Dark blue for question header */
    transition: background-color 0.3s ease;
}

.page-news-industry-insights__faq-question:hover {
    background-color: #003a60;
}

.page-news-industry-insights__faq-toggle {
    font-size: 1.5em;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-news-industry-insights__faq-item.active .page-news-industry-insights__faq-toggle {
    transform: rotate(45deg); /* Plus to X effect */
}

.page-news-industry-insights__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
    background-color: rgba(0, 74, 127, 0.6); /* Lighter transparent dark blue */
}

.page-news-industry-insights__faq-item.active .page-news-industry-insights__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 20px 25px;
}

/* Floating Buttons */
.page-news-industry-insights__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-news-industry-insights__floating-btn {
    display: block;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.3s ease;
    min-width: 120px; /* Ensure button is wide enough */
}

.page-news-industry-insights__floating-btn--register {
    background-color: #FFD700; /* Gold */
    color: #000000;
}

.page-news-industry-insights__floating-btn--register:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-news-industry-insights__floating-btn--login {
    background-color: #004A7F; /* Dark Blue */
    color: #ffffff;
    border: 1px solid #004A7F;
}

.page-news-industry-insights__floating-btn--login:hover {
    background-color: #003a60;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news-industry-insights__hero-section h1 {
        font-size: 2.8em;
    }
    .page-news-industry-insights__section-title {
        font-size: 2em;
    }
    .page-news-industry-insights__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-news-industry-insights {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news-industry-insights__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-news-industry-insights__hero-section h1 {
        font-size: 2.2em;
    }
    .page-news-industry-insights__hero-section p {
        font-size: 1em;
    }
    .page-news-industry-insights__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news-industry-insights__button-group {
        flex-direction: column;
        gap: 10px;
    }

    .page-news-industry-insights__section,
    .page-news-industry-insights__faq-section {
        padding: 30px 15px; /* Adjust padding for smaller screens */
    }
    
    .page-news-industry-insights__section-title,
    .page-news-industry-insights__faq-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news-industry-insights__subsection-title {
        font-size: 1.4em;
        padding-left: 10px;
    }

    /* Images responsive */
    .page-news-industry-insights img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news-industry-insights__image-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* FAQ responsive */
    .page-news-industry-insights__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-news-industry-insights__faq-answer {
        padding: 0 20px;
    }
    .page-news-industry-insights__faq-item.active .page-news-industry-insights__faq-answer {
        padding: 10px 20px 15px 20px;
    }

    /* Floating buttons responsive */
    .page-news-industry-insights__floating-buttons {
        bottom: 10px;
        right: 10px;
        flex-direction: row; /* Horizontal on small screens */
        width: calc(100% - 20px); /* Fill width with some margin */
        justify-content: space-around;
    }
    .page-news-industry-insights__floating-btn {
        flex: 1; /* Distribute space evenly */
        min-width: unset;
        font-size: 0.9em;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page-news-industry-insights__hero-section h1 {
        font-size: 1.8em;
    }
    .page-news-industry-insights__hero-section p {
        font-size: 0.9em;
    }
    .page-news-industry-insights__section-title,
    .page-news-industry-insights__faq-title {
        font-size: 1.5em;
    }
    .page-news-industry-insights__subsection-title {
        font-size: 1.2em;
    }
    .page-news-industry-insights__floating-buttons {
        flex-direction: column; /* Stack vertically again if too small horizontally */
        width: calc(100% - 20px);
    }
    .page-news-industry-insights__floating-btn {
        width: 100%;
    }
}