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

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content, relying on shared.css for body padding-top */
.page-news-industry-trends {
    background-color: var(--background-dark); /* Dark background from custom palette */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-news-industry-trends__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--deep-green); /* Use a darker green for hero section background */
    overflow: hidden; /* Ensure content does not overflow */
}

.page-news-industry-trends__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 40px; /* Space between image and content */
}

.page-news-industry-trends__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
    min-width: 200px; /* Min size for all images */
    min-height: 200px; /* Min size for all images */
}

.page-news-industry-trends__hero-content {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
    color: var(--text-main); /* Light text */
}

.page-news-industry-trends__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color); /* Gold color for main title */
}

.page-news-industry-trends__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary); /* Secondary text color */
}

/* CTA Buttons */
.page-news-industry-trends__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button fits container */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news-industry-trends__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text */
    border: 2px solid transparent;
}

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

.page-news-industry-trends__btn-secondary {
    background: var(--card-bg); /* Dark green background */
    color: var(--gold-color); /* Gold text */
    border: 2px solid var(--border-color);
    margin-top: 20px;
}

.page-news-industry-trends__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.page-news-industry-trends__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

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

.page-news-industry-trends__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-news-industry-trends__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 500;
}

.page-news-industry-trends__paragraph {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-news-industry-trends__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    min-width: 200px; /* Min size for all images */
    min-height: 200px; /* Min size for all images */
}

/* FAQ Section */
.page-news-industry-trends__faq {
    background-color: var(--card-bg); /* Darker background for FAQ section */
    padding: 80px 0;
}

.page-news-industry-trends__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-news-industry-trends__faq-item {
    background-color: var(--background-dark); /* Even darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-news-industry-trends__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green); /* Slightly lighter green for question background */
    transition: background-color 0.3s ease;
}

.page-news-industry-trends__faq-question:hover {
    background-color: var(--primary-color);
}

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

.page-news-industry-trends__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

/* Details tag specific styling for FAQ */
.page-news-industry-trends__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-news-industry-trends__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}


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

    .page-news-industry-trends__container {
        padding: 0 15px;
    }

    .page-news-industry-trends__hero-section {
        padding-bottom: 40px;
    }

    .page-news-industry-trends__hero-content {
        padding: 0 15px;
    }

    .page-news-industry-trends__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-news-industry-trends__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-news-industry-trends__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-news-industry-trends__btn-secondary {
        margin-top: 15px;
    }

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

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

    .page-news-industry-trends__sub-title {
        font-size: 1.2rem;
        margin-top: 25px;
        margin-bottom: 10px;
    }

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

    .page-news-industry-trends__image-inline {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }
    
    /* Ensure all image/content containers are responsive */
    .page-news-industry-trends__hero-image-wrapper,
    .page-news-industry-trends__container,
    .page-news-industry-trends__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* FAQ specific for mobile */
    .page-news-industry-trends__faq {
        padding: 60px 0;
    }
    .page-news-industry-trends__faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    .page-news-industry-trends__faq-toggle {
        font-size: 1.2rem;
    }
    .page-news-industry-trends__faq-answer {
        padding: 0 15px 15px 15px;
    }
}