/* style/news.css */

/* Root variables for colors based on brand guidelines */
:root {
    --primary-color: #017439; /* Main brand green */
    --secondary-color: #FFFFFF; /* Main brand white */
    --register-login-bg: #C30808; /* Red for register/login buttons */
    --register-login-text: #FFFF00; /* Yellow for register/login button text */
    --text-dark: #333333;
    --text-light: #f0f0f0;
    --border-color: #e0e0e0;
    --background-light: #ffffff;
    --background-dark: #017439; /* Using primary color for dark sections */
}

/* Base styles for the news page content */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light); /* Default light background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fixed header offset for the main content area */
.page-news {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General container for content sections */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box; /* Include padding in element's total width and height */
    max-width: 100%;
    width: 100%;
    overflow: hidden; /* Prevent child elements from overflowing */
}

/* Section titles */
.page-news__section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* HERO Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust padding as padding-top is handled by .page-news */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background */
    overflow: hidden; /* Ensure image doesn't overflow */
}