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

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px);
    background-color: #017439;
    text-align: center;
    color: #ffffff;
}

.page-news__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

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

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

.page-news__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

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

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

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

/* Featured News */
.page-news__featured-news {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-news__news-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-news__card-title a:hover {
    text-decoration: underline;
}

.page-news__card-excerpt {
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #C30808;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
}

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

/* Latest Articles */
.page-news__latest-articles {
    padding: 60px 0;
    background-color: #f0f0f0;
    color: #333333;
}

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

.page-news__article-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-item:hover {
    transform: translateY(-3px);
}

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

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

.page-news__article-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__article-title a {
    color: #017439;
    text-decoration: none;
}

.page-news__article-title a:hover {
    text-decoration: underline;
}

.page-news__article-date {
    font-size: 0.9em;
    color: #777777;
    margin-bottom: 10px;
}

.page-news__article-excerpt {
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background-color: #017439;
    text-align: center;
    color: #ffffff;
}

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

.page-news__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-news__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    background-color: #e8f5e9; /* Light green for summary */
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-news__faq-answer {
    padding: 15px 25px 25px;
    color: #555555;
    border-top: 1px solid #e0e0e0;
}

.page-news__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title,
    .page-news__cta-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__featured-grid,
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__news-card,
    .page-news__article-item {
        margin: 0 15px;
    }
    .page-news__card-image,
    .page-news__article-thumbnail {
        height: 200px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__cta-section .page-news__container {
        padding: 0 15px;
    }
    .page-news__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-news__faq-answer {
        padding: 10px 20px 20px;
    }
    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__featured-grid,
    .page-news__articles-grid,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-news__cta-section .page-news__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Space between title, description, and button */
    }
}

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