.page-news__hero-section {
    background-color: #017439;
    color: #FFFFFF;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust as needed for visual balance */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-news__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.page-news__news-list-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

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

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

.page-news__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #017439;
    margin: 15px auto 0;
    border-radius: 2px;
}

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

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

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

.page-news__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.page-news__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-news__card-content {
    padding: 20px;
}

.page-news__card-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__card-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

.page-news__view-all {
    text-align: center;
    margin-top: 50px;
}

.page-news__button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Ensure button minimum size */
    min-height: 44px; /* Ensure button minimum size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-news__button--primary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-news__button--primary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

.page-news__cta-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-news__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

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

.page-news__button--register,
.page-news__button--login {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-news__button--register:hover,
.page-news__button--login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-news__hero-image-wrapper {
        max-height: 400px;
    }
    .page-news__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__card-title {
        font-size: 1.2em;
    }
    .page-news__cta-title {
        font-size: clamp(1.8em, 6vw, 2.2em);
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-news__button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-image,
    .page-news__card-image {
        max-width: 100%;
        height: auto;
    }
    .page-news__news-list-section, .page-news__cta-section {
        padding: 40px 0;
    }
}

@media (max-width: 549px) {
    .page-news__hero-image-wrapper {
        max-height: 300px;
    }
    .page-news__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .page-news__card-title {
        font-size: 1.1em;
    }
    .page-news__cta-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }
    .page-news__cta-description {
        font-size: 0.9em;
    }
}