/* style/news.css */

/* --- Base Styles & Variables --- */
:root {
    --f88bet-primary: #0A192F; /* Deep Navy Blue */
    --f88bet-secondary: #FFD700; /* Gold */
    --f88bet-text-light: #ffffff;
    --f88bet-text-dark: #333333;
    --f88bet-card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    --f88bet-border-color: rgba(255, 255, 255, 0.15);
    --f88bet-shadow-dark: rgba(0, 0, 0, 0.3);
    --f88bet-shadow-light: rgba(0, 0, 0, 0.1);
}

.page-news {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--f88bet-text-light); /* Default text color for dark body background */
    background-color: var(--f88bet-primary); /* Ensure consistency with body background */
}

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

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    background: var(--f88bet-primary);
    color: var(--f88bet-text-light);
    text-align: center;
}

.page-news__hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-news__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    z-index: 1;
}

.page-news__hero-title {
    font-size: 3.2em;
    color: var(--f88bet-secondary);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px var(--f88bet-shadow-dark);
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--f88bet-text-light);
}

.page-news__hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-news__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--f88bet-shadow-dark);
}

/* --- General Section Styling --- */
.page-news__section-title {
    font-size: 2.5em;
    color: var(--f88bet-secondary);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px var(--f88bet-shadow-dark);
}

.page-news__section-description {
    font-size: 1.1em;
    color: var(--f88bet-text-light);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Light Background Sections --- */
.page-news__light-bg {
    background-color: var(--f88bet-text-light); /* White background */
    color: var(--f88bet-text-dark); /* Dark text */
    padding: 60px 0;
}

.page-news__light-bg .page-news__section-title {
    color: var(--f88bet-primary); /* Dark blue title on light background */
    text-shadow: none;
}

.page-news__light-bg .page-news__section-description {
    color: var(--f88bet-text-dark); /* Dark text on light background */
}

/* --- Dark Background Sections --- */
.page-news__dark-section {
    background-color: var(--f88bet-primary);
    color: var(--f88bet-text-light);
    padding: 60px 0;
}

/* --- Buttons --- */
.page-news__btn-primary,
.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background-color: var(--f88bet-secondary);
    color: var(--f88bet-primary);
    border: 2px solid var(--f88bet-secondary);
    margin-right: 15px;
}

.page-news__btn-primary:hover {
    background-color: #e6c200; /* Darker gold */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-news__btn-secondary {
    background-color: transparent;
    color: var(--f88bet-secondary);
    border: 2px solid var(--f88bet-secondary);
}

.page-news__btn-secondary:hover {
    background-color: var(--f88bet-secondary);
    color: var(--f88bet-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* --- Latest Updates Section (Articles Grid) --- */
.page-news__latest-updates {
    padding-bottom: 80px;
}

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

.page-news__article-card {
    background-color: var(--f88bet-card-bg-dark); /* Use transparent white for dark sections */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--f88bet-shadow-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--f88bet-text-light); /* Default for dark background */
}

/* Overriding for light background section */
.page-news__light-bg .page-news__article-card {
    background-color: var(--f88bet-text-light); /* White card background */
    color: var(--f88bet-text-dark); /* Dark text */
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px var(--f88bet-shadow-light);
}

.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: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-news__article-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-news__article-title a {
    color: var(--f88bet-secondary); /* Gold for titles on dark background cards */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__light-bg .page-news__article-title a {
    color: var(--f88bet-primary); /* Dark blue for titles on light background cards */
}

.page-news__article-title a:hover {
    text-decoration: underline;
    color: var(--f88bet-text-light); /* Lighter gold for hover on dark background */
}

.page-news__light-bg .page-news__article-title a:hover {
    color: #081426; /* Darker blue for hover on light background */
}

.page-news__article-excerpt {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-news__read-more {
    color: var(--f88bet-secondary);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
    transition: color 0.3s ease;
}

.page-news__read-more:hover {
    text-decoration: underline;
    color: var(--f88bet-text-light); /* Lighter gold for hover */
}

.page-news__light-bg .page-news__read-more {
    color: var(--f88bet-primary);
}

.page-news__light-bg .page-news__read-more:hover {
    color: #081426;
}

/* --- Featured Video Section --- */
.page-news__featured-video {
    padding: 80px 0;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--f88bet-shadow-dark);
    background-color: #000; /* Fallback for video area */
}

.page-news__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-news__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Ensure it's clickable above the video */
    background: rgba(0, 0, 0, 0.1); /* Subtle overlay for click indication */
    transition: background-color 0.3s ease;
}

.page-news__video-overlay-link:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* --- FAQ Section --- */
.page-news__faq-section {
    padding-bottom: 80px;
}

.page-news__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0; /* Border for the list container */
}

.page-news__faq-item {
    background-color: var(--f88bet-text-light); /* White background for FAQ item */
    border-bottom: 1px solid #e0e0e0;
}

.page-news__faq-item:last-child {
    border-bottom: none;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--f88bet-primary); /* Dark blue text for questions */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: #f5f5f5;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--f88bet-secondary); /* Gold toggle icon */
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg);
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--f88bet-text-dark); /* Dark text for answers */
    font-size: 1em;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px;
}

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

.page-news__faq-answer a.page-news__btn-primary {
    margin-top: 15px;
    margin-right: 0; /* Remove right margin for single button */
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.8em;
    }
    .page-news__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        flex-direction: column;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        text-align: center;
    }

    .page-news__hero-title {
        font-size: 2.2em;
    }

    .page-news__hero-description {
        font-size: 1em;
    }

    .page-news__hero-image-wrapper {
        margin-top: 30px;
    }

    .page-news__container {
        padding: 0 15px; /* Smaller padding for mobile */
    }

    .page-news__section-title {
        font-size: 1.8em;
    }

    .page-news__section-description {
        font-size: 0.95em;
    }

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

    /* Mobile button responsiveness */
    .page-news__btn-primary,
    .page-news__btn-secondary,
    .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;
        margin-right: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 15px; /* Add vertical spacing for stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-news__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0; /* Reset gap as margin handles spacing */
    }

    /* Mobile image responsiveness */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* 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__faq-question {
        font-size: 1em;
        padding: 18px 20px;
    }

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

    .page-news__faq-item.active .page-news__faq-answer {
        padding: 15px 20px 18px;
    }
}

@media (max-width: 480px) {
    .page-news__hero-title {
        font-size: 1.8em;
    }
    .page-news__section-title {
        font-size: 1.5em;
    }
    .page-news__article-title {
        font-size: 1.2em;
    }
}