.page-g {
    background-color: #FFFFFF;
    color: #333333;
}

.page-g__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    background-color: #017439;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.page-g__hero-visual {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-g__hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5;
}

.page-g__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.page-g__hero-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem);
}

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

.page-g__hero-cta {
    display: inline-block;
    background-color: #C30808;
    color: #FFFF00;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: none;
}

.page-g__hero-cta:hover {
    background-color: #9C0606;
}

.page-g__section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.page-g__about-section,
.page-g__advantages-section,
.page-g__how-to-play-section,
.page-g__game-showcase-section,
.page-g__tips-section,
.page-g__cta-banner {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-g__about-section {
    background-color: #F8F8F8;
    text-align: center;
}

.page-g__section-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555555;
}

.page-g__section-text strong {
    color: #017439;
}

.page-g__section-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-g__section-link:hover {
    color: #004d2b;
}

.page-g__advantages-grid,
.page-g__steps-grid,
.page-g__game-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.page-g__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.page-g__advantage-card:hover {
    transform: translateY(-5px);
}

.page-g__advantage-card img {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 5px;
    min-width: 200px;
    min-height: 200px;
}

.page-g__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-g__card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
}

.page-g__how-to-play-section {
    background-color: #F0F5F0;
}

.page-g__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-g__step-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-g__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #017439;
    color: #FFFFFF;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-g__step-cta {
    display: inline-block;
    background-color: #C30808;
    color: #FFFF00;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    margin-top: auto; /* Pushes button to bottom */
    transition: background-color 0.3s ease;
    border: none;
}

.page-g__step-cta:hover {
    background-color: #9C0606;
}

.page-g__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-g__game-tile {
    display: block;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.page-g__game-tile:hover {
    transform: translateY(-5px);
}

.page-g__game-tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/2;
    min-width: 200px;
    min-height: 200px;
}

.page-g__game-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #FFFFFF;
    padding: 15px 10px 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

.page-g__view-all-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    background-color: #017439;
    color: #FFFFFF;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-g__view-all-btn:hover {
    background-color: #004d2b;
}

.page-g__tips-section {
    background-color: #F8F8F8;
}

.page-g__tips-list {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-g__tip-item {
    background-color: #FFFFFF;
    border-left: 5px solid #017439;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-g__tip-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #017439;
    margin-bottom: 10px;
}

.page-g__tip-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
}

.page-g__cta-banner {
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.page-g__cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-g__cta-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

.page-g__cta-button--register {
    background-color: #C30808;
    color: #FFFF00;
}

.page-g__cta-button--register:hover {
    background-color: #9C0606;
}

.page-g__cta-button--login {
    background-color: #C30808;
    color: #FFFF00;
}

.page-g__cta-button--login:hover {
    background-color: #9C0606;
}

@media (max-width: 849px) {
    .page-g__hero-visual img {
        aspect-ratio: 4/3;
    }

    .page-g__hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

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

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

    .page-g__advantages-grid,
    .page-g__steps-grid,
    .page-g__game-grid,
    .page-g__tips-list {
        grid-template-columns: 1fr;
    }

    .page-g__cta-title {
        font-size: 2rem;
    }

    .page-g__cta-button {
        display: block;
        margin: 15px auto;
        width: 80%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-g__hero-visual img,
    .page-g__advantage-card img,
    .page-g__game-tile img {
        max-width: 100%;
        height: auto;
    }

    .page-g__game-tile img {
        min-width: 200px;
        min- /* 200 * (2/3) */
    }

    .page-g__advantage-card img {
        min-width: 200px;
        min-height: 200px;
    }

    .page-g__about-section,
    .page-g__advantages-section,
    .page-g__how-to-play-section,
    .page-g__game-showcase-section,
    .page-g__tips-section,
    .page-g__cta-banner {
        padding: 40px 15px;
    }

    .page-g__hero-content {
        padding: 15px;
    }

    .page-g__hero-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 549px) {
    .page-g__hero-visual img {
        aspect-ratio: 4/3;
    }

    .page-g__hero-title {
        font-size: clamp(1.3rem, 7vw, 2.2rem);
    }

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

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

    .page-g__cta-title {
        font-size: 1.8rem;
    }

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

/* Ensure no content causes horizontal scroll */
.page-g {
    overflow-x: hidden;
}

.page-g__game-grid a.page-g__game-tile {
    overflow: hidden;
}