/* news.css */
.page-news {
    background-color: #08160F;
    color: #F2FFF6;
    font-family: Arial, sans-serif;
}

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding to avoid double header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

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

.page-news__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-news__hero-cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure button is not too small */
}

.page-news__hero-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__articles-section {
    padding: 60px 0;
}

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

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #F2FFF6;
}

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

.page-news__article-card {
    background-color: #11271B;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E;
}

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

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

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

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

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

.page-news__article-date {
    font-size: 0.9rem;
    color: #A7D9B8;
    margin-bottom: 15px;
    display: block;
}

.page-news__article-summary {
    font-size: 1rem;
    color: #A7D9B8;
    line-height: 1.5;
}

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

.page-news__view-all-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure button is not too small */
}

.page-news__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

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

    .page-news__hero-image-wrapper {
        max-height: 50vh;
    }

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

    .page-news__article-image {
        height: 220px;
    }

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

    .page-news__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    /* Ensure content images do not overflow on mobile */
    .page-news__hero-image,
    .page-news__article-image {
        max-width: 100%;
        height: auto;
    }

    .page-news__container {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        padding-bottom: 30px;
    }

    .page-news__hero-cta-button,
    .page-news__view-all-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .page-news__article-image {
        height: 180px;
    }
}