/* style/news-match-analysis.css */

/* Base styles for the page content */
.page-news-match-analysis {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: var(--secondary-color); /* Inherit from shared.css, expected to be dark */
}

/* Ensure padding-top for fixed header offset */
.page-news-match-analysis__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Apply header offset here */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
    background-color: var(--secondary-color); /* Dark background for hero */
}

.page-news-match-analysis__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-match-analysis__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-news-match-analysis__main-title {
    font-size: 3.2em;
    color: var(--primary-color); /* Golden color for main title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news-match-analysis__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-news-match-analysis__section {
    padding: 60px 0;
}

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

.page-news-match-analysis__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-news-match-analysis__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-news-match-analysis__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-news-match-analysis__link:hover {
    text-decoration: underline;
}

.page-news-match-analysis__highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Buttons */
.page-news-match-analysis__btn-primary,
.page-news-match-analysis__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-news-match-analysis__btn-primary {
    background-color: var(--primary-color);
    color: #1A1A1A; /* Dark text for golden background */
    border: 2px solid var(--primary-color);
    margin-right: 15px;
}

.page-news-match-analysis__btn-primary:hover {
    background-color: #e6b800;
    border-color: #e6b800;
    color: #1A1A1A;
}

.page-news-match-analysis__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-news-match-analysis__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #1A1A1A;
}

/* Section specific styles */
.page-news-match-analysis__dark-bg {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.page-news-match-analysis__light-bg {
    background-color: #2a2a2a; /* Slightly lighter dark for cards on dark sections */
    color: #ffffff;
}

.page-news-match-analysis__about-analysis {
    background-color: #1A1A1A;
}

.page-news-match-analysis__key-factors {
    background-color: #1A1A1A;
}

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

.page-news-match-analysis__card {
    background-color: #2a2a2a; /* Darker card background for contrast on secondary-color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff; /* Light text for dark card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-news-match-analysis__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-news-match-analysis__card-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-news-match-analysis__prediction-methods {
    background-color: #1A1A1A;
}

.page-news-match-analysis__flex-reverse {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-direction: row-reverse; /* Image on left, text on right */
}

.page-news-match-analysis__flex {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-news-match-analysis__content-block {
    flex: 1;
}

.page-news-match-analysis__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px; /* Ensure minimum size */
}

.page-news-match-analysis__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
}

.page-news-match-analysis__image--center {
    margin: 40px auto 0 auto;
    display: block;
    max-width: 800px; /* Limit width for center image */
}

.page-news-match-analysis__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-news-match-analysis__list-item {
    background-color: #2a2a2a;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-news-match-analysis__list-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-news-match-analysis__list-text {
    color: #e0e0e0;
}

.page-news-match-analysis__ordered-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 20px;
}

.page-news-match-analysis__ordered-list .page-news-match-analysis__list-item {
    list-style: decimal; /* Override for ordered list */
    background-color: transparent; /* No background for ordered list items */
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-news-match-analysis__ordered-list .page-news-match-analysis__list-title {
    margin-top: 0;
}

.page-news-match-analysis__faq-section {
    background-color: #1A1A1A;
}

.page-news-match-analysis__faq-list {
    margin-top: 30px;
}

.page-news-match-analysis__faq-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news-match-analysis__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #333333; /* Slightly lighter for question area */
    color: #ffffff;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-news-match-analysis__faq-question:hover {
    background-color: #444444;
}

.page-news-match-analysis__faq-title {
    font-size: 1.2em;
    color: var(--primary-color);
    margin: 0;
}

.page-news-match-analysis__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-news-match-analysis__faq-item.active .page-news-match-analysis__faq-toggle {
    transform: rotate(45deg); /* Change + to X-like or - */
}

.page-news-match-analysis__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #2a2a2a;
    color: #e0e0e0;
}

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

.page-news-match-analysis__cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color); /* Dark background for CTA */
}

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

.page-news-match-analysis__cta-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-news-match-analysis__hero-content {
        max-width: 700px;
    }

    .page-news-match-analysis__main-title {
        font-size: 2.8em;
    }

    .page-news-match-analysis__intro-text {
        font-size: 1.1em;
    }

    .page-news-match-analysis__section-title {
        font-size: 2em;
    }

    .page-news-match-analysis__flex-reverse,
    .page-news-match-analysis__flex {
        flex-direction: column;
    }

    .page-news-match-analysis__image-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-news-match-analysis__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }

    .page-news-match-analysis__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-news-match-analysis__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-news-match-analysis__btn-primary,
    .page-news-match-analysis__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        margin-right: 0;
        width: 100% !important;
        max-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-match-analysis__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    
    .page-news-match-analysis__section {
        padding: 40px 0;
    }

    .page-news-match-analysis__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-news-match-analysis__paragraph {
        font-size: 0.95em;
    }

    .page-news-match-analysis__grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-news-match-analysis__card {
        padding: 20px;
    }

    .page-news-match-analysis__card-title {
        font-size: 1.3em;
    }

    .page-news-match-analysis__list-title {
        font-size: 1.1em;
    }

    .page-news-match-analysis__faq-question {
        padding: 15px 20px;
    }

    .page-news-match-analysis__faq-title {
        font-size: 1.1em;
    }
    
    /* Mobile image responsiveness */
    .page-news-match-analysis img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any) */
    .page-news-match-analysis video,
    .page-news-match-analysis__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video/Image container responsive */
    .page-news-match-analysis__section,
    .page-news-match-analysis__card,
    .page-news-match-analysis__container,
    .page-news-match-analysis__image-wrapper,
    .page-news-match-analysis__video-section,
    .page-news-match-analysis__video-container,
    .page-news-match-analysis__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }
    
    /* Specific padding for hero/video section if needed on mobile */
    .page-news-match-analysis__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }
}