/* style/news.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base Styles for the page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#000) */
}

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

.page-news__container--center {
    text-align: center;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Accent color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:1920x1080:181bet app,hero,news,banner]') center/cover no-repeat;
    padding: var(--header-offset, 120px) 0 80px; /* Use header offset here */
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

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

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

.page-news__cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #0A2239;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    background-color: #e6c200;
    color: #0A2239;
}

/* Dark Section Styling */
.page-news__dark-section {
    background-color: #0A2239;
    padding: 60px 0;
    color: #ffffff;
}

.page-news__dark-section .page-news__section-title {
    color: #FFD700;
}

.page-news__dark-section .page-news__section-description {
    color: #f0f0f0;
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
}

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

.page-news__article-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

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

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

.page-news__article-text {
    font-size: 0.95em;
    color: #cccccc;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__read-more {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

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

/* Guides Section */
.page-news__guides-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    padding: 60px 0;
    color: #ffffff;
}

.page-news__guides-section .page-news__section-title {
    color: #FFD700;
}

.page-news__guides-section .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__guide-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; /* Add padding for content below image */
}

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

.page-news__guide-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-news__guide-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    padding: 0 20px;
}

.page-news__guide-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
    color: #ffffff;
}

.page-news__guide-text {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
    padding: 0 20px;
    flex-grow: 1;
}

/* Video Section */
.page-news__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensure it behaves as a block element */
}

/* Promotions Section */
.page-news__promotions-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    padding: 60px 0;
    color: #ffffff;
}

.page-news__promotions-section .page-news__section-title {
    color: #FFD700;
}

.page-news__promotions-section .page-news__section-description {
    color: #f0f0f0;
}

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

.page-news__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
}

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

.page-news__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-news__promo-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    padding: 0 20px;
}

.page-news__promo-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__promo-title a:hover {
    color: #ffffff;
}

.page-news__promo-text {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
    padding: 0 20px;
    flex-grow: 1;
}

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

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #FFD700;
}

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

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

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
    font-size: 0.95em;
}

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

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

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

.page-news__cta-bottom-section .page-news__cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-news__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    margin: 10px;
}

.page-news__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FFD700;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid #FFD700;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    margin: 10px;
}

.page-news__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2239;
}

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

.page-news__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.page-news__button-group--center {
    justify-content: center;
}

/* General image and button styles for content area */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-news a[class*="button"],
.page-news a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }

    .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 padding-top is applied for mobile */
        padding-bottom: 60px;
    }

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

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

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

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

    .page-news__cta-button,
    .page-news__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        margin: 5px 0 !important;
    }

    .page-news__cta-button--large,
    .page-news__btn-secondary--large {
        padding: 15px 25px !important;
        font-size: 1.1em !important;
    }

    .page-news__button-group {
        flex-direction: column;
        gap: 10px;
    }

    .page-news__articles-grid,
    .page-news__content-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-image,
    .page-news__guide-image,
    .page-news__promo-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-news__video-wrapper {
        margin: 30px auto;
    }

    /* Mobile specific image, video, and container styles */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 10px 15px !important;
    }
    .page-news__faq-question {
        padding: 15px !important;
    }
}