: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: #2E7A4E;
    --page-news-glow: #57E38D;
    --page-news-gold: #F2C14E;
    --page-news-divider: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
    --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-news-text-main); /* Default text color for the page content */
    background-color: var(--page-news-background); /* Page background */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Enforce top-image-bottom-text */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    background-color: var(--page-news-background);
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height to prevent image from being too large */
    z-index: 1;
}

.page-news__hero-content {
    position: relative; /* Not absolute, to ensure it's below the image */
    text-align: center;
    padding: 20px 0;
    max-width: 800px;
    z-index: 2;
    color: var(--page-news-text-main);
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 */
    font-weight: bold;
    color: var(--page-news-gold);
    margin-bottom: 15px;
    line-height: 1.2;
}

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

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: 2.5rem;
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Updates Section */
.page-news__updates-section {
    padding: 60px 0;
    background-color: var(--page-news-background);
}

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

.page-news__article-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    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;
}

.page-news__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-news__article-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

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

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

.page-news__read-more-btn {
    display: inline-block;
    background-image: var(--page-news-button-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
    text-align: center;
    max-width: 200px; /* Ensure button doesn't get too wide in grid */
}

.page-news__read-more-btn:hover {
    opacity: 0.9;
}

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

/* Promotions Section */
.page-news__promotions-section {
    padding: 80px 0;
    background-color: var(--page-news-deep-green); /* Darker background for contrast */
}

.page-news__dark-section {
    background-color: var(--page-news-deep-green);
    color: var(--page-news-text-main);
}

.page-news__dark-section .page-news__section-title {
    color: var(--page-news-gold);
}

.page-news__dark-section .page-news__section-description {
    color: var(--page-news-text-secondary);
}

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

.page-news__promotion-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__promotion-image {
    width: 100%;
    height: 280px; /* Larger image for promotions */
    object-fit: cover;
    display: block;
}

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

.page-news__promotion-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-news-gold);
    margin-bottom: 10px;
}

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

/* Games Section */
.page-news__games-section {
    padding: 80px 0;
    background-color: var(--page-news-background);
}

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

.page-news__game-card {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__game-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

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

/* Security Section */
.page-news__security-section {
    padding: 80px 0;
    background-color: var(--page-news-deep-green);
}

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

.page-news__feature-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-news__feature-icon {
    width: 250px; /* Min size 200x200, scale up */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-news__feature-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

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

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

.page-news__feature-text {
    font-size: 1rem;
    color: var(--page-news-text-secondary);
    flex-grow: 1;
}

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

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-news-text-main);
    overflow: hidden; /* For details element */
}

.page-news__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--page-news-text-main);
    background-color: var(--page-news-card-bg);
    border-bottom: 1px solid var(--page-news-divider);
    list-style: none; /* Hide default marker */
}

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

.page-news__faq-question {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.page-news__faq-qtext {
    margin-right: 10px;
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--page-news-gold);
}

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

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-news-text-secondary);
    background-color: rgba(17, 39, 27, 0.7); /* Slightly lighter card background */
}

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

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-news-deep-green);
}

.page-news__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
}

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

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-news__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

    .page-news__hero-image {
        max-height: 400px;
    }
}

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

    .page-news__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }

    .page-news__hero-image {
        max-height: 300px;
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-news__hero-description {
        font-size: 1rem;
    }

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

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

    .page-news__updates-section,
    .page-news__promotions-section,
    .page-news__games-section,
    .page-news__security-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 40px 0;
    }

    .page-news__article-grid,
    .page-news__promotion-grid,
    .page-news__game-grid,
    .page-news__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-image,
    .page-news__promotion-image {
        height: 200px;
    }

    .page-news__article-title,
    .page-news__promotion-title,
    .page-news__game-title,
    .page-news__feature-title {
        font-size: 1.2rem;
    }

    .page-news__read-more-btn,
    .page-news__btn-primary,
    .page-news__btn-secondary {
        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;
        min-width: unset; /* Remove min-width for mobile buttons */
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Ensure all images are responsive and do not overflow */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image/video containers are responsive and do not overflow */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__article-card,
    .page-news__promotion-card,
    .page-news__game-card,
    .page-news__feature-item,
    .page-news__hero-section,
    .page-news__updates-section,
    .page-news__promotions-section,
    .page-news__games-section,
    .page-news__security-section,
    .page-news__cta-section,
    .page-news__faq-section,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-news__hero-section .page-news__container {
        padding-left: 0;
        padding-right: 0;
    }

    .page-news__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        font-size: 0.9rem;
        padding: 15px 20px;
    }
}

/* Ensure content area images are at least 200px wide */
.page-news__article-card img,
.page-news__promotion-card img,
.page-news__feature-item img {
    min-width: 200px;
    min-height: 200px;
}