.page-g {
    background-color: #0D0E12; /* Background */
    color: #FFF3E6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-g__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default to column for mobile first */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 40px; /* Small top padding as body handles header offset */
    overflow: hidden; /* Ensure content doesn't bleed */
}

.page-g__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 600px; /* Limit height for aesthetic */
    margin-bottom: 30px; /* Space between image and content */
    order: 1; /* Image first for mobile-first "image on top" */
}

.page-g__hero-content {
    max-width: 800px;
    margin-top: -80px; /* Slightly overlap with image for a connected look on desktop */
    position: relative;
    z-index: 1;
    background-color: #17191F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #A84F0C; /* Border */
    order: 2; /* Content second for mobile-first "text below" */
}

.page-g__hero-title {
    color: #FFB04D; /* Glow */
    font-size: clamp(2rem, 4vw, 3rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.page-g__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Sections */
.page-g__about-cockfighting,
.page-g__game-showcase,
.page-g__betting-guide,
.page-g__why-choose-us,
.page-g__cta-section {
    padding: 60px 0;
    background-color: #17191F; /* Card BG for sections */
    margin-bottom: 30px;
    border-radius: 10px;
    border: 1px solid #A84F0C; /* Border */
}

.page-g__section-title,
.page-g__cta-title {
    color: #FFB04D; /* Glow */
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
}

.page-g__section-text,
.page-g__cta-text {
    font-size: 1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Buttons */
.page-g__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    min-height: 44px; /* Touch target */
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.page-g__btn--primary {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
    color: #FFF3E6;
    box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-g__btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

.page-g__btn--secondary {
    background-color: transparent;
    border: 2px solid #FFA53A; /* Auxiliary color */
    color: #FFA53A; /* Auxiliary color */
}

.page-g__btn--secondary:hover {
    background-color: #FFA53A; /* Auxiliary color */
    color: #17191F; /* Card BG */
    transform: translateY(-3px);
}

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

/* Game Showcase */
.page-g__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-g__game-card {
    background-color: #0D0E12; /* Background */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #A84F0C; /* Border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-g__game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-g__game-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

/* Betting Guide */
.page-g__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-g__guide-item {
    background-color: #0D0E12; /* Background */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #A84F0C; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-g__guide-heading {
    color: #FFA53A; /* Auxiliary */
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Why Choose Us */
.page-g__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-g__benefit-card {
    background-color: #0D0E12; /* Background */
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #A84F0C; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-g__benefit-card img {
    width: 100%;
    max-width: 300px; /* Constrain image width */
    height: auto;
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min width */
}

.page-g__benefit-heading {
    color: #FFA53A; /* Auxiliary */
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* CTA Section */
.page-g__cta-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #FF8C1A 0%, #D96800 100%); /* Main color gradient */
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-g__cta-title {
    color: #FFF3E6; /* Text Main */
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.page-g__cta-text {
    color: #FFF3E6; /* Text Main */
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.page-g__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-g__hero-content {
        margin-top: 0; /* No overlap on smaller screens */
        padding: 20px;
        width: 100%; /* Ensure content block is full width */
        max-width: 1200px; /* Inherit from container */
        border-radius: 10px; /* Keep consistent with desktop */
    }
    .page-g__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-g__hero-description {
        font-size: 1rem;
    }
    .page-g__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-g__btn {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
        margin: 0 auto;
    }

    .page-g__section-title,
    .page-g__cta-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    .page-g__game-grid,
    .page-g__guide-list,
    .page-g__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout for most grids */
    }

    .page-g__game-card img,
    .page-g__benefit-card img {
        width: 100%;
        height: auto; /* Allow height to adjust */
        max-width: 100%;
    }
    .page-g__about-cockfighting,
    .page-g__game-showcase,
    .page-g__betting-guide,
    .page-g__why-choose-us,
    .page-g__cta-section {
        padding: 40px 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 549px) {
    .page-g__hero-image {
        max-height: 400px;
        margin-bottom: 20px;
    }
    .page-g__hero-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .page-g__hero-description {
        font-size: 0.95rem;
    }
    .page-g__section-title,
    .page-g__cta-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
    .page-g__section-text,
    .page-g__cta-text {
        font-size: 0.9rem;
    }
    .page-g__btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Global image responsiveness and minimum size for content area */
.page-g img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-g img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Ensure all content area images meet minimum dimensions (200x200) */
.page-g__game-card img,
.page-g__benefit-card img {
    min-width: 200px;
    min-height: 200px;
}