/* style/news.css */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-dark, #0d0d0d); /* Assuming shared body background is dark */
}

/* Ensure the first section accounts for the fixed header */
.page-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* Light text for dark background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    box-sizing: border-box;
}

.page-news__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-news__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

.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, border-color 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: #26A9E0; /* Main color */
    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;
}

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

.page-news__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-news__latest-articles,
.page-news__promotions-updates,
.page-news__call-to-action {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-news__in-depth-analysis,
.page-news__faq-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Main color as background */
    color: #ffffff;
}

.page-news__in-depth-analysis .page-news__section-title,
.page-news__faq-section .page-news__section-title {
    color: #ffffff; /* White title on main color background */
}

.page-news__in-depth-analysis .page-news__section-intro {
    color: #f0f0f0;
}

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

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

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-news__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-news__card-title a:hover {
    color: #1e87b7;
}

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

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

.page-news__read-more:hover {
    color: #1e87b7;
}

.page-news__content-block {
    margin-bottom: 60px;
    text-align: justify;
}

.page-news__sub-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.page-news__content-block p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-news__content-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px 0;
    display: block;
}

.page-news__bullet-list {
    list-style: disc;
    padding-left: 40px;
    color: #f0f0f0;
    margin-top: 20px;
}

.page-news__bullet-list li {
    margin-bottom: 10px;
}

.page-news__bullet-list li a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-news__bullet-list li a:hover {
    color: #e0e0e0;
}

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

.page-news__game-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-news__game-card .page-news__card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

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

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

.page-news__game-title a:hover {
    color: #1e87b7;
}

.page-news__game-description {
    font-size: 0.9em;
    color: #666666;
    flex-grow: 1;
}

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

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on main color background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    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.15);
}

.page-news__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

.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); /* Change + to X or similar */
}

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

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

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

.page-news__call-to-action .page-news__cta-content {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.page-news__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__latest-articles,
    .page-news__in-depth-analysis,
    .page-news__promotions-updates,
    .page-news__faq-section,
    .page-news__call-to-action {
        padding: 60px 0;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-intro {
        font-size: 0.95em;
    }
    .page-news__articles-grid,
    .page-news__game-categories {
        grid-template-columns: 1fr;
    }
    .page-news__article-image,
    .page-news__content-image,
    .page-news__game-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__article-card,
    .page-news__game-card,
    .page-news__content-block,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-news__faq-question {
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px 20px 20px;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }
    .page-news__bullet-list {
        padding-left: 20px;
    }
}

/* Ensure images don't have filters */
.page-news img {
    filter: none !important;
}

/* Contrast Fixes - if needed */
.page-news__dark-bg {
  color: #ffffff; /* Deep blue background, white text */
}

.page-news__light-bg {
  color: #333333; /* White background, dark grey text */
}

/* Specific overrides for text on #26A9E0 background */
.page-news__in-depth-analysis p,
.page-news__in-depth-analysis .page-news__bullet-list li,
.page-news__faq-section p {
    color: #f0f0f0; /* Slightly off-white for better readability on blue */
}

.page-news__faq-question h3 {
    color: #ffffff;
}