/* style/news.css */

/* Base styles for the page */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Assuming shared.css sets this, but ensuring consistency */
}

.page-news__section {
    padding: 60px 20px;
    margin-bottom: 0; /* Remove default margin */
    position: relative;
    z-index: 1;
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-title--white {
    color: #ffffff;
}

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

.page-news__section-description--white {
    color: #ffffff;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, #1a1a1a, #26A9E0); /* Subtle gradient for hero background */
}

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

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-button {
    display: inline-block;
    background-color: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-news__hero-button:hover {
    background-color: #d16b05;
    transform: translateY(-3px);
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) blur(3px); /* Apply filter to hero image */
}

/* Article Grid */
.page-news__latest-articles {
    background-color: #1a1a1a;
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff; /* Ensure text is light on dark card */
    min-height: 450px; /* Ensure cards have a consistent minimum height */
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
    flex-shrink: 0;
}

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

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

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

.page-news__article-link {
    display: inline-flex;
    align-items: center;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Push link to bottom */
}

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

.page-news__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-news__article-link:hover .page-news__arrow {
    transform: translateX(5px);
}

.page-news__view-more {
    text-align: center;
    margin-top: 50px;
}

/* Category Grid */
.page-news__categories {
    background-color: #1a1a1a;
}

.page-news__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-news__category-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.page-news__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.page-news__category-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: invert(0) brightness(1.2); /* Slightly brighten icon for visibility */
}

.page-news__category-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-news__category-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* CTA Section */
.page-news__cta-section {
    background-color: #26A9E0; /* Primary brand color for CTA background */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-news__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    border: 2px solid;
    box-sizing: border-box; /* Ensure padding/border included in width */
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border-color: #EA7C07;
}

.page-news__btn-primary:hover {
    background-color: #d16b05;
    border-color: #d16b05;
    transform: translateY(-3px);
}

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

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1d8ac2;
    border-color: #f0f0f0;
    transform: translateY(-3px);
}

/* FAQ Section */
.page-news__faq-section {
    background-color: #1a1a1a;
}

.page-news__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}