/* style/news.css */

/* Custom Colors */
:root {
    --gam88-primary: #11A84E;
    --gam88-secondary: #22C768;
    --gam88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --gam88-card-bg: #11271B;
    --gam88-background: #08160F;
    --gam88-text-main: #F2FFF6;
    --gam88-text-secondary: #A7D9B8;
    --gam88-border: #2E7A4E;
    --gam88-glow: #57E38D;
    --gam88-gold: #F2C14E;
    --gam88-divider: #1E3A2A;
    --gam88-deep-green: #0A4B2C;
}

/* Base styles for the news page */
.page-news {
    font-family: 'Arial', sans-serif;
    color: var(--gam88-text-main); /* Default text color for the page */
    background-color: var(--gam88-background); /* Ensure consistency with body background */
}

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

.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--gam88-background);
    overflow: hidden;
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 200px;
}

.page-news__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-news__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gam88-text-main);
    line-height: 1.2;
    margin-bottom: 20px;
}

.page-news__description {
    font-size: 1.1rem;
    color: var(--gam88-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.page-news__section-description {
    font-size: 1rem;
    color: var(--gam88-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.page-news__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--gam88-button-gradient);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--gam88-text-main);
    border: 2px solid var(--gam88-border);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-news__btn-secondary:hover {
    background-color: var(--gam88-primary);
    color: #ffffff;
    border-color: var(--gam88-primary);
}

/* Featured News Section */
.page-news__featured-news {
    padding: 60px 0;
    background-color: var(--gam88-background);
}

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

.page-news__news-card {
    background-color: var(--gam88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Ensure min size */
}

.page-news__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-news__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-news__card-title a {
    color: var(--gam88-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: var(--gam88-primary);
}

.page-news__card-meta {
    font-size: 0.9rem;
    color: var(--gam88-text-secondary);
    margin-bottom: 15px;
}

.page-news__card-excerpt {
    font-size: 1rem;
    color: var(--gam88-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

/* Promotions & Events Section */
.page-news__promotions-events {
    padding: 60px 0;
    background-color: var(--gam88-deep-green);
}

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

.page-news__promo-card {
    background-color: var(--gam88-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Platform Updates Section */
.page-news__platform-updates {
    padding: 60px 0;
    background-color: var(--gam88-background);
}

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

.page-news__update-item {
    background-color: var(--gam88-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gam88-border);
}

.page-news__update-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gam88-text-main);
    margin-bottom: 10px;
}

.page-news__update-meta {
    font-size: 0.85rem;
    color: var(--gam88-text-secondary);
    margin-bottom: 15px;
}

.page-news__update-text {
    font-size: 0.95rem;
    color: var(--gam88-text-secondary);
    line-height: 1.6;
}

/* Call to Action Section */
.page-news__call-to-action {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(90deg, var(--gam88-primary) 0%, var(--gam88-glow) 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.page-news__cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-news__cta-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Utility Classes for colors */
.page-news__dark-bg {
    background-color: var(--gam88-background);
    color: var(--gam88-text-main);
}

.page-news__card-bg {
    background-color: var(--gam88-card-bg);
    color: var(--gam88-text-main);
}

.page-news__deep-green-bg {
    background-color: var(--gam88-deep-green);
    color: var(--gam88-text-main);
}

.page-news__gold-glow-bg {
    background: linear-gradient(180deg, var(--gam88-primary) 0%, var(--gam88-glow) 100%);
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        padding: 30px 15px;
    }
    .page-news__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-news__description {
        font-size: 1rem;
    }
    .page-news__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px !important;
    }
    .page-news__hero-section,
    .page-news__featured-news,
    .page-news__promotions-events,
    .page-news__platform-updates,
    .page-news__call-to-action {
        padding: 40px 0;
    }

    .page-news__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-news__description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-news__articles-grid,
    .page-news__promotions-grid,
    .page-news__updates-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-news__card-image {
        height: 180px;
    }
    .page-news__card-title {
        font-size: 1.2rem;
    }

    .page-news__hero-image,
    .page-news__card-image,
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-news__hero-image-wrapper,
    .page-news__news-card,
    .page-news__promo-card,
    .page-news__update-item,
    .page-news__view-all-btn-container,
    .page-news__cta-buttons,
    .page-news__button-group,
    .page-news__btn-container,
    .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__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-news__hero-section {
        padding-top: 10px !important;
    }
}