/* style/game-guides.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #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);
    background-color: var(--background-dark); /* Assume body background from shared.css is dark */
}

.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
    overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-game-guides__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    z-index: 1;
    box-sizing: border-box;
}

.page-game-guides__main-title {
    font-size: clamp(2em, 3.5vw, 3.2em); /* Using clamp for responsive H1 font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-game-guides__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for primary button */
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-game-guides__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--background-dark);
    transform: translateY(-2px);
}

.page-game-guides__section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-game-guides__content-area {
    padding: 60px 20px;
    background-color: #ffffff; /* Light background for content area */
    color: #333333; /* Dark text for light background */
}

.page-game-guides__section {
    padding: 60px 20px;
}

.page-game-guides__dark-section {
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-game-guides__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-game-guides__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-game-guides__dark-section .page-game-guides__section-title {
    color: var(--gold-color);
}

.page-game-guides__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--glow-color);
    border-radius: 2px;
}

.page-game-guides__sub-title {
    font-size: 1.8em;
    color: var(--deep-green);
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.page-game-guides__dark-section .page-game-guides__sub-title {
    color: var(--text-main);
    border-color: var(--glow-color);
}

.page-game-guides__text-block p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.page-game-guides__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-game-guides__dark-section .page-game-guides__text-block a {
    color: var(--glow-color);
}

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

.page-game-guides__list--ordered {
    list-style: decimal;
    padding-left: 25px;
}

.page-game-guides__list-item {
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.page-game-guides__list:not(.page-game-guides__list--ordered) .page-game-guides__list-item::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-game-guides__dark-section .page-game-guides__list:not(.page-game-guides__list--ordered) .page-game-guides__list-item::before {
    color: var(--glow-color);
}

.page-game-guides__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
}

/* FAQ Section */
.page-game-guides__faq-section {
    padding: 60px 20px;
    background-color: #f8f9fa; /* Lighter background for FAQ */
    color: #333333;
}

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

.page-game-guides__faq-item {
    background-color: #ffffff;
    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-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--deep-green);
    cursor: pointer;
    background-color: #ffffff;
    position: relative;
    user-select: none;
}

.page-game-guides__faq-item details > summary {
    list-style: none;
}

.page-game-guides__faq-item details > summary::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg);
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    transition: max-height 0.5s ease-in;
}

.page-game-guides__faq-answer p {
    margin-bottom: 0;
}

.page-game-guides__cta-buttons--faq {
    margin-top: 20px;
    justify-content: flex-start;
}

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

    .page-game-guides__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

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

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

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

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

    .page-game-guides__section-container,
    .page-game-guides__content-area,
    .page-game-guides__section,
    .page-game-guides__faq-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-game-guides__sub-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-game-guides p,
    .page-game-guides li,
    .page-game-guides__faq-answer p {
        font-size: 0.95em;
    }

    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__hero-image-wrapper,
    .page-game-guides__text-block,
    .page-game-guides__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-game-guides__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: clamp(1.6em, 9vw, 2em);
    }
}