/* style/game-guides.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg-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);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.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 */
    text-align: center;
    overflow: hidden;
}

.page-game-guides__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.page-game-guides__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above image but not overlapping */
    z-index: 1;
}

.page-game-guides__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--glow-color);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

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

.page-game-guides__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-3px);
}

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

.page-game-guides__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-game-guides__introduction-section,
.page-game-guides__games-section,
.page-game-guides__advanced-strategy-section,
.page-game-guides__faq-section,
.page-game-guides__cta-bottom-section {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.page-game-guides__games-section .page-game-guides__game-category {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__game-category-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--glow-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.page-game-guides__game-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
    object-fit: cover;
}

.page-game-guides__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-game-guides__list li {
    margin-bottom: 10px;
}

.page-game-guides__list li strong {
    color: var(--text-main);
}

.page-game-guides__advanced-strategy-section .page-game-guides__strategy-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__strategy-item-title {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.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;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--deep-green);
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-question:hover {
    background-color: var(--primary-color);
}

.page-game-guides__faq-qtext {
    flex-grow: 1;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-game-guides__faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 15px;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
    background-color: var(--primary-color);
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
    max-height: 2000px !important; /* For JS-controlled div structure */
    padding-top: 15px;
}

.page-game-guides__cta-bottom-section {
    text-align: center;
    padding-bottom: 60px;
}

.page-game-guides__cta-bottom-section .page-game-guides__btn-primary {
    margin-top: 30px;
}

/* General text styling */
.page-game-guides p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-game-guides__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-game-guides__hero-description {
        font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    }
    .page-game-guides__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
        margin-bottom: 30px;
        margin-top: 40px;
    }
    .page-game-guides__container {
        padding: 0 15px;
    }
    .page-game-guides__games-section .page-game-guides__game-category,
    .page-game-guides__advanced-strategy-section .page-game-guides__strategy-item {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important;
    }
    .page-game-guides__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-game-guides__hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-guides__container,
    .page-game-guides__hero-section,
    .page-game-guides__introduction-section,
    .page-game-guides__games-section,
    .page-game-guides__advanced-strategy-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-bottom-section,
    .page-game-guides__game-category,
    .page-game-guides__strategy-item,
    .page-game-guides__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 25px;
        margin-top: 30px;
    }
    .page-game-guides__game-category-title,
    .page-game-guides__strategy-item-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    .page-game-guides__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-game-guides__faq-answer {
        padding: 0 15px 15px;
    }
    .page-game-guides__cta-bottom-section {
        padding-bottom: 40px;
    }
}