/* style/news.css */
/* General styles for the news page */
.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the main content on dark background */
    background-color: var(--black-color); /* Inherit from shared.css */
}

/* Header offset for main content */
.page-news__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Sections */
.page-news__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-news__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* Color schemes for sections */
.page-news__dark-bg {
    background-color: var(--black-color); /* Inherit from shared.css, which is dark */
    color: #ffffff;
}

.page-news__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text on light background */
}

.page-news__light-bg .page-news__section-title {
    color: #26A9E0;
}

.page-news__light-bg .page-news__section-description {
    color: #555555;
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-news__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Additional overlay for text readability */
    z-index: 2;
}

.page-news__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-news__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-login {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-news__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b7;
    border-color: #1e87b7;
}

.page-news__btn-login {
    background-color: #EA7C07; /* Specific color for login button */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-news__btn-login:hover {
    background-color: #c76706;
    border-color: #c76706;
}

/* Steps Grid (Login Guide) */
.page-news__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-news__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-news__step-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-news__step-item p {
    color: #f0f0f0;
}

/* Game Grid */
.page-news__game-grid,
.page-news__promo-grid,
.page-news__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-news__game-card,
.page-news__promo-card,
.page-news__strategy-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-news__game-image,
.page-news__promo-image,
.page-news__strategy-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__game-card h3,
.page-news__promo-card h3,
.page-news__strategy-card h3 {
    font-size: 1.4em;
    margin: 15px 15px 10px;
    color: #26A9E0;
}

.page-news__game-card h3 a,
.page-news__strategy-card h3 a {
    color: #26A9E0;
    text-decoration: none;
}

.page-news__game-card h3 a:hover,
.page-news__strategy-card h3 a:hover {
    text-decoration: underline;
}

.page-news__game-card p,
.page-news__promo-card p {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 15px;
}

.page-news__promo-card .page-news__btn-secondary {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
    text-align: center;
}

.page-news__strategy-list {
    list-style-type: disc;
    padding: 0 25px 15px 40px;
    margin: 0;
    color: #555555;
}

.page-news__strategy-list li {
    margin-bottom: 5px;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
    text-align: left;
}

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #1e87b7;
}

.page-news__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #f0f0f0;
    background-color: var(--black-color); /* Dark background for answer */
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-news__faq-answer p {
    padding-bottom: 15px;
    margin-bottom: 0;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important;
    padding: 20px !important;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 3em;
    }
    .page-news__hero-description {
        font-size: 1.1em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-news__hero-section {
        height: 450px;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 10px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    /* Images responsiveness */
    .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__game-card,
    .page-news__promo-card,
    .page-news__strategy-card,
    .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; /* Prevent horizontal scroll */
    }
    /* Specific padding for sections that might have inherited padding */
    .page-news__section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Buttons responsiveness */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__btn-login,
    .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; /* Stack buttons vertically */
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-news__steps-grid,
    .page-news__game-grid,
    .page-news__promo-grid,
    .page-news__strategy-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-news__faq-list {
        padding: 0 15px;
    }
    .page-news__faq-item, .page-news__step-item {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__faq-question, .page-news__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__hero-description {
        font-size: 0.9em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
}