/* style/news.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-background: #08160F; /* Custom Background */
    --color-card-bg: #11271B;    /* Custom Card BG */
    --color-text-main: #F2FFF6;  /* Custom Text Main (Light for dark bg) */
    --color-text-secondary: #A7D9B8; /* Custom Text Secondary (Light for dark bg) */
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* Button Gradient */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-news {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

/* General container for content sections */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-news__section-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Clamp for responsive H2 */
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Links */
.page-news a {
    color: var(--color-secondary); /* Use secondary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news a:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

/* Buttons */
.page-news__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box;
    max-width: 100%;
}

.page-news__btn--primary {
    background: var(--btn-gradient);
    color: var(--color-text-main); /* Light text on dark/gradient button */
    border: 2px solid transparent;
}

.page-news__btn--primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px var(--color-glow);
}

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

.page-news__btn--secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Hero Section */
.page-news__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-news__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 12px;
    overflow: hidden;
}

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

.page-news__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-news__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 */
    color: var(--color-gold); /* Gold for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
}

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

/* Latest Articles Section */
.page-news__latest-articles-section {
    padding: 60px 0;
    background-color: var(--color-deep-green); /* Slightly different dark background */
}

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

.page-news__article-card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-news__article-title {
    font-size: 1.4em;
    color: var(--color-text-main);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__article-title a {
    color: inherit; /* Inherit color from parent h3 */
    text-decoration: none;
}

.page-news__article-title a:hover {
    color: var(--color-gold); /* Gold on hover */
    text-decoration: underline;
}

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

.page-news__article-excerpt {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes read more to bottom */
}

.page-news__read-more-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: bold;
    text-decoration: none;
}

.page-news__read-more-link .page-news__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-news__read-more-link:hover .page-news__arrow {
    transform: translateX(5px);
}

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

/* Categories Section */
.page-news__categories-section {
    padding: 60px 0;
    background-color: var(--color-background); /* Dark background */
}

.page-news__category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-news__category-item {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-news__category-item:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    box-shadow: 0 0 10px var(--color-primary);
}

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

.page-news__promotion-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Default to column for smaller screens */
}

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

.page-news__promotion-content {
    padding: 30px;
}

.page-news__promotion-title {
    font-size: 1.8em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-news__promotion-excerpt {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

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

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

.page-news__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-card-bg);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

.page-news__faq-question::-webkit-details-marker { /* For Webkit browsers */
    display: none;
}

.page-news__faq-item[open] .page-news__faq-question {
    border-bottom: 1px solid var(--color-primary);
}

.page-news__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    color: var(--color-primary);
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
    color: var(--color-gold);
}

.page-news__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

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

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

/* Call to Action Section */
.page-news__cta-section {
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:bg:1920x400:8live bet,cta background,join now,green gold]'); /* Background image with overlay */
    background-size: cover;
    background-position: center;
    border-top: 5px solid var(--color-primary);
}

.page-news__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-news__featured-promotions-section .page-news__promotion-card {
        flex-direction: row; /* Row layout for larger screens */
    }
    .page-news__promotion-image {
        width: 50%;
        height: auto; /* Let height adjust to content */
    }
    .page-news__promotion-content {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .page-news__container {
        padding: 0 15px; /* Smaller padding on mobile */
    }

    /* General image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure image containers also adapt */
    .page-news__hero-image-wrapper,
    .page-news__article-card,
    .page-news__promotion-card,
    .page-news__articles-grid,
    .page-news__category-list,
    .page-news__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Button responsiveness */
    .page-news__btn {
        max-width: 100% !important;
        width: 100% !important; /* Full width buttons on mobile */
        padding: 15px 20px !important;
        margin-bottom: 15px; /* Space between stacked buttons */
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }
    .page-news__hero-content .page-news__btn {
        margin-bottom: 0; /* No extra margin if only one button */
    }

    .page-news__view-all-button-wrapper .page-news__btn {
        margin-bottom: 0;
    }

    .page-news__cta-content .page-news__btn {
        margin-bottom: 0;
    }

    /* Specific section adjustments */
    .page-news__hero-section {
        padding: 10px 15px 40px;
    }
    .page-news__main-title {
        font-size: 2.2em; /* Adjust H1 size for mobile */
    }
    .page-news__description {
        font-size: 1em;
    }
    .page-news__section-title {
        font-size: 1.8em; /* Adjust H2 size for mobile */
    }
    .page-news__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }
    .page-news__articles-grid {
        grid-template-columns: 1fr; /* Single column for articles */
    }
    .page-news__article-image {
        height: 180px; /* Adjust image height for mobile cards */
    }
    .page-news__promotion-card {
        flex-direction: column; /* Stack image and content */
    }
    .page-news__promotion-image,
    .page-news__promotion-content {
        width: 100%;
    }
    .page-news__promotion-title {
        font-size: 1.4em;
    }
    .page-news__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-news__faq-answer {
        padding: 15px 20px;
    }
    .page-news__cta-section {
        padding: 50px 15px;
    }
}