/* style/news.css */

/* Base Styles & Page Container */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Default light background */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0 60px; /* Adjust padding as needed, will be overridden by --header-offset if needed */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    overflow: hidden; /* Ensure image does not overflow */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-news__dark-bg {
    background-color: #017439; /* Brand primary color */
}

.page-news__light-bg {
    background-color: #FFFFFF; /* Auxiliary color */
}

.page-news__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure hero section has a minimum height */
}

.page-news__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Register and Login font color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    color: #f0f0f0;
}

.page-news__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    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;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

/* Section Titles & Descriptions */
.page-news__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 80px 0;
}

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

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    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 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__article-title a {
    color: #017439; /* Brand primary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #005f2e;
}

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

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

.page-news__read-more-link {
    display: inline-block;
    color: #C30808; /* Register/Login color for emphasis */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
    color: #a00606;
    text-decoration: underline;
}

.page-news__cta-buttons {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-news__cta-buttons--center {
    justify-content: center;
}

.page-news__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.page-news__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Featured Articles Section */
.page-news__featured-articles-section {
    padding: 80px 0;
    color: #ffffff;
}

.page-news__featured-articles-section .page-news__section-title {
    color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-news__featured-articles-section .page-news__section-description {
    color: #f0f0f0;
}

.page-news__featured-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on small screens */
    gap: 40px;
    margin-top: 40px;
}

.page-news__featured-card {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-direction: column; /* Stack image and content on mobile */
}

.page-news__featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__featured-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__featured-title a {
    color: #FFFF00; /* Register/Login font color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__featured-title a:hover {
    color: #f0f0f0;
}

.page-news__featured-excerpt {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

.page-news__category-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}