/* style/news.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --login-color: #EA7C07;
    --background-color-page: #FFFFFF;
    --border-color: #e0e0e0;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color-page);
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-news__dark-bg .page-news__section-title,
.page-news__dark-bg .page-news__section-description,
.page-news__dark-bg .page-news__article-title a,
.page-news__dark-bg .page-news__guide-title a,
.page-news__dark-bg .page-news__insight-title a,
.page-news__dark-bg .page-news__faq-question-text,
.page-news__dark-bg .page-news__faq-toggle {
    color: var(--text-light);
}

.page-news__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: var(--header-offset, 120px) 0 0;
    overflow: hidden;
    text-align: center;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
}

.page-news__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

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

.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
    border: 2px solid var(--login-color);
}

.page-news__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-news__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* 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;
}

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

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

.page-news__article-image {
    width: 100%;
    height: 220px;
    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: 15px;
    font-weight: bold;
}

.page-news__article-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: darken(var(--primary-color), 10%);
}

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

.page-news__read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more-btn:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Betting Guides Section */
.page-news__betting-guides {
    padding: 80px 0;
}

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

.page-news__guide-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-news__guide-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

.page-news__guide-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
    color: lighten(var(--primary-color), 20%);
}

.page-news__guide-text {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

/* Industry Insights Section */
.page-news__industry-insights {
    padding: 80px 0;
}

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

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

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

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

.page-news__insight-title {
    font-size: 1.4em;
    margin: 15px 20px 10px;
    font-weight: bold;
}

.page-news__insight-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__insight-title a:hover {
    color: darken(var(--primary-color), 10%);
}

.page-news__insight-text {
    font-size: 0.9em;
    color: #666;
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* 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: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.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 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: rgba(255, 255, 255, 0.8);
}

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

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

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

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

/* General Image styles */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space */
}

/* Media Queries */
@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__section-description {
        font-size: 1em;
    }

    .page-news__articles-grid,
    .page-news__guides-grid,
    .page-news__insights-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-news__article-image,
    .page-news__guide-image,
    .page-news__insight-image {
        height: 180px;
    }

    .page-news__hero-section {
        min-height: 500px;
    }
}

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

    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-news__hero-section {
        min-height: 400px;
        padding-top: 0; /* Assuming shared.css handles body padding-top */
    }

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

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

    .page-news__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* 产品展示图区域 (Articles, Guides, Insights - now single column) */
    .page-news__articles-grid,
    .page-news__guides-grid,
    .page-news__insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .page-news__article-card,
    .page-news__guide-card,
    .page-news__insight-card {
        margin: 0 auto;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .page-news__article-image,
    .page-news__guide-image,
    .page-news__insight-image {
        height: 200px !important;
        width: 100% !important;
    }

    /* 通用图片与容器 */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !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__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-buttons,
    .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;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column !important; /* Ensure vertical stacking for buttons */
    }

    /* Other content modules (FAQ, CTA) */
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-news__faq-answer {
        padding: 0 15px;
    }

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

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

    .page-news__section-description {
        font-size: 0.9em;
    }

    .page-news__latest-articles,
    .page-news__betting-guides,
    .page-news__industry-insights,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }
}