/* style/news.css */

/* --- General Styles for page-news scope --- */
.page-news {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color, #333333); /* Default text color, adjusted by smart contrast */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default */
}

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

.page-news__section-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand color */
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.3;
}

.page-news__section-title--white {
    color: #ffffff;
}

.page-news__section-description {
    font-size: 1.15em;
    color: #555555;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.page-news__section-description--white {
    color: #f0f0f0;
}

/* --- Buttons --- */
a.page-news__btn-primary,
a.page-news__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap for long buttons */
    word-wrap: break-word; /* Ensure text breaks within button */
    cursor: pointer;
}

a.page-news__btn-primary {
    background-color: #26A9E0; /* Brand primary */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

a.page-news__btn-primary:hover {
    background-color: #1a8cc2;
    border-color: #1a8cc2;
    transform: translateY(-2px);
}

a.page-news__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary */
    border: 2px solid #26A9E0;
    margin-left: 20px;
}

a.page-news__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8cc2;
    border-color: #1a8cc2;
    transform: translateY(-2px);
}

.page-news__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

/* --- Hero Section --- */
.page-news__hero-section {
    position: relative;
    padding: 120px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 700px;
    background-color: #26A9E0; /* Dark background for hero */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-news__hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
}

.page-news__main-title {
    font-size: 4.2em;
    margin-bottom: 25px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.page-news__intro-text {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Latest Articles Section --- */
.page-news__latest-articles {
    padding: 100px 0;
    background-color: #f8faff; /* Very light background */
    color: #333333;
}

.page-news__article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.page-news__article-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-news__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-news__article-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__article-content {
    padding: 25px;
    flex-grow: 1; /* Allows content to expand */
    display: flex;
    flex-direction: column;
}

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

.page-news__article-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__article-title a:hover {
    color: #1a8cc2;
}

.page-news__article-meta {
    font-size: 0.95em;
    color: #888888;
    margin-bottom: 18px;
}

.page-news__article-summary {
    font-size: 1.05em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* Push read more to bottom */
    line-height: 1.7;
}

a.page-news__read-more {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-top: auto; /* Aligns to bottom */
    font-size: 1em;
}

a.page-news__read-more:hover {
    color: #1a8cc2;
    transform: translateX(5px);
}

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

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

/* --- Video Section --- */
.page-news__video-section {
    position: relative;
    padding: 100px 0;
    background-color: #26A9E0; /* Dark background */
    color: #ffffff;
    text-align: center;
}

.page-news__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 50px auto;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Indicate it's clickable */
}

.page-news__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allow click through to video element */
}

a.page-news__video-play-button {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #26A9E0;
    font-size: 2.5em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    pointer-events: auto; /* Make button clickable */
    text-decoration: none;
}

a.page-news__video-play-button:hover {
    background-color: #ffffff;
    transform: scale(1.15);
}

.page-news__video-play-button svg {
    width: 45px;
    height: 45px;
    margin-left: 8px; /* Adjust for play icon triangle */
}

