/* style/resources-betting-guide.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --accent-color-login: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

.page-resources-betting-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--background-color); /* Matches body background */
}

.page-resources-betting-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-resources-betting-guide__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0; /* Adjust for header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    background-color: var(--primary-color); /* Example dark background */
    padding-top: calc(var(--header-offset, 120px) + 60px); /* Ensure content is below header */
}

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

.page-resources-betting-guide__hero-section > .page-resources-betting-guide__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-resources-betting-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-betting-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.page-resources-betting-guide__btn-primary,
.page-resources-betting-guide__btn-secondary {
    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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-resources-betting-guide__btn-primary {
    background-color: var(--accent-color-login);
    color: var(--text-light);
    border: 2px solid var(--accent-color-login);
}

.page-resources-betting-guide__btn-primary:hover {
    background-color: darken(var(--accent-color-login), 10%);
    border-color: darken(var(--accent-color-login), 10%);
}

.page-resources-betting-guide__btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-resources-betting-guide__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-resources-betting-guide__content-area {
    padding: 60px 0;
    background-color: var(--background-color); /* Light background */
    color: var(--text-dark);
}

.page-resources-betting-guide__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.page-resources-betting-guide__sub-title {
    font-size: 1.8em;
    color: var(--black-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-betting-guide__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-resources-betting-guide__unordered-list,
.page-resources-betting-guide__ordered-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources-betting-guide__unordered-list li,
.page-resources-betting-guide__ordered-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.page-resources-betting-guide__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section Styling */
.page-resources-betting-guide__faq-list {
    margin-top: 40px;
}

.page-resources-betting-guide__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.page-resources-betting-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-resources-betting-guide__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-betting-guide__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

.page-resources-betting-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-betting-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-dark);
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-resources-betting-guide__faq-answer .page-resources-betting-guide__paragraph {
    margin-bottom: 0;
}

.page-resources-betting-guide__cta-buttons--bottom {
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-betting-guide__hero-title {
        font-size: 2.8em;
    }
    .page-resources-betting-guide__hero-description {
        font-size: 1.1em;
    }
    .page-resources-betting-guide__section-title {
        font-size: 2em;
    }
    .page-resources-betting-guide__sub-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-resources-betting-guide__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header */
    }
    .page-resources-betting-guide__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-resources-betting-guide__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources-betting-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-betting-guide__btn-primary,
    .page-resources-betting-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-betting-guide__content-area {
        padding: 40px 0;
    }
    .page-resources-betting-guide__section-title {
        font-size: 1.8em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-resources-betting-guide__sub-title {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-resources-betting-guide__paragraph,
    .page-resources-betting-guide__unordered-list li,
    .page-resources-betting-guide__ordered-list li {
        font-size: 1em;
    }
    .page-resources-betting-guide__image {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources-betting-guide__faq-question {
        padding: 15px;
    }
    .page-resources-betting-guide__faq-title {
        font-size: 1.1em;
    }
    .page-resources-betting-guide__faq-answer {
        padding: 0 15px;
    }
    .page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
        padding: 15px;
    }

    /* Ensure all image containers are responsive */
    .page-resources-betting-guide__container, 
    .page-resources-betting-guide__hero-section,
    .page-resources-betting-guide__content-area,
    .page-resources-betting-guide__cta-buttons,
    .page-resources-betting-guide__faq-list,
    .page-resources-betting-guide__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources-betting-guide__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure all images are responsive by default */
.page-resources-betting-guide img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Global image/video container rules for mobile overflow prevention */
.page-resources-betting-guide__section,
.page-resources-betting-guide__card,
.page-resources-betting-guide__container,
.page-resources-betting-guide__video-section,
.page-resources-betting-guide__video-container,
.page-resources-betting-guide__video-wrapper,
.page-resources-betting-guide__cta-buttons,
.page-resources-betting-guide__button-group,
.page-resources-betting-guide__btn-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Specific rule for video elements */
.page-resources-betting-guide video,
.page-resources-betting-guide__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-resources-betting-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-betting-guide video,
    .page-resources-betting-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-betting-guide__section,
    .page-resources-betting-guide__card,
    .page-resources-betting-guide__container,
    .page-resources-betting-guide__video-section,
    .page-resources-betting-guide__video-container,
    .page-resources-betting-guide__video-wrapper,
    .page-resources-betting-guide__cta-buttons,
    .page-resources-betting-guide__button-group,
    .page-resources-betting-guide__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources-betting-guide__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}