/* style/resources-gamebai-strategy.css */

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

/* Container for main content to center and limit width */
.page-resources-gamebai-strategy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-resources-gamebai-strategy__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: #ffffff; /* Ensure text is white on dark background */
}

.page-resources-gamebai-strategy__hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-resources-gamebai-strategy__hero-section .page-resources-gamebai-strategy__container {
    position: relative;
    z-index: 2;
    padding-top: 0; /* Already handled by main padding-top */
}

.page-resources-gamebai-strategy__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF; /* White for contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-resources-gamebai-strategy__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly off-white for description */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-resources-gamebai-strategy__section {
    padding: 60px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-resources-gamebai-strategy__section:nth-of-type(even) {
    background-color: #121220; /* Slightly different dark background for contrast */
}

.page-resources-gamebai-strategy__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for main titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-gamebai-strategy__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-gamebai-strategy__sub-title {
    font-size: 1.8em;
    color: #FFFFFF; /* White for sub-titles */
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.page-resources-gamebai-strategy__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #e0e0e0; /* Off-white for paragraphs */
}

.page-resources-gamebai-strategy__keyword {
    color: #26A9E0; /* Highlight keywords with brand color */
    font-weight: bold;
}

/* Buttons */
.page-resources-gamebai-strategy__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-resources-gamebai-strategy__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources-gamebai-strategy__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

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

.page-resources-gamebai-strategy__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-resources-gamebai-strategy__btn-center {
    display: block;
    margin: 40px auto 0;
    width: fit-content;
    max-width: 90%;
}

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

.page-resources-gamebai-strategy__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text for card content */
}

.page-resources-gamebai-strategy__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-gamebai-strategy__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

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

.page-resources-gamebai-strategy__card-text {
    font-size: 0.95em;
    color: #e0e0e0;
    flex-grow: 1; /* Make text fill available space */
}

/* Strategy Grid */
.page-resources-gamebai-strategy__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-gamebai-strategy__strategy-item {
    background-color: rgba(255, 255, 255, 0.08); /* Consistent card background */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

.page-resources-gamebai-strategy__strategy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-gamebai-strategy__strategy-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px;
}

.page-resources-gamebai-strategy__strategy-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-resources-gamebai-strategy__strategy-text {
    font-size: 1.0em;
    color: #e0e0e0;
}

/* List styles */
.page-resources-gamebai-strategy__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources-gamebai-strategy__list-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for list items */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    font-size: 1.05em;
    color: #e0e0e0;
    display: flex;
    align-items: center;
}

.page-resources-gamebai-strategy__list-item strong {
    color: #26A9E0;
}

/* FAQ Section */
.page-resources-gamebai-strategy__faq-container {
    margin-top: 40px;
}

.page-resources-gamebai-strategy__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-resources-gamebai-strategy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease;
}

.page-resources-gamebai-strategy__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.page-resources-gamebai-strategy__faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: #26A9E0;
}

.page-resources-gamebai-strategy__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFFFF;
    transition: transform 0.3s ease;
}

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

.page-resources-gamebai-strategy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #e0e0e0;
}

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

.page-resources-gamebai-strategy__faq-answer p {
    margin-bottom: 0;
}

/* Bottom CTA Buttons */
.page-resources-gamebai-strategy__cta-buttons--bottom {
    margin-top: 60px;
    margin-bottom: 40px;
}

/* --- Responsive Design --- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    .page-resources-gamebai-strategy__main-title {
        font-size: 2.8em;
    }

    .page-resources-gamebai-strategy__intro-text {
        font-size: 1.2em;
    }

    .page-resources-gamebai-strategy__section-title {
        font-size: 2em;
    }

    .page-resources-gamebai-strategy__sub-title {
        font-size: 1.6em;
    }

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

    .page-resources-gamebai-strategy__strategy-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    .page-resources-gamebai-strategy {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-gamebai-strategy__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }

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

    .page-resources-gamebai-strategy__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__btn-primary,
    .page-resources-gamebai-strategy__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-resources-gamebai-strategy__cta-buttons--bottom {
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__section {
        padding: 40px 0;
    }

    .page-resources-gamebai-strategy__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__sub-title {
        font-size: 1.4em;
        margin-top: 30px;
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__paragraph {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__card {
        padding: 20px;
    }

    .page-resources-gamebai-strategy__card-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-resources-gamebai-strategy__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__strategy-image {
        height: auto;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-resources-gamebai-strategy__list {
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__list-item {
        font-size: 0.95em;
        padding: 12px 15px;
    }

    .page-resources-gamebai-strategy__faq-container {
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__faq-question {
        padding: 15px;
    }

    .page-resources-gamebai-strategy__faq-question h3 {
        font-size: 1.1em;
    }

    .page-resources-gamebai-strategy__faq-answer {
        padding: 0 15px;
    }

    .page-resources-gamebai-strategy__faq-item.active .page-resources-gamebai-strategy__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
    
    /* Ensure all images are responsive and don't overflow */
    .page-resources-gamebai-strategy img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* All containers with images/videos/buttons must also be responsive */
    .page-resources-gamebai-strategy__section,
    .page-resources-gamebai-strategy__card,
    .page-resources-gamebai-strategy__container,
    .page-resources-gamebai-strategy__strategy-item,
    .page-resources-gamebai-strategy__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
    /* Specific padding for sections in mobile to avoid content touching edges */
    .page-resources-gamebai-strategy__section .page-resources-gamebai-strategy__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources-gamebai-strategy__hero-section .page-resources-gamebai-strategy__container {
         padding-left: 15px;
         padding-right: 15px;
    }
    .page-resources-gamebai-strategy__btn-center {
        padding: 0 15px; /* Adjust padding for centered button on mobile */
    }
}

/* Content area images CSS dimensions lower bound (200px) */
.page-resources-gamebai-strategy img {
    min-width: 200px;
    min-height: 200px;
}
/* Override specific smaller images if they exist but must be > 200px */
.page-resources-gamebai-strategy__card-image,
.page-resources-gamebai-strategy__strategy-image {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure no filter is used on images */
.page-resources-gamebai-strategy img {
    filter: none;
}