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

/* Base styles for the page, ensuring text contrast against the body background */
/* Assuming body background is dark from shared.css: var(--background-color: #08160F) */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Light text for dark background */
    background-color: var(--background-color); /* Page background from custom palette */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.page-news__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding for visual spacing */
    overflow: hidden;
}

.page-news__hero-container {
    width: 100%;
    max-width: 1200px; /* Constrain content width */
    display: flex;
    flex-direction: column; /* Image above text */
    gap: 30px;
    align-items: center;
    text-align: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: block;
}

.page-news__hero-content {
    max-width: 800px;
    margin-top: 20px;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-news__intro-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width */
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* White text for dark button */
    border: none;
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

.page-news__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Darker background for section */
}

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

.page-news__article-card {
    background: var(--background-color); /* Even darker background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color);
}

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

.page-news__card-content {
    padding: 20px;
}

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

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

.page-news__card-title a:hover {
    color: var(--gold-color);
}

.page-news__card-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-news__read-more-btn {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.page-news__read-more-btn:hover {
    color: var(--gold-color);
    border-color: var(--gold-color);
}

.page-news__view-all-btn-container {
    text-align: center;
    margin-top: 40px;
}

/* Featured Section */
.page-news__featured-section {
    padding: 60px 0;
}

.page-news__featured-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping */
}

.page-news__featured-article {
    flex: 2;
    min-width: 300px;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__featured-image {
    width: 100%;
    height: 360px; /* Fixed height */
    object-fit: cover;
    display: block;
}

.page-news__featured-text {
    padding: 20px;
}

.page-news__featured-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__featured-title a:hover {
    color: var(--gold-color);
}

.page-news__featured-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__featured-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-news__featured-list {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-news__small-article-card {
    background: var(--background-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__small-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 8px var(--glow-color);
}

.page-news__small-card-title {
    font-size: 1.1em;
    margin-bottom: 5px;
    line-height: 1.4;
}

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

.page-news__small-card-title a:hover {
    color: var(--primary-color);
}

.page-news__small-card-meta {
    font-size: 0.8em;
    color: var(--text-secondary);
}

/* Game Updates Section */
.page-news__game-updates-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

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

.page-news__game-card {
    background: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color);
}

.page-news__game-image {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover;
    display: block;
}

.page-news__game-content {
    padding: 20px;
}

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

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

.page-news__game-title a:hover {
    color: var(--gold-color);
}

.page-news__game-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__game-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Promotions Section */
.page-news__promotions-section {
    padding: 60px 0;
}

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

.page-news__promo-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color);
}

.page-news__promo-image {
    width: 100%;
    height: 225px; /* Fixed height */
    object-fit: cover;
    display: block;
}

.page-news__promo-content {
    padding: 20px;
}

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

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

.page-news__promo-title a:hover {
    color: var(--gold-color);
}

.page-news__promo-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__promo-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-news__faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-news__faq-item {
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green); /* Darker green for question background */
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: '−';
}

.page-news__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
    background-color: var(--background-color);
}

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

/* CTA Banner Section */
.page-news__cta-banner {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color);
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--text-main);
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-title {
    font-size: 2.8em;
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
}

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

    .page-news__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Small top padding */
    }

    .page-news__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .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__hero-content,
    .page-news__featured-content,
    .page-news__game-updates-grid,
    .page-news__promotions-grid {
        flex-direction: column;
    }

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

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

    .page-news__article-image,
    .page-news__featured-image,
    .page-news__game-image,
    .page-news__promo-image {
        height: auto !important; /* Allow height to adjust */
        min-height: 200px; /* Ensure minimum size */
    }

    .page-news__article-card,
    .page-news__featured-article,
    .page-news__game-card,
    .page-news__promo-card,
    .page-news__cta-banner,
    .page-news__latest-articles-section,
    .page-news__featured-section,
    .page-news__game-updates-section,
    .page-news__promotions-section,
    .page-news__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-news__cta-title {
        font-size: 1.8em;
    }

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