/* style/news.css */

/* Base styles for the news page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Ensure consistency with body background */
}

/* Header offset to prevent content from being hidden by fixed header */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden; /* Ensure hero image doesn't overflow */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero section */
    text-align: center;
    color: #ffffff;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* Place behind overlay and content */
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for title */
    line-height: 1.2;
}

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

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

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Default light text for dark sections */
}

/* Light background sections */
.page-news__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}
.page-news__light-bg .page-news__section-title {
    color: #26A9E0;
}
.page-news__light-bg .page-news__section-description {
    color: #555555;
}
.page-news__light-bg .page-news__article-title a,
.page-news__light-bg .page-news__promo-title a,
.page-news__light-bg .page-news__read-more {
    color: #26A9E0;
}
.page-news__light-bg .page-news__article-meta,
.page-news__light-bg .page-news__article-excerpt,
.page-news__light-bg .page-news__promo-excerpt {
    color: #666666;
}
.page-news__light-bg .page-news__faq-question {
    color: #333333;
}
.page-news__light-bg .page-news__faq-answer p {
    color: #555555;
}


/* Dark background sections */
.page-news__dark-bg {
    background-color: #000000;
    color: #ffffff; /* Light text for dark background */
    padding: 60px 0;
}
.page-news__dark-bg .page-news__section-title {
    color: #26A9E0;
}
.page-news__dark-bg .page-news__section-description {
    color: #f0f0f0;
}
.page-news__dark-bg .page-news__list-title a,
.page-news__dark-bg .page-news__read-more {
    color: #26A9E0;
}
.page-news__dark-bg .page-news__list-excerpt,
.page-news__dark-bg .page-news__article-meta {
    color: #cccccc;
}
.page-news__dark-bg .page-news__faq-question {
    color: #ffffff;
}
.page-news__dark-bg .page-news__faq-answer p {
    color: #cccccc;
}


/* Buttons */
.page-news__btn-primary {
    display: inline-block;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-news__btn-primary:hover {
    background-color: #1a7fb3; /* Darker shade for hover */
}

.page-news__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color for text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid #26A9E0;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7fb3;
    border-color: #1a7fb3;
}