/* g.css */
.page-g {
    background-color: #140C0C;
    color: #FFF1E8;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Hero Section */
.page-g__hero-section {
    position: relative;
    text-align: center;
    padding-top: 10px; /* Small top padding as per rules */
    margin-bottom: 40px;
}

.page-g__hero-banner {
    width: 100%;
    margin: 0;
    overflow: hidden;
    display: block; /* Ensure it behaves as a block element */
}

.page-g__hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 5; /* 1920x600 ratio */
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no filter is applied */
}

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

.page-g__hero-content {
    background-color: #2A1212; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    margin-top: -80px; /* Overlap slightly for visual effect */
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #6A1E1E; /* Border */
}


.page-g__main-title {
    color: #F3C54D; /* Gold */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Responsive font size */
    max-width: 800px; /* Limit width for better readability */
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-g__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    border: none;
}

.page-g__btn--primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C; /* Dark text for contrast */
}

.page-g__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-g__btn--secondary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C;
}

.page-g__btn--secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-g__btn--outline {
    background: transparent;
    border: 2px solid #F3C54D; /* Gold border */
    color: #F3C54D; /* Gold text */
    padding: 10px 23px;
}

.page-g__btn--outline:hover {
    background-color: #F3C54D; /* Gold background on hover */
    color: #140C0C; /* Dark text */
    transform: translateY(-2px);
}

/* Section Titles */
.page-g__section-title {
    color: #F3C54D; /* Gold */
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    position: relative;
    padding-bottom: 15px;
}

.page-g__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #E53030; /* Secondary color */
    border-radius: 2px;
}

/* Features Section */
.page-g__features-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

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

.page-g__feature-card {
    background-color: #2A1212; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E; /* Border */
}

.page-g__feature-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 2; /* 600x400 ratio */
    margin-bottom: 15px;
    filter: none; /* Ensure no filter is applied */
}

.page-g__feature-card-title {
    color: #F3C54D; /* Gold */
    font-size: 1.3rem;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-g__feature-card-text {
    font-size: 0.95rem;
    color: #FFF1E8; /* Main text color */
    padding: 0 15px;
}

/* How To Play Section */
.page-g__how-to-play-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-g__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.page-g__step-card {
    background-color: #2A1212; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E; /* Border */
    position: relative;
}

.page-g__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #140C0C;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-g__step-title {
    color: #F3C54D; /* Gold */
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.page-g__step-text {
    font-size: 0.9rem;
    color: #FFF1E8; /* Main text color */
}

/* Betting Tips Section */
.page-g__betting-tips-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-g__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.page-g__tip-item {
    background-color: #2A1212; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E; /* Border */
    text-align: left;
}

.page-g__tip-title {
    color: #F3C54D; /* Gold */
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.page-g__tip-text {
    font-size: 0.95rem;
    color: #FFF1E8; /* Main text color */
}

/* FAQ Section */
.page-g__faq-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    text-align: center;
}

.page-g__faq-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.page-g__faq-item {
    background-color: #2A1212; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #6A1E1E; /* Border */
    text-align: left;
}

.page-g__faq-question {
    color: #F3C54D; /* Gold */
    font-size: 1.2rem;
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.page-g__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #FFB04A;
}

.page-g__faq-question.active::after {
    content: '-';
}

.page-g__faq-answer {
    font-size: 0.95rem;
    color: #FFF1E8; /* Main text color */
    display: none; /* Hidden by default */
    margin-top: 15px;
}

.page-g__faq-answer.active {
    display: block; /* Show when active */
}

.page-g__cta-wrapper {
    margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-g__hero-content {
        margin-top: -50px; /* Adjust overlap for smaller screens */
        padding: 20px;
    }

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

    .page-g__description {
        font-size: 1rem;
    }

    .page-g__features-grid,
    .page-g__steps,
    .page-g__tips-list {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }

    .page-g__features-section,
    .page-g__how-to-play-section,
    .page-g__betting-tips-section,
    .page-g__faq-section {
        padding: 0 15px;
    }

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

    .page-g__features-grid img,
    .page-g__feature-card img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-g__hero-content {
        margin-top: -30px;
        padding: 15px;
    }
    .page-g__main-title {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }
    .page-g__description {
        font-size: 0.9rem;
    }
    .page-g__btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .page-g__section-title {
        font-size: clamp(1.2rem, 6vw, 1.6rem);
    }
    .page-g__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    .page-g__tip-item,
    .page-g__faq-item {
        padding: 20px;
    }
    .page-g__faq-question {
        font-size: 1.1rem;
    }
}