/* style/game-guides.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --button-register: #C30808;
    --button-login: #C30808;
    --font-color-register-login: #FFFF00;
    --border-color: #e0e0e0;
}

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

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

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

.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0 60px; /* Adjusted padding-top for header offset */
    padding-top: var(--header-offset, 120px);
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.page-game-guides__hero-section .page-game-guides__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-game-guides__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
    line-height: 1.2;
}

.page-game-guides__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-game-guides__btn-primary {
    background-color: var(--button-register);
    color: var(--font-color-register-login);
    border: 2px solid var(--button-register);
    margin-top: 20px;
}

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

.page-game-guides__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
    margin-top: 20px;
}

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

.page-game-guides__introduction-section,
.page-game-guides__strategy-section,
.page-game-guides__faq-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

.page-game-guides__categories-section,
.page-game-guides__benefits-section,
.page-game-guides__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-game-guides__categories-section .page-game-guides__section-title,
.page-game-guides__benefits-section .page-game-guides__section-title,
.page-game-guides__cta-section .page-game-guides__section-title {
    color: var(--text-color-dark-bg);
}

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

.page-game-guides__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-game-guides__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-game-guides__card {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
}

.page-game-guides__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-game-guides__content-card {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: left;
}

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

.page-game-guides__benefits-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    color: var(--text-color-dark-bg);
}

.page-game-guides__benefits-list li strong {
    color: var(--secondary-color);
}

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

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

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

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

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

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-light-bg);
}

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

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

.page-game-guides__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-game-guides__link {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-game-guides__link:hover {
    color: #005a2d;
}

.page-game-guides__highlight {
    color: var(--font-color-register-login);
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 2.8em;
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__grid--two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-game-guides__hero-title {
        font-size: 2em;
    }
    .page-game-guides__hero-description {
        font-size: 1em;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
    }
    .page-game-guides__introduction-section,
    .page-game-guides__categories-section,
    .page-game-guides__strategy-section,
    .page-game-guides__benefits-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding: 40px 0;
    }
    .page-game-guides__container {
        padding: 0 15px;
    }

    /* Images responsive */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__image-content,
    .page-game-guides__card-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Content area image minimum size */
    .page-game-guides__introduction-section img,
    .page-game-guides__strategy-section img,
    .page-game-guides__benefits-section img,
    .page-game-guides__faq-section img {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 200px !important;
        min-height: 200px !important;
        height: auto !important;
    }

    /* Buttons responsive */
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 15px;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-game-guides__button-group {
        flex-direction: column;
        gap: 0;
    }

    .page-game-guides__card {
        padding: 15px;
    }
    .page-game-guides__card-title {
        font-size: 1.3em;
    }
    .page-game-guides__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-game-guides__faq-answer {
        padding: 15px;
    }
    .page-game-guides__benefits-list li {
        font-size: 1em;
        padding: 10px 15px;
    }
    .page-game-guides__grid {
        gap: 20px;
    }
    .page-game-guides__grid--two-columns {
        grid-template-columns: 1fr;
    }
    .page-game-guides__content-card {
        padding: 15px;
    }

    /* Ensure content containers don't overflow */
    .page-game-guides__hero-section,
    .page-game-guides__introduction-section,
    .page-game-guides__categories-section,
    .page-game-guides__strategy-section,
    .page-game-guides__benefits-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-title {
        font-size: 1.8em;
    }
    .page-game-guides__section-title {
        font-size: 1.5em;
    }
    .page-game-guides__text-block {
        font-size: 0.95em;
    }
}