/* style/news.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --body-bg: #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 {
    color: var(--text-main); /* Default text color for the page content, suitable for dark body-bg */
    background-color: var(--body-bg);
    font-family: 'Arial', sans-serif;
}

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

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

.page-news__section-title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    min-height: 600px;
}

.page-news__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-news__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-news__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-news__main-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-news__intro-text {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-news__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

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

.page-news__news-card, .page-news__game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__news-card:hover, .page-news__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-news__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--divider-color);
}

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

.page-news__card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--glow-color);
}

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

.page-news__card-text {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__card-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--deep-green);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-news__card-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.page-news__view-all-button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Update Section */
.page-news__promotions-update {
    background-color: var(--deep-green);
}

.page-news__promo-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.page-news__promo-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__promo-item:nth-child(even) {
    flex-direction: row-reverse;
}

.page-news__promo-text {
    flex: 1;
    padding-right: 30px;
}

.page-news__promo-item:nth-child(even) .page-news__promo-text {
    padding-right: 0;
    padding-left: 30px;
}

.page-news__promo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-news__promo-title a:hover {
    color: var(--glow-color);
}

.page-news__promo-date {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-news__promo-description {
    font-size: 17px;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-news__promo-link {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-news__promo-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-news__promo-image {
    width: 350px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Security Update Section */
.page-news__security-update {
    background-color: var(--body-bg);
    padding: 80px 0;
}

.page-news__dark-section .page-news__section-title {
    color: var(--gold-color);
}

.page-news__dark-section .page-news__section-description {
    color: var(--text-secondary);
}

.page-news__security-content {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.page-news__security-image {
    flex: 1;
    min-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__security-text {
    flex: 1;
}

.page-news__security-subtitle {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-news__security-paragraph {
    font-size: 17px;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-news__security-paragraph a {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-news__security-paragraph a:hover {
    color: var(--gold-color);
}

.page-news__cta-button--secondary {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.page-news__cta-button--secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-news__faq-section {
    background-color: var(--deep-green);
    padding: 60px 0;
}

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

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

.page-news__faq-item summary {
    list-style: none;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 19px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: var(--deep-green);
}

.page-news__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-news__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    padding: 20px 30px 30px 30px;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    background-color: var(--card-bg);
}

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

.page-news__faq-answer a {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-news__faq-answer a:hover {
    color: var(--gold-color);
}

/* Final CTA Section */
.page-news__cta-section {
    background-color: var(--body-bg);
    padding: 80px 0;
    text-align: center;
}

.page-news__cta-section .page-news__container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.page-news__cta-content {
    flex: 1;
    text-align: left;
}

.page-news__cta-section .page-news__cta-title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-news__cta-section .page-news__cta-description {
    font-size: 19px;
    color: var(--text-main);
    margin-bottom: 40px;
    line-height: 1.7;
}

.page-news__cta-section .page-news__cta-button {
    margin-right: 20px;
    margin-bottom: 15px; /* For mobile stacking */
}

.page-news__cta-image {
    flex: 1;
    min-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-content {
        max-width: 700px;
    }

    .page-news__promo-item {
        flex-direction: column;
        text-align: center;
    }

    .page-news__promo-item:nth-child(even) {
        flex-direction: column;
    }

    .page-news__promo-text {
        padding-right: 0;
        padding-bottom: 20px;
    }

    .page-news__promo-item:nth-child(even) .page-news__promo-text {
        padding-left: 0;
        padding-bottom: 20px;
    }

    .page-news__promo-image {
        width: 100%;
        height: auto;
        max-width: 400px;
    }

    .page-news__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-news__security-image {
        min-width: unset;
        width: 100%;
        max-width: 600px;
        margin-bottom: 30px;
    }

    .page-news__cta-section .page-news__container {
        flex-direction: column;
        gap: 30px;
    }

    .page-news__cta-content {
        text-align: center;
    }

    .page-news__cta-image {
        min-width: unset;
        width: 100%;
        max-width: 600px;
    }
}

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

    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-news__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

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

    .page-news__hero-section {
        padding-bottom: 40px;
        min-height: 450px;
    }

    .page-news__hero-content {
        padding: 15px;
    }

    .page-news__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-news__intro-text {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-news__cta-section .page-news__cta-button {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-news__cta-section .page-news__cta-button:last-child {
        margin-bottom: 0;
    }

    .page-news__cta-section .page-news__cta-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-news__news-grid, .page-news__games-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__card-image {
        height: 200px;
    }

    .page-news__card-title {
        font-size: 20px;
    }

    .page-news__card-text {
        font-size: 15px;
    }

    .page-news__promo-item {
        padding: 20px;
    }

    .page-news__promo-title {
        font-size: 20px;
    }

    .page-news__promo-description {
        font-size: 16px;
    }

    .page-news__promo-link {
        padding: 10px 20px;
        font-size: 16px;
    }

    .page-news__security-subtitle {
        font-size: 22px;
    }

    .page-news__security-paragraph {
        font-size: 16px;
    }

    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 17px;
    }

    .page-news__faq-answer {
        padding: 15px 20px 20px 20px;
        font-size: 16px;
    }

    /* Ensure all images are responsive and prevent overflow */
    .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-content,
    .page-news__news-card,
    .page-news__game-card,
    .page-news__promo-item,
    .page-news__security-content,
    .page-news__faq-item,
    .page-news__cta-section .page-news__container,
    .page-news__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-news__hero-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-news__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 28px;
    }

    .page-news__intro-text {
        font-size: 16px;
    }

    .page-news__card-title {
        font-size: 18px;
    }

    .page-news__promo-title {
        font-size: 18px;
    }

    .page-news__security-subtitle {
        font-size: 20px;
    }

    .page-news__faq-question {
        font-size: 16px;
    }
}