:root {
    --t88-primary-green: #11A84E;
    --t88-secondary-green: #22C768;
    --t88-button-gradient-start: #2AD16F;
    --t88-button-gradient-end: #13994A;
    --t88-card-bg: #11271B;
    --t88-background: #08160F;
    --t88-text-main: #F2FFF6;
    --t88-text-secondary: #A7D9B8;
    --t88-border: #2E7A4E;
    --t88-glow: #57E38D;
    --t88-gold: #F2C14E;
    --t88-divider: #1E3A2A;
    --t88-deep-green: #0A4B2C;
}

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

/* Ensure all images are responsive and not too small */
.page-game-guides img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
    border-radius: 8px;
    object-fit: cover;
}

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

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Space between image and content */
    border-radius: 12px;
    overflow: hidden;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    min-height: 300px; /* Minimum height for hero image */
    max-height: 600px; /* Max height for hero image */
    object-fit: cover;
}

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

.page-game-guides__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--t88-gold); /* Using gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

/* General Section Styling */
.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-game-guides__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--t88-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-game-guides__sub-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--t88-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

/* Section Backgrounds for Contrast */
.page-game-guides__dark-section {
    background-color: var(--t88-card-bg); /* Darker background for sections */
    padding: 60px 0;
    color: var(--t88-text-main); /* Light text on dark background */
}

.page-game-guides__light-bg {
    background-color: var(--t88-background); /* Main background for lighter sections */
    padding: 60px 0;
    color: var(--t88-text-main); /* Light text on main background */
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allows text to wrap */
    word-wrap: break-word; /* Ensures long words break */
}

.page-game-guides__btn-primary {
    background: linear-gradient(180deg, var(--t88-button-gradient-start) 0%, var(--t88-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
    background: linear-gradient(180deg, var(--t88-button-gradient-end) 0%, var(--t88-button-gradient-start) 100%);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

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

.page-game-guides__btn-secondary:hover {
    background-color: var(--t88-button-gradient-start);
    color: #ffffff;
}

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

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

.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;
    object-fit: cover;
    border-bottom: 1px solid var(--t88-divider);
}

.page-game-guides__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--t88-gold);
    margin: 20px 15px 10px;
}

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

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

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

.page-game-guides__card .page-game-guides__btn-secondary {
    margin: 0 15px 20px;
    align-self: center;
    width: calc(100% - 30px);
}

/* List styles */
.page-game-guides__tip-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

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

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

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

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

.page-game-guides__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--t88-gold);
    cursor: pointer;
    outline: none;
    user-select: none;
    background-color: var(--t88-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--t88-divider);
}

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

.page-game-guides__faq-question {
    display: flex; /* Ensures toggle icon is aligned */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-game-guides__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: var(--t88-glow);
}

.page-game-guides__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--t88-text-secondary);
}
.page-game-guides__faq-answer p {
    margin-bottom: 10px;
    color: var(--t88-text-secondary);
}
.page-game-guides__faq-answer a {
    color: var(--t88-glow);
    text-decoration: none;
}
.page-game-guides__faq-answer a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-game-guides__cta-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--t88-deep-green); /* Use deep green for CTA */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-game-guides__subtitle {
        font-size: 1.1rem;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-game-guides__sub-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 10px 15px 40px;
    }
    .page-game-guides__hero-image {
        min-height: 250px;
        max-height: 400px;
    }
    .page-game-guides__main-title {
        font-size: 2.2rem; /* clamp will handle this based on min value */
        line-height: 1.3;
    }
    .page-game-guides__subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    .page-game-guides__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
        padding-top: 30px;
    }
    .page-game-guides__sub-title {
        font-size: 1.4rem;
    }
    .page-game-guides__text-block,
    .page-game-guides__list-item,
    .page-game-guides__card-description,
    .page-game-guides__faq-answer p {
        font-size: 0.95rem;
    }

    .page-game-guides__dark-section,
    .page-game-guides__light-bg {
        padding: 40px 0;
    }

    .page-game-guides__grid-cards {
        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__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-game-guides__cta-section {
        padding: 60px 0;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        margin: 0 auto; /* Center buttons */
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* body already handles header-offset */
    }
}

/* Ensure no CSS filters are used for images */
.page-game-guides img {
    filter: none !important;
}

/* Additional contrast safety for text on various backgrounds */
.page-game-guides a {
    color: var(--t88-glow); /* Default link color */
    text-decoration: none;
}
.page-game-guides a:hover {
    text-decoration: underline;
}

/* Specific contrast for main text on dark backgrounds */
.page-game-guides__text-block,
.page-game-guides__list-item {
    color: var(--t88-text-main); /* Explicitly set for safety */
}
.page-game-guides__card-description {
    color: var(--t88-text-secondary); /* Explicitly set for safety */
}