/* style/resources-game-guide.css */

:root {
    --primary-color: #0A1931;
    --secondary-color: #FFC947;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #0A1931;
    --card-bg-light: #f9f9f9;
    --card-border-light: #e0e0e0;
}

.page-resources-game-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.page-resources-game-guide__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px);
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

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

.page-resources-game-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-resources-game-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-game-guide__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-resources-game-guide__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-resources-game-guide__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.6);
}

.page-resources-game-guide__btn-primary,
.page-resources-game-guide__btn-secondary {
    display: inline-block;
    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, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-resources-game-guide__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources-game-guide__btn-primary:hover {
    background-color: #e6b83f;
    border-color: #e6b83f;
}

.page-resources-game-guide__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources-game-guide__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources-game-guide__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

.page-resources-game-guide__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-resources-game-guide__section-title--white {
    color: var(--text-light);
}

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

.page-resources-game-guide__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-game-guide__text-block--white {
    color: var(--text-light);
}

.page-resources-game-guide__introduction-section,
.page-resources-game-guide__game-types-section,
.page-resources-game-guide__tips-strategies-section,
.page-resources-game-guide__faq-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.page-resources-game-guide__getting-started-section,
.page-resources-game-guide__specific-guides-section,
.page-resources-game-guide__safety-responsibility-section,
.page-resources-game-guide__cta-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-resources-game-guide__image-full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-resources-game-guide__steps-grid,
.page-resources-game-guide__game-cards-grid,
.page-resources-game-guide__guide-cards-grid,
.page-resources-game-guide__info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-game-guide__step-card,
.page-resources-game-guide__guide-card,
.page-resources-game-guide__info-card {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.page-resources-game-guide__step-card:hover,
.page-resources-game-guide__guide-card:hover,
.page-resources-game-guide__info-card:hover {
    transform: translateY(-5px);
}

.page-resources-game-guide__game-card {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-resources-game-guide__game-card:hover {
    transform: translateY(-5px);
}

.page-resources-game-guide__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border-light);
}

.page-resources-game-guide__game-card-title {
    font-size: 1.5em;
    margin: 15px 15px 10px 15px;
    color: var(--primary-color);
}

.page-resources-game-guide__game-card-description {
    font-size: 1em;
    color: var(--text-dark);
    padding: 0 15px 15px 15px;
    flex-grow: 1;
}

.page-resources-game-guide__card-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-game-guide__card-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources-game-guide__btn-text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources-game-guide__btn-text-link:hover {
    color: var(--primary-color);
}

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

.page-resources-game-guide__tip-item {
    background-color: var(--card-bg-light);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-game-guide__tip-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources-game-guide__tip-text {
    font-size: 1em;
    color: var(--text-dark);
    flex-grow: 1;
}

.page-resources-game-guide__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-resources-game-guide__faq-item {
    background-color: var(--card-bg-light);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-resources-game-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--card-border-light);
}

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

.page-resources-game-guide__faq-question h3 {
    margin: 0;
    color: var(--primary-color);
}

.page-resources-game-guide__faq-toggle {
    font-size: 1.5em;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.page-resources-game-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--card-bg-light);
    color: var(--text-dark);
}

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

.page-resources-game-guide__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

.page-resources-game-guide__cta-container {
    text-align: center;
    padding: 50px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-game-guide__hero-title {
        font-size: 2.8em;
    }
    .page-resources-game-guide__section-title {
        font-size: 2em;
    }
    .page-resources-game-guide__hero-image {
        filter: brightness(0.4);
    }
}

@media (max-width: 768px) {
    .page-resources-game-guide__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources-game-guide__hero-title {
        font-size: 2.2em;
    }
    .page-resources-game-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-game-guide__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-game-guide__btn-primary,
    .page-resources-game-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources-game-guide__btn-primary--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-resources-game-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-game-guide__text-block {
        font-size: 0.95em;
    }
    .page-resources-game-guide__introduction-section,
    .page-resources-game-guide__getting-started-section,
    .page-resources-game-guide__game-types-section,
    .page-resources-game-guide__specific-guides-section,
    .page-resources-game-guide__tips-strategies-section,
    .page-resources-game-guide__safety-responsibility-section,
    .page-resources-game-guide__cta-section {
        padding: 60px 0;
    }
    .page-resources-game-guide__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-resources-game-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-game-guide__image-full-width {
        margin: 30px auto;
    }
    .page-resources-game-guide__steps-grid,
    .page-resources-game-guide__game-cards-grid,
    .page-resources-game-guide__guide-cards-grid,
    .page-resources-game-guide__info-cards-grid,
    .page-resources-game-guide__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources-game-guide__game-card-image {
        height: 180px;
    }
    .page-resources-game-guide__card-title,
    .page-resources-game-guide__game-card-title,
    .page-resources-game-guide__tip-title {
        font-size: 1.3em;
    }
    .page-resources-game-guide__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources-game-guide__faq-answer {
        padding: 0 20px;
    }
    .page-resources-game-guide__faq-item.active .page-resources-game-guide__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources-game-guide__hero-title {
        font-size: 1.8em;
    }
    .page-resources-game-guide__hero-description {
        font-size: 0.9em;
    }
    .page-resources-game-guide__section-title {
        font-size: 1.5em;
    }
    .page-resources-game-guide__btn-primary--large {
        font-size: 1em;
    }
    .page-resources-game-guide__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-resources-game-guide__btn-primary,
    .page-resources-game-guide__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}