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

/* Base styles for the news page, inheriting from shared.css */
.page-news {
    font-family: 'Arial', sans-serif; /* Example font */
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-color); /* Inherits from shared.css: #08160F */
    line-height: 1.6;
    font-size: 1rem;
}

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

/* Typography */
.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    font-weight: 700;
    color: var(--gold); /* Gold color for main title */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive H2 */
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-news__article-title,
.page-news__insight-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem); /* Responsive H3 */
    font-weight: 600;
    color: var(--text-main);
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__hero-description,
.page-news__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow */
}

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

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%; /* Ensure content takes full width up to max-width */
    z-index: 1; /* Ensure content is above any potential background layers */
}

/* CTA Button */
.page-news__cta-button {
    display: inline-block;
    background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
    color: var(--text-main); /* #F2FFF6 */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Slight inverse for hover */
    transform: translateY(-2px);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__article-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-news__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image {
    transform: scale(1.05);
}

.page-news__article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__article-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.page-news__article-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-news__read-more {
    color: var(--glow); /* #57E38D */
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.page-news__read-more:hover {
    text-decoration: underline;
}

.page-news__view-all-container {
    text-align: center;
    margin-top: 50px;
}

.page-news__view-all-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__view-all-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* Industry Insights Section */
.page-news__industry-insights-section {
    padding: 60px 0;
    background-color: var(--deep-green); /* #0A4B2C */
}

.page-news__insight-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-news__insight-item:last-child {
    margin-bottom: 0;
}

.page-news__insight-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__insight-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-news__insight-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1rem;
    user-select: none; /* Prevent text selection on click */
    list-style: none; /* Remove default marker */
}

.page-news__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-news__faq-question {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-height: 0; /* For JS-controlled collapse */
    overflow: hidden; /* For JS-controlled collapse */
    transition: max-height 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 1000px; /* Sufficiently large for expanded content */
    transition: max-height 0.5s ease-in;
}

/* Fallback for non-JS details, direct content styling */
.page-news__faq-item:not([open]) .page-news__faq-answer {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}
.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 1000px; /* Arbitrary large value */
    padding-top: 10px;
    padding-bottom: 20px;
}

/* CTA Section at bottom */
.page-news__cta-section {
    padding: 80px 20px;
    background-color: var(--deep-green); /* #0A4B2C */
    text-align: center;
}

.page-news__cta-content {
    max-width: 900px;
}

.page-news__cta-section .page-news__section-title {
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
}

.page-news__cta-section .page-news__section-description {
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 40px;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--glow); /* #57E38D */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--glow); /* #57E38D */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary:hover {
    background-color: var(--glow); /* #57E38D */
    color: var(--deep-green); /* #0A4B2C */
    transform: translateY(-2px);
    border-color: var(--glow);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section,
    .page-news__latest-articles-section,
    .page-news__industry-insights-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-news__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-news__section-title {
        font-size: 1.8rem;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-news__article-title,
    .page-news__insight-title {
        font-size: 1.1rem;
    }

    .page-news__hero-description,
    .page-news__section-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }

    .page-news__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }

    /* Images */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__article-image-wrapper,
    .page-news__insight-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Ensure no overflow */
    }

    .page-news__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-news__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

    .page-news__faq-answer {
        padding: 0 15px 15px 15px;
    }
}