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

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

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

.page-news__section-description,
.page-news__cta-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden;
    color: #ffffff; /* Ensure text color is light on dark background */
}

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

.page-news__hero-content {
    max-width: 800px;
    z-index: 1;
}

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

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    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: #1a8cc7;
    border-color: #1a8cc7;
}

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

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

.page-news__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

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

/* Featured Articles Section */
.page-news__featured-articles {
    padding: 60px 0;
    background-color: #0a0a0a; /* Ensure dark background for this section */
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light background on dark body */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Ensure text color is light on dark background */
}

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

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

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

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

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

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

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

.page-news__read-more-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
    color: #1a8cc7;
    text-decoration: underline;
}

/* Latest News Section */
.page-news__latest-news {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-news__news-list {
    display: grid;
    gap: 30px;
}

.page-news__news-item {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background on dark */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    color: #ffffff; /* Ensure text color is light on dark background */
}

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

.page-news__news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85em;
    color: #999999;
    margin-bottom: 10px;
}

.page-news__news-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

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

.page-news__news-title a:hover {
    color: #FFFFFF;
}

.page-news__news-excerpt {
    font-size: 0.9em;
    color: #cccccc;
}

/* Promotions & Events Section */
.page-news__promotions-events {
    padding: 60px 0;
    background-color: #0a0a0a;
}

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

.page-news__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Ensure text color is light on dark background */
}

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

.page-news__promo-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-news__promo-title a:hover {
    color: #1a8cc7;
}

.page-news__promo-description {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 20px;
    background-color: #26A9E0; /* Brand primary color for CTA */
    color: #FFFFFF;
    text-align: center;
}

.page-news__cta-title {
    color: #FFFFFF;
}

.page-news__cta-description {
    color: #f0f0f0;
    margin-bottom: 50px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: #0a0a0a;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff; /* Ensure text color is light on dark background */
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

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

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form a 'x' or minus */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-news__faq-answer p {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        min-height: 400px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title,
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__section-description,
    .page-news__cta-description {
        font-size: 0.9em;
    }
    .page-news__articles-grid,
    .page-news__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-news__article-image {
        height: 200px;
    }
    .page-news__article-title,
    .page-news__promo-title {
        font-size: 1.3em;
    }
    .page-news__news-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-news__news-date {
        margin-bottom: 5px;
    }
    .page-news__news-title {
        font-size: 1.1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__cta-buttons,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for hero section content padding if it was set to 0 in container */
    .page-news__hero-section .page-news__hero-content {
        padding: 0 15px;
    }
}