/* style/resources-betting-strategies.css */

/* Base styles for the page content */
.page-resources-betting-strategies {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background is white */
}

/* Fixed Header Offset */
.page-resources-betting-strategies__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #26A9E0, #4CAF50); /* Example gradient */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-resources-betting-strategies__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
}

.page-resources-betting-strategies__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-resources-betting-strategies__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-resources-betting-strategies__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

.page-resources-betting-strategies__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
}

.page-resources-betting-strategies__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-resources-betting-strategies__subsection-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources-betting-strategies__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

/* Image-text layout */
.page-resources-betting-strategies__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-resources-betting-strategies__image-text-layout--reversed {
    flex-direction: row-reverse;
}

.page-resources-betting-strategies__image-text-layout .page-resources-betting-strategies__content-image {
    flex: 1;
    min-width: 300px; /* Minimum width for image before wrapping */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure image is responsive */
    height: auto;
    display: block;
}

.page-resources-betting-strategies__image-text-layout .page-resources-betting-strategies__text-block {
    flex: 1;
    min-width: 300px; /* Minimum width for text before wrapping */
}

/* Cards for game strategies */
.page-resources-betting-strategies__game-strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-resources-betting-strategies__card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

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

.page-resources-betting-strategies__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

/* Call to Action Buttons */
.page-resources-betting-strategies__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    margin: 10px;
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-betting-strategies__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources-betting-strategies__btn-primary:hover {
    background-color: #1a7bb0;
    border-color: #1a7bb0;
}

.page-resources-betting-strategies__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-betting-strategies__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7bb0;
    border-color: #1a7bb0;
}

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

.page-resources-betting-strategies__cta-buttons--center {
    justify-content: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-resources-betting-strategies__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-betting-strategies__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-resources-betting-strategies__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker for details/summary */
}

.page-resources-betting-strategies__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-resources-betting-strategies__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-resources-betting-strategies__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources-betting-strategies__faq-item[open] .page-resources-betting-strategies__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X or minus */
}

.page-resources-betting-strategies__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.05em;
    color: #555555;
    border-top: 1px solid #e0e0e0;
    margin-top: -1px; /* Overlap border */
}

/* Global image styles - ensure no small icons */
.page-resources-betting-strategies img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    /* No filter properties to change color */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-resources-betting-strategies__hero-title {
        font-size: 2.8em;
    }
    .page-resources-betting-strategies__section-title {
        font-size: 2em;
    }
    .page-resources-betting-strategies__subsection-title {
        font-size: 1.6em;
    }
    .page-resources-betting-strategies__hero-image-wrapper {
      opacity: 0.15;
    }
}

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

    /* Fixed Header Offset for mobile */
    .page-resources-betting-strategies__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-resources-betting-strategies__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-resources-betting-strategies__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources-betting-strategies__content-area {
        padding: 40px 15px;
    }

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

    .page-resources-betting-strategies__subsection-title {
        font-size: 1.4em;
        margin-top: 25px;
    }

    .page-resources-betting-strategies__image-text-layout {
        flex-direction: column;
        gap: 30px;
    }

    .page-resources-betting-strategies__image-text-layout--reversed {
        flex-direction: column; /* Revert to column for mobile */
    }

    .page-resources-betting-strategies__game-strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-betting-strategies__card {
        padding: 25px;
    }

    .page-resources-betting-strategies__card-title {
        font-size: 1.3em;
    }

    /* Mobile image responsiveness */
    .page-resources-betting-strategies img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
    }
    
    /* Ensure containers with images are responsive */
    .page-resources-betting-strategies__section,
    .page-resources-betting-strategies__card,
    .page-resources-betting-strategies__container,
    .page-resources-betting-strategies__image-text-layout {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px; /* Add padding to prevent content touching edges */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Mobile button responsiveness */
    .page-resources-betting-strategies__cta-button,
    .page-resources-betting-strategies__btn-primary,
    .page-resources-betting-strategies__btn-secondary,
    .page-resources-betting-strategies a[class*="button"],
    .page-resources-betting-strategies a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margin for stacking */
        padding-left: 15px; /* Ensure button text has padding */
        padding-right: 15px;
    }
    
    .page-resources-betting-strategies__cta-buttons,
    .page-resources-betting-strategies__button-group,
    .page-resources-betting-strategies__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-resources-betting-strategies__faq-item summary {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-resources-betting-strategies__faq-answer {
        padding: 0 15px 15px 15px;
    }
}