/* style/game-guides.css */

/* Base styles for the page content */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-game-guides__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-game-guides__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-game-guides__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-game-guides__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Content Area */
.page-game-guides__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: #1a1a1a; /* Slightly lighter dark background for content sections */
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__dark-section {
    background-color: #0d0d0d; /* Even darker section for contrast */
    color: #ffffff;
}

.page-game-guides__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: bold;
}

.page-game-guides__sub-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #017439;
    padding-bottom: 10px;
}

.page-game-guides__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-game-guides__list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-game-guides__list--ordered {
    list-style-type: decimal;
}

.page-game-guides__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-game-guides__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-game-guides__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-game-guides__btn-primary {
    display: inline-block;
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary:hover {
    background-color: #005f2c;
    transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #017439;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #017439;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

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

.page-game-guides__cta-buttons--large .page-game-guides__btn-primary,
.page-game-guides__cta-buttons--large .page-game-guides__btn-secondary {
    padding: 18px 35px;
    font-size: 1.2em;
    min-width: 250px;
    text-align: center;
}

/* Video Section */
.page-game-guides__video-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.page-game-guides__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.page-game-guides__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: transparent; /* Invisible overlay for click */
}

.page-game-guides__video-caption {
    text-align: center;
    font-style: italic;
    color: #bbb;
    margin-top: 10px;
}

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

.page-game-guides__faq-item {
    background-color: #0d0d0d;
    border: 1px solid #017439;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: #017439;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: #005f2c;
}

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

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
    transform: rotate(45deg); /* Plus to X (or rotate to minus) */
}

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #1a1a1a;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px;
}

.page-game-guides__faq-answer .page-game-guides__paragraph {
    margin-bottom: 0;
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
    text-align: center;
    background-color: #017439;
    color: #ffffff;
    padding: 80px 20px;
}

.page-game-guides__conclusion-section .page-game-guides__section-title {
    color: #ffffff;
}

.page-game-guides__conclusion-section .page-game-guides__paragraph {
    color: #f0f0f0;
    font-size: 1.2em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 3em;
    }
    .page-game-guides__hero-description {
        font-size: 1.1em;
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__sub-title {
        font-size: 1.5em;
    }
    .page-game-guides__paragraph,
    .page-game-guides__list-item {
        font-size: 1em;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-game-guides__cta-buttons--large .page-game-guides__btn-primary,
    .page-game-guides__cta-buttons--large .page-game-guides__btn-secondary {
        min-width: unset;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-game-guides__hero-section {
        min-height: 400px;
        padding: 20px 15px;
    }

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

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

    .page-game-guides__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-game-guides__hero-cta-buttons .page-game-guides__btn-primary,
    .page-game-guides__hero-cta-buttons .page-game-guides__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain max width for single buttons */
        margin: 0 auto;
    }

    .page-game-guides__content-area {
        padding: 30px 15px;
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !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__paragraph,
    .page-game-guides__list-item {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-game-guides__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 10px; /* Add some padding to prevent images touching edges */
    }

    /* Video responsiveness */
    .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: var(--header-offset, 120px) !important;
    }

    /* Button responsiveness */
    .page-game-guides__cta-button,
    .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-left: 15px;
        padding-right: 15px;
        text-align: center; /* Center button text if it wraps */
    }
    
    .page-game-guides__cta-buttons,
    .page-game-guides__button-group,
    .page-game-guides__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-game-guides__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

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

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

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