/* style/news.css */

/* --- Base Styles & Typography --- */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--Text-Main, #F2FFF6); /* Default text color for the page, based on dark body background */
    background-color: transparent; /* Main content background is transparent, relies on body background */
}

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

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--Text-Main, #F2FFF6);
    margin-bottom: 20px;
    text-align: center;
}

.page-news__lead-text {
    font-size: 1.25rem;
    color: var(--Text-Secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--Text-Main, #F2FFF6);
    margin-bottom: 20px;
    text-align: center;
}

.page-news__section-title--light {
    color: var(--Text-Main, #F2FFF6); /* Ensure light text on dark background */
}

.page-news__section-description {
    font-size: 1rem;
    color: var(--Text-Secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__section-description--light {
    color: var(--Text-Secondary, #A7D9B8); /* Ensure light text on dark background */
}

/* --- Buttons --- */
.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    text-align: center;
}

.page-news__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--Text-Main, #F2FFF6);
    border: 2px solid transparent;
}

.page-news__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--Gold, #F2C14E); /* Use gold for secondary text */
    border: 2px solid var(--Gold, #F2C14E);
}

.page-news__btn-secondary:hover {
    background: var(--Gold, #F2C14E);
    color: #08160F; /* Dark text on gold hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__read-more-btn {
    background: transparent;
    color: var(--Gold, #F2C14E);
    border: 1px solid var(--Gold, #F2C14E);
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.page-news__read-more-btn:hover {
    background: var(--Gold, #F2C14E);
    color: #08160F;
}

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    box-sizing: border-box;
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for better text contrast below */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-news__hero-content-wrapper {
    position: relative; /* Not absolute, to flow below image */
    width: 100%;
    padding: 40px 0;
    box-sizing: border-box;
    z-index: 1;
}

/* --- Video Section --- */
.page-news__video-section {
    padding: 60px 0;
    border-top: 1px solid var(--Divider, #1E3A2A);
    text-align: center;
}

.page-news__video-wrapper {
    width: 100%; /* Must be present for desktop */
    max-width: 1000px; /* Max width for video container */
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9 / 16 * 100%) */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

/* --- Article & Promotion Grids --- */
.page-news__latest-articles-section,
.page-news__promotions-updates-section,
.page-news__game-updates-section,
.page-news__industry-insights-section,
.page-news__cta-section {
    padding: 60px 0;
    border-top: 1px solid var(--Divider, #1E3A2A); /* Divider color */
}

.page-news__articles-grid,
.page-news__promotions-grid,
.page-news__game-updates-grid,
.page-news__insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-news__article-card,
.page-news__promotion-card,
.page-news__game-card,
.page-news__insight-card {
    background-color: var(--Card-B-G, #11271B); /* Card background color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__article-image-wrapper,
.page-news__promotion-image-wrapper,
.page-news__game-image-wrapper,
.page-news__insight-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    overflow: hidden;
}

.page-news__article-image,
.page-news__promotion-image,
.page-news__game-image,
.page-news__insight-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    /* No filter allowed */
}

.page-news__article-content,
.page-news__promotion-content,
.page-news__game-content,
.page-news__insight-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--Text-Main, #F2FFF6); /* Card text color */
}

.page-news__article-title,
.page-news__promotion-title,
.page-news__game-title,
.page-news__insight-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-title a,
.page-news__promotion-title a,
.page-news__game-title a,
.page-news__insight-title a {
    color: var(--Text-Main, #F2FFF6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promotion-title a:hover,
.page-news__game-title a:hover,
.page-news__insight-title a:hover {
    color: var(--Gold, #F2C14E);
}

.page-news__article-date,
.page-news__insight-date {
    font-size: 0.85rem;
    color: var(--Text-Secondary, #A7D9B8);
    margin-bottom: 15px;
    display: block;
}

.page-news__article-excerpt,
.page-news__promotion-excerpt,
.page-news__game-excerpt,
.page-news__insight-excerpt {
    font-size: 0.95rem;
    color: var(--Text-Secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

/* --- CTA Section (Dark Background) --- */
.page-news__cta-section {
    background-color: var(--Deep-Green, #0A4B2C); /* Use Deep Green for CTA section background */
    padding: 80px 0;
    text-align: center;
}

/* --- Responsive Styles (Mobile First) --- */
@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__container {
        padding: 0 15px !important; /* Mobile padding for containers */
    }

    .page-news__main-title {
        font-size: 2rem !important;
    }

    .page-news__lead-text {
        font-size: 1rem !important;
    }

    .page-news__section-title {
        font-size: 1.8rem !important;
    }

    /* Images responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__article-image-wrapper,
    .page-news__promotion-image-wrapper,
    .page-news__game-image-wrapper,
    .page-news__insight-image-wrapper {
        height: auto !important; /* Allow height to adjust for mobile */
    }

    /* Video responsiveness */
    .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;
    }
    .page-news__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }

    /* Buttons responsiveness */
    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__read-more-btn,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__articles-grid,
    .page-news__promotions-grid,
    .page-news__game-updates-grid,
    .page-news__insights-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-news__article-card,
    .page-news__promotion-card,
    .page-news__game-card,
    .page-news__insight-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0;
    }

    .page-news__latest-articles-section,
    .page-news__promotions-updates-section,
    .page-news__game-updates-section,
    .page-news__industry-insights-section,
    .page-news__cta-section {
        padding: 40px 0;
    }
}

/* Ensure all content area images meet min size requirements */
.page-news__content-area img,
.page-news__article-card img,
.page-news__promotion-card img,
.page-news__game-card img,
.page-news__insight-card img {
    min-width: 200px;
    min-height: 200px;
}

/* General image styling for content areas to prevent small icons */
.page-news img:not(.page-news__hero-image) { /* Exclude hero image from this general sizing if it's already handled */
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Desktop specific rules for video-container width, as per prompt */
.page-news__video-container {
    width: 100%; /* Must be present for desktop */
    max-width: 1200px;
}