/* 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 */
}

/* Color contrast fixes based on body background #0a0a0a (dark) */
.page-news__dark-bg {
    background-color: #0a0a0a; /* Ensure dark background for dark sections */
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #ffffff; /* Light background for contrast sections */
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    min-width: 200px;
    min-height: 200px;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
    color: #ffffff;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff; /* Ensure title is white */
}

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

.page-news__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news a[class*="button"],
.page-news a[class*="btn"] {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-news__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 80px 0;
}

.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;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for light card background */
}

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

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

.page-news__news-card-content {
    padding: 20px;
}

.page-news__news-card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0; /* Brand color for titles */
}

.page-news__news-card-title a {
    text-decoration: none;
    color: #26A9E0;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: #1a7fb3;
}

.page-news__news-card-meta {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-news__news-card-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__news-card-link:hover {
    color: #1a7fb3;
    text-decoration: underline;
}

/* Featured Articles Section */
.page-news__featured-articles-section {
    padding: 80px 0;
}

.page-news__article-list {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout for articles */
    gap: 40px;
}

.page-news__article-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards in dark section */
    border-radius: 8px;
    padding: 25px;
    transition: background-color 0.3s ease;
}

.page-news__article-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__article-image {
    width: 250px; /* Fixed width for article image */
    height: 180px; /* Fixed height */
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-news__article-content {
    flex-grow: 1;
}

.page-news__article-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #26A9E0; /* Brand color for titles */
}

.page-news__article-title a {
    text-decoration: none;
    color: #26A9E0;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #ffffff;
}

.page-news__article-date {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-news__article-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__article-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-box {
    background-color: #f8f8f8;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-news__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #26A9E0;
}

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

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.page-news__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* Remove default marker for details */
}

/* Remove default marker for details summary */
.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-news__faq-item summary::marker {
    display: none;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-news__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Ensure all images meet min size requirement */
.page-news img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-news__article-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-news__article-image {
        width: 100%;
        height: 250px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        height: auto;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-subtitle {
        font-size: 0.9em;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__cta-box {
        padding: 30px 20px;
    }
    .page-news__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    /* Images and containers responsive for mobile */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__cta-box,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}