/* style/news.css */
/* Base styles for the news page, using BEM naming */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 80px;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Subtle overlay */
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

/* General Section Styles */
.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-news__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__hero-title {
    color: #ffffff;
}

.page-news__dark-bg .page-news__section-description,
.page-news__dark-bg .page-news__hero-description {
    color: #f0f0f0;
}

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

.page-news__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    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;
    text-align: center;
}

.page-news__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-news__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-news__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
    min-width: 200px;
}

/* Featured Articles Section */
.page-news__featured-articles {
    padding: 80px 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;
    border: 1px solid #e0e0e0;
}

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

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

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

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__article-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.page-news__read-more-btn:hover {
    color: #1a7bb0;
    text-decoration: underline;
}

/* New Games Section */
.page-news__new-games-section {
    padding: 80px 0;
}

.page-news__game-highlight {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-news__game-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-news__game-details {
    flex: 2;
    min-width: 300px;
}

.page-news__game-subtitle {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__game-details p {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-news__game-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-news__game-features li {
    color: #f0f0f0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-news__game-features li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #ffffff;
}

.page-news__game-features li a {
    color: #ffffff;
    text-decoration: underline;
}

.page-news__game-features li a:hover {
    color: #e0e0e0;
}

/* Promotions Section */
.page-news__promotions-section {
    padding: 80px 0;
}

.page-news__promo-card {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.page-news__promo-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-news__promo-content {
    flex: 2;
    min-width: 300px;
    padding: 30px;
}

.page-news__promo-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-news__promo-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-news__promo-list li {
    color: #555555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-news__promo-list li::before {
    content: '🎁';
    position: absolute;
    left: 0;
    color: #26A9E0;
}

/* Sports News Section */
.page-news__sports-news-section {
    padding: 80px 0;
}

.page-news__sports-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
}

.page-news__sports-text {
    flex: 2;
    min-width: 300px;
}

.page-news__sports-subtitle {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__sports-text p {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-news__sports-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-news__sports-list li {
    color: #f0f0f0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-news__sports-list li::before {
    content: '⚽';
    position: absolute;
    left: 0;
    color: #ffffff;
}

.page-news__sports-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Tips & Strategies Section */
.page-news__tips-strategies-section {
    padding: 80px 0;
}

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

.page-news__tip-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-news__tip-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__tip-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__tip-title a:hover {
    color: #1a7bb0;
}

.page-news__tip-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
}

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

.page-news__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__faq-item {
    background-color: #38B8E8; /* Lighter shade of brand blue */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid #26A9E0;
}

.page-news__faq-item[open] {
    background-color: #26A9E0; /* Brand primary color when open */
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* For details/summary */
    color: #ffffff;
}

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

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

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just '-' */
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
}

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

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-content {
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.page-news__cta-content .page-news__section-title {
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-news__cta-content .page-news__section-description {
    color: #555555;
    margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.5em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__game-subtitle,
    .page-news__promo-title,
    .page-news__sports-subtitle {
        font-size: 1.8em;
    }
}

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

    .page-news__hero-section {
        padding-bottom: 60px;
    }

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

    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-news__game-highlight,
    .page-news__promo-card,
    .page-news__sports-content {
        flex-direction: column;
        text-align: center;
    }

    .page-news__game-image,
    .page-news__promo-image,
    .page-news__sports-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__game-details,
    .page-news__promo-content,
    .page-news__sports-text {
        padding: 20px;
    }
    
    .page-news__game-subtitle,
    .page-news__promo-title,
    .page-news__sports-subtitle {
        font-size: 1.5em;
    }

    .page-news__game-features,
    .page-news__promo-list,
    .page-news__sports-list {
        text-align: left;
    }

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"] {
      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;
    }
    
    .page-news__hero-cta-buttons,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Images within content areas */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that might hold images/videos/buttons */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-section,
    .page-news__featured-articles,
    .page-news__new-games-section,
    .page-news__promotions-section,
    .page-news__sports-news-section,
    .page-news__tips-strategies-section,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__article-card,
    .page-news__tip-card,
    .page-news__promo-card,
    .page-news__game-highlight,
    .page-news__sports-content {
      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 {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.6em;
    }
    .page-news__btn-large {
        padding: 15px 25px;
        font-size: 1.1em;
    }
}