/* 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: transparent; /* Body background is handled by shared.css (#0a0a0a) */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background: #017439; /* Brand color as background */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-news__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Contrast with dark green */
    line-height: 1.2;
}

.page-news__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
}

/* General Section Styling */
.page-news__section {
    padding: 60px 0;
}

.page-news__dark-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #0a0a0a; /* Ensure it contrasts with the body if needed, but here it's the same */
    color: #ffffff;
}

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #FFFF00; /* Highlight titles */
}

/* About News Section */
.page-news__about-news .page-news__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-news__text-block {
    flex: 1;
}

.page-news__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-news__image-block {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-news__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for card background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
}

.page-news__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.page-news__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-news__card-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
}