/* style/news.css */

.page-news {
    color: #333333; /* Dark text for light background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.page-news__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #000000; /* Dark background for hero content */
    color: #FFFFFF;
    text-align: center;
    padding-bottom: 60px;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Slightly dim image for text readability */
}

.page-news__hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight title with accent color */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 40px;
    color: #FFFFFF;
}

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

.page-news__button {
    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;
    font-size: 1.1em;
    white-space: nowrap;
}

.page-news__button--primary {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-news__button--primary:hover {
    background-color: #e0a53a;
    border-color: #e0a53a;
}

.page-news__button--secondary {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-news__button--secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-news__latest-articles-section {
    background-color: #f8f8f8;
    padding: 60px 0;
}

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

.page-news__article-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    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.15);
}

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

.page-news__article-content {
    padding: 25px;
}

.page-news__article-category {
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 15px;
}

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

.page-news__article-title a {
    color: #000000;
    text-decoration: none;
}

.page-news__article-title a:hover {
    color: #FCBC45;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: #666666;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: #444444;
    margin-bottom: 20px;
}

.page-news__read-more-button {
    display: inline-block;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__read-more-button:hover {
    color: #e0a53a;
    border-color: #e0a53a;
}

.page-news__featured-article-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

.page-news__featured-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.page-news__featured-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-news__featured-text {
    max-width: 800px;
    text-align: left;
}

.page-news__featured-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #333333;
}

.page-news__cta-section {
    background-color: #000000; /* Dark background for CTA */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.page-news__cta-container {
    max-width: 900px;
}

.page-news__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FCBC45;
}

.page-news__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-title {
        font-size: 1.3em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
    .page-news__cta-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-container {
        padding: 60px 20px;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__hero-buttons,
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__button {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__article-card {
        margin: 0 10px;
    }
    .page-news__featured-content {
        gap: 20px;
    }
    .page-news__featured-text {
        text-align: center;
    }
    .page-news__featured-text p {
        font-size: 1em;
    }
    .page-news__cta-section {
        padding: 60px 20px;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__cta-description {
        font-size: 1em;
    }

    /* Ensure content images are not too small and responsive on mobile */
    .page-news img {
        max-width: 100%;
        height: auto;
    }
    /* Specific override for article images to ensure they are not too small */
    .page-news__article-image,
    .page-news__featured-image {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Additional check for image sizes, ensuring no img within .page-news is below 200px */
.page-news img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Ensure color contrast for all text elements */
h1, h2, h3, h4, h5, h6, p, span, a, li {
    color: inherit; /* Inherit from parent, which is set to #333333 or #FFFFFF */
}

.page-news__hero-section .page-news__hero-description, .page-news__hero-section .page-news__button {
    color: #FFFFFF; /* Override for hero section text */
}

.page-news__hero-section .page-news__button--primary {
    color: #000000; /* Specific for primary button on dark hero */
}
.page-news__cta-section .page-news__cta-description, .page-news__cta-section .page-news__button {
    color: #FFFFFF; /* Override for CTA section text */
}
.page-news__cta-section .page-news__button--primary {
    color: #000000; /* Specific for primary button on dark CTA */
}