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

.page-news {
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Ensure consistent background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-news__section-spacing {
    padding: 60px 0;
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-subtitle {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -150px; /* Adjust to slightly overlap the bottom of the image for visual flow */
    background: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-news__hero-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: var(--color-gold);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff; /* White text for gradient button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--color-glow); /* Text color from custom palette */
    border: 2px solid var(--color-glow);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.2);
}

.page-news__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

/* News Grid Section */
.page-news__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__news-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

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

.page-news__news-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-news__news-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    font-weight: bold;
}

.page-news__news-card-title a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: var(--color-glow);
}

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

.page-news__news-card-excerpt {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-btn {
    display: inline-block;
    color: var(--color-glow);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-btn:hover {
    text-decoration: underline;
    color: var(--color-gold);
}

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

/* Featured Analysis Section */
.page-news__featured-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.page-news__featured-card-image {
    width: 100%;
    height: 450px; /* Fixed height for featured image */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-news__featured-card-content {
    padding: 30px;
}

.page-news__featured-card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
    font-weight: bold;
}

.page-news__featured-card-title a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__featured-card-title a:hover {
    color: var(--color-gold);
}

.page-news__featured-card-meta {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.page-news__featured-card-excerpt {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Categories Section */
.page-news__category-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-news__category-item a {
    display: block;
    background: var(--color-deep-green);
    color: var(--color-text-main);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-news__category-item a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* Join Us CTA Section */
.page-news__join-us-cta {
    background: var(--color-deep-green);
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
}

.page-news__join-us-cta .page-news__section-title {
    color: var(--color-gold);
}

.page-news__join-us-cta .page-news__section-subtitle {
    color: var(--color-text-main);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-news__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-news__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--color-text-main);
    transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
    background-color: var(--color-deep-green);
}

.page-news__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-glow);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--color-text-secondary);
}

.page-news__dark-section {
    background: var(--color-deep-green);
    color: var(--color-text-main);
}

/* Responsive Styles */
@media (min-width: 769px) {
    .page-news__hero-section {
        padding-bottom: 120px;
    }
    .page-news__hero-content {
        margin-top: -100px;
    }
    .page-news__featured-card {
        flex-direction: row;
    }
    .page-news__featured-card-image {
        width: 60%;
        height: auto;
        min-width: 400px;
    }
    .page-news__featured-card-content {
        width: 40%;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__hero-content {
        margin-top: -80px; /* Less overlap on mobile */
        padding: 25px 15px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
    }
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__section-title {
        font-size: 2em;
    }

    .page-news__section-subtitle {
        font-size: 1em;
    }

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

    .page-news__news-card-image,
    .page-news__featured-card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
    }

    .page-news__news-card-title,
    .page-news__featured-card-title {
        font-size: 1.2em;
    }

    .page-news__featured-card {
        flex-direction: column;
    }

    .page-news__featured-card-image,
    .page-news__featured-card-content {
        width: 100%;
        padding: 20px;
    }

    .page-news__category-list {
        flex-direction: column;
        align-items: center;
    }

    .page-news__section-spacing {
        padding: 40px 0;
    }

    /* Ensure all image containers are responsive */
    .page-news__container,
    .page-news__news-grid-section,
    .page-news__featured-analysis,
    .page-news__categories-section,
    .page-news__join-us-cta,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* Content area images must be at least 200px wide/high */
.page-news img:not(.page-news__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides to ensure images are not too small by CSS */
.page-news__news-card-image,
.page-news__featured-card-image {
    width: 100%; /* Ensure they take full width of their container */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

/* Ensure no filter properties are used */
.page-news img {
    filter: none !important;
}