/* style/game-guides.css */

/* Custom properties for colors from the provided scheme */
:root {
    --page-game-guides-primary-color: #11A84E;
    --page-game-guides-secondary-color: #22C768;
    --page-game-guides-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-game-guides-card-bg: #11271B;
    --page-game-guides-background: #08160F;
    --page-game-guides-text-main: #F2FFF6;
    --page-game-guides-text-secondary: #A7D9B8;
    --page-game-guides-border: #2E7A4E;
    --page-game-guides-glow: #57E38D;
    --page-game-guides-gold: #F2C14E;
    --page-game-guides-divider: #1E3A2A;
    --page-game-guides-deep-green: #0A4B2C;
}

/* Base styles for the page content area */
.page-game-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-game-guides-text-main); /* Default text color for dark background */
    background-color: var(--page-game-guides-background); /* Overall page background */
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--page-game-guides-background);
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is below content for visual stacking, but not text overlay */
}

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

.page-game-guides__hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
    z-index: 2; /* Content above image visually, but not overlapping */
    background-color: var(--page-game-guides-card-bg); /* Use card background for content block */
    color: var(--page-game-guides-text-main);
    border-radius: 8px;
    margin-top: -80px; /* Pull content up slightly over the image, but still below */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-game-guides-gold); /* Gold for main title */
}

.page-game-guides__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-game-guides-text-secondary);
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-read-more {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding/border included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-game-guides__btn-primary {
    background: var(--page-game-guides-button-gradient);
    color: #ffffff; /* White text for gradient button */
    border: 2px solid transparent;
}

.page-game-guides__btn-primary:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-game-guides-glow);
    transform: translateY(-2px);
}

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

.page-game-guides__btn-secondary:hover {
    background: var(--page-game-guides-primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

.page-game-guides__introduction,
.page-game-guides__general-tips {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-game-guides__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-game-guides-gold); /* Gold for section titles */
}

.page-game-guides__introduction .page-game-guides__section-title,
.page-game-guides__general-tips .page-game-guides__section-title {
    color: var(--page-game-guides-deep-green); /* Dark green for titles on light background */
}

.page-game-guides__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-game-guides__highlight-text {
    color: var(--page-game-guides-primary-color);
    font-weight: bold;
}

/* Game Guide List Section */
.page-game-guides__game-types {
    background-color: var(--page-game-guides-card-bg);
}

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

.page-game-guides__game-guide-card {
    background-color: var(--page-game-guides-background); /* Slightly darker card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--page-game-guides-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-game-guides-glow);
}

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

.page-game-guides__card-title {
    font-size: 1.4em;
    font-weight: bold;
    padding: 15px 20px 10px;
    color: var(--page-game-guides-gold);
    flex-grow: 1; /* Allow title to take up space */
}

.page-game-guides__card-title a {
    color: inherit;
    text-decoration: none;
}

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

.page-game-guides__card-description {
    font-size: 0.95em;
    padding: 0 20px 15px;
    color: var(--page-game-guides-text-secondary);
    flex-grow: 1;
}
.page-game-guides__card-description a {
    color: var(--page-game-guides-secondary-color);
    text-decoration: underline;
}
.page-game-guides__card-description a:hover {
    color: var(--page-game-guides-glow);
}

.page-game-guides__btn-read-more {
    margin: 0 20px 20px;
    background: var(--page-game-guides-button-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    align-self: flex-start; /* Align button to start */
}

.page-game-guides__btn-read-more:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 10px var(--page-game-guides-glow);
    transform: translateY(-1px);
}

/* General Tips Section */
.page-game-guides__general-tips {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-game-guides__general-tips .page-game-guides__section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-guides__list-item {
    background-color: #f9f9f9;
    border-left: 5px solid var(--page-game-guides-primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    color: #333333;
}

.page-game-guides__list-item strong {
    color: var(--page-game-guides-deep-green);
}

.page-game-guides__list-item a {
    color: var(--page-game-guides-primary-color);
    text-decoration: underline;
}
.page-game-guides__list-item a:hover {
    color: var(--page-game-guides-secondary-color);
}

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

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

.page-game-guides__faq-item {
    background-color: var(--page-game-guides-background);
    border: 1px solid var(--page-game-guides-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-game-guides-text-main);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--page-game-guides-deep-green); /* Darker green for question background */
    color: var(--page-game-guides-text-main);
    transition: background-color 0.3s ease;
}

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

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

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    color: var(--page-game-guides-glow);
}

.page-game-guides__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--page-game-guides-text-secondary);
    border-top: 1px solid var(--page-game-guides-divider);
}

.page-game-guides__faq-answer a {
    color: var(--page-game-guides-primary-color);
    text-decoration: underline;
}
.page-game-guides__faq-answer a:hover {
    color: var(--page-game-guides-glow);
}

/* CTA Section */
.page-game-guides__cta {
    background-color: var(--page-game-guides-deep-green); /* Use deep green for CTA section */
    text-align: center;
    padding: 80px 0;
    border-top: 2px solid var(--page-game-guides-border);
}

.page-game-guides__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-game-guides__cta .page-game-guides__section-title {
    color: var(--page-game-guides-gold);
    margin-bottom: 25px;
}

.page-game-guides__cta .page-game-guides__text-secondary {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: var(--page-game-guides-text-main); /* Ensure light text on deep green background */
}

.page-game-guides__cta .page-game-guides__text-secondary a {
    color: var(--page-game-guides-glow);
    text-decoration: underline;
}
.page-game-guides__cta .page-game-guides__text-secondary a:hover {
    color: var(--page-game-guides-gold);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__game-guide-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

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

    /* Hero Section adjustments */
    .page-game-guides__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        border-radius: 0; /* No border-radius on mobile for full width */
        max-width: 100%;
        width: 100%;
        box-sizing: border-box !important;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-game-guides__intro-text {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons responsive */
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides__btn-read-more {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General section padding */
    .page-game-guides__section {
        padding: 40px 0;
    }
    .page-game-guides__container {
        padding: 0 15px; /* Adjust container padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Game guide list */
    .page-game-guides__game-guide-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-game-guides__card-image {
        height: 180px; /* Slightly smaller card image height */
    }
    .page-game-guides__card-title {
        font-size: 1.2em;
        padding: 10px 15px 8px;
    }
    .page-game-guides__card-description {
        padding: 0 15px 10px;
    }
    .page-game-guides__btn-read-more {
        margin: 0 15px 15px;
    }

    /* General tips image */
    .page-game-guides__general-tips .page-game-guides__section-image {
        margin-bottom: 30px;
    }

    /* FAQ section */
    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }
    .page-game-guides__faq-answer {
        padding: 10px 20px 15px;
    }

    /* CTA section */
    .page-game-guides__cta {
        padding: 60px 0;
    }
    .page-game-guides__cta .page-game-guides__section-title {
        font-size: 1.8em;
    }
    .page-game-guides__cta .page-game-guides__text-secondary {
        font-size: 1em;
    }

    /* All images responsive */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All image containers responsive */
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__game-guide-card,
    .page-game-guides__general-tips .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* Ensure no video-section specific padding-top as body handles it */
.page-game-guides__video-section {
    padding-top: 10px; /* Already set, just confirming */
}