/* style/news.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #FFFFFF;
    --background-dark: #26A9E0;
    --button-login-color: #EA7C07;
}

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-light);
}

.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 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 */
    background-color: var(--background-dark);
    color: var(--text-color-light);
    text-align: center;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

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

.page-news__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

.page-news__description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-news__link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-news__link:hover {
    color: var(--primary-color);
}

/* General Section Styles */
.page-news__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

.page-news__text-block {
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.7;
}

.page-news__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-news__text-block a:hover {
    color: #007bff;
}

.page-news__keyword {
    font-weight: bold;
    color: inherit;
}

/* Card Styles */
.page-news__cards-grid, .page-news__promotions-grid, .page-news__games-grid, .page-news__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-news__card {
    background-color: var(--background-light);
    color: var(--text-color-dark);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin: 15px 15px 10px 15px;
    color: var(--primary-color);
}

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

.page-news__card-title a:hover {
    text-decoration: underline;
}

.page-news__card-text {
    font-size: 0.95em;
    padding: 0 15px 15px 15px;
    flex-grow: 1;
}

/* Buttons */
.page-news__btn-primary, .page-news__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 15px;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-news__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-news__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
}

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

.page-news__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-news__hero-section .page-news__btn-primary {
    background-color: var(--button-login-color);
    border-color: var(--button-login-color);
}

.page-news__hero-section .page-news__btn-primary:hover {
    background-color: #c96500;
    border-color: #c96500;
}

/* Specific Section Styles */
.page-news__intro-section, .page-news__promotions-section, .page-news__why-follow-section, .page-news__guides-section {
    background-color: var(--background-light);
    color: var(--text-color-dark);
    padding: 40px 20px;
}

.page-news__highlights-section, .page-news__games-section, .page-news__announcements-section, .page-news__faq-section {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 40px 20px;
}

.page-news__why-follow-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-news__why-follow-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-news__why-follow-text-block {
    flex: 1;
    min-width: 300px;
}

.page-news__promotion-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
}

.page-news__cta-block {
    text-align: center;
    margin-top: 40px;
}

/* Announcements */
.page-news__announcement-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-news__announcement-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.page-news__announcement-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color-light);
}

.page-news__announcement-date {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 10px;
}

.page-news__announcement-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-news__announcement-text a:hover {
    color: var(--primary-color);
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 30px;
}

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-light);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details summary */
}

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

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--text-color-light);
}

.page-news__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
    color: #e0e0e0;
}

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

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

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-news__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual top space */
    }

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

    .page-news__description {
        font-size: 1em;
    }

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

    .page-news__cards-grid, .page-news__promotions-grid, .page-news__games-grid, .page-news__guides-grid {
        grid-template-columns: 1fr;
    }

    .page-news__card {
        margin-left: 0;
        margin-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsive rules for mobile */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-image-wrapper,
    .page-news__why-follow-image,
    .page-news__card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons responsive rules for mobile */
    .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-left: 0;
        margin-right: 0;
    }

    .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: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-news__why-follow-content {
        flex-direction: column;
    }

    .page-news__why-follow-image {
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}