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

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

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

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

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Space between image and text */
}

.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;
    padding: 0 20px;
    max-width: 900px;
    position: relative;
    z-index: 1;
    color: var(--text-main-color);
    margin-top: 0; /* Ensure no negative margin for overlap */
}

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

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

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-game-guides__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Subtle inverse gradient */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-game-guides__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-text {
    color: var(--glow-color);
    background: none;
    border: none;
    padding: 0;
    font-size: 1rem;
    text-decoration: underline;
}

.page-game-guides__btn-text:hover {
    color: var(--gold-color);
}

/* General Section Styling */
.page-game-guides__section {
    padding: 60px 0;
    background-color: var(--bg-color);
    color: var(--text-main-color);
}

.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.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__sub-title {
    font-size: 1.8rem;
    color: var(--glow-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

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

.page-game-guides strong {
    color: var(--text-main-color);
}

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

.page-game-guides__game-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
}

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

.page-game-guides__card-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-game-guides__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    flex-grow: 1; /* Make description take available space */
    margin-bottom: 20px;
}

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

.page-game-guides__strategy-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
}

.page-game-guides__strategy-heading {
    font-size: 1.6rem;
    color: var(--glow-color);
    margin-bottom: 15px;
}

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

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

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__faq-question:hover {
    background-color: var(--deep-green-color);
    filter: brightness(1.2); /* Subtle hover effect */
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
    border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

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

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

/* Remove default details arrow */
.page-game-guides__faq-item > summary {
    list-style: none;
}
.page-game-guides__faq-item > summary::-webkit-details-marker {
    display: none;
}

/* Call to Action Section */
.page-game-guides__call-to-action {
    text-align: center;
    padding: 80px 0;
    background-color: var(--deep-green-color);
    color: var(--text-main-color);
}

.page-game-guides__call-to-action .page-game-guides__section-title {
    color: var(--gold-color);
}

.page-game-guides__call-to-action .page-game-guides__intro-text {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: var(--text-secondary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__section-title {
        font-size: 2.2rem;
    }
    .page-game-guides__sub-title {
        font-size: 1.6rem;
    }
    .page-game-guides__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-game-guides__hero-content {
        padding: 0 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-game-guides__intro-text {
        font-size: 1rem;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides__btn-text {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-guides__section {
        padding: 40px 0;
    }
    .page-game-guides__container {
        padding: 0 15px;
    }
    .page-game-guides__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-game-guides__sub-title {
        font-size: 1.4rem;
    }
    .page-game-guides p {
        font-size: 0.95rem;
    }
    .page-game-guides__game-grid {
        grid-template-columns: 1fr;
    }
    .page-game-guides__card-image {
        height: 180px;
    }
    .page-game-guides__card-title {
        font-size: 1.2rem;
    }
    .page-game-guides__strategy-heading {
        font-size: 1.4rem;
    }
    .page-game-guides__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image and video responsive rules */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__cta-buttons,
    .page-game-guides__hero-section,
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__hero-content
     {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    /* No video elements on this page, but if there were, these would apply */
    .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;
    }
}