/* style/news.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
    background-color: var(--deep-green);
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust based on common aspect ratios */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

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

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-news__intro-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-news__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.page-news__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-news__latest-updates, .page-news__game-updates, .page-news__promotions-news, .page-news__security-csr, .page-news__faq-section, .page-news__cta-section {
    padding: 60px 0;
}

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

.page-news__light-bg {
    background-color: #f8f8f8;
    color: #333333;
}

.page-news__light-bg .page-news__section-title {
    color: var(--deep-green);
}

.page-news__light-bg .page-news__section-description,
.page-news__light-bg .page-news__intro-text,
.page-news__light-bg .page-news__article-excerpt,
.page-news__light-bg .page-news__article-meta,
.page-news__light-bg .page-news__faq-answer p {
    color: #555555;
}

.page-news__light-bg .page-news__article-title {
    color: var(--deep-green);
}

.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-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.page-news__light-bg .page-news__article-card {
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-news__light-bg .page-news__article-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news__article-image {
    width: 100%;
    height: 220px;
    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;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__article-meta {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

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

.page-news__read-more:hover {
    color: var(--secondary-color);
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 20px;
}

.page-news__light-bg .page-news__btn-secondary {
    color: var(--deep-green);
    border-color: var(--deep-green);
}

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

.page-news__light-bg .page-news__btn-secondary:hover {
    background-color: var(--deep-green);
    color: #ffffff;
}

.page-news__security-csr .page-news__container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-news__security-csr .page-news__content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-news__security-csr .page-news__text-block {
    flex: 1;
    min-width: 300px;
    line-height: 1.7;
}

.page-news__security-csr .page-news__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__security-csr .page-news__content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__security-csr p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

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

.page-news__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__light-bg .page-news__faq-item {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--divider-color);
    list-style: none;
}

.page-news__light-bg .page-news__faq-question {
    color: var(--deep-green);
    border-bottom-color: #e0e0e0;
}

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: 1px solid var(--primary-color);
}

.page-news__light-bg .page-news__faq-item[open] .page-news__faq-question {
    border-bottom-color: var(--deep-green);
}

.page-news__faq-question::-webkit-details-marker {
    display: none;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    margin-left: 15px;
}

.page-news__light-bg .page-news__faq-toggle {
    color: var(--deep-green);
}

.page-news__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-news__light-bg .page-news__faq-answer {
    color: #555555;
}

.page-news__cta-section {
    text-align: center;
    background-color: var(--deep-green);
    padding: 80px 20px;
}

.page-news__cta-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-news__cta-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }
    .page-news__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-news__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__latest-updates, .page-news__game-updates, .page-news__promotions-news, .page-news__security-csr, .page-news__faq-section, .page-news__cta-section {
        padding: 40px 0;
    }
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-news__article-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__article-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news p,
    .page-news li {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__sub-title {
        font-size: 1.5em;
    }

    .page-news__security-csr .page-news__content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-news__security-csr .page-news__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

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

    .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;
        margin-left: 0;
    }

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

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__cta-title {
        font-size: 2em;
    }
    .page-news__intro-text, .page-news__section-description, .page-news__cta-description {
        font-size: 1em;
    }
}