/* style/news.css */

/* Base Styles & Typography */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Assuming body background from shared.css */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__sub-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-news__section-description,
.page-news__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 30px;
}

.page-news__text-block {
    text-align: left;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Color Contrast Fixes based on body background (#1a1a1a - dark) */
.page-news__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-news__light-bg .page-news__section-title,
.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__sub-title,
.page-news__light-bg .page-news__text-block,
.page-news__light-bg .page-news__card-title,
.page-news__light-bg .page-news__card-text,
.page-news__light-bg .page-news__read-more,
.page-news__light-bg .page-news__promo-title,
.page-news__light-bg .page-news__promo-list li,
.page-news__light-bg .page-news__promo-text,
.page-news__light-bg .page-news__faq-q-text,
.page-news__light-bg .page-news__faq-answer p {
    color: #333333;
}

.page-news__light-bg .page-news__read-more,
.page-news__light-bg .page-news__card-title a {
    color: #017439;
}

.page-news__light-bg .page-news__read-more:hover,
.page-news__light-bg .page-news__card-title a:hover {
    color: #005f2e;
}


/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    text-align: center;
}

.page-news__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-news__light-bg .page-news__btn-secondary {
    color: #017439;
    border: 2px solid #017439;
}

.page-news__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-news__light-bg .page-news__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Default desktop padding, header offset handled here */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-news__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: 1;
}

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

.page-news__hero-section .page-news__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 900;
}

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

.page-news__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Latest Articles Section */
.page-news__latest-articles {
    padding: 80px 0;
}

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

.page-news__article-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-news__article-image {
    width: 100%;
    height: 250px;
    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 {
    text-decoration: none;
    color: #017439;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #005f2e;
}

.page-news__card-text {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
}

.page-news__read-more {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    color: #005f2e;
}

/* In-depth Analysis Section */
.page-news__in-depth-analysis {
    padding: 80px 0;
    text-align: center;
}

.page-news__in-depth-analysis .page-news__text-block {
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Promotions & Events Section */
.page-news__promotions-events {
    padding: 80px 0;
    text-align: center;
}

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

.page-news__promo-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-news__promo-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-news__promo-list {
    list-style: disc inside;
    margin-bottom: 20px;
    color: #555555;
    padding-left: 15px;
}

.page-news__promo-list li {
    margin-bottom: 8px;
}

.page-news__promo-text {
    color: #555555;
    margin-bottom: 20px;
}

/* Community & Player Stories Section */
.page-news__community-stories {
    padding: 80px 0;
    text-align: center;
}

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

.page-news__story-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #f0f0f0;
}

.page-news__story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-news__story-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-news__story-text {
    font-size: 0.95em;
    color: #cccccc;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-news__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

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

.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 */
    padding: 15px 25px;
}

.page-news__faq-answer p {
    font-size: 1em;
    color: #555555;
    margin-bottom: 0;
}

.page-news__faq-cta {
    margin-top: 30px;
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-news__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
    z-index: 1;
}

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

.page-news__cta-section .page-news__container {
    position: relative;
    z-index: 2;
}

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

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

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

    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        padding-bottom: 40px;
    }

    .page-news__hero-title {
        font-size: 2.2em;
    }

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

    .page-news__hero-cta-group,
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-news__sub-title {
        font-size: 1.5em;
    }

    .page-news__articles-grid,
    .page-news__promo-grid,
    .page-news__stories-grid {
        grid-template-columns: 1fr;
    }

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

    /* Ensure all content containers are responsive */
    .page-news__hero-section,
    .page-news__latest-articles,
    .page-news__in-depth-analysis,
    .page-news__promotions-events,
    .page-news__community-stories,
    .page-news__faq-section,
    .page-news__cta-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__article-card,
    .page-news__promo-card,
    .page-news__story-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-news__faq-question,
    .page-news__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
}