/* style/game-guides.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-game-guides {
    color: #ffffff; /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Space for footer */
}

/* Header offset for the first section, if shared.css doesn't apply to body */
.page-game-guides__hero-section {
    padding-top: var(--header-offset, 120px);
    background-color: #0d0d0d; /* A dark background for hero */
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

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

.page-game-guides__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF; /* Ensure high contrast */
    font-weight: bold;
    line-height: 1.2;
}

.page-game-guides__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

.page-game-guides__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-game-guides__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
}

.page-game-guides__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-game-guides__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: none;
}


/* General section styling */
.page-game-guides__section {
    padding: 60px 20px;
    background-color: var(--dark-bg);
    color: #ffffff;
}

.page-game-guides__section:nth-of-type(even) {
    background-color: #0d0d0d;
}

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

.page-game-guides__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-game-guides__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #017439;
    margin: 20px auto 0;
    border-radius: 2px;
}

.page-game-guides__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__text-block p {
    margin-bottom: 1em;
    color: #f0f0f0;
}

.page-game-guides__text-block h3 {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__list {
    list-style: disc inside;
    margin-bottom: 1em;
    padding-left: 20px;
    color: #f0f0f0;
}

.page-game-guides__list li {
    margin-bottom: 0.5em;
    color: #f0f0f0;
}

.page-game-guides__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    filter: none;
    width: 100%;
    min-width: 200px;
    min-height: 200px;
}

/* Video Section */
.page-game-guides__video-section {
    background-color: #017439;
    padding: 80px 20px;
}

.page-game-guides__video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-game-guides__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}


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

.page-game-guides__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.page-game-guides__faq-title {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
    transform: rotate(45deg);
}

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

/* Conclusion Section */
.page-game-guides__conclusion-section {
    text-align: center;
    background-color: #0d0d0d;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: 2.5em;
    }

    .page-game-guides__section-title {
        font-size: 2em;
    }
}

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

    .page-game-guides__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

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

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

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-guides__section {
        padding: 40px 15px;
    }

    .page-game-guides__container {
        padding: 0 15px;
        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__text-block h3 {
        font-size: 1.5em;
    }

    .page-game-guides img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-game-guides__video-wrapper {
        padding-bottom: 56.25% !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

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

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

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: 1.8em;
    }
    .page-game-guides__section-title {
        font-size: 1.6em;
    }
}

/* Color contrast emergency fix - for elements that might violate WCAG AA */
.page-game-guides__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-game-guides__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}