:root {
    --page-news-primary-color: #2F6BFF;
    --page-news-secondary-color: #6FA3FF;
    --page-news-accent-color: #d6d604; /* 3WIN style yellow-green */
    --page-news-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-news-card-bg: #FFFFFF;
    --page-news-background: #F4F7FB;
    --page-news-text-main: #1F2D3D;
    --page-news-text-black: #000000;
    --page-news-border-color: #D6E2FF;
    --page-news-glow-color: #A5C4FF;
    --page-news-dark-bg: #0a0909; /* Deep red/dark background for 3WIN style */
    --page-news-dark-red: #2d0000;
}

.page-news {
    background-color: var(--page-news-background); /* Using the provided background color */
    color: var(--page-news-text-main);
    padding-top: 10px; /* Small top padding for first section, relying on body padding-top for header offset */
    min-height: 100vh;
}

.page-news__hero-section {
    max-width: 1390px; /* Boxed layout */
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--page-news-dark-red); /* Deep red/dark background for hero */
    border-radius: 10px;
    overflow: hidden; /* Ensure rounded corners clip content */
}

.page-news__hero-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded image */
    overflow: hidden;
}

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

.page-news__hero-content {
    text-align: center;
    max-width: 800px;
    color: #ffffff; /* White text on dark background */
}

.page-news__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--page-news-accent-color); /* Yellow-green accent for H1 */
    margin-bottom: 15px;
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Clamp for responsive H1 font size */
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--page-news-button-gradient);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__articles-section {
    max-width: 1390px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--page-news-card-bg); /* White background for article section */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--page-news-text-black);
    margin-bottom: 40px;
    font-weight: 700;
}

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

.page-news__article-card {
    background-color: #FFFFFF;
    border: 1px solid var(--page-news-border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    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 15px rgba(0, 0, 0, 0.1);
}

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for card images to ensure uniformity */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.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;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__article-title a {
    color: var(--page-news-text-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: var(--page-news-primary-color);
}

.page-news__article-date {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 15px;
    display: block; /* Ensure it takes full width */
}

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

.page-news__read-more {
    display: inline-block;
    color: var(--page-news-primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom of card content */
}

.page-news__read-more:hover {
    color: var(--page-news-secondary-color);
}

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

.page-news__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--page-news-button-gradient);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-section,
    .page-news__articles-section {
        margin-left: 15px;
        margin-right: 15px;
    }
}

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

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

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

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

    .page-news__article-image {
        max-width: 100%;
        height: auto; /* Ensure images are responsive and not overflowing */
        min-width: 200px;
        min-height: 200px;
    }
    
    /* Crucial: Mobile content area img overflow prevention */
    .page-news img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-news__hero-content {
        padding: 0 10px;
    }

    .page-news__cta-button,
    .page-news__view-all-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

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