:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --bg-color-light: #ffffff;
    --bg-color-dark: #017439; /* Using primary color as dark background for contrast */
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-register-login-text: #FFFF00;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Default text color for light body background */
    background-color: var(--bg-color-light); /* Explicitly set for content area if needed, though body handles overall */
}

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

.page-news__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__section-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-dark);
}

/* HERO Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    /* Shared body handles padding-top for header offset; this is additional decorative padding */
    padding-top: 10px; 
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-news__main-title {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    /* Using clamp for font-size to avoid fixed large values */
    font-size: clamp(2.2rem, 4vw, 3.5rem); 
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-news__hero-description {
    font-size: 1.15rem;
    color: var(--text-color-dark);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-bg); /* Using specific register color */
    color: var(--button-register-login-text); /* Using specific font color */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__cta-button:hover {
    background: #a30606; /* Fixed darker red for hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-news__cta-button--secondary:hover {
    background: #005a2e; /* Fixed darker green for hover */
}

/* Introduction Section */
.page-news__introduction-section {
    padding: 80px 20px;
    background: var(--bg-color-dark);
    color: var(--text-color-light);
    text-align: center;
}

.page-news__introduction-section .page-news__section-title {
    color: var(--text-color-light);
}

.page-news__introduction-section p {
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 80px 20px;
    background: var(--bg-color-light);
}

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

.page-news__news-card {
    background: #ffffff;
    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__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card images */
    overflow: hidden;
}

.page-news__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* No filter allowed */
}

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

.page-news__card-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__card-title a:hover {
    color: #004d27; /* Fixed darker green for hover */
}

.page-news__card-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.page-news__card-description {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more:hover {
    color: #004d27; /* Fixed darker green for hover */
}

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

/* Archive Section */
.page-news__archive-section {
    padding: 80px 20px;
    background: var(--bg-color-light); /* Explicitly light for safety */
}

.page-news__archive-list {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.page-news__archive-item {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.page-news__archive-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.page-news__archive-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

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

.page-news__archive-title a:hover {
    color: #004d27; /* Fixed darker green for hover */
}

.page-news__archive-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.page-news__archive-snippet {
    font-size: 16px;
    color: var(--text-color-dark);
}

.page-news__pagination {
    text-align: center;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* Allow pagination links to wrap */
}