/* style/news.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --button-register: #C30808;
    --button-login: #C30808;
    --button-font-color: #FFFF00;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background: var(--secondary-color); /* Body background is white, so default text is dark */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

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

.page-news__section-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    color: #555555;
}

/* 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;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d2b 100%); /* Darker green gradient */
    color: var(--text-color-light);
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-news__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.page-news__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register); /* Using #C30808 */
    color: var(--button-font-color); /* Using #FFFF00 */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.page-news__cta-button:hover {
    background: #a30707;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Latest News Section */
.page-news__latest-news {
    padding: 80px 0;
}

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

.page-news__article-card {
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

.page-news__article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.page-news__article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-news__article-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news__article-title a:hover {
    text-decoration: underline;
}

.page-news__article-excerpt {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

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

.page-news__read-more:hover {
    color: #004d2b;
    text-decoration: underline;
}

.page-news__read-more--white {
    color: var(--text-color-light);
}

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

.page-news__button-group {
    text-align: center;
}

.page-news__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-news__btn-primary:hover {
    background: #004d2b;
    transform: translateY(-2px);
}

/* Featured News Section */
.page-news__featured-news {
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--text-color-light);
}

.page-news__featured-intro--white {
    color: #e0e0e0;
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
}

.page-news__featured-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.page-news__featured-card {
    background: #004d2b; /* Darker green for contrast */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 800px;
    width: 100%;
}

.page-news__featured-card:hover {
    transform: translateY(-5px);
}

.page-news__featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.page-news__featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news__featured-content {
    padding: 30px;
}

.page-news__featured-title {
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-news__featured-title a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: bold;
}

.page-news__featured-title a:hover {
    text-decoration: underline;
}

.page-news__featured-excerpt {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 25px;
}

/* Categories Section */
.page-news__categories {
    padding: 80px 0;
}

.page-news__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}