/* style/game-guides.css */

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

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

.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;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-game-guides__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-game-guides .text-main {
    color: var(--text-main);
    font-weight: bold;
}

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

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-game-guides__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-game-guides__main-title {
    color: var(--gold-color);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
    max-width: 100%;
    margin-bottom: 20px;
    /* Using clamp for responsive H1 font-size */
    font-size: clamp(2em, 4vw, 3.2em);
}

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

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

/* Buttons */
.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;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--main-bg);
    transform: translateY(-2px);
}

/* Intro Section */
.page-game-guides__intro-section {
    padding: 60px 0;
    background-color: var(--main-bg);
}

/* Why Choose Us Section */
.page-game-guides__why-choose-us {
    padding: 60px 0;
    background-color: var(--deep-green);
}

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

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

.page-game-guides__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__card-text {
    font-size: 1em;
    color: var(--text-secondary);
}

/* Game Categories Section */
.page-game-guides__game-categories {
    padding: 60px 0;
    background-color: var(--main-bg);
}

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

.page-game-guides__category-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-game-guides__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-game-guides__category-image {
    width: 100%;
    height: 200px; /* Fixed height for visual consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-game-guides__category-card .page-game-guides__card-title {
    margin-top: 0;
}

.page-game-guides__category-card .page-game-guides__btn-secondary {
    margin-top: auto; /* Push button to bottom */
}

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

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

.page-game-guides__step-card {
    background: var(--text-main); /* Light background for contrast */
    color: #333333; /* Dark text on light background */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-game-guides__step-card .page-game-guides__card-title {
    color: var(--deep-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.page-game-guides__step-number {
    background-color: var(--primary-color);
    color: var(--text-main);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 10px;
}

.page-game-guides__step-card .page-game-guides__card-text {
    color: #555555;
    margin-bottom: 20px;
}

.page-game-guides__step-card .page-game-guides__btn-primary,
.page-game-guides__step-card .page-game-guides__btn-secondary {
    margin-top: auto;
}

/* Strategy Tips Section */
.page-game-guides__strategy-tips {
    padding: 60px 0;
    background-color: var(--main-bg);
}

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

.page-game-guides__tip-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.page-game-guides__tip-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-game-guides__responsible-gaming .page-game-guides__btn-secondary {
    margin-top: 30px;
}

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

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

.page-game-guides__faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.page-game-guides__faq-item[open] {
    background: var(--deep-green);
    border-color: var(--primary-color);
}

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

.page-game-guides__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

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

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
    line-height: 1;
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--text-secondary);
}

/* CTA Bottom Section */
.page-game-guides__cta-bottom {
    padding: 60px 0;
    text-align: center;
    background-color: var(--deep-green);
}

.page-game-guides__cta-bottom .page-game-guides__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

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

    .page-game-guides__hero-image-wrapper {
        max-height: 500px;
    }

    .page-game-guides__features-grid,
    .page-game-guides__category-grid,
    .page-game-guides__steps-grid,
    .page-game-guides__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-game-guides__hero-section {
        padding-bottom: 40px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-game-guides__hero-description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .page-game-guides__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

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

    .page-game-guides__intro-section,
    .page-game-guides__why-choose-us,
    .page-game-guides__game-categories,
    .page-game-guides__get-started-section,
    .page-game-guides__strategy-tips,
    .page-game-guides__responsible-gaming,
    .page-game-guides__faq-section,
    .page-game-guides__cta-bottom {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__category-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        height: auto !important;
    }

    .page-game-guides__category-image {
        height: 250px; /* Adjust height for mobile if needed */
    }

    .page-game-guides__card,
    .page-game-guides__section,
    .page-game-guides__box,
    .page-game-guides__container,
    .page-game-guides__hero-content,
    .page-game-guides__features-grid,
    .page-game-guides__category-grid,
    .page-game-guides__steps-grid,
    .page-game-guides__tips-grid,
    .page-game-guides__faq-list,
    .page-game-guides__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-game-guides__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

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

    .page-game-guides__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: clamp(1.4em, 7vw, 2em);
    }

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

    .page-game-guides__hero-description {
        font-size: 1em;
    }

    .page-game-guides__paragraph {
        font-size: 0.95em;
    }

    .page-game-guides__hero-section {
        padding-bottom: 30px;
    }
}