/* style/game-guides.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-dark: #08160F;
    --card-background: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page content */
    background-color: var(--background-dark);
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--deep-green-color);
    overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-game-guides__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-game-guides__intro-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
    box-sizing: border-box;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid var(--glow-color);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-game-guides__btn-secondary {
    background: var(--card-background);
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
}

.page-game-guides__btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background: var(--glow-color);
    color: var(--card-background);
}

.page-game-guides__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 20px;
}

/* Section Titles and Descriptions */
.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    font-weight: bold;
}

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

.page-game-guides__section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

/* Why Choose Section */
.page-game-guides__why-choose-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-game-guides__feature-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-game-guides__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-game-guides__feature-icon {
    width: 200px; /* Min size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-game-guides__feature-title {
    font-size: 1.6rem;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Game Types Section */
.page-game-guides__game-types-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

.page-game-guides__game-category {
    background: var(--card-background);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 60px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-game-guides__category-title {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-game-guides__category-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__game-category p {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.page-game-guides__guide-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.page-game-guides__guide-list li::before {
    content: '•';
    color: var(--glow-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: 0;
}

.page-game-guides__list-highlight {
    color: var(--text-main);
}

/* Get Started Section */
.page-game-guides__get-started-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

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

.page-game-guides__step-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-game-guides__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__step-title {
    font-size: 1.6rem;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__step-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Tips & Strategy Section */
.page-game-guides__tips-strategy-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-game-guides__tip-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.page-game-guides__tip-title {
    font-size: 1.6rem;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-game-guides__tip-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-game-guides__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* Responsible Gaming Section */
.page-game-guides__responsible-gaming-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

.page-game-guides__responsibility-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-game-guides__responsibility-list li {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    position: relative;
    padding-left: 35px;
    line-height: 1.6;
}

.page-game-guides__list-icon {
    position: absolute;
    left: 0;
    color: var(--glow-color);
    font-size: 1.5rem;
    top: 0;
}

/* FAQ Section */
.page-game-guides__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-game-guides__faq-item {
    background: var(--card-background);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* For <summary> */
}

.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-qtext {
    flex-grow: 1;
    color: var(--glow-color);
}

.page-game-guides__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--glow-color);
    margin-left: 15px;
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

/* Conclusion Section */
.page-game-guides__conclusion-section {
    padding: 80px 0;
    background-color: var(--deep-green-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-game-guides__section-title {
        font-size: 2rem;
    }
    .page-game-guides__feature-title, .page-game-guides__step-title, .page-game-guides__tip-title {
        font-size: 1.4rem;
    }
    .page-game-guides__game-category {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding-bottom: 40px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-game-guides__intro-text {
        font-size: 1rem;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-game-guides__btn-primary, .page-game-guides__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 1rem;
        margin: 0 auto;
    }

    .page-game-guides__section-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    .page-game-guides__section-description {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .page-game-guides__why-choose-section, .page-game-guides__game-types-section, .page-game-guides__get-started-section, .page-game-guides__tips-strategy-section, .page-game-guides__responsible-gaming-section, .page-game-guides__faq-section, .page-game-guides__conclusion-section {
        padding: 60px 0;
    }
    .page-game-guides__feature-card, .page-game-guides__step-card, .page-game-guides__tip-card, .page-game-guides__faq-item {
        padding: 25px;
    }
    .page-game-guides__feature-title, .page-game-guides__step-title, .page-game-guides__tip-title {
        font-size: 1.3rem;
    }
    .page-game-guides__game-category {
        padding: 25px;
        margin-bottom: 40px;
    }
    .page-game-guides__category-title {
        font-size: 1.6rem;
    }
    .page-game-guides__category-image {
        height: auto;
    }
    .page-game-guides__game-category p, .page-game-guides__guide-list li, .page-game-guides__step-card p, .page-game-guides__tip-card p, .page-game-guides__responsibility-list li, .page-game-guides__faq-answer p {
        font-size: 0.95rem;
    }
    .page-game-guides__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-game-guides__faq-toggle {
        font-size: 1.5rem;
    }

    /* Ensure all images are responsive */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all containers with images/buttons/videos are responsive */
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__container,
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__game-category,
    .page-game-guides__steps-grid,
    .page-game-guides__tips-grid,
    .page-game-guides__faq-list,
    .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;
        overflow: hidden !important;
    }

    .page-game-guides__video-section {
        padding-top: 10px !important;
    }
    /* Flexbox for multiple buttons in mobile */
    .page-game-guides__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-game-guides__section-title {
        font-size: 1.6rem;
    }
    .page-game-guides__feature-title, .page-game-guides__step-title, .page-game-guides__tip-title {
        font-size: 1.2rem;
    }
}