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

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

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

.page-news__highlight {
    color: #26A9E0; /* Highlight important keywords */
    font-weight: bold;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    background-color: #0d0d0d; /* Slightly lighter dark background for hero */
    padding-top: var(--header-offset, 120px); /* Ensure space below header */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
    filter: none; /* Ensure image does not have filter */
    min-width: 200px;
    min-height: 200px;
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-news__main-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__intro-text {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    min-width: 150px; /* Ensure buttons are not too small */
}

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

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

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

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

/* Sections */
.page-news__latest-updates,
.page-news__promotions,
.page-news__guides,
.page-news__community,
.page-news__faq-section,
.page-news__cta-bottom {
    padding: 80px 0;
}

.page-news__light-bg {
    background-color: #1a1a1a; /* Dark gray for light background sections */
    color: #ffffff;
}

.page-news__dark-bg {
    background-color: #0d0d0d; /* Even darker gray for dark background sections */
    color: #ffffff;
}

/* Article Grid */
.page-news__articles-grid,
.page-news__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card,
.page-news__promo-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-image,
.page-news__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filter */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

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

.page-news__article-title,
.page-news__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff; /* Light text for titles on dark cards */
    font-weight: bold;
}

.page-news__article-title a,
.page-news__promo-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promo-title a:hover {
    color: #26A9E0;
}

.page-news__article-excerpt,
.page-news__promo-text {
    font-size: 1em;
    color: #cccccc; /* Slightly lighter text for body on dark cards */
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

/* Community Section */
.page-news__community-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-news__community-text {
    flex: 1;
}

.page-news__community-text h3 {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-news__community-text p {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-news__community-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    filter: none; /* Ensure no filter */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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.1); /* Darker transparent white for question */
    transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: bold;
}

.page-news__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #26A9E0;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

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

.page-news__faq-answer p {
    margin: 0;
    color: #cccccc;
}

.page-news__text-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-news__text-link:hover {
    color: #1e87b7;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 3em;
    }
    .page-news__intro-text {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__community-content {
        flex-direction: column;
    }
    .page-news__community-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below header */
    }
    .page-news__main-title {
        font-size: 2.5em;
    }
    .page-news__intro-text {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 0.95em;
    }
    .page-news__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        min-width: unset !important; /* Allow buttons to shrink if needed */
    }

    .page-news__articles-grid,
    .page-news__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-news__article-card,
    .page-news__promo-card {
        margin: 0 10px; /* Add some horizontal margin */
    }

    .page-news__community-image {
        max-width: 100%;
        margin: 0 10px; /* Add some horizontal margin */
    }

    .page-news__faq-item {
        margin: 0 10px 15px 10px; /* Add horizontal margin */
    }

    .page-news__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* All containers with images/content */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__articles-grid,
    .page-news__promo-grid,
    .page-news__community-content,
    .page-news__faq-list,
    .page-news__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Ensure padding for sections on mobile */
    .page-news__latest-updates,
    .page-news__promotions,
    .page-news__guides,
    .page-news__community,
    .page-news__faq-section,
    .page-news__cta-bottom {
        padding: 40px 0;
    }

    /* FAQ specific mobile padding */
    .page-news__faq-question,
    .page-news__faq-answer {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-news__article-image,
.page-news__promo-image,
.page-news__community-image {
    min-width: 200px;
    min-height: 200px;
}
/* For any img within .page-news that might be affected by other rules */
.page-news img {
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Ensure no filter is applied */
}