/* style/game-guides.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-main: #08160F;
    --bg-card: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for main content on dark body background */
    background-color: var(--bg-main); /* Ensures consistent background */
}

/* --- Hero Section --- */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-main);
    overflow: hidden; /* Ensure no overflow from hero image */
}

.page-game-guides__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure width 100% for flex item */
}

.page-game-guides__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-game-guides__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* H1 font size clamp */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.4); /* Glow effect */
}

.page-game-guides__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--btn-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Important for mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

/* --- General Sections & Containers --- */
.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-game-guides__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 30px;
    text-align: center;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(34, 199, 104, 0.3);
}

.page-game-guides__section-description {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

.page-game-guides__light-bg {
    background-color: #f9f9f9; /* A light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-game-guides__light-bg .page-game-guides__section-title {
    color: var(--primary-color);
}

.page-game-guides__light-bg .page-game-guides__section-description {
    color: #555555;
}

.page-game-guides__dark-bg {
    background-color: var(--bg-main); /* Dark background */
    color: var(--text-main); /* Light text */
}

.page-game-guides__text-main {
    color: var(--text-main);
}

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

.page-game-guides__card {
    background-color: var(--bg-card); /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-game-guides__card img {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 20px 20px 10px;
    line-height: 1.4;
}

.page-game-guides__card-title a {
    color: var(--text-main); /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--primary-color);
}

.page-game-guides__card-description {
    font-size: 0.95em;
    color: var(--text-secondary); /* Text Secondary */
    padding: 0 20px;
    line-height: 1.6;
    flex-grow: 1; /* Make description take available space */
}

.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9em;
    font-weight: bold;
    margin: 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Important for mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(17, 168, 78, 0.4);
}

/* --- Other Games Section --- */
.page-game-guides__game-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.page-game-guides__category-link {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(17, 168, 78, 0.3);
    max-width: 100%; /* Important for mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__category-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

/* --- CTA Section --- */
.page-game-guides__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--deep-green); /* Deep Green */
}

.page-game-guides__cta-section .page-game-guides__section-title {
    color: var(--text-main);
}

.page-game-guides__cta-section p {
    color: var(--text-secondary);
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-game-guides__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure width 100% for flex container */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-game-guides__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--btn-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Important for mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

/* --- FAQ Section --- */
.page-game-guides__faq-list {
    margin-top: 40px;
}

details.page-game-guides__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--bg-card); /* Card BG */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main); /* Text Main */
    font-weight: 600;
    font-size: 1.1em;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
    background-color: rgba(34, 199, 104, 0.1); /* Slight hover effect */
}
.page-game-guides__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}
.page-game-guides__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 25px 20px;
    background-color: var(--deep-green); /* Deep Green */
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary); /* Text Secondary */
    line-height: 1.6;
}

/* --- Related Articles --- */
.page-game-guides__related-articles {
    padding-bottom: 80px;
}

.page-game-guides__view-all {
    text-align: center;
    margin-top: 50px;
}

/* --- Mobile Responsive Design (max-width: 768px) --- */
@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .page-game-guides__hero-image img {
        border-radius: 8px;
    }

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

    .page-game-guides__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-game-guides__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-game-guides__grid-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .page-game-guides__card img {
        
    }

    .page-game-guides__card-title {
        font-size: 1.2em;
        margin: 15px 15px 8px;
    }

    .page-game-guides__card-description {
        font-size: 0.9em;
        padding: 0 15px;
    }

    .page-game-guides__btn-secondary {
        margin: 15px;
        padding: 8px 20px;
        font-size: 0.85em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__game-categories {
        flex-direction: column;
        gap: 10px;
    }

    .page-game-guides__category-link {
        padding: 10px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: center;
    }

    .page-game-guides__cta-section {
        padding: 50px 15px;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    details.page-game-guides__faq-item summary.page-game-guides__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-game-guides__faq-qtext {
        font-size: 1em;
    }
    .page-game-guides__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-game-guides__faq-item .page-game-guides__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95em;
    }

    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}