.page-news__video-caption {
    margin-top: 25px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-news__video-caption--white {
    color: #f0f0f0;
}

/* --- Sports Updates Section --- */
.page-news__sports-updates {
    padding: 100px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

.page-news__sport-card {
    background-color: #f9f9fc;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-news__sport-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-news__sport-title {
    font-size: 1.4em;
    margin: 20px 20px 8px 20px;
    font-weight: bold;
}

.page-news__sport-title a {
    color: #26A9E0;
    text-decoration: none;
}
.page-news__sport-title a:hover {
    color: #1a8cc2;
}

.page-news__sport-meta {
    font-size: 0.9em;
    color: #888888;
    margin: 0 20px 12px 20px;
}

.page-news__sport-text {
    font-size: 1em;
    color: #555555;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
    line-height: 1.7;
}

/* --- Promotions Section --- */
.page-news__promotions-section {
    padding: 100px 0;
    background-color: #26A9E0; /* Dark background */
    color: #ffffff;
}

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

.page-news__promo-card {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white */
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__promo-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-news__promo-title {
    font-size: 1.4em;
    margin: 20px 20px 8px 20px;
    font-weight: bold;
}

.page-news__promo-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-news__promo-title a:hover {
    color: #f0f0f0;
}

.page-news__promo-text {
    font-size: 1em;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
    line-height: 1.7;
}

/* --- FAQ Section --- */
.page-news__faq-section {
    padding: 100px 0;
    background-color: #f8faff; /* Light background */
    color: #333333;
}

.page-news__faq-list {
    max-width: 960px;
    margin: 50px auto 0 auto;
    border-top: 1px solid #e0e0e0;
}

.page-news__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-news__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-news__faq-heading {
    margin: 0;
    font-size: 1em; /* Adjust to match parent font-size */
    color: #333333;
}

.page-news__faq-toggle {
    font-size: 1.6em;
    line-height: 1;
    width: 35px;
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #26A9E0;
}

.page-news__faq-item.active .page-news__faq-toggle {
    transform: rotate(45deg); /* Plus becomes an X */
    color: #EA7C07; /* Highlight active toggle */
}

.page-news__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Padding for text inside, not for max-height transition */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: #555555;
    line-height: 1.8;
    font-size: 1.05em;
}

.page-news__faq-item.active .page-news__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 15px 25px 0; /* Adjust padding for expanded state */
}

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

.page-news__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-news__faq-answer a:hover {
    color: #1a8cc2;
}

/* --- Contact CTA Section --- */
.page-news__contact-cta {
    padding: 100px 0;
    background-color: #26A9E0; /* Brand primary dark background */
    color: #ffffff;
    text-align: center;
}

.page-news__cta-content {
    max-width: 900px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-news__main-title {
        font-size: 3.5em;
    }
    .page-news__intro-text {
        font-size: 1.3em;
    }
    .page-news__section-title {
        font-size: 2.5em;
    }
    .page-news__section-description {
        font-size: 1.05em;
    }
    .page-news__article-title, .page-news__sport-title, .page-news__promo-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-news__hero-section {
        padding: 80px 15px;
        min-height: 550px;
    }
    .page-news__main-title {
        font-size: 2.8em;
    }
    .page-news__intro-text {
        font-size: 1em;
    }

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

    .page-news__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    a.page-news__btn-primary,
    a.page-news__btn-secondary {
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 1em;
    }

    .page-news__latest-articles, .page-news__sports-updates, .page-news__promotions-section, .page-news__faq-section, .page-news__contact-cta {
        padding: 60px 0;
    }

    .page-news__article-grid,
    .page-news__sport-grid,
    .page-news__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-news__video-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile video section */
    }
    .page-news__video-wrapper {
        margin: 30px auto;
        padding: 0 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    .page-news video,
    .page-news__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    a.page-news__video-play-button {
        width: 70px;
        height: 70px;
        font-size: 2em;
    }
    .page-news__video-play-button svg {
        width: 35px;
        height: 35px;
        margin-left: 5px;
    }

    /* All images in content area */
    .page-news img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure containers for images/videos are also responsive */
    .page-news__section,
    .page-news__card,
    .page-news__container,
    .page-news__article-card,
    .page-news__sport-card,
    .page-news__promo-card,
    .page-news__cta-buttons,
    .page-news__video-section,
    .page-news__video-container,
    .page-news__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Adjust padding for sections to prevent content sticking to edges */
    .page-news__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-news__faq-list {
        margin-left: 0;
        margin-right: 0;
    }
    .page-news__faq-answer {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__faq-item.active .page-news__faq-answer {
        padding-left: 0;
        padding-right: 0;
    }
    .page-news__article-content, .page-news__sport-content, .page-news__promo-content {
        padding: 15px;
    }
    .page-news__sport-title, .page-news__promo-title {
        margin: 15px 15px 8px 15px;
    }
    .page-news__sport-meta, .page-news__promo-meta {
        margin: 0 15px 10px 15px;
    }
    .page-news__sport-text, .page-news__promo-text {
        padding: 0 15px 15px 15px;
    }
}

/* --- Color Contrast & Smart Backgrounds --- */
/* Assume body background is light from shared.css (var(--background-color, #ffffff))
   so default text color is dark (#333333) */

.page-news {
    color: #333333; /* Default text color for light backgrounds */
}

.page-news__dark-bg, .page-news__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Ensure text in cards is readable */
.page-news__article-card,
.page-news__sport-card {
    color: #333333; /* Dark text on light card background */
    background-color: #ffffff;
}

.page-news__promo-card {
    color: #ffffff; /* White text on semi-transparent brand color card background */
    background-color: rgba(255, 255, 255, 0.15);
}

/* Specific text elements for contrast */
.page-news p,
.page-news li {
    color: #555555; /* A slightly softer dark for paragraphs */
}
.page-news__main-title,
.page-news__intro-text {
    color: #ffffff; /* White text on hero's dark background */
}
.page-news__section-title {
    color: #26A9E0; /* Brand color on light background */
}
.page-news__section-title--white {
    color: #ffffff; /* White on dark background */
}
.page-news__faq-question,
.page-news__faq-heading {
    color: #333333; /* Dark text on light background */
}

/* Ensure links in dark sections are visible */
.page-news__promo-title a {
    color: #ffffff;
}
.page-news__promo-title a:hover {
    color: #f0f0f0;
}

/* Emergency fix classes (should not be needed if above is correctly applied) */
.page-news__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-news__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}