/* style/news.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-color-light: #ffffff;
    --background-color-dark: #000000; /* Assuming --black-color from shared.css is #000000 or similar dark */
    --border-color: #e0e0e0;
    --header-offset: 120px; /* Fallback, actual value from shared.css */
}

/* Base styles for the page content */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default for light sections, overridden by .page-news__dark-bg */
    padding-top: 0; /* Handled by shared.css on body, or specific sections */
}

/* Global sections within page-news */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 2.5em;
    color: var(--text-dark); /* Default for light sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #555555; /* Slightly lighter dark text */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast classes */
.page-news__dark-bg {
    background: var(--background-color-dark); /* Using #000000 for dark background */
    color: var(--text-light); /* White text on dark background */
    padding: 60px 0;
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description,
.page-news__dark-bg .page-news__article-title a,
.page-news__dark-bg .page-news__category-title,
.page-news__dark-bg .page-news__faq-heading {
    color: var(--text-light);
}

.page-news__light-bg {
    background: var(--background-color-light); /* White background */
    color: var(--text-dark); /* Dark text on light background */
    padding: 60px 0;
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__article-title a,
.page-news__light-bg .page-news__category-title,
.page-news__light-bg .page-news__faq-heading {
    color: var(--text-dark);
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

.page-news__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    background: #1e87b7; /* A slightly darker shade of #26A9E0 */
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-news__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: bold;
}

.page-news__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
}

.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__article-card {
    background: var(--background-color-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-dark); /* Ensure dark text on light card background */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
}

.page-news__article-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 20px;
}

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__article-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: var(--primary-color);
}

.page-news__article-excerpt {
    font-size: 0.95em;
    margin-bottom: 15px;
    color: #555555;
}

.page-news__read-more-btn {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.page-news__read-more-btn:hover {
    border-color: var(--primary-color);
}

/* Categories Section */
.page-news__categories-section {
    padding: 80px 0;
}

.page-news__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.page-news__category-card {
    background: var(--background-color-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
}

.page-news__category-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-news__category-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-dark);
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
}