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

.page-news {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Body background is dark, so main text is light */
    background-color: var(--background-color);
}

.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-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--background-color);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-news__hero-content {
    text-align: center;
    padding: 30px 20px;
    max-width: 800px;
    margin-top: 30px;
    z-index: 1;
}

.page-news__hero-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gold-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-size: clamp(2.2rem, 4vw, 3rem); /* Use clamp for H1 font size */
}

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

.page-news__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-news__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.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;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

/* General Section Styling */
.page-news__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

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

.page-news__articles-section, .page-news__promotions-section, .page-news__games-section, .page-news__guides-section, .page-news__security-section, .page-news__cta-bottom-section, .page-news__faq-section {
    padding: 60px 0;
}

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

.page-news__article-card {
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

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

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

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

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

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

.page-news__read-more-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

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

/* Promotions 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-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-news__promo-card:hover {
    transform: translateY(-5px);
}

.page-news__promo-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__promo-text {
    color: var(--text-secondary-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

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

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

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

.page-news__game-item {
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-news__game-item:hover {
    transform: translateY(-5px);
}

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

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

.page-news__game-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
}

.page-news__game-button:hover {
    background-color: var(--secondary-color);
}

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

.page-news__guide-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-news__guide-card:hover {
    transform: translateY(-5px);
}

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

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

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

.page-news__guide-text {
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.page-news__guide-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__guide-button:hover {
    background-color: var(--secondary-color);
}

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

.page-news__feature-item {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.page-news__feature-item:hover {
    transform: translateY(-5px);
}

.page-news__feature-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__feature-text {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

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

.page-news__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-news__faq-item[open] {
    background-color: var(--background-color);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main-color);
    list-style: none;
    transition: color 0.3s ease;
}

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

.page-news__faq-item[open] .page-news__faq-question {
    color: var(--gold-color);
}

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

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

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

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-section {
        padding-bottom: 40px;
    }
    .page-news__hero-image-wrapper {
        max-height: 500px;
    }
    .page-news__hero-content {
        margin-top: 20px;
    }
    .page-news__articles-grid, .page-news__promotions-grid, .page-news__games-grid, .page-news__guides-grid, .page-news__security-features {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__container {
        padding: 0 15px;
    }
    .page-news__hero-section {
        padding-bottom: 30px;
    }
    .page-news__hero-image-wrapper {
        max-height: 350px;
    }
    .page-news__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    .page-news__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Images responsive */
    .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-section,
    .page-news__articles-section,
    .page-news__promotions-section,
    .page-news__games-section,
    .page-news__guides-section,
    .page-news__security-section,
    .page-news__cta-bottom-section,
    .page-news__faq-section,
    .page-news__article-card,
    .page-news__promo-card,
    .page-news__game-item,
    .page-news__guide-card,
    .page-news__feature-item,
    .page-news__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-news__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons responsive */
    .page-news__cta-button,
    .page-news__read-more-button,
    .page-news__promo-button,
    .page-news__game-button,
    .page-news__guide-button,
    .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;
        padding-right: 15px;
    }
    .page-news__cta-buttons-wrapper {
        flex-direction: column !important;
        gap: 15px !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__articles-grid, .page-news__promotions-grid, .page-news__games-grid, .page-news__guides-grid, .page-news__security-features {
        grid-template-columns: 1fr;
    }
    .page-news__faq-question {
        font-size: 1.1em;
    }
    .page-news__faq-answer {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-news__hero-image-wrapper {
        max-height: 250px;
    }
    .page-news__hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
}