:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #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;
    --card-bg-color-rgb: 17, 39, 27;
}

.page-news {
    background-color: var(--background-color);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--background-color);
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height to prevent overly tall images */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-news__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.page-news__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__category-link,
.page-news__read-more {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
}

.page-news__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--text-main-color);
    border: 2px solid var(--border-color);
}

.page-news__btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

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

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: 2.5rem;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-news__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Article Grid */
.page-news__article-grid,
.page-news__promotion-grid,
.page-news__game-update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-news__article-card,
.page-news__promotion-card,
.page-news__game-update-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-link,
.page-news__promotion-link,
.page-news__game-update-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-image,
.page-news__promotion-image,
.page-news__game-update-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    min-height: 200px;
}

.page-news__article-content,
.page-news__promotion-content,
.page-news__game-update-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__article-title,
.page-news__promotion-title,
.page-news__game-update-title {
    font-size: 1.4rem;
    color: var(--text-main-color);
    margin-bottom: 10px;
    line-height: 1.3;
    flex-grow: 1;
}

.page-news__article-meta,
.page-news__promotion-meta,
.page-news__game-update-meta {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}

.page-news__article-excerpt,
.page-news__promotion-excerpt,
.page-news__game-update-excerpt {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}

.page-news__read-more {
    color: var(--gold-color);
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
    padding: 0;
}

.page-news__read-more:hover {
    color: var(--glow-color);
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* Categories Section */
.page-news__categories-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

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

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

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

.page-news__category-title {
    font-size: 1.6rem;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-news__category-text {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-news__category-link {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.page-news__category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-news__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
}

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

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

.page-news__faq-question:hover {
    background-color: rgba(var(--card-bg-color-rgb), 0.8);
}

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

.page-news__faq-qtext {
    flex-grow: 1;
    color: var(--text-main-color);
}

.page-news__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 20px;
    color: var(--gold-color);
}

.page-news__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-news__faq-item[open] .page-news__faq-answer {
    max-height: 500px;
    padding-top: 15px;
}

/* General image responsiveness */
.page-news img {
    max-width: 100%;
    height: auto;
    display: block;
    min-height: 200px; /* Global minimum for all images */
}

/* General content container responsiveness */
.page-news__section,
.page-news__card,
.page-news__container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .page-news__container {
        padding: 15px; /* Adjust padding for mobile */
    }

    /* Hero Section Mobile */
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-news__hero-image-wrapper {
        max-height: 400px;
    }

    .page-news__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-news__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-news__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Section Titles and Descriptions Mobile */
    .page-news__section-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

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

    /* Article, Promotion, Game Update Grids Mobile */
    .page-news__article-grid,
    .page-news__promotion-grid,
    .page-news__game-update-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-image,
    .page-news__promotion-image,
    .page-news__game-update-image {
        height: 200px;
        min-height: 200px !important;
    }

    .page-news__article-title,
    .page-news__promotion-title,
    .page-news__game-update-title {
        font-size: 1.2rem;
    }

    .page-news__article-excerpt,
    .page-news__promotion-excerpt,
    .page-news__game-update-excerpt {
        font-size: 0.9rem;
    }

    /* Categories Grid Mobile */
    .page-news__category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-news__category-title {
        font-size: 1.4rem;
    }

    .page-news__category-text {
        font-size: 0.95rem;
    }

    /* Buttons Mobile */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__category-link,
    .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;
        text-align: center;
    }

    .page-news__view-all-wrapper {
        display: flex;
        justify-content: center;
        padding: 0 15px;
    }

    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column;
    }

    /* FAQ Mobile */
    .page-news__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-news__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px 20px;
    }

    /* Universal image sizing for content area on mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to specific containers if needed, e.g. page-news__container */
    }
}