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

.page-news {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Ensure consistency with body background */
}

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

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

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content {
    max-width: 900px;
}

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

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

/* Buttons */
.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid var(--color-button-gradient-start);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-news__btn-secondary {
    background: transparent;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
    margin-left: 15px;
}

.page-news__btn-secondary:hover {
    background: var(--color-button-gradient-end);
    color: var(--color-text-main);
    transform: translateY(-3px);
}

/* Sections */
.page-news__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

.page-news__dark-section {
    background-color: var(--color-background);
    padding: 80px 0;
}

.page-news__light-bg {
    background-color: #0A1F16; /* Slightly lighter dark green */
    padding: 80px 0;
    color: var(--color-text-main);
}

/* Latest Updates Section */
.page-news__latest-updates .page-news__section-title,
.page-news__latest-updates .page-news__section-description {
    color: var(--color-text-main);
}

.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: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Ensure cards have similar height */
}

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

.page-news__article-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    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.4em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

.page-news__article-title a:hover {
    color: var(--color-gold);
}

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

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

.page-news__read-more {
    align-self: flex-start;
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: auto;
}

.page-news__view-all-news-container,
.page-news__view-all-promos-container {
    text-align: center;
    margin-top: 60px;
}

.page-news__view-all-button {
    padding: 15px 40px;
}

/* Promotions News 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: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
    text-align: center;
}

.page-news__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-news__promo-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-news__promo-title a {
    color: var(--color-text-main);
    text-decoration: none;
}

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

.page-news__promo-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.5;
    padding: 0 20px;
    margin-bottom: 25px;
}

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

.page-news__game-card {
    background: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.page-news__game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__game-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-news__game-title {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-news__game-title a {
    color: var(--color-text-main);
    text-decoration: none;
}

.page-news__game-title a:hover {
    color: var(--color-gold);
}

.page-news__game-description {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    line-height: 1.4;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Security Info Section */
.page-news__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__security-item {
    background: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__security-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__security-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--color-glow));
}

.page-news__security-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

.page-news__security-title a {
    color: var(--color-text-main);
    text-decoration: none;
}

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

.page-news__security-text {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #0A1F16;
}

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

.page-news__faq-item {
    background: var(--color-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 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 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background: var(--color-card-bg);
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

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

.page-news__faq-qtext {
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

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

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

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

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__article-card {
        min-height: 420px;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-news__hero-image-wrapper,
    .page-news__hero-image,
    .page-news__article-image,
    .page-news__promo-image,
    .page-news__game-image,
    .page-news__security-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-news__container,
    .page-news__hero-content,
    .page-news__latest-updates,
    .page-news__promotions-news,
    .page-news__game-updates,
    .page-news__security-info,
    .page-news__faq-section,
    .page-news__cta-section,
    .page-news__articles-grid,
    .page-news__promotions-grid,
    .page-news__game-grid,
    .page-news__security-grid,
    .page-news__faq-list,
    .page-news__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-news__main-title {
        font-size: 2em;
    }

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

    .page-news__description,
    .page-news__section-description,
    .page-news__article-excerpt,
    .page-news__promo-description,
    .page-news__game-description,
    .page-news__security-text,
    .page-news__faq-answer p {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-news__cta-button,
    .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;
        margin: 10px 0 !important; /* Adjust margin for vertical stacking */
    }

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

    .page-news__article-card {
        min-height: auto;
        height: auto;
    }

    .page-news__article-image {
        height: 180px; /* Adjust image height for smaller screens */
    }

    .page-news__promo-card,
    .page-news__game-card,
    .page-news__security-item {
        padding: 20px 15px;
    }

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

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