/* style/news.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #FFFFFF;
    --bg-dark-card: rgba(255, 255, 255, 0.1);
    --border-color: #e0e0e0;
}

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the overall page, assuming dark body bg */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px);
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-news__main-heading {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-news__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__cta-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Section Titles */
.page-news__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

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

/* Latest Articles / Featured Articles Grid */
.page-news__latest-articles, .page-news__featured-articles {
    padding: 60px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-news__news-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-news__card-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.page-news__card-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.page-news__read-more:hover {
    color: #005a2e; /* Darken primary color */
}

/* Categories Section */
.page-news__categories {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-news__categories .page-news__section-title, .page-news__categories .page-news__section-description {
    color: var(--text-light);
}

.page-news__category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-news__category-item {
    background-color: var(--bg-dark-card);
    border-radius: 5px;
    overflow: hidden;
}

.page-news__category-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__category-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-news__cta-heading {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-light);
}