/* style/resources.css */

/* Base styles for the page-resources scope */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the dark body background */
    background-color: var(--black-color); /* Inherit from shared.css, assuming it's dark */
}

/* Fixed header spacing - apply to the first main content section or .page-resources */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px; /* Minimum height for hero section */
}

.page-resources__hero-content {
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
}

.page-resources__subsection-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark background */
}

.page-resources__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark background */
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Button styles */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-resources__btn-primary:hover {
    background-color: #1a7eb3;
    border-color: #1a7eb3;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block; /* Ensure no extra space below image */
    margin: 0 auto;
}

/* Section specific styles */
.page-resources__introduction-section,
.page-resources__betting-guide-section,
.page-resources__news-updates-section,
.page-resources__cta-section {
    background-color: #0d0d0d; /* Lighter dark background for contrast */
    color: #f0f0f0; /* Light text */
}

.page-resources__odds-analysis-section,
.page-resources__casino-strategy-section,
.page-resources__faq-section {
    background-color: var(--black-color); /* Darker background */
    color: #ffffff; /* White text */
}

/* Video section styles */
.page-resources__video-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #1a1a1a; /* Slightly different dark background */
}

.page-resources__video-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 20px auto;
    background-color: #000;
    border-radius: 8px;
}

.page-resources__video-link {
    display: block; /* Make the entire wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure link is above video controls */
}

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

.page-resources__video-caption {
    font-style: italic;
    color: #cccccc;
    font-size: 0.9em;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible item background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-resources__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

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

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

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0; /* Adjust padding to avoid double padding */
}

.page-resources__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-resources__cta-bottom {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-resources__hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: calc(100% - 30px) !important; /* Full width with padding */
        max-width: 300px !important; /* Max width for readability */
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Space between stacked buttons */
        margin-left: 15px; /* For overall container padding */
        margin-right: 15px; /* For overall container padding */
    }

    .page-resources__container {
        padding: 20px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-resources__subsection-title {
        font-size: 1.4em;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .page-resources__text-block,
    .page-resources__list-item,
    .page-resources__faq-title,
    .page-resources__faq-answer p {
        font-size: 1em;
    }

    .page-resources__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video section mobile adaptations */
    .page-resources__video-section {
        padding: 30px 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-resources__video-title {
        font-size: 1.5em;
    }

    .page-resources__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-resources__video {
        width: 100% !important;
        height: 100% !important;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    
    .page-resources__cta-bottom {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .page-resources__faq-question {
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}