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

:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #1A202C;
    --border-color: #e0e0e0;
}

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

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

/* Hero Section */
.page-resources-game-strategy__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    overflow: hidden;
    color: var(--text-light);
    background-color: var(--background-dark);
}

.page-resources-game-strategy__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-resources-game-strategy__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Slightly dim image for text readability */
}

.page-resources-game-strategy__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-resources-game-strategy__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-resources-game-strategy__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* General Section Styling */
.page-resources-game-strategy__intro-section,
.page-resources-game-strategy__strategy-overview-section,
.page-resources-game-strategy__specific-strategies-section,
.page-resources-game-strategy__promotions-cta,
.page-resources-game-strategy__responsible-gaming-section,
.page-resources-game-strategy__faq-section,
.page-resources-game-strategy__final-cta {
    padding: 60px 0;
    box-sizing: border-box;
}

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

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

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

.page-resources-game-strategy__dark-bg .page-resources-game-strategy__section-title {
    color: var(--secondary-color);
}

.page-resources-game-strategy__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-resources-game-strategy__btn-primary,
.page-resources-game-strategy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-game-strategy__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources-game-strategy__btn-primary:hover {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
}

.page-resources-game-strategy__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources-game-strategy__dark-bg .page-resources-game-strategy__btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.page-resources-game-strategy__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources-game-strategy__dark-bg .page-resources-game-strategy__btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-resources-game-strategy__cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.page-resources-game-strategy__card {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.page-resources-game-strategy__card:hover {
    transform: translateY(-5px);
}

.page-resources-game-strategy__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-game-strategy__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-game-strategy__card-text {
    font-size: 1em;
    color: var(--text-dark);
}

/* Specific Game Strategies */
.page-resources-game-strategy__game-strategy-item {
    margin-bottom: 60px;
}

.page-resources-game-strategy__game-title {
    font-size: 2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.page-resources-game-strategy__game-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-resources-game-strategy__game-strategy-item--reverse .page-resources-game-strategy__game-content-wrapper {
    flex-direction: row-reverse;
}

.page-resources-game-strategy__game-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-resources-game-strategy__game-text p {
    text-align: left;
    margin-bottom: 15px;
}

.page-resources-game-strategy__game-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-resources-game-strategy__game-text li {
    margin-bottom: 5px;
}

.page-resources-game-strategy__game-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Promotions CTA */
.page-resources-game-strategy__promotions-cta .page-resources-game-strategy__section-title,
.page-resources-game-strategy__promotions-cta .page-resources-game-strategy__paragraph {
    color: var(--text-light);
}

.page-resources-game-strategy__promotions-image {
    display: block;
    margin: 30px auto;
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsible Gaming */
.page-resources-game-strategy__responsible-gaming-section .page-resources-game-strategy__section-title,
.page-resources-game-strategy__responsible-gaming-section .page-resources-game-strategy__paragraph {
    color: var(--text-dark);
}

.page-resources-game-strategy__responsible-gaming-image {
    display: block;
    margin: 30px auto;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-resources-game-strategy__faq-section {
    background-color: #f8f8f8;
    padding: 80px 0;
}

.page-resources-game-strategy__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

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

.page-resources-game-strategy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--background-light);
    transition: background-color 0.3s ease;
}

.page-resources-game-strategy__faq-question:hover {
    background-color: #f0f0f0;
}

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

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

.page-resources-game-strategy__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-game-strategy__faq-item.active .page-resources-game-strategy__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px;
}

.page-resources-game-strategy__faq-answer p {
    margin-bottom: 0;
    text-align: left;
}

/* Final CTA */
.page-resources-game-strategy__final-cta .page-resources-game-strategy__section-title,
.page-resources-game-strategy__final-cta .page-resources-game-strategy__paragraph {
    color: var(--text-light);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-game-strategy__hero-title {
        font-size: 3em;
    }
    .page-resources-game-strategy__section-title {
        font-size: 2em;
    }
    .page-resources-game-strategy__game-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-resources-game-strategy__game-strategy-item--reverse .page-resources-game-strategy__game-content-wrapper {
        flex-direction: column;
    }
    .page-resources-game-strategy__game-text p,
    .page-resources-game-strategy__game-text ul {
        text-align: center;
    }
    .page-resources-game-strategy__game-text ul {
        margin: 0 auto 15px;
        display: inline-block;
        text-align: left;
    }
}

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

    .page-resources-game-strategy__hero-section {
        min-height: 500px;
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-game-strategy__hero-title {
        font-size: 2.5em;
    }

    .page-resources-game-strategy__hero-description {
        font-size: 1em;
    }

    .page-resources-game-strategy__intro-section,
    .page-resources-game-strategy__strategy-overview-section,
    .page-resources-game-strategy__specific-strategies-section,
    .page-resources-game-strategy__promotions-cta,
    .page-resources-game-strategy__responsible-gaming-section,
    .page-resources-game-strategy__faq-section,
    .page-resources-game-strategy__final-cta {
        padding: 40px 0;
    }

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

    .page-resources-game-strategy__paragraph {
        font-size: 1em;
    }

    .page-resources-game-strategy__btn-primary,
    .page-resources-game-strategy__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        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;
    }

    .page-resources-game-strategy__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-game-strategy__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-resources-game-strategy__game-title {
        font-size: 1.5em;
    }

    .page-resources-game-strategy__game-content-wrapper {
        gap: 20px;
    }

    .page-resources-game-strategy__game-image {
        max-width: 100%;
        height: auto;
        width: 100%;
    }

    .page-resources-game-strategy__promotions-image,
    .page-resources-game-strategy__responsible-gaming-image {
        max-width: 100%;
        height: auto;
        width: 100%;
    }

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

    .page-resources-game-strategy__section,
    .page-resources-game-strategy__card,
    .page-resources-game-strategy__container,
    .page-resources-game-strategy__hero-content,
    .page-resources-game-strategy__game-text,
    .page-resources-game-strategy__game-content-wrapper,
    .page-resources-game-strategy__faq-list,
    .page-resources-game-strategy__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-game-strategy__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-resources-game-strategy__faq-answer {
        padding: 0 15px;
    }
    .page-resources-game-strategy__faq-item.active .page-resources-game-strategy__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure all content area images are at least 200px wide */
.page-resources-game-strategy__content-area img,
.page-resources-game-strategy__card-image,
.page-resources-game-strategy__game-image,
.page-resources-game-strategy__promotions-image,
.page-resources-game-strategy__responsible-gaming-image {
    min-width: 200px;
    min-height: 200px;
}