/* style/game-guides.css */

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

.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--g88-text-main); /* Light text on dark body background */
    background-color: var(--g88-bg-main); /* Body background from shared.css */
    line-height: 1.6;
}

/* Headings */
.page-game-guides h1,
.page-game-guides h2,
.page-game-guides h3,
.page-game-guides h4,
.page-game-guides h5,
.page-game-guides h6 {
    color: var(--g88-text-main);
    margin-bottom: 1em;
    font-weight: 700;
    line-height: 1.2;
}

.page-game-guides__main-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.page-game-guides__section-title {
    font-size: 2.5em; /* Adjusted for desktop, will be responsive */
    text-align: center;
    margin-bottom: 30px;
    color: var(--g88-gold-color);
}

.page-game-guides__subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--g88-text-secondary);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__paragraph {
    margin-bottom: 1.5em;
    color: var(--g88-text-main);
}

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

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

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

/* Buttons */
.page-game-guides__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden;
}

.page-game-guides__cta-buttons--center {
    justify-content: center;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-game-guides__btn-primary {
    background: var(--g88-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

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

/* Sections */
.page-game-guides__introduction-section,
.page-game-guides__game-categories-section,
.page-game-guides__betting-tips-section,
.page-game-guides__faq-section {
    padding: 60px 0;
    background-color: var(--g88-bg-main);
}

.page-game-guides__dark-section {
    background-color: var(--g88-bg-card);
    padding: 60px 0;
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    max-width: 900px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__game-card {
    background-color: var(--g88-bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.3em;
    margin: 20px 20px 10px;
    color: var(--g88-gold-color);
}

.page-game-guides__card-title a {
    color: var(--g88-gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--g88-glow-color);
}

.page-game-guides__card-description {
    font-size: 0.95em;
    color: var(--g88-text-secondary);
    margin: 0 20px 20px;
    flex-grow: 1; /* Push link to bottom */
}

.page-game-guides__card-link {
    display: inline-block;
    background-color: var(--g88-color-primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 20px 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
    background: var(--g88-button-gradient); /* Use gradient for consistency */
}

.page-game-guides__card-link:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

.page-game-guides__step-card {
    background-color: var(--g88-bg-main);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--g88-border-color);
}

.page-game-guides__step-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}

.page-game-guides__step-title {
    font-size: 1.4em;
    color: var(--g88-glow-color);
    margin-bottom: 15px;
}

.page-game-guides__step-description {
    color: var(--g88-text-secondary);
}

/* Betting Tips */
.page-game-guides__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-game-guides__list-item {
    background-color: var(--g88-bg-card);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--g88-text-main);
    border-left: 5px solid var(--g88-gold-color);
}

.page-game-guides__list-item strong {
    color: var(--g88-gold-color);
}

/* App Download */
.page-game-guides__app-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides__app-feature-item {
    background-color: var(--g88-bg-main);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--g88-border-color);
}

.page-game-guides__app-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.page-game-guides__app-feature-title {
    font-size: 1.4em;
    color: var(--g88-glow-color);
    margin-bottom: 15px;
}

.page-game-guides__app-feature-description {
    color: var(--g88-text-secondary);
}

/* FAQ Section */
.page-game-guides__faq-list {
    margin-top: 40px;
}

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

.page-game-guides__faq-item details {
    border: none;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--g88-text-main);
    cursor: pointer;
    background-color: var(--g88-deep-green);
    border-bottom: 1px solid var(--g88-divider-color);
    list-style: none; /* For summary tag */
}

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

.page-game-guides__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

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

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 20px;
    color: var(--g88-glow-color);
}

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

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

.page-game-guides__faq-answer .page-game-guides__btn-secondary {
    margin-top: 15px;
}

/* Conclusion */
.page-game-guides__conclusion-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--g88-bg-card);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__main-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-game-guides__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
        line-height: 1.2;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
    }
    .page-game-guides__subtitle {
        font-size: 1em;
    }

    .page-game-guides__hero-section,
    .page-game-guides__introduction-section,
    .page-game-guides__game-categories-section,
    .page-game-guides__registration-guide-section,
    .page-game-guides__betting-tips-section,
    .page-game-guides__app-download-section,
    .page-game-guides__faq-section,
    .page-game-guides__conclusion-section {
        padding: 40px 0;
    }

    .page-game-guides__container {
        padding: 0 15px; /* Mobile padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images and Videos */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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;
    }
    .page-game-guides__video-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    }

    /* Buttons */
    .page-game-guides__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__cta-button,
    .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;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-game-guides__game-card-grid,
    .page-game-guides__steps-grid,
    .page-game-guides__app-features-grid {
        grid-template-columns: 1fr;
    }
    .page-game-guides__card-image {
        height: 180px;
    }
    .page-game-guides__step-card,
    .page-game-guides__app-feature-item {
        padding: 20px;
    }
    .page-game-guides__list-item {
        padding: 15px;
    }
    .page-game-guides__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-game-guides__faq-answer {
        padding: 15px;
    }
}