/* style/resources-betting-guide.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --button-text-color: #FFFF00;
    --background-light: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
}

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

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

/* Hero Section */
.page-resources-betting-guide__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.page-resources-betting-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
}

.page-resources-betting-guide__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--secondary-color);
}

.page-resources-betting-guide__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources-betting-guide__btn-primary {
    background-color: var(--register-button-bg);
    color: var(--button-text-color);
    border: 2px solid var(--register-button-bg);
}

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

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

.page-resources-betting-guide__btn-secondary:hover {
    background-color: var(--button-text-color);
    color: var(--login-button-bg);
}

.page-resources-betting-guide__text-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-resources-betting-guide__text-link:hover {
    color: darken(var(--primary-color), 10%);
}

/* Content Sections */
.page-resources-betting-guide__content-section {
    padding: 60px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

.page-resources-betting-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.page-resources-betting-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.page-resources-betting-guide__image {
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.page-resources-betting-guide__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-resources-betting-guide__list-item {
    margin-bottom: 10px;
}

/* Game Types Grid */
.page-resources-betting-guide__game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-betting-guide__game-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
    color: var(--text-dark);
}

.page-resources-betting-guide__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-betting-guide__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-resources-betting-guide__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-resources-betting-guide__card-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-resources-betting-guide__card-title a:hover {
    text-decoration: underline;
}

.page-resources-betting-guide__card-description {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 15px;
    margin-bottom: 15px;
}

.page-resources-betting-guide__card-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-betting-guide__card-link:hover {
    background-color: darken(var(--primary-color), 10%);
}

/* Video Section */
.page-resources-betting-guide__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.page-resources-betting-guide__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
}

.page-resources-betting-guide__video-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: var(--text-dark);
    font-size: 0.95em;
}

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

.page-resources-betting-guide__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-resources-betting-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-size: 1.2em;
    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-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.page-resources-betting-guide__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-resources-betting-guide__faq-item.active .page-resources-betting-guide__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px;
}

.page-resources-betting-guide__faq-answer p {
    margin-bottom: 15px;
}

/* Final CTA Section */
.page-resources-betting-guide__final-cta {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

/* Color Contrast Fixes (if needed, though primary/secondary should be good) */
.page-resources-betting-guide__dark-bg {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-resources-betting-guide__light-bg {
    background: var(--background-light);
    color: var(--text-dark);
}

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

    .page-resources-betting-guide__section-title {
        font-size: 2em;
    }

    .page-resources-betting-guide__game-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources-betting-guide__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

    .page-resources-betting-guide__hero-title {
        font-size: 2.2em;
    }

    .page-resources-betting-guide__hero-description {
        font-size: 1em;
    }

    .page-resources-betting-guide__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-betting-guide__btn-primary,
    .page-resources-betting-guide__btn-secondary {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-resources-betting-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-betting-guide__sub-title {
        font-size: 1.5em;
    }

    .page-resources-betting-guide__text-block,
    .page-resources-betting-guide__list-item,
    .page-resources-betting-guide__card-description,
    .page-resources-betting-guide__faq-question h3,
    .page-resources-betting-guide__faq-answer p,
    .page-resources-betting-guide__video-caption {
        font-size: 1em;
    }

    /* Mobile image adaptation */
    .page-resources-betting-guide img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video adaptation */
    .page-resources-betting-guide video,
    .page-resources-betting-guide__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure containers with images/videos/buttons do not overflow */
    .page-resources-betting-guide__container,
    .page-resources-betting-guide__game-types-grid,
    .page-resources-betting-guide__video-wrapper,
    .page-resources-betting-guide__hero-buttons,
    .page-resources-betting-guide__cta-buttons,
    .page-resources-betting-guide__final-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-resources-betting-guide__game-card {
        margin: 0 auto;
        width: 100%;
    }

    .page-resources-betting-guide__faq-question,
    .page-resources-betting-guide__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources-betting-guide__hero-title {
        font-size: 1.8em;
    }

    .page-resources-betting-guide__section-title {
        font-size: 1.5em;
    }

    .page-resources-betting-guide__btn-primary,
    .page-resources-betting-guide__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}