/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background, will be overridden by shared.css var(--background-color) */
}

/* Ensure main content starts below the header */
.page-news__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px; /* Minimum height for hero section */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #ffffff; /* Light text for dark background */
}

.page-news__hero-title {
    font-size: 3em;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* General section styling */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
}

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

/* Specific background and text colors based on context */
.page-news__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}
.page-news__dark-bg .page-news__section-title {
    color: #ffffff;
}
.page-news__dark-bg .page-news__section-intro {
    color: #f0f0f0;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-news__light-bg .page-news__section-title {
    color: #26A9E0;
}
.page-news__light-bg .page-news__section-intro {
    color: #555555;
}