/* style/game-guides.css */

/* Custom colors from prompt */
:root {
    --page-bg-color: #08160F; /* Background */
    --card-bg-color: #11271B; /* Card BG */
    --text-main-color: #F2FFF6; /* Text Main */
    --text-secondary-color: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --primary-color: #11A84E; /* Main color */
    --secondary-color: #22C768; /* Auxiliary color */
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-game-guides {
    background-color: var(--page-bg-color);
    color: var(--text-main-color);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Hero Section */
.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 as body handles --header-offset */
    overflow: hidden;
    text-align: center;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

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

.page-game-guides__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
    padding: 0 15px;
}

.page-game-guides__main-title {
    color: var(--gold-color);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    /* No fixed font-size, rely on responsive scaling */
}

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

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

/* General Section Styling */
.page-game-guides__section {
    padding: 40px 0;
    margin-bottom: 20px;
}

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

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

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

.page-game-guides__sub-title {
    color: var(--text-main-color);
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-game-guides__content-block {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

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

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

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

/* Card Styles (for game guides and promotions) */
.page-game-guides__game-card,
.page-game-guides__promotion-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.page-game-guides__game-card .page-game-guides__card-image,
.page-game-guides__promotion-card .page-game-guides__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-guides__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-game-guides__card-title {
    color: var(--gold-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__card-sub-title {
    color: var(--text-main-color);
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-game-guides__card-content p {
    color: var(--text-secondary-color);
    margin-bottom: 15px;
}

.page-game-guides__card-button {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start; /* Align button to start */
}

.page-game-guides__game-guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-game-guides__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-game-guides__full-width-cta {
    background: var(--btn-gradient);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-game-guides__cta-text {
    color: var(--text-main-color);
    font-size: 1.3em;
    font-weight: bold;
    margin: 0;
}


/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-game-guides__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

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

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

.page-game-guides__btn-secondary:hover {
    background: rgba(34, 199, 104, 0.1);
    transform: translateY(-3px);
    color: var(--text-main-color);
}

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

.page-game-guides__faq-item {
    background-color: var(--card-bg-color);
    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: 20px 25px;
    cursor: pointer;
    color: var(--text-main-color);
    font-size: 1.2em;
    font-weight: bold;
    background-color: var(--deep-green-color);
    position: relative;
    user-select: none;
    list-style: none; /* For details/summary */
}

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


.page-game-guides__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
}

.page-game-guides__faq-answer {
    padding: 20px 25px;
    background-color: rgba(17, 39, 27, 0.7); /* Slightly lighter card bg for answer */
    color: var(--text-secondary-color);
    font-size: 1em;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

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

.page-game-guides__faq-answer .page-game-guides__btn-primary,
.page-game-guides__faq-answer .page-game-guides__btn-secondary {
    margin-top: 10px;
}

/* Call to Action at bottom */
.page-game-guides__call-to-action {
    text-align: center;
    background-color: var(--deep-green-color);
    padding: 60px 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.page-game-guides__call-to-action .page-game-guides__section-title {
    color: var(--gold-color);
    margin-bottom: 20px;
}

.page-game-guides__call-to-action .page-game-guides__description {
    color: var(--text-secondary-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: 2.8em;
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__sub-title {
        font-size: 1.4em;
    }
    .page-game-guides__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

    .page-game-guides__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

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

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-game-guides a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important; /* Adjust padding for smaller screens */
    }
    
    .page-game-guides__section,
    .page-game-guides__container,
    .page-game-guides__game-guides,
    .page-game-guides__promotion-grid {
        padding: 0 15px !important; /* Add horizontal padding for content */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-game-guides__sub-title {
        font-size: 1.3em;
    }

    .page-game-guides__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }

    .page-game-guides__card-title {
        font-size: 1.3em;
    }

    .page-game-guides__card-sub-title {
        font-size: 1.1em;
    }

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

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

    /* Images responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness (if any, though none explicitly generated here) */
    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-game-guides__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-game-guides__video-section {
        padding-top: 10px !important;
    }
    
    .page-game-guides__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: 1.8em;
    }
    .page-game-guides__section-title {
        font-size: 1.6em;
    }
    .page-game-guides__hero-section {
        padding: 20px 10px;
        padding-top: 10px !important;
    }
}

/* Ensure no CSS filters are used on images */
.page-game-guides img {
    filter: none !important;
}