/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* A very light grey for main content area to differentiate from shared body background if needed */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    background-color: #FFFFFF; /* White background for hero */
}

.page-news__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-news__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-news__main-title {
    font-size: 3.2em;
    color: #26A9E0; /* Primary color for title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__cta-button:hover {
    background: #1e87b7; /* Darker shade of primary */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-news__section {
    padding: 60px 20px;
    margin-bottom: 0; /* Remove default margin */
    background-color: #FFFFFF; /* Default light background for sections */
}

.page-news__dark-section {
    background-color: #26A9E0; /* Primary color background */
    color: #ffffff; /* White text for dark background */
}

.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: #26A9E0; /* Primary color for titles in light sections */
}

.page-news__dark-section .page-news__section-title {
    color: #ffffff; /* White for titles in dark sections */
}

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

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

.page-news__dark-section .page-news__text-block {
    color: #f0f0f0;
}

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

.page-news__news-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    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__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news__news-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-news__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #333333;
}

.page-news__card-title a {
    color: #26A9E0; /* Primary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #1e87b7;
}

.page-news__card-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__card-date {
    font-size: 0.85em;
    color: #999999;
    margin-bottom: 15px;
    display: block;
}

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background: #F0F0F0;
    color: #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__read-more-button:hover {
    background-color: #E0E0E0;
}

/* Categories Section */
.page-news__category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}