/* style/g.css */
:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --card-bg: #10233F;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy-color: #08162B;
}

.page-g {
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--deep-navy-color); /* Assuming body background is dark */
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

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

.page-g__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--deep-navy-color);
}

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

.page-g__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-g__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-g__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-g__hero-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-g__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-g__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

.page-g__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-g__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 115, 246, 0.6);
}

.page-g__btn-secondary {
    background: var(--card-bg);
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-g__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--deep-navy-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

.page-g__section-title {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--gold-color);
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-g__sub-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.page-g__text-block {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-g__dark-section {
    background-color: var(--card-bg);
    padding: 60px 20px;
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-g__introduction-section .page-g__text-block,
.page-g__promotions-section .page-g__text-block,
.page-g__cta-section .page-g__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-g__introduction-section img,
.page-g__bet-types-section img,
.page-g__how-to-play-section img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-g__list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-g__list-item {
    margin-bottom: 10px;
    font-size: 17px;
}

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

.page-g__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

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

.page-g__card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-g__card-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.page-g__feature-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-g__feature-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-g__feature-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.page-g__steps-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-g__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-left: 80px;
}

.page-g__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 30px;
    top: 30px;
    background-color: var(--gold-color);
    color: var(--deep-navy-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-g__step-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-g__step-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.page-g__promo-list,
.page-g__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-g__promo-item,
.page-g__tip-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-g__promo-title,
.page-g__tip-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-g__promo-text,
.page-g__tip-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.page-g__faq-section {
    background-color: var(--card-bg);
    padding: 60px 20px;
    border-top: 1px solid var(--divider-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-g__faq-list {
    margin-top: 40px;
}

details.page-g__faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--deep-navy-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-g__faq-item summary.page-g__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--gold-color);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.5;
}

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: rgba(var(--primary-color), 0.2);
}

.page-g__faq-qtext {
    flex: 1;
    text-align: left;
}

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

details.page-g__faq-item .page-g__faq-answer {
    padding: 0 25px 25px;
    background: var(--card-bg);
    border-radius: 0 0 12px 12px;
    color: var(--text-secondary);
    font-size: 16px;
}

.page-g__cta-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--deep-navy-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-g__container {
        padding: 30px 15px;
    }
    .page-g__hero-image {
        margin-bottom: 20px;
    }
    .page-g__hero-title {
        font-size: clamp(26px, 3.8vw, 42px);
    }
    .page-g__hero-description {
        font-size: clamp(15px, 1.8vw, 18px);
    }
    .page-g__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-g__section-title {
        font-size: clamp(22px, 3.2vw, 38px);
        margin-bottom: 25px;
    }
    .page-g__sub-title {
        font-size: clamp(18px, 2.2vw, 26px);
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-g__text-block {
        font-size: 16px;
    }
    .page-g__card,
    .page-g__feature-item,
    .page-g__step-item,
    .page-g__promo-item,
    .page-g__tip-item {
        padding: 25px;
    }
    .page-g__card-title,
    .page-g__feature-title,
    .page-g__step-title,
    .page-g__promo-title,
    .page-g__tip-title {
        font-size: 20px;
    }
    .page-g__card-text,
    .page-g__feature-text,
    .page-g__step-text,
    .page-g__promo-text,
    .page-g__tip-text {
        font-size: 15px;
    }
    details.page-g__faq-item summary.page-g__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .page-g__faq-toggle {
        font-size: 24px;
        width: 28px;
    }
    details.page-g__faq-item .page-g__faq-answer {
        padding: 0 20px 20px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .page-g__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__hero-image img {
        border-radius: 8px;
    }
    .page-g__hero-content {
        padding: 0 10px;
    }
    .page-g__hero-title {
        font-size: clamp(24px, 7vw, 36px);
    }
    .page-g__hero-description {
        font-size: clamp(14px, 4vw, 16px);
        margin-bottom: 20px;
    }
    .page-g__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-g__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
    }
    .page-g__section-title {
        font-size: clamp(20px, 6vw, 32px);
        margin-bottom: 20px;
    }
    .page-g__text-block {
        font-size: 15px;
    }
    .page-g__introduction-section,
    .page-g__bet-types-section,
    .page-g__why-choose-f1680-section,
    .page-g__how-to-play-section,
    .page-g__promotions-section,
    .page-g__tips-section,
    .page-g__faq-section,
    .page-g__cta-section {
        padding: 40px 15px;
    }
    .page-g__introduction-section img,
    .page-g__bet-types-section img,
    .page-g__how-to-play-section img {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-g__grid,
    .page-g__features-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    .page-g__card,
    .page-g__feature-item,
    .page-g__step-item,
    .page-g__promo-item,
    .page-g__tip-item {
        padding: 20px;
        padding-left: 65px; /* Adjust for step counter */
    }
    .page-g__step-item::before {
        left: 20px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    .page-g__card-title,
    .page-g__feature-title,
    .page-g__step-title,
    .page-g__promo-title,
    .page-g__tip-title {
        font-size: 18px;
    }
    .page-g__card-text,
    .page-g__feature-text,
    .page-g__step-text,
    .page-g__promo-text,
    .page-g__tip-text {
        font-size: 14px;
    }
    details.page-g__faq-item summary.page-g__faq-question {
        font-size: 15px;
        padding: 12px 15px;
    }
    .page-g__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-g__faq-item .page-g__faq-answer {
        padding: 0 15px 15px;
        font-size: 14px;
    }

    .page-g img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-g__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-g__dark-section .page-g__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}