/* style/news.css */

/* --- General Page Styles (scoped to .page-news) --- */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background #121212 */
    background-color: #121212; /* Inherited from shared.css body */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-news__section-title {
    font-size: 38px;
    font-weight: bold;
    color: #FFD700; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__section-description {
    font-size: 18px;
    color: #cccccc;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Color Contrast Classes --- */
.page-news__dark-bg {
    background-color: #1A202C; /* Main brand color */
    color: #ffffff; /* White text for dark background */
    padding: 60px 0;
}

.page-news__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-news__light-bg .page-news__section-title {
    color: #1A202C; /* Dark title for light background */
}

.page-news__light-bg .page-news__section-description {
    color: #666666; /* Darker description for light background */
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.page-news__hero-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    max-height: 700px; /* Limit hero image height */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-news__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-news__main-title {
    font-size: 52px;
    font-weight: 900;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-news__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700;
    color: #1A202C;
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-news__cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* --- Article Grid (Latest Articles & More Articles) --- */
.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-news__article-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: #1A202C; /* Dark title link for light background */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #FFD700; /* Highlight on hover */
}

.page-news__article-meta {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

.page-news__article-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-news__read-more-link:hover {
    color: #1A202C;
}

/* --- Game Updates Section --- */
.page-news__update-list {
    margin-top: 40px;
}

.page-news__update-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-news__update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Allow wrap for small screens */
}

.page-news__update-title {
    font-size: 24px;
    color: #FFD700;
    margin: 0;
    flex-grow: 1;
    margin-right: 15px;
}

.page-news__update-date {
    font-size: 16px;
    color: #cccccc;
    white-space: nowrap;
}

.page-news__update-content {
    font-size: 17px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-news__update-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin-top: 15px;
    object-fit: cover;
}

.page-news__download-button {
    display: inline-block;
    padding: 12px 30px;
    background: #1A202C;
    color: #FFD700;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: 2px solid #FFD700;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-news__download-button:hover {
    background: #FFD700;
    color: #1A202C;
    border-color: #1A202C;
}

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

.page-news__guide-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__guide-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__guide-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: #333333;
}

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

.page-news__guide-title a {
    color: #1A202C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
    color: #FFD700;
}

.page-news__guide-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- FAQ Section --- */
.page-news__faq-section {
    padding-bottom: 60px; /* Adjust padding for dark background */
}

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

.page-news__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background for dark section */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #e0e0e0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-news__faq-item.active .page-news__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.page-news__faq-question:active {
    background: rgba(255, 255, 255, 0.25);
}

.page-news__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700;
    pointer-events: none;
}

.page-news__faq-answer p {
    margin: 0;
    color: #e0e0e0;
}

.page-news__faq-answer p a {
    color: #FFD700; /* Link color within FAQ answer */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-news__faq-answer p a:hover {
    color: #ffffff;
}

.page-news__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign effect */
    color: #ffffff;
}

.page-news__cta-block {
    text-align: center;
    margin-top: 40px;
    font-size: 18px;
    color: #cccccc;
}

.page-news__contact-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__contact-link:hover {
    color: #ffffff;
}

/* --- Final CTA Section --- */
.page-news__cta-section {
    padding: 80px 0;
}

.page-news__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-news__large-button {
    padding: 18px 50px;
    font-size: 22px;
    margin-bottom: 20px;
}

.page-news__secondary-button {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    box-shadow: none;
}

.page-news__secondary-button:hover {
    background: #FFD700;
    color: #1A202C;
    border-color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 44px;
    }
    .page-news__hero-description {
        font-size: 18px;
    }
    .page-news__section-title {
        font-size: 32px;
    }
    .page-news__section-description {
        font-size: 16px;
    }
    .page-news__article-title, .page-news__guide-title {
        font-size: 20px;
    }
    .page-news__update-title {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-news {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-news__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__hero-content {
        padding: 15px;
        width: 95%;
    }
    .page-news__main-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    .page-news__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-news__cta-button {
        padding: 12px 25px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-news__article-grid, .page-news__guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__article-card, .page-news__guide-card {
        margin-bottom: 20px;
    }

    .page-news__article-image, .page-news__guide-image {
        height: 180px;
    }

    .page-news__article-title, .page-news__guide-title {
        font-size: 18px;
    }
    .page-news__article-excerpt, .page-news__guide-excerpt {
        font-size: 15px;
    }

    .page-news__update-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-news__update-title {
        font-size: 20px;
        margin-bottom: 5px;
        margin-right: 0;
    }
    .page-news__update-date {
        font-size: 14px;
    }
    .page-news__update-content {
        font-size: 16px;
    }
    .page-news__download-button {
        padding: 10px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-news__faq-question {
        padding: 15px 20px;
    }
    .page-news__faq-question h3 {
        font-size: 16px;
    }
    .page-news__faq-toggle {
        font-size: 24px;
        width: 26px;
        height: 26px;
    }
    .page-news__faq-answer {
        padding: 0 20px;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px !important;
    }
    .page-news__cta-block {
        font-size: 16px;
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile button responsiveness */
    .page-news__cta-button,
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news a[class*="button"],
    .page-news a[class*="btn"],
    .page-news__download-button {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px; /* Add padding to prevent text touching edges */
      padding-right: 15px; /* Add padding to prevent text touching edges */
    }

    /* Multiple buttons arrangement for mobile */
    .page-news__cta-section .page-news__flex-center a.page-news__cta-button {
        width: auto !important; /* Reset width for individual button if flex-direction column */
        margin-bottom: 15px; /* Spacing between buttons */
    }
    .page-news__cta-section .page-news__flex-center {
        gap: 0; /* Remove gap if using margin-bottom on individual buttons */
    }
}

@media (max-width: 480px) {
    .page-news__main-title {
        font-size: 28px;
    }
    .page-news__hero-description {
        font-size: 15px;
    }
    .page-news__section-title {
        font-size: 24px;
    }
    .page-news__cta-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}