:root {
    --page-news-bg-color: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --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 {
    background-color: var(--page-news-bg-color);
    color: var(--page-news-text-main);
    font-family: 'Arial', sans-serif; /* Placeholder font */
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 40px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Max height for hero image */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-news__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
    font-weight: 700;
    color: var(--page-news-gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-news__subtitle {
    font-size: 1.1rem;
    color: var(--page-news-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button responsiveness */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

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

.page-news__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
    box-shadow: 0 0 15px var(--page-news-glow-color);
}

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

.page-news__btn-secondary:hover {
    background-color: var(--page-news-glow-color);
    color: var(--page-news-deep-green);
    box-shadow: 0 0 15px var(--page-news-glow-color);
}

/* General Section Styling */
.page-news__container {
    width: 100%; /* Ensure desktop width is 100% before max-width */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-news__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--page-news-gold-color);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
    line-height: 1.2;
}

.page-news__section-description {
    font-size: 1.1rem;
    color: var(--page-news-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__news-card,
.page-news__promo-card,
.page-news__game-card,
.page-news__advice-card {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

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

.page-news__news-card-image,
.page-news__promo-card-image,
.page-news__game-card-image,
.page-news__advice-card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent image size */
    object-fit: cover;
    display: block;
}

.page-news__news-card-content,
.page-news__promo-card-content,
.page-news__game-card-content,
.page-news__advice-card-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to expand */
    display: flex;
    flex-direction: column;
}

.page-news__news-card-date {
    font-size: 0.9rem;
    color: var(--page-news-text-secondary);
    margin-bottom: 10px;
    display: block;
}

.page-news__news-card-title,
.page-news__promo-card-title,
.page-news__game-card-title,
.page-news__advice-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--page-news-text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__news-card-title a,
.page-news__game-card-title a,
.page-news__advice-card-title a {
    color: inherit;
    text-decoration: none;
}

.page-news__news-card-title a:hover,
.page-news__game-card-title a:hover,
.page-news__advice-card-title a:hover {
    color: var(--page-news-glow-color);
}

.page-news__news-card-excerpt,
.page-news__promo-card-description,
.page-news__game-card-description,
.page-news__advice-card-description {
    font-size: 1rem;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to expand */
}

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

.page-news__news-card-link:hover {
    text-decoration: underline;
    color: var(--page-news-gold-color);
}

.page-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* FAQ Section */
.page-news__faq-section {
    padding-bottom: 60px;
}

.page-news__faq-list {
    width: 100%; /* Ensure desktop width is 100% before max-width */
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--page-news-border-color);
    border-radius: 12px;
    overflow: hidden;
}

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-bottom: 1px solid var(--page-news-divider-color);
}

.page-news__faq-item:last-child {
    border-bottom: none;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--page-news-text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

.page-news__faq-question:hover {
    background-color: var(--page-news-deep-green);
}

.page-news__faq-qtext {
    flex-grow: 1;
}

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

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-news-text-secondary);
}

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

/* CTA Section */
.page-news__cta-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__game-grid,
    .page-news__advice-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-news__main-title {
        font-size: 2rem;
    }

    .page-news__subtitle {
        font-size: 1rem;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__section,
    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__news-card,
    .page-news__promo-card,
    .page-news__game-card,
    .page-news__advice-card,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow for containers */
    }

    .page-news__news-card-image,
    .page-news__promo-card-image,
    .page-news__game-card-image,
    .page-news__advice-card-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-news__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-section {
        padding-bottom: 20px;
    }

    .page-news__main-title {
        font-size: 1.6rem;
    }

    .page-news__section-title {
        font-size: 1.5rem;
    }

    .page-news__news-grid,
    .page-news__promo-grid,
    .page-news__game-grid,
    .page-news__advice-grid {
        grid-template-columns: 1fr;
    }
}