/* style/resources-x88-app-game-strategies.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --dark-bg-color: #0a0a0a; /* Body background from shared.css */
}

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

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

.page-resources-x88-app-game-strategies__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    padding-top: calc(var(--header-offset, 120px) + 60px); /* Ensure space for fixed header + additional padding */
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-resources-x88-app-game-strategies__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.page-resources-x88-app-game-strategies__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-resources-x88-app-game-strategies__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-x88-app-game-strategies__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources-x88-app-game-strategies__cta-buttons--center {
    margin-top: 50px;
}

.page-resources-x88-app-game-strategies__btn-primary,
.page-resources-x88-app-game-strategies__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;
    text-align: center;
    box-sizing: border-box;
}

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

.page-resources-x88-app-game-strategies__btn-primary:hover {
    background-color: #1e87b3;
    border-color: #1e87b3;
}

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

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

.page-resources-x88-app-game-strategies__content-area {
    padding: 60px 0;
}

.page-resources-x88-app-game-strategies__light-bg {
    background-color: var(--background-color);
    color: var(--text-dark);
}

.page-resources-x88-app-game-strategies__dark-section {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
    color: var(--text-light);
}

.page-resources-x88-app-game-strategies__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

.page-resources-x88-app-game-strategies__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

.page-resources-x88-app-game-strategies__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: inherit;
}

.page-resources-x88-app-game-strategies__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-x88-app-game-strategies__feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* Light transparent background for dark sections */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-resources-x88-app-game-strategies__feature-item .page-resources-x88-app-game-strategies__feature-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-resources-x88-app-game-strategies__feature-text {
    font-size: 1em;
    color: inherit;
}

.page-resources-x88-app-game-strategies__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: inherit;
    font-size: 1.1em;
    padding-left: 20px;
}

.page-resources-x88-app-game-strategies__list li {
    margin-bottom: 10px;
}

.page-resources-x88-app-game-strategies__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
    object-fit: cover;
}

.page-resources-x88-app-game-strategies__faq-list {
    margin-top: 30px;
}

.page-resources-x88-app-game-strategies__faq-item {
    background-color: var(--background-color);
    color: var(--text-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.page-resources-x88-app-game-strategies__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--secondary-color);
    border-bottom: 1px solid #eee;
}

.page-resources-x88-app-game-strategies__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-resources-x88-app-game-strategies__faq-item[open] summary {
    border-bottom: 1px solid var(--primary-color);
}

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

.page-resources-x88-app-game-strategies__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-resources-x88-app-game-strategies__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-resources-x88-app-game-strategies__faq-answer {
    padding: 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9f9f9;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-x88-app-game-strategies__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-resources-x88-app-game-strategies__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 60px;
    }

    .page-resources-x88-app-game-strategies__hero-title {
        font-size: 2.2em;
    }

    .page-resources-x88-app-game-strategies__hero-description {
        font-size: 1em;
    }

    .page-resources-x88-app-game-strategies__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-x88-app-game-strategies__btn-primary,
    .page-resources-x88-app-game-strategies__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;
    }
    
    .page-resources-x88-app-game-strategies__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-resources-x88-app-game-strategies__section-title {
        font-size: 1.8em;
    }

    .page-resources-x88-app-game-strategies__sub-title {
        font-size: 1.4em;
    }

    .page-resources-x88-app-game-strategies__paragraph,
    .page-resources-x88-app-game-strategies__list li,
    .page-resources-x88-app-game-strategies__feature-text {
        font-size: 1em;
    }

    .page-resources-x88-app-game-strategies__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-resources-x88-app-game-strategies__feature-item {
        padding: 20px;
    }

    .page-resources-x88-app-game-strategies__feature-item .page-resources-x88-app-game-strategies__feature-image {
        height: 200px;
    }

    .page-resources-x88-app-game-strategies__content-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-resources-x88-app-game-strategies__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

    .page-resources-x88-app-game-strategies__faq-answer {
        padding: 15px;
    }

    .page-resources-x88-app-game-strategies__container {
        padding: 0 15px;
    }

    .page-resources-x88-app-game-strategies__content-area {
        padding: 40px 0;
    }

    /* Ensure all content containers do not overflow */
    .page-resources-x88-app-game-strategies__hero-section,
    .page-resources-x88-app-game-strategies__content-area,
    .page-resources-x88-app-game-strategies__feature-grid,
    .page-resources-x88-app-game-strategies__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-resources-x88-app-game-strategies__hero-title {
        font-size: 1.8em;
    }
}

/* Image and Video CSS restrictions */
.page-resources-x88-app-game-strategies img,
.page-resources-x88-app-game-strategies video {
    filter: none; /* Absolutely no color filters */
}

.page-resources-x88-app-game-strategies__feature-image,
.page-resources-x88-app-game-strategies__content-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-resources-x88-app-game-strategies__dark-bg {
    color: var(--text-light);
}

.page-resources-x88-app-game-strategies__light-bg {
    color: var(--text-dark);
}

.page-resources-x88-app-game-strategies__card {
    background: var(--background-color);
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

.page-resources-x88-app-game-strategies__dark-section {
    background: #1a1a1a;
    color: var(--text-light);
}

.page-resources-x88-app-game-strategies__btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

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

/* Ensure content area images are not scaled down below 200px */
.page-resources-x88-app-game-strategies__content-area img {
    min-width: 200px;
    min-height: 200px;
}

@media (max-width: 768px) {
    .page-resources-x88-app-game-strategies__content-area img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-resources-x88-app-game-strategies video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-x88-app-game-strategies__video-section,
    .page-resources-x88-app-game-strategies__video-container,
    .page-resources-x88-app-game-strategies__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}