/* style/game-guides.css */

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

/* Base styles for the page */
.page-game-guides {
    background-color: var(--m88keo-bg);
    color: var(--m88keo-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-game-guides__dark-bg {
    background-color: var(--m88keo-bg);
    color: var(--m88keo-text-main);
}

.page-game-guides__light-bg {
    background-color: #ffffff; /* Default light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-game-guides__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--m88keo-text-main);
    line-height: 1.2;
}

.page-game-guides__light-bg .page-game-guides__section-title {
    color: #333333;
}

.page-game-guides__sub-title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--m88keo-primary);
}

.page-game-guides__text-block {
    margin-bottom: 20px;
    font-size: 17px;
    color: var(--m88keo-text-secondary);
}

.page-game-guides__light-bg .page-game-guides__text-block {
    color: #555555;
}

.page-game-guides a {
    color: var(--m88keo-secondary);
    text-decoration: none;
}

.page-game-guides a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    text-align: center;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

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

.page-game-guides__hero-content {
    position: relative;
    z-index: 10;
    padding: 20px;
    max-width: 900px;
    margin-top: 40px;
}

.page-game-guides__main-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: var(--m88keo-text-main);
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-game-guides__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--m88keo-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-game-guides__btn-primary {
    background: var(--m88keo-button-gradient);
    color: #ffffff;
    border: none;
}

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

/* Intro Section */
.page-game-guides__intro {
    padding: 60px 20px;
}

/* Game Type Section */
.page-game-guides__game-type-section {
    padding: 60px 20px;
}

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

.page-game-guides__card {
    background-color: var(--m88keo-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--m88keo-text-main);
    border: 1px solid var(--m88keo-border);
}

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

.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: 24px;
    font-weight: 700;
    padding: 15px 20px 10px;
    color: var(--m88keo-text-main);
}

.page-game-guides__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-game-guides__card-title a:hover {
    color: var(--m88keo-secondary);
    text-decoration: underline;
}

.page-game-guides__card-description {
    font-size: 15px;
    color: var(--m88keo-text-secondary);
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-game-guides__card .page-game-guides__btn-secondary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Strategies Section */
.page-game-guides__strategies {
    padding: 60px 20px;
}

.page-game-guides__strategies .page-game-guides__container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    color: #333333;
}

.page-game-guides__strategies .page-game-guides__text-block p {
    color: #555555;
}

.page-game-guides__strategies .page-game-guides__text-block a {
    color: var(--m88keo-primary);
}

/* FAQ Section */
.page-game-guides__faq-section {
    padding: 60px 20px;
}

.page-game-guides__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-guides__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    color: var(--m88keo-text-main);
    list-style: none; /* Hide default marker */
}

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

.page-game-guides__faq-qtext {
    flex-grow: 1;
}

.page-game-guides__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--m88keo-secondary);
}

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

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

.page-game-guides__faq-cta {
    display: block;
    margin-top: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-game-guides__cta-section {
    padding: 60px 20px;
}

.page-game-guides__cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: var(--m88keo-card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
}

.page-game-guides__cta-text {
    flex: 1;
    min-width: 300px;
}

.page-game-guides__cta-text .page-game-guides__section-title {
    text-align: left;
    margin-bottom: 20px;
    color: var(--m88keo-text-main);
}

.page-game-guides__cta-text .page-game-guides__text-block {
    color: var(--m88keo-text-secondary);
}

.page-game-guides__cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-game-guides__cta-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        padding: 15px;
    }

    .page-game-guides__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }

    .page-game-guides__hero-description {
        font-size: clamp(15px, 1.8vw, 18px);
    }

    .page-game-guides__cta-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .page-game-guides__cta-text .page-game-guides__section-title {
        text-align: center;
    }

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

    .page-game-guides__cta-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-game-guides__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__hero-section,
    .page-game-guides__intro,
    .page-game-guides__game-type-section,
    .page-game-guides__strategies,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding: 40px 15px;
    }

    .page-game-guides__hero-content {
        margin-top: 20px;
    }

    .page-game-guides__main-title {
        font-size: clamp(24px, 7vw, 38px);
    }

    .page-game-guides__hero-description {
        font-size: 16px;
    }

    .page-game-guides__section-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .page-game-guides__sub-title {
        font-size: clamp(20px, 5vw, 28px);
    }

    .page-game-guides__text-block,
    .page-game-guides__card-description,
    .page-game-guides__faq-answer {
        font-size: 15px;
    }

    .page-game-guides__card-title {
        font-size: 20px;
    }

    .page-game-guides__faq-item summary {
        font-size: 16px;
        padding: 15px 20px;
    }

    .page-game-guides__grid {
        grid-template-columns: 1fr;
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile video responsiveness - No videos in this page, but keeping for robustness */
    .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;
    }

    /* Mobile button responsiveness */
    .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; /* Ensure full width for single buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}