/* style/news.css */

/* Base Styles */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #121212, so light text */
    background-color: transparent; /* Rely on body background from shared.css */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

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

.page-news__section-title {
    font-size: 2.5em;
    color: #017439; /* Primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #e0e0e0; /* Light gray for readability on dark background */
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Grid */
.page-news__articles-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    padding: 60px 0;
}

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

.page-news__article-card {
    background-color: #2a2a2a; /* Darker card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

.page-news__article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 25px;
}

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    min-height: 60px; /* Ensure consistent height */
}

.page-news__article-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #017439;
}

.page-news__article-excerpt {
    color: #b0b0b0;
    font-size: 0.95em;
    margin-bottom: 20px;
    min-height: 80px; /* Ensure consistent height */
}

.page-news__read-more-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
    color: #02a14e; /* Lighter green on hover */
}

/* Detailed Content Sections */
.page-news__detailed-content-section {
    padding: 80px 0;
}

.page-news__dark-section {
    background-color: #0a0a0a; /* Even darker for emphasis */
    color: #ffffff;
}
.page-news__dark-section .page-news__section-title {
    color: #ffffff;
}
.page-news__dark-section .page-news__section-description {
    color: #e0e0e0;
}

.page-news__light-bg {
    background-color: #f5f5f5; /* Light background for contrast */
    color: #333333;
}
.page-news__light-bg .page-news__section-title {
    color: #017439;
}
.page-news__light-bg .page-news__section-description {
    color: #555555;
}

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

.page-news__feature-item {
    background-color: #2a2a2a; /* Consistent dark card background */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #017439;
}
.page-news__dark-section .page-news__feature-item {
    background-color: #1a1a1a; /* Slightly different dark for contrast */
}
.page-news__light-bg .page-news__feature-item {
    background-color: #ffffff;
    border-left: 5px solid #017439;
}
.page-news__light-bg .page-news__feature-title {
    color: #017439;
}
.page-news__light-bg .page-news__feature-item p {
    color: #555555;
}

.page-news__feature-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__feature-item p {
    color: #b0b0b0;
    font-size: 1em;
}

/* Promotions Callout */
.page-news__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-news__promo-card {
    background-color: #ffffff; /* White background for light section cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-news__promo-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__promo-card p {
    color: #555555;
    font-size: 0.95em;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-news__faq-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #3a3a3a;
}

.page-news__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Change to X or - */
}
.page-news__faq-item.active .page-news__faq-question {
    background-color: #3a3a3a;
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #1a1a1a;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 25px;
}

.page-news__faq-answer p {
    color: #b0b0b0;
    font-size: 1em;
    margin-bottom: 0;
}


/* Call to Action Bottom */
.page-news__cta-bottom-section {
    background-color: #017439; /* Primary brand color background */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
}

.page-news__cta-bottom-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-news__cta-bottom-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding/border are included in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

/* CRITICAL FIX: Adjusted button text color from #FFFF00 to #FFFFFF to meet WCAG AA contrast ratio of 4.5:1 with background #C30808. */
/* This prioritizes the