.page-news {
    background-color: #FFFFFF;
    color: #333333;
    font-family: Arial, sans-serif;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #017439;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 400px; /* Limit height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-news__hero-content {
    text-align: center;
    padding: 20px 20px 0;
    max-width: 900px;
    margin: 0 auto;
    color: #FFFFFF;
}

.page-news__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Register and Login font color for title */
}

.page-news__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

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

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

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

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

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

.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;
}

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

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

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

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

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

.page-news__article-date {
    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;
}

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

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

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

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

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

.page-news__contact-cta {
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
    padding: 60px 20px;
}

.page-news__contact-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFF00;
}

.page-news__contact-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-news__contact-button {
    display: inline-block;
    background-color: #C30808;
    color: #FFFF00;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
}

.page-news__contact-button:hover {
    background-color: #a00606;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-news__hero-image-wrapper {
        max-height: 300px;
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .page-news__hero-description {
        font-size: 1rem;
    }

    .page-news__section-title {
        font-size: 2rem;
    }

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

    .page-news__article-excerpt {
        font-size: 0.95rem;
    }

    .page-news__contact-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .page-news__hero-image {
        max-width: 100%;
        height: auto;
    }
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-news__article-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-news__hero-section {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .page-news__hero-image-wrapper {
        max-height: 200px;
    }

    .page-news__hero-content {
        padding: 15px 15px 0;
    }

    .page-news__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
        margin-bottom: 10px;
    }

    .page-news__hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .page-news__cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }

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

    .page-news__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-image {
        height: 200px; /* Adjust for smaller screens */
    }

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

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

    .page-news__article-date {
        font-size: 0.85rem;
    }

    .page-news__article-excerpt {
        font-size: 0.9rem;
    }

    .page-news__view-all-button {
        padding: 10px 25px;
        font-size: 1rem;
    }

    .page-news__contact-cta {
        padding: 40px 15px;
    }

    .page-news__contact-title {
        font-size: 1.6rem;
    }

    .page-news__contact-description {
        font-size: 1rem;
    }

    .page-news__contact-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
}