/* style/g.css */
:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --accent-color: #d6d604; /* Yellow-green/lemon yellow for accent */
}

.page-g {
    background-color: #0a0909; /* Deep red/wine red background for 3WIN style */
    color: var(--text-main);
    padding-bottom: 40px; /* Ensure some space at the bottom */
}

/* Adjust initial padding for the first section to avoid double padding with body */
.page-g__hero-section {
    padding-top: 10px; /* Small top margin for the first section */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
}

.page-g__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    margin-bottom: 30px;
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-g__hero-content {
    max-width: 900px;
    padding: 0 15px;
}

.page-g__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--accent-color); /* Use accent color for H1 */
    margin-bottom: 20px;
    /* No fixed font-size, rely on viewport scaling and clamp if absolutely needed */
    font-size: clamp(2.2rem, 4vw, 3.5rem); 
}

.page-g__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #F4F7FB; /* Lighter text for dark background */
    margin-bottom: 30px;
}

.page-g__hero-button,
.page-g__primary-button,
.page-g__secondary-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--card-bg); /* White text on buttons */
    background: var(--button-gradient);
    border: none;
}

.page-g__hero-button:hover,
.page-g__primary-button:hover,
.page-g__secondary-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-color), 0.3);
}

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

.page-g__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-g__features-section {
    padding: 40px 0;
    background-color: #0a0909; /* Consistent dark background */
}

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

.page-g__feature-card {
    background-color: var(--card-bg); /* White card background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-g__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-color), 0.2);
}

.page-g__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 15px;
}

.page-g__feature-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}

.page-g__how-to-play-section {
    padding: 60px 0;
    background-color: #1a0808; /* Slightly different dark background for contrast */
}

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

.page-g__step-item {
    text-align: center;
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-g__step-icon {
    width: 60px;
    height: 60px;
    background: var(--button-gradient);
    color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(var(--primary-color), 0.3);
}

.page-g__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 10px;
}

.page-g__step-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
}

.page-g__action-area {
    text-align: center;
    margin-top: 50px;
}

.page-g__gallery-section {
    padding: 60px 0;
    background-color: #0a0909;
}

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

.page-g__image-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-g__image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(var(--primary-color), 0.2);
}

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

.page-g__image-caption {
    padding: 15px;
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: center;
    background-color: var(--card-bg);
}

.page-g__cta-section {
    background: var(--button-gradient); /* Use gradient for CTA background */
    padding: 60px 20px;
    text-align: center;
    color: var(--card-bg); /* White text for CTA */
    margin-top: 40px;
}

.page-g__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--card-bg); /* White text for CTA title */
}

.page-g__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--card-bg); /* White text for CTA description */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-g__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

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

    .page-g__hero-button,
    .page-g__primary-button,
    .page-g__secondary-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .page-g__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-g__features-grid,
    .page-g__steps-grid,
    .page-g__image-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-g__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }

    .page-g__feature-title,
    .page-g__step-title {
        font-size: 1.2rem;
    }

    .page-g__cta-title {
        font-size: clamp(1.6rem, 5.5vw, 2.5rem);
    }

    /* Mobile image overflow prevention */
    .page-g img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure content area images (under .page-g) are not smaller than 200px due to CSS */
    .page-g__hero-image,
    .page-g__content-image {
        min-width: 200px; /* Enforce min-width to meet 200px requirement */
        min-height: 200px; /* Enforce min-height to meet 200px requirement */
    }
}

/* Ensure all images meet the 200x200px minimum display size requirement */
.page-g__hero-image,
.page-g__content-image {
    min-width: 200px;
    min-height: 200px;
}