/* style/news.css */

/* Custom Properties based on Color Scheme */
:root {
    --page-news-bg: #08160F;
    --page-news-card-bg: #11271B;
    --page-news-text-main: #F2FFF6;
    --page-news-text-secondary: #A7D9B8;
    --page-news-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-news-border: #2E7A4E;
    --page-news-glow: #57E38D;
    --page-news-gold: #F2C14E;
    --page-news-divider: #1E3A2A;
    --page-news-deep-green: #0A4B2C;
}

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

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

/* Section Titles */
.page-news__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Use clamp for H2 */
    color: var(--page-news-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-news__section-title--light {
    color: #ffffff; /* Explicitly white for dark backgrounds */
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--page-news-deep-green); /* A darker green for the hero background */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: var(--page-news-text-main);
}

.page-news__main-title {
    font-size: clamp(30px, 5vw, 56px); /* Adjusted H1 font size with clamp */
    color: var(--page-news-gold);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-news__description {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--page-news-text-secondary);
}

.page-news__description--light {
    color: #ffffff;
}

/* CTA Button */
.page-news__cta-button {
    display: inline-block;
    background: var(--page-news-button-gradient);
    color: #ffffff; /* White text on button for contrast */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--page-news-glow);
    color: var(--page-news-glow);
    box-shadow: none;
}

.page-news__cta-button--secondary:hover {
    background: rgba(87, 227, 141, 0.1);
    box-shadow: none;
}

.page-news__cta-button--large {
    padding: 18px 40px;
    font-size: 20px;
}

/* Latest News Section */
.page-news__latest-news-section {
    background-color: var(--page-news-bg);
    padding: 60px 0;
}

.page-news__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-news__news-card,
.page-news__article-card {
    background-color: var(--page-news-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--page-news-border);
}

.page-news__news-card:hover,
.page-news__article-card:hover {
    transform: translateY(-5px);
}

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

.page-news__news-card-content,
.page-news__article-card-content {
    padding: 25px;
}

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

.page-news__news-card-title a,
.page-news__article-card-title a {
    color: var(--page-news-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__news-card-title a:hover,
.page-news__article-card-title a:hover {
    color: var(--page-news-gold);
}

.page-news__news-card-date,
.page-news__article-card-date {
    font-size: 14px;
    color: var(--page-news-text-secondary);
    margin-bottom: 15px;
}

.page-news__news-card-text,
.page-news__article-card-text {
    font-size: 16px;
    color: var(--page-news-text-secondary);
    margin-bottom: 20px;
}

.page-news__news-card-link,
.page-news__article-card-link {
    display: inline-block;
    color: var(--page-news-glow);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__news-card-link:hover,
.page-news__article-card-link:hover {
    color: var(--page-news-gold);
}

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

/* Featured Articles Section */
.page-news__featured-articles-section {
    background-color: var(--page-news-deep-green);
    padding: 60px 0;
}

.page-news__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.page-news__faq-item {
    background-color: var(--page-news-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--page-news-border);
    overflow: hidden;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--page-news-text-main);
    cursor: pointer;
    background-color: rgba(17, 39, 27, 0.7); /* Slightly lighter card bg for summary */
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: var(--page-news-deep-green);
}

.page-news__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-news-glow);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    content: "−";
}

/* Hide default marker for details summary */
.page-news__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-news__faq-item summary {
    list-style: none;
}

.page-news__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: var(--page-news-text-secondary);
    border-top: 1px solid var(--page-news-divider);
}

/* CTA Banner Section */
.page-news__cta-banner-section {
    background-image: linear-gradient(rgba(8, 22, 15, 0.8), rgba(8, 22, 15, 0.8)), url("[GALLERY:bg:1920x1080:m88cvf_cta_background,gaming_platform,green_gold_gradient]"); /* Using a BG image with overlay */
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 80px 20px;
    color: #ffffff;
}

.page-news__cta-banner-section .page-news__section-title {
    margin-bottom: 20px;
}

.page-news__cta-banner-section .page-news__description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__container {
        padding: 30px 15px;
    }
    .page-news__hero-content {
        padding: 0 15px;
    }
    .page-news__main-title {
        font-size: clamp(28px, 6vw, 48px);
    }
    .page-news__description {
        font-size: 16px;
    }
    .page-news__news-grid,
    .page-news__articles-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed header padding handled by body in shared.css, only small decorative padding here */
    .page-news__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

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

    .page-news__main-title {
        font-size: clamp(24px, 7vw, 40px);
        margin-bottom: 15px;
    }

    .page-news__description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .page-news__cta-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;
        padding-right: 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;
    }

    .page-news__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }

    .page-news__news-grid,
    .page-news__articles-grid {
        grid-template-columns: 1fr;
    }

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

    .page-news__news-card-title,
    .page-news__article-card-title {
        font-size: 20px;
    }

    .page-news__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

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

    .page-news__cta-banner-section {
        padding: 60px 15px;
    }

    /* 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Videos responsiveness - Not present in this page, but keeping for template */
    .page-news video,
    .page-news__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}