/* style/news.css */
/* Base styles for the page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above text in DOM order, then stack vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-news__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px; /* Space between image and content */
    border-radius: 8px;
}

.page-news__hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
    padding: 0 20px; /* Add some horizontal padding */
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-news__hero-description {
    font-size: 1.15rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* Latest Articles Section */
.page-news__latest-articles {
    background-color: #08160F; /* Background */
    padding: 80px 0;
}

.page-news__dark-section {
    background-color: #11271B; /* Card BG, used for dark sections */
    color: #F2FFF6; /* Text Main */
}

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

.page-news__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
}

.page-news__section-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__article-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    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.3);
}

.page-news__article-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for image consistency */
    overflow: hidden;
}

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

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

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

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

.page-news__article-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #2AD16F; /* Lighter green for hover */
}

.page-news__article-meta {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-btn {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-news__read-more-btn:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-news__view-all-button-container {
    text-align: center;
}

.page-news__view-all-btn {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__view-all-btn:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background-color: #08160F; /* Ensure consistent background for main sections */
    color: #F2FFF6;
    text-align: center;
}

.page-news__light-bg-container {
    background-color: #ffffff; /* Light background for contrast as per rules */
    color: #333333; /* Dark text for light background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-news__cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #11A84E; /* Main brand color for title */
    margin-bottom: 20px;
}

.page-news__cta-description {
    font-size: 1.1rem;
    color: #333333; /* Dark text */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive wrapping */
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #11A84E; /* Main brand color */
    border: 2px solid #11A84E; /* Border with main brand color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 10px 15px 40px;
    }
    .page-news__main-title {
        font-size: 2.2rem;
    }
    .page-news__hero-description {
        font-size: 1rem;
    }

    .page-news__latest-articles,
    .page-news__cta-section {
        padding: 50px 0;
    }

    .page-news__section-title,
    .page-news__cta-title {
        font-size: 2rem;
    }
    .page-news__section-description,
    .page-news__cta-description {
        font-size: 1rem;
    }

    .page-news__container {
        padding: 0 15px !important; /* Ensure padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsive */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__article-image-wrapper {
        height: auto !important; /* Allow height to adjust */
        aspect-ratio: 16 / 9; /* Maintain aspect ratio */
    }

    /* Buttons responsive */
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__read-more-btn,
    .page-news__view-all-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important; /* Adjust padding for mobile */
    }
    .page-news__article-content {
        padding: 20px;
    }
    .page-news__article-title {
        font-size: 1.25rem;
    }
    .page-news__article-meta,
    .page-news__article-excerpt {
        font-size: 0.9rem;
    }

    .page-news__light-bg-container {
        padding: 30px 15px !important;
    }
}