/* style/game-guides.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* Body background from shared.css will be var(--background), assuming it's #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 {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page, considering dark background */
    background-color: var(--background-color);
    line-height: 1.6;
    padding-bottom: 60px; /* Space above footer */
}

/* General Container for content */
.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    padding-top: 40px;
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    background-color: var(--deep-green); /* Fallback background */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic reasons */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-game-guides__hero-content {
    position: relative; /* Ensure content is above any potential background */
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.page-game-guides__hero-title {
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    /* No fixed font-size for H1, relying on other properties */
    max-width: 60ch; /* Restrict width for better readability */
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 80ch;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Introduction Section */
.page-game-guides__introduction-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Darker background for contrast */
}

.page-game-guides__introduction-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

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

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

.page-game-guides__guide-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    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(--text-secondary);
}

.page-game-guides__guide-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: 1.4rem;
    color: var(--gold-color);
    padding: 20px 20px 10px;
    font-weight: 600;
}

.page-game-guides__card-description {
    font-size: 0.95rem;
    padding: 0 20px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-game-guides__card-button {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px 20px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease;
}

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

/* Promotions Benefit Section */
.page-game-guides__promotions-benefit-section {
    padding: 60px 0;
    background-color: var(--deep-green);
}

.page-game-guides__promotions-benefit-section p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

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

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
}

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

.page-game-guides__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Tips Section */
.page-game-guides__tips-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-game-guides__tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-game-guides__tip-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: var(--text-secondary);
}

.page-game-guides__tip-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-guides__tip-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

.page-game-guides__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    color: var(--text-secondary);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

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

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

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    content: "−";
}

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

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

.page-game-guides__faq-answer a {
    color: var(--gold-color);
    text-decoration: none;
}

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

/* Final CTA Section */
.page-game-guides__cta-final-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-color);
}

.page-game-guides__cta-final-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Responsive Images, Videos, Buttons */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-game-guides video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-game-guides__video-container,
.page-game-guides__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-game-guides__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
        padding-top: 30px;
    }

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

    .page-game-guides__hero-title {
        font-size: 2.2rem; /* Adjusted for mobile H1 */
        margin-bottom: 15px;
    }

    .page-game-guides__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-game-guides__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-game-guides__introduction-section,
    .page-game-guides__game-categories-section,
    .page-game-guides__promotions-benefit-section,
    .page-game-guides__tips-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-final-section {
        padding: 40px 0;
    }

    .page-game-guides__game-categories-section .page-game-guides__container,
    .page-game-guides__tip-list {
        grid-template-columns: 1fr;
    }

    .page-game-guides__guide-card {
        margin-bottom: 20px;
    }
    
    .page-game-guides__card-image {
        height: 180px; /* Slightly smaller on mobile */
    }

    .page-game-guides__button-group {
        flex-direction: column;
        gap: 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
    }

    /* Images and Video responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-game-guides video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-guides__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper,
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__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__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}