/* style/game-guides.css */

/* --- General Styles --- */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Ensures a consistent background if body isn't fully white */
}

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

.page-game-guides__section {
    padding: 80px 0;
    text-align: center;
}

.page-game-guides__section-title {
    font-size: 38px;
    color: #017439; /* Brand primary color for titles */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

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

.page-game-guides__sub-title {
    font-size: 24px;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-game-guides__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: left;
}

.page-game-guides__unordered-list {
    list-style: disc;
    padding-left: 40px;
    text-align: left;
    margin-bottom: 20px;
}

.page-game-guides__ordered-list {
    list-style: decimal;
    padding-left: 40px;
    text-align: left;
    margin-bottom: 20px;
}

.page-game-guides__unordered-list li,
.page-game-guides__ordered-list li {
    margin-bottom: 10px;
    font-size: 17px;
}

/* --- Color Schemes for Sections --- */
.page-game-guides__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-game-guides__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-game-guides__dark-bg .page-game-guides__section-title,
.page-game-guides__dark-bg .page-game-guides__sub-title {
    color: #FFFFFF;
}

.page-game-guides__dark-bg .page-game-guides__section-title::after {
    background-color: #FFFFFF;
}

.page-game-guides__dark-bg .page-game-guides__text-block,
.page-game-guides__dark-bg .page-game-guides__unordered-list li,
.page-game-guides__dark-bg .page-game-guides__ordered-list li {
    color: #FFFFFF;
}

/* --- Buttons --- */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px;
    border: 2px solid transparent;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-game-guides__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border-color: #C30808;
}

.page-game-guides__btn-primary:hover {
    background-color: #E01010;
    border-color: #E01010;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border-color: #017439;
}

.page-game-guides__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section --- */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0; /* Fallback padding */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Default background */
    color: #FFFFFF;
}

.page-game-guides__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Slightly dim image to make text stand out */
}

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

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

.page-game-guides__hero-description {
    font-size: 22px;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Content Layout with Image/Text --- */
.page-game-guides__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-game-guides__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-game-guides__text-content {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
}

.page-game-guides__text-content--light {
    color: #FFFFFF;
}

.page-game-guides__image-wrapper {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink */
    text-align: center;
}

.page-game-guides__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: block; /* Ensure it behaves as a block element for max-width */
    margin: 0 auto; /* Center image within its wrapper */
}

/* --- FAQ Section --- */
.page-game-guides__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-game-guides__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

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

.page-game-guides__faq-question h3 {
    margin: 0;
    font-size: 20px;
    color: #017439; /* Brand primary color for FAQ questions */
}

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

.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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: #555555;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 48px;
    }

    .page-game-guides__hero-description {
        font-size: 20px;
    }

    .page-game-guides__section-title {
        font-size: 32px;
    }

    .page-game-guides__sub-title {
        font-size: 22px;
    }

    .page-game-guides__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-game-guides__content-wrapper--reverse {
        flex-direction: column; /* Reset to column for mobile */
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        min-height: 450px;
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset is applied */
    }

    .page-game-guides__hero-title {
        font-size: 36px;
    }

    .page-game-guides__hero-description {
        font-size: 18px;
    }

    .page-game-guides__section {
        padding: 60px 0;
    }

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

    .page-game-guides__sub-title {
        font-size: 20px;
    }

    .page-game-guides__text-block,
    .page-game-guides__unordered-list li,
    .page-game-guides__ordered-list li,
    .page-game-guides__faq-question,
    .page-game-guides__faq-question h3,
    .page-game-guides__faq-answer p {
        font-size: 16px;
    }

    /* --- Mobile Image Responsiveness --- */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* --- Mobile Video Responsiveness (if any) --- */
    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !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;
    }

    /* --- Mobile Button Responsiveness --- */
    .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;
        margin-left: 0;
        margin-right: 0;
    }

    .page-game-guides__hero-content .page-game-guides__btn-primary,
    .page-game-guides__hero-content .page-game-guides__btn-secondary {
        margin-bottom: 10px;
    }
}