:root {
    --page-news-primary-color: #11A84E;
    --page-news-secondary-color: #22C768;
    --page-news-card-bg: #11271B;
    --page-news-background: #08160F;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-border-color: #2E7A4E;
    --page-news-glow-color: #57E38D;
    --page-news-gold-color: #F2C14E;
    --page-news-divider-color: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
    --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-text-dark: #333333; /* Default dark text for light backgrounds */
    --page-news-text-light: #ffffff; /* Default light text for dark backgrounds */
}

/* Base styles for the page-news scope */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-news-text-dark); /* Default text color for light background */
    background-color: #ffffff; /* Default body background is white */
}

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

.page-news__section-title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__section-description {
    font-size: clamp(16px, 2vw, 18px);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-news-text-dark);
}

/* Background color rules based on custom palette */
.page-news__dark-bg {
    background-color: var(--page-news-background);
    color: var(--page-news-text-main);
    padding: 60px 0;
}
.page-news__dark-bg .page-news__section-description {
    color: var(--page-news-text-secondary);
}

.page-news__light-bg {
    background-color: #ffffff; /* Explicitly white for light background sections */
    color: var(--page-news-text-dark);
    padding: 60px 0;
}

.page-news__deep-green-bg {
    background-color: var(--page-news-deep-green);
    color: var(--page-news-text-main);
    padding: 60px 0;
}
.page-news__deep-green-bg .page-news__section-description {
    color: var(--page-news-text-secondary);
}

.page-news__gold-bg {
    background-color: var(--page-news-gold-color);
    color: var(--page-news-text-dark); /* Gold background, so dark text */
    padding: 60px 0;
}
.page-news__gold-bg .page-news__section-description {
    color: #555555; /* Darker text for gold background for better contrast */
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping by default */
}

.page-news__btn-primary {
    background: var(--page-news-button-gradient);
    color: var(--page-news-text-light);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--page-news-primary-color);
    border: 2px solid var(--page-news-primary-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--page-news-primary-color);
    color: var(--page-news-text-light);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--page-news-background); /* Fallback if image not loaded */
}

.page-news__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
    order: 2; /* Content after image */
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    color: var(--page-news-text-main);
    z-index: 1; /* Ensure content is above image filter */
}

.page-news__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    color: var(--page-news-text-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-news__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 30px;
    color: var(--page-news-text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Latest News Section */
.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: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--page-news-text-main);
}

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

.page-news__news-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

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

.page-news__news-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__news-card-title a {
    color: var(--page-news-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
    color: var(--page-news-secondary-color);
}

.page-news__news-card-date {
    font-size: 14px;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

.page-news__news-card-excerpt {
    font-size: 16px;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__news-card-link {
    display: inline-block;
    color: var(--page-news-secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-news__news-card-link:hover {
    text-decoration: underline;
}

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

/* Feature Section */
.page-news__feature-section .page-news__container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-news__feature-content {
    flex: 1;
    min-width: 300px;
}

.page-news__feature-image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-news__feature-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-news__feature-section .page-news__section-title,
.page-news__feature-section .page-news__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.page-news__feature-section .page-news__text-main {
    color: var(--page-news-text-dark);
    margin-bottom: 30px;
}

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

.page-news__promo-card {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--page-news-text-main);
}

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

.page-news__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

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

.page-news__promo-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--page-news-text-main);
}

.page-news__promo-card-text {
    font-size: 16px;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__promo-card-link {
    display: inline-block;
    color: var(--page-news-secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-news__promo-card-link:hover {
    text-decoration: underline;
}

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

.page-news__game-card {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--page-news-text-main);
}

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

.page-news__game-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size requirement */
}

.page-news__game-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 15px 15px 10px 15px;
    line-height: 1.3;
}

.page-news__game-card-title a {
    color: var(--page-news-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__game-card-title a:hover {
    color: var(--page-news-secondary-color);
}

.page-news__game-card-text {
    font-size: 14px;
    color: var(--page-news-text-secondary);
    padding: 0 15px 15px 15px;
    flex-grow: 1;
}

.page-news__game-card-link {
    display: inline-block;
    background: var(--page-news-button-gradient);
    color: var(--page-news-text-light);
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin: 0 15px 15px 15px;
    transition: opacity 0.3s ease;
}

.page-news__game-card-link:hover {
    opacity: 0.9;
}


/* FAQ Section */
.page-news__faq-section .page-news__section-description {
    color: var(--page-news-text-dark);
}

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

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid var(--page-news-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-news-text-dark);
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] {
    background-color: #f9f9f9;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--page-news-text-dark);
    transition: color 0.3s ease;
}

.page-news__faq-question:hover {
    color: var(--page-news-primary-color);
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-news-primary-color);
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: #555555;
}

/* CTA Banner */
.page-news__cta-banner {
    text-align: center;
    padding: 80px 20px;
}

.page-news__cta-banner .page-news__section-title {
    color: var(--page-news-text-dark);
    margin-bottom: 20px;
}

.page-news__cta-banner .page-news__section-description {
    color: #555555; /* Darker text for gold background */
    margin-bottom: 40px;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 30px 20px;
    }
    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .page-news__feature-section .page-news__container {
        flex-direction: column;
    }
    .page-news__feature-image-wrapper {
        order: 1;
        margin-bottom: 30px;
    }
    .page-news__feature-content {
        order: 2;
    }
    .page-news__feature-section .page-news__section-title,
    .page-news__feature-section .page-news__section-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px;
    }

    .page-news__hero-section {
        padding-bottom: 40px;
        min-height: unset;
    }

    .page-news__main-title {
        font-size: 30px;
    }

    .page-news__hero-description {
        font-size: 16px;
    }

    .page-news__hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-news__hero-cta .page-news__btn-primary,
    .page-news__hero-cta .page-news__btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .page-news__section-title {
        font-size: 28px;
    }

    .page-news__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-news__dark-bg,
    .page-news__light-bg,
    .page-news__deep-green-bg,
    .page-news__gold-bg {
        padding: 40px 0;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__news-card-image,
    .page-news__promo-card-image,
    .page-news__game-card-image {
        height: auto !important; /* Allow height to be auto for mobile */
        min-height: 200px !important; /* Ensure minimum size */
    }

    /* All containers that hold images/content for mobile responsiveness */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__latest-news-section,
    .page-news__feature-section,
    .page-news__promotions-section,
    .page-news__game-updates-section,
    .page-news__faq-section,
    .page-news__cta-banner,
    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__game-grid,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific padding adjustments for sections */
    .page-news__hero-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }
    .page-news__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .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; /* Stack buttons vertically */
        gap: 15px;
        align-items: center;
    }
    .page-news__cta-buttons .page-news__btn-primary,
    .page-news__cta-buttons .page-news__btn-secondary {
        max-width: 300px !important; /* Constrain width for stacked buttons */
    }

    /* FAQ */
    .page-news__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        font-size: 15px;
        padding: 0 20px 15px 20px;
    }
}