:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text on dark background */
    background-color: var(--background-color); /* Dark background */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for visual balance, body handles main offset */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit hero image height */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image slightly for text contrast, not color change */
}

.page-game-guides__hero-content {
    position: relative; /* Ensure content is above image */
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    margin-top: -200px; /* Pull content up over the bottom part of the image */
    background: linear-gradient(to top, var(--background-color) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-guides__main-title {
    color: var(--text-main);
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-game-guides__description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
}

.page-game-guides__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width for responsive wrapping */
    max-width: 500px;
}

.page-game-guides__cta-buttons--centered {
    margin-top: 40px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-game-guides__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__section:last-of-type {
    border-bottom: none;
}

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

.page-game-guides__section-title {
    color: var(--text-main);
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-game-guides__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-game-guides__sub-title {
    color: var(--secondary-color);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-game-guides__text-block {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.page-game-guides__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-game-guides__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.page-game-guides__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.page-game-guides__image-card {
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 1000px;
}

.page-game-guides__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* FAQ Section */
.page-game-guides__faq {
    background-color: var(--deep-green); /* Slightly different dark background for contrast */
}

.page-game-guides__faq-list {
    margin-top: 30px;
}

.page-game-guides__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1rem;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1); /* Use primary color with transparency for hover */
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--secondary-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    content: '−';
}

/* Hide default details marker */
.page-game-guides__faq-item summary {
    list-style: none;
}
.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Conclusion Section */
.page-game-guides__conclusion {
    text-align: center;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: -150px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-game-guides__description {
        font-size: 1rem;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-game-guides__sub-title {
        font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    }
}

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

    .page-game-guides__hero-content {
        margin-top: -100px;
        padding: 20px 15px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-game-guides__description {
        font-size: 0.95rem;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Constrain width for mobile buttons */
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-guides__section {
        padding: 40px 0;
    }

    .page-game-guides__container {
        padding: 0 15px;
    }

    .page-game-guides__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-game-guides__sub-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }

    .page-game-guides__text-block,
    .page-game-guides__list-item,
    .page-game-guides__faq-answer p {
        font-size: 0.95rem;
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__image-card,
    .page-game-guides__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content does not overflow */
    }
    
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset, this is for visual */
    }

    /* Content area images must not be smaller than 200px */
    .page-game-guides__container img {
        min-width: 200px;
        min-height: 200px;
    }

    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-content {
        margin-top: -80px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-game-guides__cta-buttons {
        gap: 10px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        font-size: 0.95rem;
    }
}