/* style/game-guides.css */
/* Base styles for the game guides page */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page, will be #F2FFF6 */
    background-color: var(--background-color); /* Inherited from body, will be #08160F */
    line-height: 1.6;
}

/* Custom CSS variables for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg-color: #11271B;
    --background-color: #08160F; /* Main background color */
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 20px 60px; /* Small top padding, larger bottom for content */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-game-guides__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding: 0 15px; /* Add padding for smaller screens */
    box-sizing: border-box;
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: var(--gold-color); /* Use gold for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Soft glow */
}

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

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

/* General button styles */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides a[class*="button"],
.page-game-guides a[class*="btn"],
.page-game-guides__card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure buttons adapt to container width */
}

.page-game-guides__btn-primary {
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: var(--text-main-color); /* Light text on dark/gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-game-guides__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(17, 168, 78, 0.2);
}

.page-game-guides__btn-secondary:hover {
    background: rgba(17, 168, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

/* Section specific styles */
.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent horizontal padding */
    box-sizing: border-box;
}

.page-game-guides__intro-section,
.page-game-guides__why-choose-us-section,
.page-game-guides__game-categories,
.page-game-guides__general-strategies-section,
.page-game-guides__get-started-section,
.page-game-guides__faq-section,
.page-game-guides__cta-section {
    padding: 60px 0;
    background-color: var(--background-color); /* Ensure sections have background */
}

.page-game-guides__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size */
    font-weight: 700;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    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: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

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

/* Why Choose Us Section */
.page-game-guides__why-choose-us-section {
    background-color: var(--card-bg-color); /* Different background for contrast */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

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

.page-game-guides__grid-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-game-guides__grid-item .page-game-guides__image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-game-guides__item-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Game Categories Section */
.page-game-guides__game-categories {
    background-color: var(--background-color);
}

.page-game-guides__category-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-game-guides__card-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-game-guides__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main-color);
    margin-bottom: 10px;
}

.page-game-guides__card-description {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-game-guides__card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-game-guides__card-link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

/* General Strategies Section */
.page-game-guides__strategy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-game-guides__strategy-list .page-game-guides__list-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--divider-color);
}

.page-game-guides__strategy-list .page-game-guides__item-title {
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-game-guides__btn-text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.page-game-guides__btn-text-link:hover {
    text-decoration: underline;
    color: var(--glow-color);
}

/* Get Started Section */
.page-game-guides__get-started-section {
    background-color: var(--deep-green-color); /* Another color for visual break */
    color: var(--text-main-color);
}

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

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

.page-game-guides__step-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* FAQ Section */
.page-game-guides__faq-section {
    background-color: var(--background-color);
}

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

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

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

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

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

.page-game-guides__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    content: '−'; /* Changed by JS */
}

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

/* details tag specific reset for summary marker */
.page-game-guides__faq-item > summary {
    list-style: none;
}
.page-game-guides__faq-item > summary::-webkit-details-marker {
    display: none;
}


/* Final CTA Section */
.page-game-guides__cta-section {
    background-color: var(--primary-color); /* Stronger call to action background */
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

.page-game-guides__cta-section .page-game-guides__section-title {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-section .page-game-guides__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-game-guides__cta-section .page-game-guides__btn-primary {
    background: #ffffff;
    color: var(--button-gradient-end);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__cta-section .page-game-guides__btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-section .page-game-guides__btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: none;
}

.page-game-guides__cta-section .page-game-guides__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        padding: 0 25px;
    }
    .page-game-guides__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-game-guides__container {
        padding: 0 15px;
    }

    .page-game-guides__hero-section {
        padding: 10px 0 40px; /* Adjust padding for mobile */
    }

    .page-game-guides__hero-image-wrapper {
        margin-bottom: 15px;
    }

    .page-game-guides__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-game-guides__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        box-sizing: border-box;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-game-guides a[class*="btn"],
    .page-game-guides__card-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }

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

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

    .page-game-guides__grid-item,
    .page-game-guides__category-card,
    .page-game-guides__strategy-list .page-game-guides__list-item,
    .page-game-guides__step-item,
    .page-game-guides__faq-item {
        padding: 20px;
    }

    .page-game-guides__grid-item .page-game-guides__image,
    .page-game-guides__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure min image size on mobile */
        min-height: 200px !important;
    }

    /* Ensure all content images are responsive */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__intro-section,
    .page-game-guides__why-choose-us-section,
    .page-game-guides__game-categories,
    .page-game-guides__general-strategies-section,
    .page-game-guides__get-started-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Adjust specific section paddings */
    .page-game-guides__intro-section,
    .page-game-guides__why-choose-us-section,
    .page-game-guides__game-categories,
    .page-game-guides__general-strategies-section,
    .page-game-guides__get-started-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding: 40px 0;
    }

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

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