/* style/news.css */
/* Reset & Base Styles for .page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Main content background is transparent to show body background */
}

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

.page-news__section-title,
.page-news__hero-title,
.page-news__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff; /* Ensure titles are white on dark backgrounds */
    font-weight: bold;
}

.page-news__section-description,
.page-news__hero-description,
.page-news__cta-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for descriptions */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff;
}

.page-news__btn-secondary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

.page-news__btn-tertiary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #0a0a0a; /* Fallback/explicit dark background */
    color: #ffffff;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6; /* Slightly dim image for text readability */
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Ensure responsiveness */
    display: block;
}

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
}

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

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

/* Common Section Styles */
.page-news__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light backgrounds */
    padding: 60px 0;
}

.page-news__dark-bg {
    background-color: #017439; /* Brand color for dark sections */
    color: #ffffff; /* White text for brand color backgrounds */
    padding: 60px 0;
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__section-description {
    color: #333333; /* Dark text for titles/descriptions on light backgrounds */
}

.page-news__light-bg .page-news__news-card-title a,
.page-news__light-bg .page-news__game-update-title a {
    color: #017439; /* Brand color for links on light backgrounds */
}

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

.page-news__news-card {
    background-color: #f8f8f8; /* Light background for news cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text for news cards */
}

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

.page-news__news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Ensure responsiveness */
}

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

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

.page-news__news-card-title a {
    text-decoration: none;
    color: #017439; /* Brand color for card titles */
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: #005a2e;
}

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

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

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

.page-news__promo-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #ffffff;
}

.page-news__promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Ensure responsiveness */
}

.page-news__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-news__promo-text {
    font-size: 1em;
    margin-bottom: 25px;
    color: #f0f0f0;
}

/* Game Updates Section */
.page-news__game-update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__game-update-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-news__game-update-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Ensure responsiveness */
}

.page-news__game-update-title {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 20px;
    line-height: 1.3;
}

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

.page-news__game-update-title a:hover {
    color: #005a2e;
}

.page-news__game-update-date {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-news__game-update-excerpt {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    padding: 0 20px;
}

/* Industry News Section */
.page-news__industry-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__industry-news-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-news__industry-news-item:hover {
    transform: translateY(-5px);
}

.page-news__industry-news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Ensure responsiveness */
}

.page-news__industry-news-title {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 20px;
    color: #ffffff;
}

.page-news__industry-news-date {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-news__industry-news-excerpt {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    padding: 0 20px;
}

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

.page-news__faq-item {
    background-color: #f8f8f8; /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    color: #333333; /* Dark text for FAQ items */
}

.page-news__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eeeeee; /* Slightly darker background for summary */
    border-bottom: 1px solid #e0e0e0;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-news__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #e0e0e0; /* Separator for answer */
}

.page-news__faq-answer p {
    margin-bottom: 10px;
    color: #555555;
}

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

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0a0a0a; /* Dark background for CTA */
    color: #ffffff;
}

.page-news__cta-content {
    max-width: 800px;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-news__hero-title {
        font-size: 3em;
    }

    .page-news__section-title,
    .page-news__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-news__hero-title {
        font-size: 2.2em;
    }

    .page-news__hero-description {
        font-size: 1.1em;
    }

    .page-news__section-title,
    .page-news__cta-title {
        font-size: 1.8em;
    }

    .page-news__section-description,
    .page-news__hero-description,
    .page-news__cta-description {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure containers are responsive and prevent overflow */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__news-card,
    .page-news__promo-item,
    .page-news__game-update-card,
    .page-news__industry-news-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-news__news-card,
    .page-news__promo-item,
    .page-news__game-update-card,
    .page-news__industry-news-item {
        padding: 0; /* Cards themselves should not have horizontal padding, only their content */
    }
    .page-news__news-card-content,
    .page-news__game-update-title,
    .page-news__game-update-date,
    .page-news__game-update-excerpt,
    .page-news__industry-news-title,
    .page-news__industry-news-date,
    .page-news__industry-news-excerpt {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* Buttons responsiveness */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__btn-tertiary,
    .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 !important; /* Stack buttons vertically on mobile */
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title,
    .page-news__cta-title {
        font-size: 1.5em;
    }
    .page-news__news-card-title,
    .page-news__promo-title,
    .page-news__game-update-title,
    .page-news__industry-news-title {
        font-size: 1.2em;
    }
}