/* style/news.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff; /* Default body background is white */
}

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

.page-news__section {
    padding: 60px 0;
}

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

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

.page-news__dark-bg .page-news__section-title {
    color: var(--text-light);
}

.page-news__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.page-news__dark-bg .page-news__section-description {
    color: var(--text-light);
}

/* Hero Banner Section */
.page-news__hero-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    /* Use var(--header-offset) for top padding as per global requirement */
    padding-top: var(--header-offset, 120px);
    background: linear-gradient(135deg, var(--primary-color), #268ad0);
    color: var(--text-light);
}

.page-news__hero-banner .page-news__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-news__hero-content {
    flex: 1;
    max-width: 800px;
}

.page-news__hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-news__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-news__hero-image {
    width: 100%;
    max-width: 800px;
    margin-top: 30px;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* CTA Button Styles */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    background: #e06c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__btn-primary:hover {
    background: #1f8ec7;
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

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

/* Articles Grid */
.page-news__latest-articles .page-news__section-title,
.page-news__latest-articles .page-news__section-description {
    color: var(--text-dark);
}

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

.page-news__article-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    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 8px 25px rgba(0, 0, 0, 0.15);
}

.page-news__article-card img {
    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: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

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

.page-news__read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Betting Tips Section */
.page-news__betting-tips .page-news__section-title,
.page-news__betting-tips .page-news__section-description {
    color: var(--text-light);
}

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

.page-news__tip-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: var(--text-light);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-news__tip-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-news__tip-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-news__tip-text {
    font-size: 16px;
    line-height: 1.6;
}

/* Promotions Updates Section */
.page-news__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__promo-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
}

.page-news__promo-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-news__promo-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-news__faq-section .page-news__section-title,
.page-news__faq-section .page-news__section-description {
    color: var(--text-dark);
}

.page-news__faq-list {
    margin-top: 40px;
}

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-dark);
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    background: var(--bg-light);
    border-radius: 0 0 5px 5px;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-news__faq-question:hover {
    background: var(--bg-light);
}

.page-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg);
}

/* CTA Bottom Section */
.page-news__cta-bottom {
    text-align: center;
    padding: 80px 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 42px;
    }
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__hero-banner .page-news__container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__section {
        padding: 40px 0;
    }
    .page-news__hero-banner {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-news__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-news__hero-description {
        font-size: 18px;
        margin-bottom: 25px;
    }
    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-news__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-news__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        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__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-news__articles-grid,
    .page-news__tips-grid,
    .page-news__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-news__article-card img,
    .page-news__tip-item img {
        
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-news__article-content,
    .page-news__tip-item,
    .page-news__promo-card {
        padding: 20px;
    }
    .page-news__article-title h3,
    .page-news__promo-title {
        font-size: 20px;
    }
    .page-news__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-news__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-news__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-news__faq-answer {
        padding: 0 15px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px !important;
    }
    .page-news__img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .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;
    }
}