:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #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(--background-color);
    color: var(--text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--background-color);
    padding-bottom: 40px;
    overflow: hidden; /* Ensure no image overflow */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-game-guides__hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    margin-top: -150px; /* Overlap with image slightly for visual flow */
    position: relative;
    z-index: 1;
    background-color: transparent;
}

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

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

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

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

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

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

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

/* Section common styles */
.page-game-guides__about-section,
.page-game-guides__game-types-section,
.page-game-guides__detailed-guides-section,
.page-game-guides__tips-strategies-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
    padding: 60px 0;
    background-color: var(--background-color);
    border-top: 1px solid var(--divider-color);
}

.page-game-guides__section-title {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    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(--primary-color);
    border-radius: 2px;
}

.page-game-guides__text-block {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-game-guides__text-block a {
    color: var(--glow-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-game-guides__highlight {
    color: var(--gold-color);
    font-weight: bold;
}

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

/* Game types section */
.page-game-guides__game-list {
    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);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-guides__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-game-guides__card-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

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

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

.page-game-guides__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 15px;
}

/* Detailed guides section */
.page-game-guides__guide-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__guide-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

/* Tips and strategies section */
.page-game-guides__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-game-guides__tips-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__list-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-game-guides__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: bold;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
    list-style: none; /* Remove default marker */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit */
}

.page-game-guides__faq-item summary:hover {
    background-color: rgba(var(--deep-green), 0.8);
}

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

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: -100px;
    }
}

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

    .page-game-guides__hero-content {
        margin-top: -80px;
        padding: 0 15px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 6vw + 1rem, 2.5rem);
    }

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

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-game-guides__about-section,
    .page-game-guides__game-types-section,
    .page-game-guides__detailed-guides-section,
    .page-game-guides__tips-strategies-section,
    .page-game-guides__faq-section,
    .page-game-guides__conclusion-section {
        padding: 40px 0;
    }

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

    .page-game-guides__section-title {
        font-size: clamp(1.6rem, 5vw + 1rem, 2.2rem);
        margin-bottom: 30px;
    }

    .page-game-guides__text-block {
        font-size: 0.95rem;
    }

    .page-game-guides__game-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-guides__card-image {
        height: 180px;
    }

    .page-game-guides__card-title {
        font-size: 1.2rem;
    }

    .page-game-guides__card-description {
        font-size: 0.9rem;
    }

    .page-game-guides__guide-item,
    .page-game-guides__tips-list li,
    .page-game-guides__faq-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-game-guides__guide-title,
    .page-game-guides__list-title {
        font-size: 1.3rem;
    }

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

    .page-game-guides__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }

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

    .page-game-guides__hero-image-wrapper {
        max-height: 300px !important; /* Adjust hero image height for mobile */
    }

    .page-game-guides__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Ensure all sections and containers have mobile padding */
    .page-game-guides__about-section,
    .page-game-guides__game-types-section,
    .page-game-guides__detailed-guides-section,
    .page-game-guides__tips-strategies-section,
    .page-game-guides__faq-section,
    .page-game-guides__conclusion-section,
    .page-game-guides__game-card,
    .page-game-guides__guide-item,
    .page-game-guides__tips-list li,
    .page-game-guides__faq-item {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }

    /* Adjust padding for elements that might have negative margins or full width */
    .page-game-guides__hero-section {
        padding-left: 0;
        padding-right: 0;
    }

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