/* style/news.css */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    background-color: #0a0a0a; /* Dark background */
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:hero_main:1920x1080:win88 club,news,hero,gaming,promotions]'); /* Placeholder for hero image */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0;
    font-weight: 900;
    line-height: 1.2;
}

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

.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.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
}

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

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

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

.page-news__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #1a8cc7;
    border-color: #1a8cc7;
}

/* Featured Articles */
.page-news__featured-articles {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-news__featured-articles .page-news__section-title,
.page-news__featured-articles .page-news__section-description {
    color: #333333;
}

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

.page-news__article-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.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: 250px;
    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.5em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

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

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

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

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

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

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

/* Latest News */
.page-news__latest-news {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

.page-news__news-list {
    display: grid;
    gap: 25px;
}

.page-news__news-item {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white */
    padding: 25px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.page-news__news-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__news-date {
    font-size: 0.9em;
    color: #bbb;
    margin-bottom: 10px;
}

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

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

.page-news__news-title a:hover {
    color: #1a8cc7;
}

.page-news__news-excerpt {
    font-size: 1em;
    color: #ccc;
}

.page-news__pagination {
    text-align: center;
    margin-top: 50px;
}

.page-news__pagination-link {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
    background-color: #26A9E0;
}

/* Video Section */
.page-news__video-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.page-news__video-section .page-news__section-title,
.page-news__video-section .page-news__section-description {
    color: #333333;
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.page-news__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure it's above the video but below controls if controls are active */
    cursor: pointer;
    background: transparent; /* Make it invisible */
}

/* CTA Section */
.page-news__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #ffffff;
    text-align: center;
}

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

.page-news__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #f0f0f0; /* Light background */
    color: #333333;
}

.page-news__faq-section .page-news__section-title,
.page-news__faq-section .page-news__section-description {
    color: #333333;
}

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

.page-news__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    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: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555;
    font-size: 1em;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
    .page-news__article-image {
        height: 200px;
    }
}

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

    .page-news__hero-section {
        padding: 80px 15px;
        min-height: 400px;
    }
    .page-news__hero-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-news__featured-articles,
    .page-news__latest-news,
    .page-news__video-section,
    .page-news__cta-section,
    .page-news__faq-section {
        padding: 50px 0;
    }

    .page-news__articles-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
        object-fit: cover;
    }

    .page-news__news-item {
        padding: 20px;
    }
    .page-news__news-title {
        font-size: 1.2em;
    }

    .page-news__video-wrapper {
        margin: 30px auto 0;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__cta-description {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-news__faq-question {
        padding: 18px 20px;
        font-size: 1.1em;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px 20px;
    }
    
    /* Ensure all images within page-news are responsive */
    .page-news img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-section {
      padding-top: var(--header-offset, 120px) !important; /* Ensure offset for mobile */
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 2em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__cta-title {
        font-size: 1.8em;
    }
    .page-news__pagination-link {
        padding: 8px 15px;
    }
}