.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--page-background, #ffffff); /* Use shared variable for body background */
}

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #f8f8f8;
    color: #333333;
    overflow: hidden; /* Prevent content overflow */
}

.page-news__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-news__hero-title {
    font-size: 3.2em;
    color: #017439; /* Brand color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more-btn {
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-news__btn-primary:hover {
    background-color: #005a2b; /* Darker shade for hover */
    border-color: #005a2b;
}

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

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

/* Specific colors for login/register if needed, overriding general button styles */
.page-news__hero-cta-buttons .page-news__btn-primary { /* Assuming primary for login */
    background-color: #C30808; /* Login color */
    border-color: #C30808;
    color: #FFFF00; /* Login font color */
}
.page-news__hero-cta-buttons .page-news__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}
.page-news__hero-cta-buttons .page-news__btn-secondary { /* Assuming secondary for register */
    background-color: #C30808; /* Register color */
    border-color: #C30808;
    color: #FFFF00; /* Register font color */
}
.page-news__hero-cta-buttons .page-news__btn-secondary:hover {
    background-color: #a00606;
    border-color: #a00606;
}


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

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Min size */
    min-height: 200px; /* Min size */
}

.page-news__section {
    padding: 60px 20px;
    background-color: #ffffff;
    color: #333333;
}

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

.page-news__dark-bg { /* General dark background for CTA */
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-news__dark-section .page-news__section-title,
.page-news__dark-bg .page-news__cta-title {
    color: #ffffff;
}

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

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

.page-news__article-card {
    background-color: #ffffff;
    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 {
    transform: translateY(-5px);
}

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size */
    min-height: 200px; /* Min size */
}

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

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-news__article-title a:hover {
    color: #005a2b;
    text-decoration: underline;
}

.page-news__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    background-color: #f0f0f0;
    color: #017439;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-news__read-more-btn:hover {
    background-color: #e0e0e0;
    color: #005a2b;
}

.page-news__featured-video .page-news__section-title {
    margin-bottom: 30px;
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Min size */
    min-height: 200px; /* Min size */
    cursor: pointer;
}

.page-news__video-description {
    font-size: 1.1em;
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-news__faq-section {
    background-color: #f8f8f8;
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e6f7ed; /* Lighter brand color background */
    border-bottom: 1px solid #d0e8d9;
}

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

.page-news__faq-item[open] > .page-news__faq-question {
    border-bottom: 1px solid transparent;
}

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

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

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

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

.page-news__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-news__cta-container {
    max-width: 900px;
}

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

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

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

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__hero-content {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100%;
    }
    .page-news__hero-title {
        font-size: 2.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: 12px 20px;
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__container {
        padding: 0; /* Remove padding from container, let section handle it */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-news__featured-video .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    .page-news__cta-section {
        padding: 60px 15px;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-news__hero-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-news__article-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-news__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}