.page-g {
    padding-top: 10px; /* Small top padding, main header offset handled by body in shared.css */
    background-color: #F4F7FB;
    color: #1F2D3D;
    font-family: Arial, sans-serif;
}

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

.page-g__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Fallback gradient for hero section background */
    display: flex;
    flex-direction: column;
}

.page-g__hero-image-wrapper {
    width: 100%;
    order: 1; /* Image appears first */
}

.page-g__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-g__hero-content {
    order: 2; /* Content appears after image */
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent background for readability */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transform: translateY(-20px); /* Slightly lift content over image for visual appeal, but not *on* it */
    margin-bottom: 20px;
}

.page-g__main-title {
    color: #000000;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
}

.page-g__hero-description {
    color: #1F2D3D;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-g__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-g__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-g__cta-button--small {
    padding: 12px 25px;
    font-size: 1em;
}

.page-g__introduction-section,
.page-g__why-choose-section,
.page-g__how-to-play-section,
.page-g__faq-section {
    background-color: #FFFFFF;
    padding: 60px 0;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-g__section-title {
    color: #000000;
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-g__section-text {
    color: #1F2D3D;
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.page-g__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-g__feature-card {
    background-color: #FFFFFF;
    border: 1px solid #D6E2FF;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-g__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

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

.page-g__card-title {
    color: #000000;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-g__card-description {
    color: #1F2D3D;
    line-height: 1.6;
}

.page-g__center-button {
    text-align: center;
    margin-top: 30px;
}

.page-g__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
}

.page-g__step-item {
    background-color: #F4F7FB;
    border-left: 5px solid #2F6BFF;
    margin-bottom: 25px;
    padding: 20px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-g__step-title {
    color: #000000;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-g__step-description {
    color: #1F2D3D;
    line-height: 1.6;
}

.page-g__faq-item {
    background-color: #F4F7FB;
    border: 1px solid #D6E2FF;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.page-g__faq-question {
    color: #000000;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-g__faq-answer {
    color: #1F2D3D;
    line-height: 1.6;
}

.page-g__faq-answer a {
    color: #2F6BFF;
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-g__hero-content {
        padding: 30px 15px;
        transform: translateY(0);
        margin-bottom: 0;
    }

    .page-g__main-title {
        font-size: 1.8em;
    }

    .page-g__hero-description {
        font-size: 1em;
    }

    .page-g__section-title {
        font-size: 1.8em;
    }

    .page-g__features-grid {
        grid-template-columns: 1fr;
    }

    .page-g__feature-image {
        height: 200px;
    }

    .page-g__step-title {
        font-size: 1.2em;
    }

    .page-g__faq-question {
        font-size: 1.1em;
    }

    /* Ensure content images do not overflow on mobile */
    .page-g img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-g__hero-content {
        padding: 20px 10px;
    }

    .page-g__main-title {
        font-size: 1.6em;
    }

    .page-g__cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-g__section-title {
        font-size: 1.6em;
    }

    .page-g__feature-card {
        padding: 15px;
    }

    .page-g__feature-image {
        height: 180px; /* Still > 200px for the *generation* size, but display can be adjusted */
    }

    .page-g__card-title {
        font-size: 1.3em;
    }

    .page-g__step-item {
        padding: 15px 20px;
    }
}