.page-news {
    background-color: #FFFFFF;
    color: #333333; /* Default text color for light background */
    padding-bottom: 40px;
}

.page-news__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 40px;
    background-color: #017439; /* Main color for hero background */
    color: #FFFFFF;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for desktop hero image */
    margin-bottom: 20px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-news__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Registered and logged in font color */
}

.page-news__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 150px;
    text-align: center;
}

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

.page-news__btn--primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-news__btn--secondary {
    background-color: transparent;
    color: #FFFF00; /* Register and login font color */
    border: 2px solid #C30808; /* Login button color */
}

.page-news__btn--secondary:hover {
    background-color: rgba(195, 8, 8, 0.2);
    transform: translateY(-2px);
}

.page-news__articles-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #017439; /* Main color for section titles */
    text-align: center;
    margin-bottom: 30px;
}

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

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

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__article-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card visuals, aspect ratio 16:9 for 400x225 */
    min-width: 200px; /* Ensure min width is 200px */
    object-fit: cover;
    display: block;
}

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

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

.page-news__article-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #017439; /* Main color for article titles */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__article-excerpt {
    font-size: 1rem;
    color: #555555;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #C30808; /* Login/Register button color for read more */
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 849px) {
    .page-news__hero-section {
        padding-bottom: 30px;
    }
    .page-news__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-news__hero-description {
        font-size: 1rem;
    }
    .page-news__hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .page-news__btn {
        width: 100%;
        margin: 0 auto;
    }
    .page-news__articles-section {
        padding: 30px 15px;
    }
    .page-news__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-card-image {
        height: 200px; /* Adjust height for smaller screens */
        min-height: 150px; /* Ensure min height is not too small */
    }
    .page-news__article-title {
        font-size: 1.2rem;
    }
    .page-news__article-excerpt {
        font-size: 0.95rem;
    }
}

@media (max-width: 549px) {
    .page-news__hero-section {
        padding: 5px 0 20px;
    }
    .page-news__hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-news__hero-description {
        font-size: 0.9rem;
    }
    .page-news__articles-section {
        padding: 20px 10px;
    }
}

/* Ensure content area images are not displayed smaller than 200px */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-news__article-card-image {
    min-width: 200px; /* Explicitly ensure min-width */
    min-height: 150px; /* Explicitly ensure min-height */
}

/* No CSS filters for images */
.page-news img {
    filter: none; /* Ensure no filters are applied */
}