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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-news {
    background-color: var(--background-color);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

.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(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    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;
    justify-content: center;
    min-height: 500px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--deep-green-color);
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Darken the image for better text readability */
    display: block;
    filter: none; /* Ensure no filter is applied */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    color: var(--text-main-color);
}

.page-news__main-title {
    color: var(--gold-color);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    /* Do not set fixed font-size for H1, rely on default or clamp if needed */
}

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

/* Buttons */
.page-news__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    margin-left: 20px;
}

.page-news__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--card-bg); /* Dark text on gold hover */
}

/* Featured News Section */
.page-news__featured-news-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

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

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

.page-news__news-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filter is applied */
}

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

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

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

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

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

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

.page-news__read-more-btn {
    display: inline-block;
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

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

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

/* Latest Updates Section */
.page-news__latest-updates-section {
    padding: 60px 0;
    background-color: var(--deep-green-color);
}

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

.page-news__update-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__update-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filter is applied */
}

.page-news__update-item-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__update-item-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-news__update-item-title a:hover {
    color: var(--gold-color);
}

.page-news__update-item-date {
    font-size: 0.9em;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
    display: block;
}

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


/* CTA Section */
.page-news__cta-section {
    background-color: var(--background-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-news__cta-section .page-news__section-title {
    color: var(--gold-color);
}

.page-news__cta-section .page-news__section-description {
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

.page-news__cta-image {
    width: 100%;
    max-width: 800px;
    margin-top: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
    margin-left: auto;
    margin-right: auto;
    filter: none; /* Ensure no filter is applied */
}

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

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: var(--text-main-color);
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main-color);
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
    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;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

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

.page-news__faq-answer p {
    margin: 0;
    color: var(--text-secondary-color); /* Ensure paragraph text color is correct */
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__hero-content {
        padding: 30px 15px;
    }
    .page-news__main-title {
        font-size: 2.5em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-news__hero-content {
        padding: 20px 10px;
    }
    .page-news__main-title {
        font-size: 2.2em; /* Smaller H1 for mobile */
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        margin-left: 0;
        margin-bottom: 15px; /* Stack buttons */
    }
    .page-news__hero-content .page-news__btn-primary {
        margin-bottom: 0; /* No extra margin for the single button in hero */
    }
    .page-news__news-grid,
    .page-news__updates-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__news-card-image,
    .page-news__update-item-image {
        height: 180px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 1em;
    }
    .page-news__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
    }
    .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-section,
    .page-news__featured-news-section,
    .page-news__latest-updates-section,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__news-grid,
    .page-news__updates-list,
    .page-news__news-card,
    .page-news__update-item,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Removed padding-left/right here to avoid double padding if already applied to .page-news__container */
        /* If .page-news__container is not used in specific sections, add it there directly */
    }
    .page-news__cta-buttons { /* If there are multiple buttons */
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

/* Ensure images and videos do not have filters */
.page-news img,
.page-news video {
    filter: none;
}