.page-g {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming body background is light/white */
}

/* --- Hero Section --- */
.page-g__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    background-color: #26A9E0; /* Brand primary color for dark background */
    color: #ffffff; /* White text on dark background */
    overflow: hidden;
}

.page-g__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit hero image height */
}

.page-g__hero-content {
    max-width: 900px;
    padding: 20px;
    margin-top: 20px;
}

.page-g__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-g__hero-description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-g__hero-cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width for button max-width to work */
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- General Section Styling --- */
.page-g__section {
    padding: 60px 20px;
}

.page-g__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-g__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0; /* Brand primary color */
}

.page-g__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
}

.page-g__text-center {
    text-align: center;
}

/* --- Color Schemes --- */
.page-g__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-g__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-g__light-text {
    color: #ffffff;
}

/* --- Buttons --- */
.page-g__cta-button,
.page-g__btn-primary,
.page-g__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

.page-g__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-g__btn-primary:hover {
    background-color: #d16b06;
    border-color: #d16b06;
}

.page-g__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-g__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

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

.page-g__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-g__feature-icon {
    width: 100%;
    max-width: 200px; /* Max width for feature icons */
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.page-g__feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-g__feature-description {
    font-size: 0.95rem;
    color: #f0f0f0;
}

/* --- Game Types List --- */
.page-g__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-g__list-item {
    background-color: #f8f8f8;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    font-size: 1rem;
}

.page-g__list-item strong {
    color: #26A9E0;
}

/* --- How To Play Steps Grid --- */
.page-g__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-g__step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-g__step-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Make descriptions take equal height */
    color: #f0f0f0;
}

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

.page-g__tip-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.page-g__tip-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-g__tip-description {
    font-size: 0.95rem;
    color: #555555;
}

/* --- Promotions Section --- */
.page-g__promotions-cta {
    margin-top: 40px;
    text-align: center;
}

/* --- FAQ Section --- */
.page-g__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default marker for details summary */
    color: #ffffff;
}

.page-g__faq-question::-webkit-details-marker,
.page-g__faq-question::marker {
    display: none; /* Hide default marker */
}

.page-g__faq-qtext {
    flex-grow: 1;
}

.page-g__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-g__faq-item[open] .page-g__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form cross */
}

.page-g__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: #f0f0f0;
}

/* --- Conclusion Section --- */
.page-g__conclusion-cta {
    margin-top: 40px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-g {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 1. HERO Section */
    .page-g__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px;
    }

    .page-g__hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

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

    .page-g__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Product/Content Grid (Feature Grid, Steps Grid, Tips Grid) */
    .page-g__feature-grid,
    .page-g__steps-grid,
    .page-g__tips-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
        margin-top: 30px;
    }

    .page-g__feature-item,
    .page-g__step-item,
    .page-g__tip-item {
        padding: 25px;
    }

    .page-g__feature-icon {
        max-width: 150px; /* Adjust size for mobile */
    }

    /* 3. General Images and Containers */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-g__container,
    .page-g__section,
    .page-g__hero-image-wrapper,
    .page-g__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 4. Buttons and Button Containers */
    .page-g__cta-button,
    .page-g__btn-primary,
    .page-g__btn-secondary,
    .page-g a[class*="button"],
    .page-g 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: 12px 20px; /* Adjust padding for mobile */
        font-size: 1rem;
    }

    .page-g__promotions-cta,
    .page-g__conclusion-cta {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 5. Other Content Modules */
    .page-g__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-g__list-item {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .page-g__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-g__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9rem;
    }
}