/* style/g.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --bg-color: #0A0A0A;
    --card-bg-color: #111111;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-g {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

.page-g__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-g__section {
    padding: 60px 0;
}

.page-g__dark-bg {
    background-color: var(--card-bg-color);
}

.page-g__section-title {
    font-size: 36px;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-g__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 246, 214, 0.8);
}

.page-g h1, .page-g h2, .page-g h3, .page-g h4, .page-g h5, .page-g h6 {
    color: var(--text-main-color);
}

.page-g a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.page-g__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

.page-g__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
}

.page-g__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-g__main-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-g__hero-description {
    font-size: 18px;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 30px;
}

.page-g__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    border: none;
}

.page-g__cta-button:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-g__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: none;
}

.page-g__cta-button--secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.2);
    color: var(--primary-color);
}

.page-g__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Introduction Section */
.page-g__introduction-section .page-g__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
}

.page-g__introduction-section .page-g__content-wrapper p {
    flex: 1;
    min-width: 300px;
    color: rgba(255, 246, 214, 0.85);
}

.page-g__image-left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

.page-g__image-center {
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

/* Bet Types Section */
.page-g__bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-g__card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-g__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.page-g__card-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.page-g__card p {
    color: rgba(255, 246, 214, 0.8);
}

/* Guide Section */
.page-g__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-g__step-item {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.page-g__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--button-gradient);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-g__step-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-g__step-item p {
    color: rgba(255, 246, 214, 0.8);
}

.page-g__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border: none;
}

.page-g__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-g__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.page-g__btn-secondary:hover {
    background: rgba(255, 211, 107, 0.1);
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Advantages Section */
.page-g__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-g__advantage-card {
    text-align: center;
}

/* Tips Section */
.page-g__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-g__tips-list li {
    background-color: var(--card-bg-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: rgba(255, 246, 214, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-g__tips-list li strong {
    color: var(--secondary-color);
}

/* FAQ Section */
details.page-g__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--card-bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

details.page-g__faq-item summary.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

details.page-g__faq-item summary.page-g__faq-question::-webkit-details-marker {
    display: none;
}

details.page-g__faq-item summary.page-g__faq-question:hover {
    background-color: rgba(255, 211, 107, 0.05);
}

.page-g__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color);
}

.page-g__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-g__faq-item .page-g__faq-answer {
    padding: 0 20px 20px;
    background-color: rgba(255, 211, 107, 0.02);
    border-radius: 0 0 10px 10px;
    color: rgba(255, 246, 214, 0.8);
}

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

/* Conclusion Section */
.page-g__conclusion-section .page-g__section-description {
    margin-bottom: 20px;
}

/* Global image and button responsiveness */
.page-g img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-g__section,
.page-g__card,
.page-g__container,
.page-g__cta-buttons,
.page-g__button-group,
.page-g__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent content overflow */
}

.page-g__cta-button,
.page-g__btn-primary,
.page-g__btn-secondary,
.page-g a[class*="button"],
.page-g a[class*="btn"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-g {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-g__section {
        padding: 40px 0;
    }

    .page-g__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-g__section-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .page-g__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-g__main-title {
        font-size: clamp(24px, 7vw, 36px);
    }

    .page-g__hero-description {
        font-size: 16px;
        padding: 0 10px;
    }

    .page-g__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
    }

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

    .page-g__introduction-section .page-g__content-wrapper {
        flex-direction: column;
    }

    .page-g__image-left {
        float: none;
        margin-right: 0;
        width: 100%;
    }

    .page-g__card,
    .page-g__step-item {
        padding: 25px;
    }

    .page-g__card-title,
    .page-g__step-title {
        font-size: 20px;
    }

    .page-g__step-item {
        padding-top: 70px;
    }

    .page-g__step-number {
        width: 45px;
        height: 45px;
        font-size: 20px;
        top: 15px;
    }

    .page-g__tips-list li {
        padding: 15px;
    }

    details.page-g__faq-item summary.page-g__faq-question {
        padding: 15px;
    }

    .page-g__faq-qtext {
        font-size: 16px;
    }

    .page-g__faq-toggle {
        font-size: 20px;
        width: 24px;
    }

    details.page-g__faq-item .page-g__faq-answer {
        padding: 0 15px 15px;
    }

    /* Force image and button responsiveness */
    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-g__section,
    .page-g__card,
    .page-g__container,
    .page-g__hero-section,
    .page-g__introduction-section .page-g__content-wrapper,
    .page-g__bet-types-grid,
    .page-g__guide-steps,
    .page-g__advantages-grid,
    .page-g__tips-list,
    .page-g__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-g__cta-button,
    .page-g__btn-primary,
    .page-g__btn-secondary,
    .page-g a[class*="button"],
    .page-g a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-g__cta-buttons,
    .page-g__button-group,
    .page-g__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}