/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

/* Fixed header offset for the first main content section */
.page-news__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('[GALLERY:hero_news:1920x1080:jun88 city,news_banner,dynamic_updates,online_betting,gold_red]') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding-bottom: 80px;
    padding-left: 20px;
    padding-right: 20px;
}

.page-news__hero-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    color: #FFD700; /* Gold brand color for title */
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-news__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-news__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%;
    box-sizing: border-box;
}

.page-news__btn-primary {
    background-color: #FFD700; /* Gold brand color */
    color: #8B0000; /* Dark red for contrast */
    border: 2px solid #FFD700;
}

.page-news__btn-primary:hover {
    background-color: #e0b800;
    color: #8B0000;
    border-color: #e0b800;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold brand color */
    border: 2px solid #FFD700;
}

.page-news__btn-secondary:hover {
    background-color: #FFD700;
    color: #8B0000;
    border-color: #FFD700;
}

/* General section styling */
.page-news__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-news__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold brand color */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: justify;
}

/* Featured News */
.page-news__featured-news, .page-news__latest-articles {
    padding: 60px 0;
}

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

.page-news__news-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark 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__news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-news__card-title {
    font-size: 1.4em;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__card-excerpt {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-news__card-date {
    font-size: 0.85em;
    color: #aaaaaa;
    text-align: right;
    display: block;
}

/* Latest Articles */
.page-news__article-list {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 30px;
    margin-bottom: 60px;
}

.page-news__article-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Stack on mobile */
}

.page-news__article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-news__article-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-news__article-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-news__article-title {
    font-size: 1.3em;
    color: #FFD700; /* Gold brand color */
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-news__article-excerpt {
    font-size: 0.9em;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Pagination */
.page-news__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-news__pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover {
    background-color: #FFD700;
    color: #8B0000;
}

.page-news__pagination-link--active {
    background-color: #FFD700;
    color: #8B0000;
}

/* CTA Section */
.page-news__cta-section {
    background-color: #8B0000; /* Dark red brand color */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-news__cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-news__cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
}

.page-news__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-news__cta-button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%;
    box-sizing: border-box;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

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

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-news__faq-heading {
    font-size: 1.2em;
    color: #FFD700; /* Gold brand color */
    margin: 0;
    flex-grow: 1;
}

.page-news__faq-toggle {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: bold;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X or minus */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 1em;
}

/* Ensure FAQ answer can expand - IMPORTANT */
.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px !important; /* Restore padding */
}

/* Responsive design */
@media (min-width: 769px) {
    .page-news__article-list {
        grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    }
}

@media (min-width: 1024px) {
    .page-news__article-list {
        grid-template-columns: repeat(3, 1fr); /* Three columns on larger screens */
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-news__hero-title {
        font-size: 2.2em;
    }

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

    .page-news__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-news__hero-button,
    .page-news__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 20px !important;
        font-size: 1.1em !important;
    }

    .page-news__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-news__section-description,
    .page-news__text-block,
    .page-news__card-excerpt,
    .page-news__article-excerpt,
    .page-news__cta-description,
    .page-news__faq-answer p {
        font-size: 0.95em;
    }

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

    .page-news__article-item {
        flex-direction: column;
    }

    .page-news__article-image {
        height: 180px;
    }

    .page-news__cta-title {
        font-size: 2em;
    }

    .page-news__faq-heading {
        font-size: 1.1em;
    }

    /* Enforce image responsiveness */
    .page-news img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__hero-container,
    .page-news__cta-container,
    .page-news__faq-list,
    .page-news__introduction-section,
    .page-news__featured-news,
    .page-news__latest-articles,
    .page-news__cta-section,
    .page-news__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      overflow-x: hidden !important; /* Prevent horizontal scrolling */
    }
    
    /* Video specific mobile styles (if any video is added) */
    .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 !important;
      padding-right: 15px !important;
      overflow: hidden !important;
    }
    .page-news__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure no CSS filter on images */
.page-news img {
    filter: none !important;
}

/* Ensure content area images are not too small */
.page-news__news-card .page-news__card-image,
.page-news__article-item .page-news__article-image {
    min-width: 200px;
    min-height: 200px;
}