/* style/news.css */

:root {
    --sbet-bet-primary-color: #26A9E0;
    --sbet-bet-secondary-color: #FFFFFF;
    --sbet-bet-text-dark: #333333;
    --sbet-bet-text-light: #FFFFFF;
    --sbet-bet-button-login: #EA7C07;
    --sbet-bet-bg-light: #FFFFFF;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--sbet-bet-text-dark); /* Default text color for light body background */
    background-color: var(--sbet-bet-bg-light);
}

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

.page-news__section-title {
    font-size: 2.5em;
    color: var(--sbet-bet-primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding-top: 10px; /* Specific top padding as per instruction */
    padding-bottom: 60px;
    color: var(--sbet-bet-text-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--sbet-bet-primary-color) 0%, #1a7bb0 100%); /* Gradient for hero section */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-news__hero-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--sbet-bet-text-light);
    line-height: 1.1;
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--sbet-bet-text-light);
    opacity: 0.9;
}

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

/* Buttons */
.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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-news__btn-primary {
    background-color: var(--sbet-bet-button-login); /* Login color for primary action */
    color: var(--sbet-bet-text-light);
    border: 2px solid var(--sbet-bet-button-login);
}

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

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

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

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

.page-news__btn-full-width {
    width: auto;
    min-width: 200px;
    padding-left: 30px;
    padding-right: 30px;
}

/* Intro Section */
.page-news__intro-section {
    padding: 60px 0;
    background-color: var(--sbet-bet-bg-light);
}

/* Latest News Section */
.page-news__latest-news-section {
    padding: 60px 0;
    background-color: var(--sbet-bet-bg-light);
}

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

.page-news__news-card {
    background-color: var(--sbet-bet-bg-light);
    border-radius: 10px;
    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;
}

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

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

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

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

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

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

.page-news__news-card-excerpt {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__news-card-date {
    font-size: 0.85em;
    color: #888;
    margin-top: auto;
    display: block;
}

.page-news__news-card-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--sbet-bet-primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__news-card-link:hover {
    color: #1a7bb0;
}

/* Categories Section */
.page-news__categories-section {
    padding: 60px 0;
    background-color: var(--sbet-bet-primary-color);
    color: var(--sbet-bet-text-light);
}

.page-news__categories-section .page-news__section-title,
.page-news__categories-section .page-news__section-description {
    color: var(--sbet-bet-text-light);
}

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

.page-news__category-card {
    display: block;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--sbet-bet-text-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__category-card:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Why Choose Section */
.page-news__why-choose-section {
    padding: 60px 0;
    background-color: var(--sbet-bet-bg-light);
}

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

.page-news__feature-item {
    background-color: var(--sbet-bet-bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-news__feature-title {
    font-size: 1.5em;
    color: var(--sbet-bet-primary-color);
    margin-bottom: 15px;
}

.page-news__feature-description {
    font-size: 1em;
    color: #555;
}

/* CTA Section */
.page-news__cta-section {
    padding: 60px 0;
    background-color: var(--sbet-bet-primary-color);
    color: var(--sbet-bet-text-light);
}

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
    color: var(--sbet-bet-text-light);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-news__categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .page-news__features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    /* HERO 主图区域 */
    .page-news__hero-section {
        padding-top: 10px !important; /* Specific top padding as per instruction */
        padding-bottom: 40px !important;
    }
    .page-news__hero-title {
        font-size: 2.2em !important;
    }
    .page-news__hero-description {
        font-size: 1em !important;
    }
    .page-news__hero-cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-image-wrapper,
    .page-news__button-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important;
    }

    /* 按钮与按钮容器 */
    .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 !important;
        padding-right: 15px !important;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px !important;
        overflow-x: hidden !important;
    }
    .page-news__cta-buttons {
        flex-direction: column !important;
    }

    /* Other content modules - News grid, categories, features */
    .page-news__section-title {
        font-size: 1.8em !important;
    }
    .page-news__section-description {
        font-size: 0.95em !important;
        margin-bottom: 20px !important;
    }
    .page-news__news-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .page-news__news-card-image {
        height: 180px !important;
    }
    .page-news__news-card-title {
        font-size: 1.2em !important;
    }
    .page-news__news-card-excerpt {
        font-size: 0.9em !important;
    }
    .page-news__categories-grid {
        grid-template-columns: 1fr !important;
    }
    .page-news__category-card {
        font-size: 1em !important;
        padding: 15px !important;
    }
    .page-news__features-grid {
        grid-template-columns: 1fr !important;
    }
    .page-news__feature-title {
        font-size: 1.3em !important;
    }
    .page-news__feature-description {
        font-size: 0.9em !important;
    }

    .page-news__intro-section, .page-news__latest-news-section, .page-news__categories-section, .page-news__why-choose-section, .page-news__cta-section {
        padding: 40px 0 !important;
    }
}