/* style/resources.css */

/* Base styles for the page content */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Inherit from body or shared */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)); /* Dark overlay for text readability */
    z-index: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-resources__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* General Section Styling */
.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

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

.page-resources__dark-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    padding: 60px 0;
}

/* Content Layout (Image and Text) */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-resources__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-resources__text-content {
    flex: 1;
    min-width: 300px;
}

.page-resources__text-content p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-resources__text-content h2,
.page-resources__text-content h3 {
    color: #FFD700;
    margin-bottom: 20px;
}

.page-resources__image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Lists */
.page-resources__strategy-list,
.page-resources__odds-list,
.page-resources__security-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.page-resources__strategy-list li,
.page-resources__odds-list li,
.page-resources__security-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 4px solid #FFD700;
    border-radius: 4px;
    color: #f0f0f0;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
    background-color: #FFD700;
    color: #121212; /* Dark text on gold button for contrast */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #121212;
}

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

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212;
}

.page-resources__btn-inline {
    margin-top: 20px;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark bg */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 215, 0, 0.1); /* Light gold tint for question header */
    color: #FFD700; /* Gold text for question */
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-resources__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit; /* Inherit color from parent */
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700; /* Gold for toggle icon */
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.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 !important;
    padding-top: 0 !important; /* Adjust padding to look natural */
}

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

/* Call to Action Section */
.page-resources__cta-section {
    background-color: #8B0000; /* Dark red background for CTA */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for CTA title */
    margin-bottom: 20px;
}

.page-resources__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }

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

    .page-resources__cta-title {
        font-size: 2.2em;
    }

    .page-resources__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-resources__content-wrapper--reverse {
        flex-direction: column; /* Keep consistent column flow */
    }

    .page-resources__text-content {
        order: 2;
    }

    .page-resources__image-container {
        order: 1;
        margin-bottom: 20px;
    }
}

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

    /* Important: Mobile responsiveness for images, videos, and buttons */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    /* Ensure all content containers are responsive and prevent overflow */
    .page-resources__hero-section,
    .page-resources__intro-section,
    .page-resources__strategy-section,
    .page-resources__how-to-read-section,
    .page-resources__security-section,
    .page-resources__faq-section,
    .page-resources__cta-section,
    .page-resources__container,
    .page-resources__content-wrapper,
    .page-resources__image-container,
    .page-resources__text-content,
    .page-resources__hero-cta,
    .page-resources__cta-buttons,
    .page-resources__faq-list,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Specific padding adjustments for sections that have container padding */
    .page-resources__intro-section,
    .page-resources__strategy-section,
    .page-resources__how-to-read-section,
    .page-resources__security-section,
    .page-resources__faq-section,
    .page-resources__cta-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }


    .page-resources__hero-section {
        height: 400px;
    }

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

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

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__cta-title {
        font-size: 1.8em;
    }

    .page-resources__hero-cta,
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
    }

    .page-resources__faq-question {
        padding: 15px;
    }

    .page-resources__faq-question h3 {
        font-size: 1em;
    }

    .page-resources__faq-answer {
        padding: 0 15px;
    }

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