/* style/news.css */
/* Base styles for the news page, scoped to .page-news */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Default to white if variable not set */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Or adjust based on image aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

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

.page-news__hero-content {
    position: relative;
    z-index: 3;
    color: #FFFFFF;
    max-width: 900px;
    padding: 0 20px;
}

.page-news__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* General Section Styling */
.page-news__section {
    padding: 60px 20px;
    background-color: var(--background-color, #FFFFFF);
}

.page-news__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
}

.page-news__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color */
}

.page-news__section-title--light {
    color: #FFFFFF;
}

.page-news__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-news__section-intro--light {
    color: #f0f0f0;
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-news__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

.page-news__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

.page-news__button-group {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-news__article-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__article-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.page-news__article-content {
    padding: 20px;
}

.page-news__article-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0; /* Brand primary color */
}

.page-news__article-excerpt {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 15px;
}

.page-news__read-more {
    color: #26A9E0;
    font-weight: bold;
}

.page-news__read-more:hover {
    text-decoration: underline;
}

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

.page-news__feature-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: #FFFFFF;
}

.page-news__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-news__feature-description {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Promotions Grid */
.page-news__promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns for promos */
    gap: 30px;
    margin-top: 40px;
}

.page-news__promo-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.page-news__promo-content {
    padding: 25px;
    flex-grow: 1;
}

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

.page-news__promo-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* Video Section */
.page-news__video-section {
    background-color: #000000; /* Dark background for video */
    padding: 80px 20px;
    text-align: center;
    color: #FFFFFF;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 12px;
}

.page-news__video-wrapper .page-news__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

/* FAQ Section */
.page-news__faq-list {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.page-news__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    cursor: pointer;
    background-color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

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

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: #555555;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px;
}

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

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0;
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
    .page-news__promo-grid {
        grid-template-columns: 1fr; /* Stack promos on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        height: 500px;
    }
    .page-news__hero-title {
        font-size: 2.2em;
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section {
        padding: 40px 15px;
    }
    .page-news__section-title {
        font-size: 1.8em;
    }
    .page-news__section-intro {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-news__section,
    .page-news__container,
    .page-news__article-card,
    .page-news__promo-card,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper,
    .page-news__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-news__button-group {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important; /* Remove individual button margins */
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Specific mobile adjustments */
    .page-news__news-grid,
    .page-news__game-features {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .page-news__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-news__video-wrapper {
        margin: 20px auto;
    }
    .page-news__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure video section top padding in mobile */
    }
}