/* style/g.css */

/* Custom Properties based on provided color scheme */
:root {
    --page-g-primary-color: #11A84E;
    --page-g-secondary-color: #22C768;
    --page-g-card-bg: #11271B;
    --page-g-background: #08160F;
    --page-g-text-main: #F2FFF6;
    --page-g-text-secondary: #A7D9B8;
    --page-g-border-color: #2E7A4E;
    --page-g-glow-color: #57E38D;
    --page-g-gold-color: #F2C14E;
    --page-g-divider-color: #1E3A2A;
    --page-g-deep-green: #0A4B2C;
    --page-g-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);

    /* Default text color for dark body background */
    --page-g-default-text-color: var(--page-g-text-main);
    --page-g-default-link-color: var(--page-g-secondary-color);
}

/* Base styles for the page-g content */
.page-g {
    background-color: var(--page-g-background);
    color: var(--page-g-default-text-color); /* Text color for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

.page-g h1,
.page-g h2,
.page-g h3,
.page-g h4,
.page-g h5,
.page-g h6 {
    color: var(--page-g-text-main);
    margin-bottom: 1rem;
    font-weight: bold; /* Ensure headings are distinct */
}

.page-g h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    line-height: 1.2;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-g h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 2rem;
    color: var(--page-g-gold-color);
}

.page-g h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--page-g-secondary-color);
}

.page-g p {
    margin-bottom: 1rem;
}

.page-g a {
    color: var(--page-g-default-link-color);
    text-decoration: none;
}

.page-g a:hover {
    text-decoration: underline;
    color: var(--page-g-glow-color);
}

/* Sections and Containers */
.page-g__section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.page-g__dark-section {
    background-color: var(--page-g-deep-green);
    color: var(--page-g-text-main);
}

.page-g__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
}

/* Hero Section */
.page-g__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background-color: var(--page-g-background); /* Ensure background for text contrast */
}

.page-g__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

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

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

.page-g__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--page-g-text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.page-g__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 30px;
}

.page-g__btn-primary,
.page-g__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks within button */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in width */
}

.page-g__btn-primary {
    background: var(--page-g-button-gradient);
    color: var(--page-g-text-main);
    border: 2px solid var(--page-g-secondary-color);
}

.page-g__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-g__btn-secondary {
    background-color: transparent;
    color: var(--page-g-secondary-color);
    border: 2px solid var(--page-g-secondary-color);
}

.page-g__btn-secondary:hover {
    background-color: var(--page-g-secondary-color);
    color: var(--page-g-background);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Cards */
.page-g__card {
    background-color: var(--page-g-card-bg);
    border: 1px solid var(--page-g-border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-g-text-main); /* Ensure card text is visible on dark background */
}

.page-g__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-g__feature-item {
    text-align: center;
}

.page-g__feature-title {
    color: var(--page-g-gold-color);
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Promotions Overview Section */
.page-g__promotion-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__promotion-card {
    display: flex;
    flex-direction: column;
}

.page-g__promotion-title {
    color: var(--page-g-gold-color);
    margin-bottom: 15px;
}

.page-g__promotion-card ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--page-g-text-secondary);
}

.page-g__promotion-card li {
    margin-bottom: 5px;
}

.page-g__promotion-card .page-g__btn-primary,
.page-g__promotion-card .page-g__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    width: fit-content;
    align-self: center; /* Center button */
}

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

.page-g__step-item {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-g__step-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-g__step-title {
    color: var(--page-g-gold-color);
    margin-bottom: 10px;
}

.page-g__step-item .page-g__btn-primary,
.page-g__step-item .page-g__btn-secondary {
    margin-top: auto;
    width: fit-content;
    align-self: center;
}

/* Tips & Tricks Section */
.page-g__bullet-list {
    list-style: disc;
    margin-left: 25px;
    margin-top: 30px;
    color: var(--page-g-text-secondary);
}

.page-g__bullet-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.page-g__bullet-list strong {
    color: var(--page-g-text-main);
}

/* Safety & Security Section */
.page-g__safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-g__safety-item {
    text-align: center;
}

.page-g__safety-title {
    color: var(--page-g-gold-color);
    margin-top: 15px;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-g__faq-list {
    margin-top: 40px;
}

.page-g__faq-item {
    margin-bottom: 15px;
    background-color: var(--page-g-card-bg);
    border: 1px solid var(--page-g-border-color);
    border-radius: 8px;
    overflow: hidden;
}

.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--page-g-text-main);
    font-size: 1.15rem;
    background-color: var(--page-g-deep-green); /* Slightly darker for question header */
    border-bottom: 1px solid var(--page-g-border-color);
    list-style: none; /* Remove default marker for summary */
}

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

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

.page-g__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--page-g-gold-color);
}

.page-g__faq-answer {
    padding: 15px 25px;
    color: var(--page-g-text-secondary);
    background-color: var(--page-g-card-bg);
    font-size: 1rem;
}

.page-g__faq-answer p {
    margin-bottom: 10px;
}

.page-g__faq-answer .page-g__btn-primary,
.page-g__faq-answer .page-g__btn-secondary {
    margin-top: 15px;
    width: fit-content;
}

/* Content Images */
.page-g__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-g__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-g__section {
        padding: 40px 10px;
    }

    .page-g__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-g__hero-image {
        max-height: 400px;
    }

    .page-g h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-g h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-g h3 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-g__btn-primary,
    .page-g__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
        min-height: 200px !important; /* Ensure min size */
    }
    
    .page-g__section,
    .page-g__card,
    .page-g__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-g__hero-image-wrapper,
    .page-g__content-image {
        padding: 0 15px; /* Adjust padding for full width images */
    }

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

    .page-g__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-g__hero-image {
        max-height: 300px;
    }
    .page-g__hero-description {
        font-size: 1rem;
    }
}

/* Ensure content area images maintain minimum size and responsiveness */
.page-g img {
    min-width: 200px;
    min-height: 200px;
}
/* Ensure any images inside .page-g that are not specifically targeted are also responsive and meet min size */
.page-g__content-area img,
.page-g__why-choose-us img,
.page-g__promotions-overview img,
.page-g__how-to-play img,
.page-g__safety-security img,
.page-g__faq-section img,
.page-g__call-to-action img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space nicely */
}