/* style/news.css */

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

.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--goplay07-text-main); /* Default text color for the page */
    background-color: var(--goplay07-background); /* Page background */
}

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--goplay07-deep-green); /* Example dark background for hero */
}

.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;
    min-width: 200px;
    min-height: 200px;
}

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

.page-news__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
    color: var(--goplay07-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-news__hero-description {
    font-size: 1.1em;
    color: var(--goplay07-text-secondary);
    margin-bottom: 30px;
}

/* Section Titles */
.page-news__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--goplay07-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive by default */
}

.page-news__btn-primary {
    background: var(--goplay07-button-gradient);
    color: var(--goplay07-text-main); /* White text for dark button */
    border: none;
}

.page-news__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-news__btn-secondary {
    background: transparent;
    color: var(--goplay07-primary); /* Primary color text for secondary button */
    border: 2px solid var(--goplay07-primary);
}

.page-news__btn-secondary:hover {
    background: var(--goplay07-primary);
    color: var(--goplay07-text-main);
    transform: translateY(-2px);
}

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

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

.page-news__news-card {
    background-color: var(--goplay07-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--goplay07-border);
}

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

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

.page-news__news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-news__news-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

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

.page-news__news-title a:hover {
    color: var(--goplay07-primary);
}

.page-news__news-meta {
    font-size: 0.9em;
    color: var(--goplay07-text-secondary);
    margin-bottom: 15px;
}

.page-news__news-excerpt {
    font-size: 1em;
    color: var(--goplay07-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more-link {
    display: inline-block;
    color: var(--goplay07-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
    color: var(--goplay07-secondary);
}

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

/* Promotion Highlight Section */
.page-news__promotion-highlight-section {
    padding: 80px 0;
    background-color: var(--goplay07-deep-green);
}

.page-news__promotion-highlight-section .page-news__section-title {
    color: var(--goplay07-text-main);
}

.page-news__promotion-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-news__promotion-text {
    flex: 1;
    color: var(--goplay07-text-secondary);
}

.page-news__promotion-text p {
    margin-bottom: 15px;
}

.page-news__promotion-text a {
    color: var(--goplay07-gold);
    text-decoration: none;
    font-weight: bold;
}
.page-news__promotion-text a:hover {
    text-decoration: underline;
}

.page-news__cta-buttons--inline {
    justify-content: flex-start;
    margin-top: 20px;
}

.page-news__promotion-image-wrapper {
    flex: 1;
    max-width: 500px;
}

.page-news__promotion-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    min-width: 200px;
    min-height: 200px;
}

/* About Us Section */
.page-news__about-us-section {
    padding: 80px 0;
    background-color: var(--goplay07-background);
}

.page-news__about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-news__about-text {
    flex: 1;
    color: var(--goplay07-text-secondary);
}

.page-news__about-text p {
    margin-bottom: 15px;
}

.page-news__about-text a {
    color: var(--goplay07-primary);
    text-decoration: none;
    font-weight: bold;
}
.page-news__about-text a:hover {
    text-decoration: underline;
}

.page-news__about-image-wrapper {
    flex: 1;
    max-width: 500px;
}

.page-news__about-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    min-width: 200px;
    min-height: 200px;
}


/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: var(--goplay07-card-bg); /* Darker background for contrast */
}

.page-news__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    border-top: 1px solid var(--goplay07-divider);
}

.page-news__faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--goplay07-divider);
    color: var(--goplay07-text-main);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--goplay07-text-main);
    transition: color 0.3s ease;
}

.page-news__faq-question:hover {
    color: var(--goplay07-primary);
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--goplay07-primary);
}

.page-news__faq-item[open] .page-news__faq-toggle {
    color: var(--goplay07-gold);
}

.page-news__faq-answer {
    padding-bottom: 20px;
    font-size: 1em;
    color: var(--goplay07-text-secondary);
}

.page-news__faq-answer p {
    margin-bottom: 10px;
}

.page-news__faq-answer a {
    color: var(--goplay07-primary);
    text-decoration: none;
    font-weight: bold;
}
.page-news__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section at the bottom */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--goplay07-deep-green);
}

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
    color: var(--goplay07-text-main);
}

.page-news__cta-section .page-news__section-description {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Keywords styling */
.page-news .keyword {
    color: var(--goplay07-gold);
    font-weight: bold;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-news__hero-content {
        max-width: 700px;
    }

    .page-news__promotion-content,
    .page-news__about-content {
        flex-direction: column;
        text-align: center;
    }

    .page-news__cta-buttons--inline {
        justify-content: center;
    }

    .page-news__promotion-image-wrapper,
    .page-news__about-image-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding-bottom: 40px;
        padding-left: 0 !important; /* Hero image often needs to be full width */
        padding-right: 0 !important;
    }
    .page-news__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-news__hero-image-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-news__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-news__hero-description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-news__btn-primary,
    .page-news__btn-secondary {
        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__latest-news-section,
    .page-news__promotion-highlight-section,
    .page-news__about-us-section,
    .page-news__faq-section,
    .page-news__cta-section {
        padding: 40px 0;
    }

    .page-news__container {
        padding: 0 15px;
    }

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

    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none; /* Ensure no filters are applied */
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__latest-news-section,
    .page-news__promotion-highlight-section,
    .page-news__about-us-section,
    .page-news__faq-section,
    .page-news__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-news__news-image-wrapper {
        height: auto; /* Allow height to adjust for mobile */
    }

    .page-news__faq-question {
        font-size: 1em;
    }
    .page-news__faq-answer {
        font-size: 0.95em;
    }

    /* content area images should still be at least 200px in display if possible */
    .page-news img:not(.page-news__hero-image) { /* Exclude hero as it's typically larger */
        min-width: 200px; /* Ensure content images are still substantial */
        min-height: 200px;
        object-fit: cover;
    }
}

/* No CSS filters for images */
.page-news img {
    filter: none;
}