.page-news {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #121212; /* Matches shared.css body background for consistency */
}

.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%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

.page-news__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF; /* Ensures high contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-news__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for readability */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

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

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

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

.page-news__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFFFF;
}

/* General Section Styling */
.page-news__articles-section,
.page-news__promotions-section,
.page-news__faq-section {
    padding: 60px 0;
}

.page-news__games-section,
.page-news__security-support-section,
.page-news__cta-bottom-section {
    padding: 60px 0;
}

.page-news__light-bg {
    background-color: #f8f8f8;
    color: #333333; /* Dark text for light background */
}

.page-news__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff; /* Light text for dark background */
}

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherits from section, ensuring contrast */
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Article Grid */
.page-news__article-grid,
.page-news__promo-grid,
.page-news__game-categories,
.page-news__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__article-card,
.page-news__promo-card,
.page-news__game-card,
.page-news__info-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text for light card background */
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image,
.page-news__promo-image,
.page-news__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

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

.page-news__game-title,
.page-news__game-description,
.page-news__info-title,
.page-news__info-description {
    padding: 20px;
}

.page-news__article-title,
.page-news__promo-title,
.page-news__game-title,
.page-news__info-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
    min-height: 50px;
}

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

.page-news__article-title a:hover,
.page-news__promo-title a:hover,
.page-news__game-title a:hover,
.page-news__info-title a:hover {
    color: #005a2e;
}

.page-news__article-excerpt,
.page-news__promo-description,
.page-news__game-description,
.page-news__info-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto; /* Pushes button to bottom of card */
}

.page-news__read-more:hover {
    color: #005a2e;
    text-decoration: underline;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 30px;
}

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #e5e5e5;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        height: 450px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-news__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-news__container {
        padding: 0 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-news__article-grid,
    .page-news__promo-grid,
    .page-news__game-categories,
    .page-news__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-card,
    .page-news__promo-card,
    .page-news__game-card,
    .page-news__info-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .page-news__article-image,
    .page-news__promo-image,
    .page-news__game-image {
        height: 200px;
    }
    .page-news__article-content,
    .page-news__promo-content,
    .page-news__game-title,
    .page-news__game-description,
    .page-news__info-title,
    .page-news__info-description {
        padding: 15px;
    }
    .page-news__article-title,
    .page-news__promo-title,
    .page-news__game-title,
    .page-news__info-title {
        font-size: 1.2em;
        min-height: auto;
    }
    .page-news__article-excerpt,
    .page-news__promo-description,
    .page-news__game-description,
    .page-news__info-description {
        font-size: 0.9em;
    }
    .page-news__read-more {
        margin-top: 10px; /* Adjust spacing for mobile */
    }
    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 20px;
    }

    /* Ensure images and containers are responsive and don't overflow */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__game-categories,
    .page-news__promo-grid,
    .page-news__info-grid,
    .page-news__article-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-news__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-set for mobile if needed */
    }
}

/* Image CSS with strict rules */
.page-news img {
    border-radius: 5px; /* Allowed style */
    /* filter properties are strictly forbidden */
}