.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content for mobile */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 40px; /* Small top padding, larger bottom padding */
    background-color: #0a0909; /* Dark background to complement brand colors */
    color: #FFFFFF;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    margin: 0;
    overflow: hidden;
    order: 1; /* Image first in DOM */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9; /* Adjusted for hero image, can be 16/9 or 21/9 */
    object-fit: cover;
    object-position: center;
}

.page-news__hero-content {
    order: 2; /* Content second in DOM */
    max-width: 900px;
    padding: 20px 20px 40px;
    position: relative; /* Ensure content is not absolutely positioned over image */
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem); /* Adjusted for better responsiveness */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for contrast */
}

.page-news__description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFFFFF; /* White for contrast */
}

.page-news__cta-button {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: 2px solid #C30808;
}

.page-news__cta-button:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-news__articles-section {
    padding: 60px 20px;
    background-color: #FFFFFF; /* White background */
    color: #333333;
    max-width: 1200px;
    margin: 0 auto;
}

.page-news__section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Primary green */
}

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

.page-news__article-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, 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 {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-thumbnail {
    width: 100%;
    margin: 0;
    aspect-ratio: 16/9; /* Card image aspect ratio */
    overflow: hidden;
}

.page-news__article-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover .page-news__article-image {
    transform: scale(1.05);
}

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

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

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

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

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

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

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

.page-news__view-all-button {
    display: inline-block;
    background-color: #017439; /* Primary green */
    color: #FFFFFF;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: 2px solid #017439;
}

.page-news__view-all-button:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-news__cta-section {
    background-color: #017439; /* Primary green background */
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
}

.page-news__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__cta-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-news__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #FFFFFF;
}

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

.page-news__register-button,
.page-news__login-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid #C30808; /* Custom color for register/login buttons */
    background-color: #C30808;
    color: #FFFF00; /* Custom font color for register/login buttons */
}

.page-news__register-button:hover,
.page-news__login-button:hover {
    background-color: #e02020;
    border-color: #e02020;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-news__hero-content {
        padding: 20px 15px;
    }

    .page-news__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .page-news__description {
        font-size: 1rem;
    }

    .page-news__articles-section {
        padding: 40px 15px;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }

    .page-news__article-card {
        margin-bottom: 20px;
    }

    .page-news__article-title {
        font-size: 1.2rem;
    }

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

    .page-news__register-button,
    .page-news__login-button {
        width: 100%;
        max-width: 250px; /* Limit width for buttons in column layout */
        margin: 0 auto;
    }

    /* Ensure all images in content area are responsive and not too small */
    .page-news__articles-section img,
    .page-news__article-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-news__hero-section {
        padding-bottom: 20px;
    }
    .page-news__main-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
    }
    .page-news__cta-section {
        padding: 40px 15px;
    }
}

/* Enforce minimum image dimensions and prevent small icons */
.page-news__hero-image,
.page-news__article-image {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure CSS for content area images does not make them smaller than 200px */
.page-news__articles-section .page-news__article-image {
    width: 100%; /* Default for cards */
    height: auto;
    /* These ensure no external rule can shrink them below 200px if they target specific selectors */
    max-width: none; 
    max-height: none;
}
@media (max-width: 768px) {
    .page-news__articles-section .page-news__article-image {
        max-width: 100%; /* Make them responsive */
        height: auto;
    }
}