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

/* Custom colors */
:root {
    --page-news-industry-updates-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-industry-updates-card-bg: #11271B;
    --page-news-industry-updates-background: #08160F;
    --page-news-industry-updates-text-main: #F2FFF6;
    --page-news-industry-updates-text-secondary: #A7D9B8;
    --page-news-industry-updates-border: #2E7A4E;
    --page-news-industry-updates-glow: #57E38D;
    --page-news-industry-updates-gold: #F2C14E;
    --page-news-industry-updates-divider: #1E3A2A;
    --page-news-industry-updates-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-news-industry-updates {
    background-color: var(--page-news-industry-updates-background);
    color: var(--page-news-industry-updates-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-news-industry-updates__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-news-industry-updates__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-news-industry-updates__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    z-index: 2; /* Ensure text is above any background elements */
}

.page-news-industry-updates__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--page-news-industry-updates-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-news-industry-updates__hero-description {
    font-size: 1.15rem;
    color: var(--page-news-industry-updates-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news-industry-updates__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 100%;
    box-sizing: border-box;
}

/* Buttons */
.page-news-industry-updates__btn-primary,
.page-news-industry-updates__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-news-industry-updates__btn-primary {
    background: var(--page-news-industry-updates-button-gradient);
    color: var(--page-news-industry-updates-text-main); /* White text for contrast */
    border: none;
}

.page-news-industry-updates__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-news-industry-updates__btn-secondary {
    background: transparent;
    color: var(--page-news-industry-updates-glow); /* Greenish glow for contrast */
    border: 2px solid var(--page-news-industry-updates-glow);
}

.page-news-industry-updates__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background: rgba(87, 227, 141, 0.1); /* Slight background on hover */
}

/* Generic Section Styles */
.page-news-industry-updates__section {
    padding: 80px 20px;
    border-bottom: 1px solid var(--page-news-industry-updates-divider);
}

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

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

.page-news-industry-updates__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-news-industry-updates-glow);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-news-industry-updates__text-block {
    font-size: 1.05rem;
    color: var(--page-news-industry-updates-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* Grid for Latest Trends */
.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: var(--page-news-industry-updates-card-bg);
    border: 1px solid var(--page-news-industry-updates-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-news-industry-updates-text-main);
}

.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%;
    max-width: 400px; /* Constrain image width within card */
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-news-industry-updates__card-title {
    font-size: 1.4rem;
    color: var(--page-news-industry-updates-glow);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news-industry-updates__card-text {
    font-size: 1rem;
    color: var(--page-news-industry-updates-text-secondary);
    text-align: justify;
}

/* Feature List */
.page-news-industry-updates__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.page-news-industry-updates__list-item {
    background-color: var(--page-news-industry-updates-card-bg);
    border: 1px solid var(--page-news-industry-updates-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-news-industry-updates-text-main);
}

.page-news-industry-updates__list-title {
    font-size: 1.3rem;
    color: var(--page-news-industry-updates-gold);
    margin-bottom: 10px;
}

.page-news-industry-updates__list-item p {
    font-size: 1rem;
    color: var(--page-news-industry-updates-text-secondary);
}

.page-news-industry-updates__content-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Call to action at bottom */
.page-news-industry-updates__cta-buttons--bottom {
    margin-top: 60px;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-news-industry-updates__faq-section {
    background-color: var(--page-news-industry-updates-deep-green); /* Slightly different background for contrast */
    padding-bottom: 80px;
}

.page-news-industry-updates__faq-item {
    background-color: var(--page-news-industry-updates-card-bg);
    border: 1px solid var(--page-news-industry-updates-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-news-industry-updates-text-main);
}

.page-news-industry-updates__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-news-industry-updates-text-main);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1); /* Slightly darker background for summary */
    transition: background-color 0.3s ease;
}

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

.page-news-industry-updates__faq-item summary {
    list-style: none; /* Hide default marker for details tag */
}

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

.page-news-industry-updates__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--page-news-industry-updates-glow);
}

.page-news-industry-updates__faq-item[open] .page-news-industry-updates__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-news-industry-updates__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-news-industry-updates-text-secondary);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news-industry-updates__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-news-industry-updates__hero-content {
        padding: 0 10px;
    }

    .page-news-industry-updates__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-news-industry-updates__hero-description {
        font-size: 1.05rem;
    }

    .page-news-industry-updates__section {
        padding: 60px 15px;
    }

    .page-news-industry-updates__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
        margin-bottom: 30px;
    }

    .page-news-industry-updates__grid {
        gap: 20px;
    }

    .page-news-industry-updates__card-title {
        font-size: 1.3rem;
    }

    .page-news-industry-updates__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-news-industry-updates__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small top padding for section */
    }

    .page-news-industry-updates__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-news-industry-updates__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-news-industry-updates__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-news-industry-updates__btn-primary,
    .page-news-industry-updates__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news-industry-updates__section {
        padding: 40px 15px;
    }

    .page-news-industry-updates__section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        margin-bottom: 25px;
    }

    .page-news-industry-updates__text-block {
        font-size: 0.95rem;
    }

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

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

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

    .page-news-industry-updates__card-title {
        font-size: 1.2rem;
    }

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

    .page-news-industry-updates__list-title {
        font-size: 1.15rem;
    }

    .page-news-industry-updates__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 30px auto;
    }

    .page-news-industry-updates__cta-buttons--bottom {
        margin-top: 40px;
    }

    .page-news-industry-updates__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .page-news-industry-updates__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    /* Ensure all image containers are responsive */
    .page-news-industry-updates__section,
    .page-news-industry-updates__card,
    .page-news-industry-updates__container,
    .page-news-industry-updates__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}