/* style/news.css */

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

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

/* Hero Section */
.page-news__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand primary color for hero background */
    color: #ffffff;
}

.page-news__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Subtle background image */
}

.page-news__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-news__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-news__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Section Titles and Descriptions */
.page-news__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Use white for titles on dark sections, or a contrasting color on light sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-news__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Light grey for descriptions */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Dark Background Sections */
.page-news__dark-section {
    background-color: #0a0a0a; /* Body background color, or a darker shade of primary */
    color: #ffffff;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__btn-promo {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-news__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-news__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-news__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-news__btn-promo {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-news__btn-promo:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Latest News Section */
.page-news__latest-news {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-news__news-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    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;
    color: #ffffff;
}

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

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

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

.page-news__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-news__card-title a {
    color: #FFFF00; /* Yellow for link titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__card-title a:hover {
    color: #ffffff;
}

.page-news__card-meta {
    font-size: 0.9em;
    color: #cccccc;
    margin-bottom: 15px;
}

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

.page-news__card-link {
    display: inline-block;
    color: #017439; /* Primary color for 'Read More' links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-news__card-link:hover {
    color: #FFFF00; /* Yellow on hover */
}

/* Video Section */
.page-news__video-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.page-news__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0 auto;
    border-radius: 10px;
}

.page-news__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-news__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Promotions News Section */
.page-news__promotions-news {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-news__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__promo-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-news__promo-title {
    font-size: 1.6em;
    color: #FFFF00; /* Yellow for promo titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__promo-text {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.page-news__full-promo-cta {
    text-align: center;
    margin-top: 50px;
}

/* Game Updates Section */
.page-news__game-updates {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-news__update-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-news__update-title {
    font-size: 1.6em;
    color: #017439; /* Primary color for update titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__update-text {
    color: #e0e0e0;
}

/* Betting Tips Section */
.page-news__betting-tips {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-news__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-news__tips-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-news__tips-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-news__tips-title a {
    color: #FFFF00; /* Yellow for link titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__tips-title a:hover {
    color: #ffffff;
}

.page-news__tips-text {
    color: #e0e0e0;
}

/* FAQ Section */
.page-news__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-news__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    color: #ffffff;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

.page-news__faq-heading {
    color: #ffffff;
    margin: 0;
}

.page-news__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for toggle icon */
    transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

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

.page-news__faq-answer p {
    margin: 0;
    color: #e0e0e0;
}

/* Call to Action Section */
.page-news__cta-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

.page-news__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Subtle background image */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-news__hero-title {
        font-size: 2.5em;
    }

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

@media (max-width: 768px) {
    .page-news {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-news__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

    .page-news__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-news__hero-cta,
    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }

    .page-news__btn-primary,
    .page-news__btn-secondary,
    .page-news__btn-promo,
    .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;
        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__section-title {
        font-size: 1.8em;
    }

    .page-news__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-news__news-grid,
    .page-news__promo-list,
    .page-news__update-list,
    .page-news__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news__news-card,
    .page-news__promo-item,
    .page-news__update-item,
    .page-news__tips-item {
        margin: 0 15px; /* Add horizontal margin for cards/items */
    }

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

    .page-news__card-title {
        font-size: 1.3em;
    }

    .page-news__promo-title,
    .page-news__update-title,
    .page-news__tips-title {
        font-size: 1.4em;
    }

    /* Images responsiveness */
    .page-news img {
      max-width: 100%;
      height: auto;
      display: block;
    }
    
    .page-news__section,
    .page-news__card,
    .page-news__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }

    .page-news img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    /* Videos responsiveness */
    .page-news video,
    .page-news__video {
      max-width: 100%;
      width: 100%;
      height: auto;
      display: block;
    }
    
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
      overflow: hidden;
    }
    
    .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__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-news__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
    
    /* FAQ Section */
    .page-news__faq-list {
        margin: 30px 15px 0 15px; /* Add horizontal margin */
    }

    .page-news__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

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

    .page-news__cta-section {
        padding: 60px 0;
    }
}

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

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

    .page-news__hero-cta,
    .page-news__cta-buttons {
        gap: 10px;
    }

    .page-news__btn-primary,
    .page-news__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}