/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjusted for header offset */
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

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

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Sections */
.page-news__featured-section,
.page-news__strategy-section,
.page-news__analysis-section,
.page-news__faq-section,
.page-news__cta-section {
    padding: 80px 0;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-news__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: inherit;
}

/* Article Grid */
.page-news__article-grid,
.page-news__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card,
.page-news__strategy-item {
    background-color: #f8f8f8; /* Light background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

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

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

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

.page-news__article-title,
.page-news__strategy-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

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

.page-news__article-title a:hover,
.page-news__strategy-title a:hover {
    color: #C30808;
}

.page-news__article-excerpt,
.page-news__strategy-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
}

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

.page-news__read-more:hover {
    color: #C30808;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    color: #ffffff; /* Text color for dark background */
}

.page-news__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    color: #ffffff;
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

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

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

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-news__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

.page-news__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-news__faq-answer a:hover {
    color: #C30808;
}

/* CTA Section */
.page-news__cta-section {
    text-align: center;
    background-color: #ffffff;
    color: #333333;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }

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

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        padding: var(--header-offset, 120px) 0 40px;
    }

    .page-news__hero-title {
        font-size: 2.2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

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

    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__article-grid,
    .page-news__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-card,
    .page-news__strategy-item {
        margin: 0 15px;
    }

    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-news__cta-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-left: 15px;
        padding-right: 15px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Mobile specific image adaptation */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-news__article-image,
    .page-news__strategy-image {
        height: auto; /* Allow height to adjust naturally */
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__cta-title {
        font-size: 1.6em;
    }
}

/* Color Contrast Fixes (if needed) */
.page-news__dark-bg {
    color: #ffffff; /* Ensures light text on dark brand background */
}

.page-news__light-bg {
    color: #333333; /* Ensures dark text on light background */
}

.page-news__article-card,
.page-news__strategy-item {
    background-color: #f8f8f8;
    color: #333333;
}

.page-news__article-title,
.page-news__strategy-title {
    color: #017439;
}

.page-news__article-excerpt,
.page-news__strategy-text {
    color: #555555;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly lighter for contrast on dark green */
    color: #ffffff;
}

.page-news__faq-answer p {
    color: #f0f0f0;
}

.page-news__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}